forge-auto
11
总安装量
11
周安装量
#27294
全站排名
安装命令
npx skills add https://github.com/fwehrling/forge --skill forge-auto
Agent 安装分布
mcpjam
11
claude-code
11
replit
11
junie
11
windsurf
11
zencoder
11
Skill 文档
/forge-auto â FORGE Autopilot Mode
FORGE takes full control of the development pipeline. It analyzes, decides, executes, verifies, and iterates automatically until the objective is complete.
French Language Rule
All content generated in French MUST use proper accents (é, è, ê, à , ù, ç, ô, î, etc.), follow French grammar rules (agreements, conjugations), and use correct spelling.
Principle
The user provides an objective â FORGE handles EVERYTHING else.
Planning â Architecture â Stories â Code â Tests â Verification â Deployment
Workflow
-
Load memory:
- Read
.forge/memory/MEMORY.mdfor project context - Read the latest session from
.forge/memory/sessions/for continuity - Read
.forge/sprint-status.yamlfor the current state - Read
.forge/config.ymlfor configuration forge-memory search "<current objective>" --limit 3â Load relevant past decisions and context
- Read
-
Analyze state and determine the phase:
The decision system follows this logic:
IF no artifacts exist: â Start with /forge-plan (generates the PRD) IF PRD exists BUT no architecture: â Launch /forge-architect IF architecture exists BUT no UX design: â Launch /forge-ux IF UX exists BUT no stories: â Launch /forge-stories IF stories exist with "pending" status: â Count unblocked pending stories â IF 2+ unblocked stories AND Agent Teams available (CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1): â Delegate to /forge-team build [STORY-IDs] (parallel execution) â Wait for team completion, then continue with QA verdicts â ELSE: â Pick the next unblocked story â Launch /forge-build STORY-XXX (sequential) IF an "in_progress" story exists: â Resume /forge-build STORY-XXX IF story is implemented (Dev tests pass): â Launch /forge-verify STORY-XXX IF QA verdict = FAIL: â Increment failure counter for this story â IF failure counter < 3: â Fix and relaunch /forge-verify â IF failure counter >= 3: â Escalate to /forge-loop "Fix STORY-XXX: [QA failure summary]" --mode hitl â forge-loop iterates autonomously with sandbox guardrails until tests pass â On success: reset failure counter, continue with /forge-verify IF QA verdict = PASS or CONCERNS: â Launch /forge-review on the story's source code (src/{MODULE}/) â Review = adversarial analysis (devil's advocate): gaps, risks, assumptions IF review raises CRITICAL issues: â Fix the issues â Re-run /forge-verify STORY-XXX (regression check) â Re-run /forge-review to confirm fixes IF review is clean (no critical issues): â Move to the next story IF all stories are "completed": â Propose /forge-deploy or new stories -
Execute with the appropriate agents:
- Each phase invokes the corresponding agent (PM, Architect, UX, SM, Dev, QA)
- The agent loads its persona from
~/.claude/skills/forge/references/agents/ - The agent produces its artifacts in
docs/orsrc/ - Agent Teams acceleration: when entering the build phase with 2+ unblocked stories,
and
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1is set, autopilot delegates to/forge-team buildfor parallel story implementation (up to 4 Dev + 1 QA). If Agent Teams is not available, stories are built sequentially as before.
-
Automatic quality gates:
- After each story: lint + typecheck + tests > 80% coverage
- After each /forge-verify: mandatory QA verdict
- After QA PASS/CONCERNS: mandatory /forge-review (adversarial review)
- If /forge-review raises critical issues: fix â re-verify â re-review
- Loop escalation: if 3 consecutive failures on the same story, autopilot
delegates to
/forge-loopin HITL mode with the QA failure summary as task. forge-loop iterates with sandbox guardrails (cost cap, circuit breaker, rollback) until tests pass, then returns control to autopilot for re-verification. - Ultimate circuit breaker: if forge-loop also fails (hits its own circuit breaker) â pause + report to user
-
Save memory:
forge-memory logfor each story completed during this session:forge-memory log "{STORY_ID} terminée : {N} tests, couverture {X}%" --agent dev --story {STORY_ID}forge-memory logfor the session summary:forge-memory log "Session autopilot terminée : {completed}/{total} stories, phase {PHASE}"- Consolidate session logs into MEMORY.md:
forge-memory consolidate --verbose - Sync the full memory index:
forge-memory sync - Update
.forge/sprint-status.yaml
-
Human checkpoints (configurable):
- Default: checkpoint after each major phase (plan, architecture, stories)
--no-pausemode: no checkpoints (full autopilot)--pause-storiesmode: pause after story decomposition--pause-eachmode: pause after each story
Options
# Full autopilot â FORGE decides everything
/forge-auto
# Autopilot with a specific objective
/forge-auto "Implement the authentication system"
# Autopilot without pauses (warning: fully autonomous)
/forge-auto --no-pause
# Autopilot with pause after stories
/forge-auto --pause-stories
# Autopilot with pause after each story
/forge-auto --pause-each
# Resume autopilot after a pause
/forge-auto --resume
Progress Report
At each step, FORGE displays:
FORGE AUTOPILOT â Progress
ââââââââââââââââââââââââââââââ
Phase : Development (Story 3/8)
Last : STORY-002 â (QA: PASS)
Current : STORY-003 â Implementation
Next : STORY-004 (pending)
Metrics:
Stories : 2 completed / 1 in_progress / 5 pending
Tests : 47 pass / 0 fail
Coverage : 87%
Memory : .forge/memory/MEMORY.md (up to date)
Session : .forge/memory/sessions/YYYY-MM-DD.md
How /forge-auto Uses Other FORGE Tools
| Situation | Autopilot delegates to | Condition |
|---|---|---|
| 2+ unblocked stories ready | /forge-team build (parallel) |
Agent Teams enabled |
| 1 story ready | /forge-build STORY-XXX (sequential) |
Always |
| Story implemented (Dev tests pass) | /forge-verify STORY-XXX (QA audit) |
Always |
| QA verdict PASS/CONCERNS | /forge-review src/{MODULE}/ (adversarial review) |
Always |
| Review raises critical issues | Fix â /forge-verify â /forge-review |
Always |
| 3 consecutive failures on a story | /forge-loop (iterative fix) |
Always |
| forge-loop also fails | Pause + report to user | Ultimate circuit breaker |
Difference with /forge-loop
| Aspect | /forge-loop | /forge-auto |
|---|---|---|
| Scope | A specific task | The entire project |
| Decision | The user chooses the task | FORGE decides the next action |
| Agents | A single one (usually Dev) | All agents depending on the phase |
| Memory | Local fix_plan.md | Persistent project memory |
| Progression | Linear (iterations) | Full pipeline (plan â deploy) |
| Use case | “Implement this feature” | “Build this project from A to Z” |
| Relation | Standalone or called by auto | Calls /forge-loop on difficult stories |
Coexistence with Manual Mode
Autopilot and manual commands are 100% compatible:
- You can start with
/forge-auto, pause, then continue manually - You can work manually then launch
/forge-auto --resumeto continue - Memory is shared: both modes read/write the same files
/forge-statusworks in both modes
Notes
- Autopilot ALWAYS respects quality gates (no shortcuts)
- The circuit breaker protects against infinite loops
- Persistent memory ensures continuity between sessions
- Compatible with projects initialized via
/forge-init - Also works for resuming existing projects (analyzes the state)