From forge
Implements tasks from .forge frontier during /forge execute: reads specs/state/frontier, handles multi-repo workspaces, implements/tests per depth (TDD/thorough/standard/quick), reviews, commits.
npx claudepluginhub lucasduys/forge --plugin forgeThis skill uses the workspace's default tool permissions.
This skill guides the per-task implementation cycle during `/forge execute`. For each task in the frontier, you follow a structured workflow: read the spec, implement, test, review, commit, and update state. The Stop hook drives task-to-task progression; this skill handles the work within a single task.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
This skill guides the per-task implementation cycle during /forge execute. For each task in the frontier, you follow a structured workflow: read the spec, implement, test, review, commit, and update state. The Stop hook drives task-to-task progression; this skill handles the work within a single task.
You will receive:
T003: Registration endpoint + tests).forge/specs/spec-auth.md)quick, standard, or thorough.forge/capabilities.json (optional, informs tool choices).forge/config.json (which repo to work in, conventions to follow).forge/state.md — check what task you are on, what is already done, any in-flight work or key decisions from prior tasks..forge/plans/{spec}-frontier.md — find your current task, understand its dependencies, and what comes after..forge/specs/spec-{domain}.md — find the R-numbered requirements and acceptance criteria that this task must satisfy. Identify the exact checkboxes you need to check off..forge/capabilities.json if it exists — check for available MCP servers (Context7 for docs, Playwright for E2E, MongoDB for data inspection) and skills (TDD, systematic debugging, code review).repo: tag, cd into the correct repo directory (from .forge/config.json repos). Read that repo's CLAUDE.md or coding conventions file first.The implementation approach depends on the depth level and available capabilities:
// TODO or throw new Error('not implemented').After implementation, run the test suite:
.forge/state.md with task_status: debugging and describe the failure. The stop hook will switch to systematic DEBUG mode.After tests pass, update .forge/state.md:
task_status: testing in the frontmatter.The stop hook reads this state and decides the next action:
quick: skip review, proceed to commit.standard or thorough: the stop hook will feed a review prompt.When the stop hook feeds a review prompt, review the implementation:
If issues are found:
Once the task passes tests and review (or review is skipped for quick depth):
feat: add user registration endpoint (T003, R001)After committing:
Update the task registry (.forge/task-status.json) — this is the authoritative source for task completion. Either:
node <plugin-root>/scripts/forge-tools.cjs mark-complete --forge-dir .forge --task T003 --commit abc1234.forge/task-status.json to set the task's status to "complete" with the commit hash.Set task_status: complete in .forge/state.md frontmatter.
Move the task from "In-Flight Work" to "What's Done" with the commit hash:
## What's Done
- T003: Registration endpoint + tests (complete, committed abc1234)
Clear the "In-Flight Work" section.
Update "What's Next" to reflect remaining tasks.
Increment iteration in the frontmatter.
The stop hook will then pick up the updated state and either:
Each task moves through these states, tracked in .forge/state.md frontmatter as task_status:
pending → implementing → testing → reviewing → complete
↑ ↓
└── fixing ──┘
↓
debugging (circuit breaker)
↓
blocked (needs human)
When .forge/config.json defines multiple repos:
repo: tag in the frontier.path from the repo config (relative to the .forge/ location).cross_repo_rules.api_first is true, backend tasks are completed before frontend tasks that depend on them. The frontier already enforces this ordering.If .forge/capabilities.json lists available tools, use them when relevant:
| Capability | When to Use |
|---|---|
| Context7 MCP | Look up library/framework documentation when implementing unfamiliar APIs |
| Playwright MCP | Run E2E tests for frontend tasks, verify UI behavior |
| MongoDB MCP | Inspect database state during debugging, verify data operations |
| TDD skill | Enforce test-first workflow (activated automatically for thorough depth) |
| Systematic debugging | Use the 4-phase debugging protocol when in DEBUG mode |
| Code review plugin | Enhance the review step with structured review output |
Do not fail if a capability is listed but unavailable at runtime — fall back to manual approaches.
When the stop hook detects multiple unblocked tasks in the same tier, it will instruct you to dispatch them in parallel:
Agent tool with isolation: "worktree"..forge/state.md and .forge/task-status.json with the results from each agent.This only applies when the stop hook explicitly instructs parallel execution. Do not attempt parallel dispatch on your own — let the hook decide based on the frontier tier structure.
.forge/task-status.json after completing a task. This is the programmatic source of truth for task completion — more reliable than markdown parsing..forge/state.md for human-readable progress and context preservation across session resets.