forge
Skill3 starsChanged 8 months agoMITView on GitHub
Orchestrate a full development pipeline using MCP-driven subagents. Accepts plain text or issue tracker URLs (GitHub, Jira, Linear, etc.) as input.
54 other projects use a version of this.
Adopted by
Most recently taken up by
- pche-broken-artist/forge-of-thoughttheir own version, first seen Oct 4, 2026
- Rynaro/magicitetheir own version, first seen Sep 29, 2026
- brightstack/forgetheir own version, first seen Sep 29, 2026
- venhdev/skillstheir own version, first seen Sep 28, 2026
- MohammedAtya/guardrail-forgetheir own version, first seen Sep 27, 2026
- SubliminalCoding/bilbroswagginz-skillstheir own version, first seen Sep 27, 2026
Used with
Projects with it also use forge-docs, forge-review and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
weselbenSkillforge-docs
Load before code changes, before writing docs or an ADR, when a user question exposes a missing how-to, and when closing a chunk of work; also loaded by forge after each squash-merge and by deep-research after a report.
Also in 3 projects that use this
tonmoy007Skillforge-review
Run a multi-dimensional parallel code review over the current change.
Also in 3 projects that use this
yike-gunshiSkillforge-ship
发布上线:PR only(建 PR 即停)或 Full ship(合并 PR + 同步本地基础分支);测试失败不发布、不 force push,状态汇报严格区分提交/推送/合并/部署。 触发方式:用户说"ship"、"发布"、"合并上线"、"发 PR"。
Also in 3 projects that use this
WordPressSkillblueprint
Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing, validating schema keys, choosing steps/resources, and debugging Blueprint files. For only running or sharing a Playground environment, use wp-playground.
Also in 3 projects that use this
AnthropicSkillbrief
Generate contextual briefings for legal work — daily summary, topic research, or incident response. Use when starting your day and need a scan of legal-relevant items across email, calendar, and contracts, when researching a specific legal question across internal sources, or when a developing situation (data breach, litigation threat, regulatory inquiry) needs rapid context.
Also in 3 projects that use this
OpenAISkillaudit
Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.
Also in 4 projects that use this
Other versions54 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 54
- cwinvestments/memstack★ 422same name
- swyxio/skills★ 171same name
- simota/agent-skills★ 87same name
- GadaaLabs/claude-code-on-steroids★ 67same name
- alp82/forge★ 38same name
- TT-Wang/forge★ 34same name
- MetalLegBob/solana-vibes-kit★ 19same name
- Webba-Creative-Technologies/forge★ 19same name
- emiliosheinz/agent-skills★ 18same name
- kecoma1/MQL5-SKILLS★ 17same name
44 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs-ssotSkill
- forge-setupSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
33 rules. 0 are common, 3 are distinctive, and 30 are very specific to this project.
0
Common
Most of the 44 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
30
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
If result.errors is non-empty: surface the errors to the user and stop.
- Very specific: line 16
If result.resume_mode is "auto": the input matched an existing spec directory.
- Very specific: line 21
If fetch_needed.mcp_tool is set: call the MCP tool with fetch_needed.mcp_params.
- Very specific: line 40
Call mcp__forge-state__pipeline_init_with_context again (the discussion call) with: workspace=<same>, flags=<same>, task_text=<same>, …
- Very specific: line 45
When calling pipeline_init_with_context with user_confirmation, pass back: user_confirmation={effort: <confirmed>, workspace_slug: <slug>, …
- Very specific: line 60
If needs_user_confirmation.estimate_display is non-empty, output it verbatim alongside the options so the user can gauge how heavy the run …
- Very specific: line 65
If is_main_branch is true: inform the user a new branch will be created (no question needed).
- Very specific: line 66
If is_main_branch is false: ask whether to use the current branch or create a new one.
- Very specific: line 75
If needs_user_confirmation.enriched_request_body is non-empty (from the discussion path), also include enriched_request_body: <value> …
- Very specific: line 78
If create_branch is true: run git checkout -b <branch> via Bash immediately.
- Very specific: line 79
Use the workspace from the confirmed response for all subsequent calls.
- Very specific: line 80
Important: Always pass the workspace path from pipeline_init unchanged to the first pipeline_init_with_context call.
- Very specific: line 87
Call mcp__forge-state__pipeline_next_action(workspace=<workspace>, previous_action_complete=true, previous_tokens=<tokens from last …
- Very specific: line 98
If result.report_result is non-null:
- Very specific: line 110
If action.parallel_tasks is non-empty: spawn one Agent call per entry in parallel.
- Very specific: line 117
After each agent returns, apply the artifact write fallback per entry: if {workspace}/{t.output_file} does not exist on disk, Write that …
- Very specific: line 122
Artifact write fallback: After the agent returns, if action.output_file is non-empty, check whether {workspace}/{action.output_file} exists …
- Very specific: line 130
If display_message is non-empty, output it verbatim — the server already appends the running-cost line (tokens / estimated USD / phases / …
- Very specific: line 138
If the response has still_waiting: true: call pipeline_next_action(workspace) again immediately (no user_response).
- Very specific: line 141
If the user types a response in the terminal (proceed / revise / abandon) while still_waiting is looping: on the next pipeline_next_action …
- Distinctive: line 144
If a non-checkpoint action is returned: Dashboard approved.
- Distinctive: line 147
Ask the user whether to post the work report (use AskUserQuestion with options "post" / "skip").
- Very specific: line 149
If the user chooses "post" and action.post_method is present: a.
- Very specific: line 152
If post_method.mcp_tool is set: call it with post_method.mcp_params and the body content (pass body as the body parameter).
- Very specific: line 157
If the user chooses "skip": do nothing.
- Very specific: line 159
Do NOT call checkpoint() — pipeline_next_action handles the checkpoint state transition internally.
- Very specific: line 182
If the user chooses "done" or "skip": call pipeline_next_action again with no previous_* parameters (no agent ran).
- Very specific: line 185
If the user chooses "abandon": call mcp__forge-state__abandon(workspace).
- Very specific: line 186
Do NOT call checkpoint or phase_complete for human_gate actions.
- Distinctive: line 206
Never make orchestration decisions independently — follow action.type exactly.
- Very specific: line 207
Always pass previous_action_complete=true, previous_tokens, previous_duration_ms, previous_model, and previous_setup_only on every …
- Very specific: line 208
When still_waiting: true is returned: call pipeline_next_action(workspace) again immediately with no previous_* or user_response.
- Very specific: line 209
Never pass isolation: "worktree" to any Agent call.
“Common” is measured: kept by at least 6 in 10 of the 44 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
claude-forge Orchestrator
Step 1: Initialize or Resume
To resume a suspended pipeline, supply the spec directory name from .specs/:
Example: /forge 20260401-effort-only-flow
- Call
mcp__forge-state__pipeline_init(arguments=$ARGUMENTS). - If
result.errorsis non-empty: surface the errors to the user and stop. - If
result.resume_modeis"auto": the input matched an existing spec directory. Do not ask for confirmation — proceed directly to Step 2. For new pipelines (
resume_modeis absent): a. Ifresult.fetch_neededis non-null:- Fetch the external data using the method specified in
fetch_needed:- If
fetch_needed.mcp_toolis set: call the MCP tool withfetch_needed.mcp_params. - Else if
fetch_needed.commandis set: execute the command via Bash and parse the JSON output. - Else: follow
fetch_needed.instructionas a fallback guide.
- If
- Map the response fields to
external_contextusingfetch_needed.response_mapping: for each entry(response_key → context_key), setexternal_context[context_key] = response[response_key]. - Call
mcp__forge-state__pipeline_init_with_context(workspace=result.workspace, source_id=result.source_id, source_url=result.source_url, flags=result.flags, external_context=<mapped data>). (task_textis not applicable for external issue sources — do not pass it.) b. Ifresult.fetch_neededis null (plain text input): callmcp__forge-state__pipeline_init_with_context(workspace=result.workspace, flags=result.flags, task_text=result.core_text). (result.core_textis a top-level field in thepipeline_initresponse — the task text with bare flags stripped.)
After the first
pipeline_init_with_contextcall, check which field is present in the response:If
result.needs_discussionis non-null (triggered only when--discussflag is present, source is plain text, and--autois absent):- Present each question in
result.needs_discussion.questionsto the user via AskUserQuestion (single prompt listing all questions). - Collect the user's answers as a single freeform string
(e.g.
"Q1: <answer>\nQ2: <answer>\nQ3: <answer>"). - Call
mcp__forge-state__pipeline_init_with_contextagain (the discussion call) with:workspace=<same>, flags=<same>, task_text=<same>, discussion_answers=<collected answers string>. The response will containneeds_user_confirmationwhereneeds_user_confirmation.enriched_request_bodyis non-empty. - Proceed with the effort/branch confirmation step below using this
needs_user_confirmation. When callingpipeline_init_with_contextwithuser_confirmation, pass back:user_confirmation={effort: <confirmed>, workspace_slug: <slug>, use_current_branch: <bool>, enriched_request_body: needs_user_confirmation.enriched_request_body}. This carries the enrichedrequest.mdbody forward to workspace initialisation.
If
result.needs_user_confirmationis present directly (--discussabsent,--autoset, or GitHub/Jira source): proceed with the effort/branch confirmation step below (noenriched_request_bodyto pass back).Effort/branch confirmation step (applies after either path above): Present all of the following to the user in a single prompt (use AskUserQuestion with multiple questions):
- Effort level: present all three effort options from
effort_options(S, M, L — each withskipped_phasesusing thelabelfield). Each option has arecommendedboolean — mark the one whererecommendedistrueas "(Recommended)". Ifneeds_user_confirmation.estimate_displayis non-empty, output it verbatim alongside the options so the user can gauge how heavy the run will be (effort L can be multi-hour and multi-dollar). The server pre-formats the P50/P90 figures — do not reconstruct them from the rawestimatestruct. - Branch decision: based on
current_branchandis_main_branchfrom the response:- If
is_main_branchis true: inform the user a new branch will be created (no question needed). - If
is_main_branchis false: ask whether to use the current branch or create a new one. While waiting, generate a concise English slug (3–6 words, lowercase, hyphen-separated, ASCII only) that summarises the task — e.g."add-user-auth-endpoint"or"fix-report-export-timeout". If the input is in a non-English language, translate the core intent into English for the slug. Do not include the issue number (GitHub#Nor JiraPROJ-123) in the slug — the server prependssource_idautomatically when present. Then callmcp__forge-state__pipeline_init_with_contextagain with the same parameters plususer_confirmation={effort: <confirmed>, workspace_slug: <slug>, use_current_branch: <bool>}. Ifneeds_user_confirmation.enriched_request_bodyis non-empty (from the discussion path), also includeenriched_request_body: <value>insideuser_confirmation. The response will containbranch(the branch name) andcreate_branch(boolean). Ifcreate_branchis true: rungit checkout -b <branch>via Bash immediately. Use theworkspacefrom the confirmed response for all subsequent calls. Important: Always pass the workspace path frompipeline_initunchanged to the firstpipeline_init_with_contextcall. Never construct workspace paths manually.
- If
- Fetch the external data using the method specified in
Step 2: Main Loop
Repeat until done:
- Call
mcp__forge-state__pipeline_next_action(workspace=<workspace>, previous_action_complete=true, previous_tokens=<tokens from last action>, previous_duration_ms=<ms from last action>). On the very first call, omit theprevious_*parameters.previous_modelandprevious_setup_onlyare optional and auto-carried: the engine records the model and setup-only flag of the action it dispatched and reuses them, so you only need to reportprevious_action_completeplus the observedprevious_tokens/previous_duration_ms. You may still passprevious_modelexplicitly to override (it wins when non-empty). - If
result.report_resultis non-null:- If
result.report_result.next_action_hint == "revision_required": presentresult.report_result.findingsto the user, then continue the loop. On the nextpipeline_next_actioncall, omitprevious_action_complete(or pass false), and passprevious_tokens=0, previous_duration_ms=0with noprevious_modelorprevious_setup_only— no new agent ran during this step, so P5 must not fire again. (setup_continueis handled server-side — the handler re-enters NextAction automatically.)
- If
- Execute the action based on
action.type:spawn_agent: Ifaction.display_messageis non-empty, output it verbatim. Then call Agent tool withaction.prompt. Useaction.agentas description. Record the tokens, duration, and model for the nextpipeline_next_actioncall.- If
action.parallel_tasksis non-empty: spawn one Agent call per entry in parallel; wait for all to complete before callingpipeline_next_actionagain. Each entrytis an explicit, server-computed contract — do not derive any filename yourself. Instruct that agent to work on taskt.id(still usingaction.promptas the base prompt), with:- inputs =
action.input_files(shared) +t.input_files(task-specific) - output artifact =
t.output_fileAfter each agent returns, apply the artifact write fallback per entry: if{workspace}/{t.output_file}does not exist on disk, Write that agent's response text there before callingpipeline_next_action.pipeline_report_resultreconciles all of the per-task verdicts in a single pass. (action.parallel_task_idsstill lists the same IDs in order for reference.)
- inputs =
- Artifact write fallback: After the agent returns, if
action.output_fileis non-empty, check whether{workspace}/{action.output_file}exists on disk. If the file does NOT exist, the agent returned its output as text instead of writing the file (subagents may lack write permission in some permission modes). In that case, use the Write tool to write the agent's final response text to{workspace}/{action.output_file}before callingpipeline_next_action. This ensurespipeline_report_resultartifact validation always succeeds.
- If
checkpoint: Presentaction.present_to_userto the user. Ifdisplay_messageis non-empty, output it verbatim — the server already appends the running-cost line (tokens / estimated USD / phases / retries so far) so the user can weigh "continue vs stop" against the spend. Do not assemble that line yourself from the rawanalyticsfield. Mention that the Dashboard can be used to approve without terminal input. Then immediately callmcp__forge-state__pipeline_next_action(workspace)(nouser_response, noprevious_*). The server long-polls up to 50 s waiting for a Dashboard approval event.- If the response has
still_waiting: true: callpipeline_next_action(workspace)again immediately (nouser_response). Repeat until a non-checkpoint action is returned or the user provides a terminal response. - If the user types a response in the terminal (proceed / revise / abandon) while
still_waiting is looping: on the next
pipeline_next_actioncall, passuser_response=<response>instead of looping. - If a non-checkpoint action is returned: Dashboard approved; proceed normally.
- Special:
post-to-sourcecheckpoint — whenaction.nameis"post-to-source":- Ask the user whether to post the work report (use AskUserQuestion with options "post" / "skip").
- If the user chooses "post" and
action.post_methodis present: a. Read the body content fromaction.post_method.body_source. b. Post the comment using the method specified inpost_method:- If
post_method.mcp_toolis set: call it withpost_method.mcp_paramsand the body content (pass body as thebodyparameter). - Else if
post_method.commandis set: execute the command via Bash. - Else if
post_method.instructionis set: follow the instruction as a fallback guide. c. Report success or failure to the user.
- If
- If the user chooses "skip": do nothing.
Pass the user's response to
pipeline_next_action(workspace, user_response=<response>). Do NOT callcheckpoint()—pipeline_next_actionhandles the checkpoint state transition internally. On everypipeline_next_actioncall for a checkpoint (still_waiting loops and terminal-response call alike), omitprevious_action_complete(or pass false), and passprevious_tokens=0, previous_duration_ms=0with noprevious_modelorprevious_setup_only(checkpoints have no agent cost; omittingprevious_action_completecauses the P5 block to be skipped).
- If the response has
exec: Runaction.commandsvia Bash. Record the duration andaction.setup_onlyfor the nextpipeline_next_actioncall. Passprevious_setup_only=trueifaction.setup_onlyis true. There is no model to record for exec actions; omitprevious_modelor pass it as an empty string. Also passprevious_action_complete=true(see Rules below).write_file: Writeaction.contenttoaction.path. Record the duration for the nextpipeline_next_actioncall. Omitprevious_modelor pass it as an empty string. Also passprevious_action_complete=true(see Rules below).human_gate: A task requires human action (e.g. merge an external PR, update dependencies). Presentaction.present_to_userto the user verbatim using AskUserQuestion withaction.options. The server already embeds any cross-repository flow (external PR → CI watch → preview-pin → verify, plus a dependency-update skill pointer) intopresent_to_userfor external-repo tasks — render that guidance as-is and help the user drive it; do not re-derive the steps here. Choosing "done" clears the gate (the deterministic close); for a cross-repo task, only choose it once the external change is pinned and building here.- If the user chooses "done" or "skip": call
pipeline_next_actionagain with noprevious_*parameters (no agent ran). The handler automatically marks the task as completed. - If the user chooses "abandon": call
mcp__forge-state__abandon(workspace). Do NOT callcheckpointorphase_completefor human_gate actions.
- If the user chooses "done" or "skip": call
done: Pipeline complete. Stop.
Supported Flags
--auto: Skips all human confirmation prompts; progresses the pipeline automatically. Takes precedence over--discuss: when both flags are present, discussion mode is suppressed andneeds_user_confirmationis returned directly.--discuss: Triggers a pre-pipeline clarification dialogue for plain text input pipelines. The orchestrator presents targeted questions to the user, collects answers, and writes the enriched task description intorequest.mdbefore invoking any agents. Has no effect for GitHub/Jira source pipelines (external context already provides structured content) or when--autois also set.--nopr: Skips the PR creation phase at the end of the pipeline.--debug: Enables debug mode in the pipeline state.
Flags can also be set as persistent defaults via /forge-setup. Explicit flags on /forge always override preferences.
Rules
- Never make orchestration decisions independently — follow action.type exactly.
- Always pass
previous_action_complete=true,previous_tokens,previous_duration_ms,previous_model, andprevious_setup_onlyon everypipeline_next_actioncall after the first (after anyspawn_agent,exec, orwrite_fileaction completes). Do NOT passprevious_action_complete=trueafter a checkpoint — it must remain false (or omitted) to skip the P5 report block. - When
still_waiting: trueis returned: callpipeline_next_action(workspace)again immediately with noprevious_*oruser_response. This is the Dashboard long-poll loop (50 s per iteration) — keep calling until a non-still_waiting response arrives or the user types a terminal response. - Never pass
isolation: "worktree"to any Agent call. - On MCP error: surface the error to the user and stop.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

