Add agent

From hoangsonww/Forge-Agentic-Coding-CLI · View interactive version

Add agent is an AI agent skill from the GitHub repository hoangsonww/Forge-Agentic-Coding-CLI. Scaffold a new Forge subagent (planner/architect/executor/reviewer/debugger/memory-style). Use when adding anything to src/agents/.

How to use this skill

Skill file

/add-agent — add a new Forge agent

Agents extend src/agents/base.ts. Follow the existing shape from

src/agents/reviewer.ts or src/agents/debugger.ts — they are the

simplest examples.

Agent name: $ARGUMENTS.

Steps

  1. src/agents/$ARGUMENTS.ts — extend the base agent class. Declare:
  1. src/agents/registry.ts — register the agent.
  2. Unit test — mock callModel (see

test/unit/executor-loop.test.ts). Cover:

  1. Docs — update the agent list in docs/ARCHITECTURE.md if

user-visible.

Invariants

pass a test. Fix the agent instead.

Run /verify when done.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.