Skip to content
🚧 This documentation is a draft and is currently under review. 🚧

Custom Agents

Install the main SpecFlow skills first. Then add the bundled worker agents only if you want them.

SpecFlow ships three supporting worker agents in agents/:

  • coder — implementation worker for 301-spec-implementation, 302-test-implementation, 401-cleanup, and 402-test-correction
  • execution-agent — validation worker for test, lint, and build passes
  • designer — UI direction worker for 106-ui-design, 107-ui-experience, 108-ui-page-design, and UI-affecting 301-spec-implementation runs

Global install:

Terminal window
curl -fsSL https://raw.githubusercontent.com/ajelinek/SpecFlow/main/install/install-agents.sh | sh -s -- --path="$HOME/.config/opencode/agents"

Project-local install:

Terminal window
curl -fsSL https://raw.githubusercontent.com/ajelinek/SpecFlow/main/install/install-agents.sh | sh -s -- --path=/path/to/project/.opencode/agents

Direct copy to a chosen directory:

Terminal window
curl -fsSL https://raw.githubusercontent.com/ajelinek/SpecFlow/main/install/install-agents.sh | sh -s -- --path=/path/to/agents-dir

Common target directories:

  • Project-local: .opencode/agents/
  • User-wide: ~/.config/opencode/agents/

Global install:

Terminal window
curl -fsSL https://raw.githubusercontent.com/ajelinek/SpecFlow/main/install/install-agents.sh | sh -s -- --path="$HOME/.claude/agents"

Project-local install:

Terminal window
curl -fsSL https://raw.githubusercontent.com/ajelinek/SpecFlow/main/install/install-agents.sh | sh -s -- --path=/path/to/project/.claude/agents

Direct copy to a chosen directory:

Terminal window
curl -fsSL https://raw.githubusercontent.com/ajelinek/SpecFlow/main/install/install-agents.sh | sh -s -- --path=/path/to/agents-dir

Common target directories:

  • Project-local: .claude/agents/
  • User-wide: ~/.claude/agents/

If you prefer not to run the installer, download these files and place them in your target agents directory:

Example target directories:

  • OpenCode global: ~/.config/opencode/agents/
  • OpenCode project-local: .opencode/agents/
  • Claude Code global: ~/.claude/agents/
  • Claude Code project-local: .claude/agents/

If your Claude setup does not support the model named in one of these files, replace or remove the model field after copying.

  • Use npx skills add ... for the main SpecFlow install
  • Use the curl ... | sh -s -- --path=... installer only if you want the optional worker agents
  • Edit copied agent files if you want different model values

These agents are installed separately, but they are the intended support structure for full 301, 302, 401, and 402 runs.