/forge:forge-implementfrom forge
Implements an Issue, plan file, or free-text description on a feature branch, following project standards, and stops at an open PR. Asks for plan approval unless in unattended mode.
Ships in forge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Primary input ($ARGUMENTS): an Issue number/URL, a plan file path, or free-text description. Optional: -- <additional context> for execution guidance.
Unattended mode: --unattended skips plan approval and proceeds without confirmation prompts. When no person can answer (the prompt says another session or a scheduler started the run, or AskUserQuestion is unavailable or goes unanswered), run unattended even without the flag and say so in your first message.
Report implementing via status-reporting. Determine the input type and extract requirements.
Ask for clarification when requirements are too vague or dependencies too incomplete to plan confidently; in unattended mode, proceed on explicitly stated assumptions instead.
For an Issue, check open work before planning, following open-work. When a prerequisite is unmet or an open PR is already for this Issue, name each one and its state, and ask via AskUserQuestion whether to proceed. In unattended mode: stop and report needs-human with them. Keep the other open PRs' files for the plan.
Identify durable architectural decisions (data model, API contracts, module boundaries) and write the design block from deep-modules: the change's interface, what it hides, and where the same decision already lives.
For complex work, delegate codebase research to a sub-agent for unbiased answers:
Write 3–7 factual questions about existing systems, patterns, and integration points. Each asks how something works today; if a reader could guess the goal from it, rewrite it. One always asks which places already do what this change is nearest to. Pass the Issue's pointers to what already exists (file paths, packages, library docs) verbatim, never links to the Issue, a PR, or a spec of the change. Delegate to a forge-scout sub-agent (a cheap fast model, where the runtime lets you choose) that receives only the questions and pointers. If no sub-agent support, read the role file and answer each question following its rules.
Inputs provided to sub-agent: Role: forge-scout, the research questions, the pointers, codebase access. Expected output: One factual answer per question, with file paths and code references.
From the research, create a plan:
Present the plan via AskUserQuestion and get confirmation before coding. In unattended mode: skip this and proceed. A design the user rejects on the open PR goes through design-rounds.
git fetch origin
DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
git rev-list --count origin/$DEFAULT_BRANCH..HEAD # 0 on a non-default branch → a worktree tool prepared it; stay on it
Otherwise branch off the fetched default branch without switching to it (this also works inside a worktree, where the default branch is checked out elsewhere):
git checkout --no-track -b <TYPE>/<ISSUE_NUMBER>-<BRIEF_DESCRIPTION> origin/$DEFAULT_BRANCH
When working from a plan file or free-text (no Issue number), use a descriptive slug: <TYPE>/<BRIEF_DESCRIPTION>.
Read AGENTS.md first. Execute the work in vertical phases following phase-execution: pre-flight first, then each phase through its gate.
Note each deviation from the Step 2 Plan and why as it happens; the PR states each one.
If you changed a pattern (error handling, component structure, API convention), update every other place that uses the old one. Search for the pattern's shape, not its literal text (a rename's grep misses aliased imports), at the scope the pattern lives in; re-grep after updating; and name each match you left on purpose in the PR body.
Update docs/*.md and AGENTS.md if behavior or conventions changed, and search docs, comments, test names and config for the words of what the change removed: text describing something that is gone is a defect of this change.
Run every part of the project's quality gate (the gate parts pre-flight listed): lint, format, type check and tests, with no violations. Reach ≥ 90% test coverage for new/modified code through the interface production uses, measured with the project's coverage tool; when none is configured, flag this to the user and offer to set it up. A test seam the number forced goes in the PR's Notes (see phase-execution).
Fix issues and commit fixes.
Run the app and use the changed path once, plus one failure case, following exercise. Fix what it finds, with a test, before opening the PR.
git push -u origin <BRANCH_NAME>
Create the PR with a conventional commit title and the body from pr-body. The why comes from the linked Issue's problem statement, or the commit history when none is linked; in unattended mode, the assumptions you proceeded on go under Notes. Close the Issue when one exists.
Pass the body on stdin via a quoted heredoc (an inline --body "..." mangles multi-line text, backticks, and quotes):
gh pr create --title "<TYPE>(<SCOPE>): <DESCRIPTION>" --body-file - <<'PR_EOF'
<PR body>
PR_EOF
Report: branch name, PR link, commits made, files changed, tests added, docs updated, exercise outcome, the Try it line from ## Exercised, deferred items.
After implementing: Use forge-reflect to self-review before requesting review.
/forge-implement 123
/forge-implement 123 -- keep the diff minimal and prefer existing UI patterns
/forge-implement --unattended 123
/forge-implement docs/roadmap.md
/forge-implement add a dark mode toggle to the settings page
_shared/deep-modules.md (opens in a new tab)_shared/design-rounds.md (opens in a new tab)_shared/exercise.md (opens in a new tab)_shared/issue-operations.md (opens in a new tab)_shared/open-work.md (opens in a new tab)_shared/phase-execution.md (opens in a new tab)_shared/plan-folder-spec.md (opens in a new tab)_shared/pr-body.md (opens in a new tab)_shared/review-delegation.md (opens in a new tab)_shared/review-dimensions.md (opens in a new tab)_shared/review-rubric.md (opens in a new tab)_shared/roles/forge-reviewer.md (opens in a new tab)_shared/roles/forge-scout.md (opens in a new tab)_shared/status-reporting.md (opens in a new tab)_shared/unattended-config.md (opens in a new tab)_shared/visuals.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/forge-address-pr-feedbackAnalyze and address unresolved review feedback on a GitHub pull request. Asks the user about threads that need discussion unless --unattended. Use when the user or an orchestrating agent asks for forge-address-pr-feedback or to work through the review comments on a specific PR./forge-create-issuePlan and create well-structured Issues with the user (GitHub, markdown plan/ folder, or other providers), researching the codebase first and confirming the approach and draft interactively. Use when the user or an orchestrating agent asks for forge-create-issue or to file an Issue for work that is already understood, not when a bug merely comes up in conversation; use forge-shape first when the idea is still vague./forge-npx claudepluginhub mgratzer/forge --plugin forgeOther plugins' skills for the same job