When to use SkillsFlow
Use the LLM to sequence skills (default) when the agent needs to reason about which skills to call and in what order based on the user’s request. Use SkillsFlow when the sequence is known in advance: “always fetch data, then clean it, then summarize it.” SkillsFlow gives you predictability, lower token usage, and easier testing.Defining a flow
Flows are YAML files in theflows/ directory:
Running a flow
Step types
Skill step
Parallel step
Run multiple skills simultaneously:Conditional step
Loop step
Sub-flow step
Expressions
Expressions use Jinja2 syntax inside{{ }}:
Error handling
Testing flows
Flow as LLM tool
The agent exposes each flow as a skill to the LLM. The flow’sname and description determine when the LLM chooses to invoke it — the same rules as individual skills apply.
To prevent a flow from being exposed to the LLM (run only via gitagent flow run):