Guild logo Guild
Reference / Command Reference
Reference

Command Reference

Guild v2 /guild command surface — 6 phase verbs, learn, wiki, config, initiative, and maintenance commands. Includes the phase-to-skill dispatch table.

Command Reference

All Guild commands follow the flat /guild:<verb> pattern. The main entry point is /guild:guild [brief] — it runs the full lifecycle from whatever phase your project is currently at.

Guild's 14 specialists across engineering, content, and commercial groups — each /guild command dispatches into this team roster

The : plugin namespace is a Claude Code requirement and stays in v2; the redundant guild- prefix from v1 is dropped (e.g., /guild:guild-wiki/guild:wiki). Sub-verbs (wiki ingest, config init, learn map) are positional arguments to the command, never separate command files or nested namespaces.

Skills (guild:brainstorm, guild:plan, etc.) are model-invoked, never typed by the user. The command /guild:<token> and the skill guild:<token> share a stem but are distinct surfaces.


Main lifecycle command

CommandDescription
/guild:guild [brief]Run the full lifecycle from the current phase. Proposes a phase and asks before proceeding — never silent. Accepts an optional brief as a quoted string.

Phase detection: bare /guild:guild surfaces a phase-detection prompt. To start at a specific phase, use a phase subcommand (see below) or pass --rigor=quick|standard|deep.


Phase subcommands

Each phase command is a thin entrypoint that invokes its skill(s) in order. See the phase-to-skill dispatch table for the exact skill chain.

CommandPhaseWhat it does
/guild:initInitBootstrap the project wiki, CodebaseMap stub, and architecture-map. Full learn-* pipeline only under --learn or defaults.auto_learn: true.
/guild:ideateBrainstormGenerate the spec. With --rigor=deep, wraps in guild:loop-clarify.
/guild:planPlanCompose the team and write the plan. With --rigor=deep, + guild:loop-plan-review. Team composition is a sub-step here (not a separate command).
/guild:buildBuildExecute per-lane: context-assemble → execute-plan → review. With --rigor=deep, + guild:loop-implement.
/guild:qaQualityRun the full guild:quality skill — auto-selects and executes E2E/smoke/a11y/perf/integration checks from CodebaseMap + plan signals.
/guild:opsOperationsRun the full guild:operations skill — executes release/monitoring/incident/rollback/maintenance runbooks under a split autonomy posture with four safety rails.

Learn command

CommandSub-verbWhat it does
/guild:learn(required)The understand-everything pipeline. Sub-verbs are positional arguments.
/guild:learn mapmapBuild a brownfield CodebaseMap.
/guild:learn graphgraphBuild the deep knowledge-graph.
/guild:learn onboardonboardGenerate an onboarding document for new contributors.
/guild:learn diffdiffExplain recent changes from the git diff.
/guild:learn explainexplainExplain a specified component or file in depth.

/guild:learn is the same pipeline as /guild:init --learn — one implementation, two entry points.


Status and session commands

CommandDescription
/guild:statusShow the active run’s state: current phase, team composition, last gate outcome. Replaces the v1 /guild:guild-team show.
/guild:resumeResume a paused or interrupted run. Use --restart to force a fresh loop from the current phase.

Wiki commands

CommandDescription
/guild:wiki ingestIngest a source document into the project wiki at .guild/wiki/. Applies the anomaly gate (models.ingestSimilarityGate) before writing.
/guild:wiki queryBM25 search over the wiki. Returns matching pages ranked by relevance.
/guild:wiki lintValidate wiki pages for structure, missing fields, and expired entries.

Config commands

CommandDescription
/guild:config initScaffold .guild/settings.json with all keys and a self-documenting _help block.
/guild:config showPrint the resolved config — merged defaults + file + CLI flags.
/guild:config validateValidate settings.json against the closed-key set; exit non-zero on violation.
/guild:config update-mcp-hashesRe-pin MCP tool description hashes in mcp.tool_description_hashes.

See the Configuration Reference for the full settings.json key set.


Initiative commands

Initiatives are opt-in durable work scopes. One-off runs remain first-class; an initiative attaches only on explicit request.

CommandDescription
/guild:initiative newCreate a new named initiative and attach the current session to it.
/guild:initiative statusShow the active initiative’s state, spec, and plan.
/guild:initiative resumeResume the current or a named initiative.
/guild:initiative updateUpdate the initiative’s definition ledger.
/guild:initiative closeClose the current initiative and archive its artifacts.

Maintenance commands

CommandDescription
/guild:fix [run-id | "symptom"]Diagnose and fix a failed or stuck run. Pass a run-id or a symptom description. Use --review=cross to engage the Codex adversarial broker. (Renamed from v1 /guild:guild-diagnose.)
/guild:evolve [skill] [--auto]Run the skill evolution pipeline for a named skill. --auto skips the confirmation gate. See self-evolving skills.
/guild:rollback <skill> [n]Roll back a skill to a previous version. n specifies how many versions back (default: 1).
/guild:statsPrint run stats: lane counts, model tier distribution, skill usage.
/guild:auditRun static boundary-check and hook registration audit. Flags any Guild-owned files written outside .guild/.

Global flags

These flags apply to the main /guild:guild command and most phase subcommands.

FlagValuesDescription
--rigorquick | standard | deepExpand into loop/cap/review settings. deep = loops=all, cap=16, review=cross. Supersedes the v1 --loops, --loop-cap, --codex-cap flags.
--model-tiercheap | mid | powerfulPin the model tier for this run. Top of the cost-tiering precedence ladder.
--reviewlocal | cross | offReview broker mode. cross = Claude↔Codex adversarial review at G-spec, G-plan, and G-lane gates.
--auto-approvespec,plan,build,allComma-separated list of gates to skip the user-approval pause. Destructive, network, spend, and Quality BLOCK-override actions always prompt. No qa or ops token — Quality/Operations auto-pass only under all.
--agent-modeteam | agent | subagent | autoPin the execution backend for this run.
--team-sizeintegerOverride the team size cap (default: 4; hard max: 6).
--learn(flag)Run the full learn-* pipeline during /guild:init. Equivalent to defaults.auto_learn: true.
--dry-run(flag)Simulate the run without writing artifacts or executing code.
--statusline(flag)Enable the status-line output for this run.
--initiativestringAttach this run to a named initiative.

Phase-to-skill dispatch

Each phase command invokes its skills in order. Skills are model-invoked — the user never types them directly.

Phase commandSkills invoked (in order)Output artifacts
/guild:initguild:init (cheap by default: wiki + brownfield cheap-scan CodebaseMap + architecture-map stub) — full learn-* pipeline ONLY under --learn / defaults.auto_learn.guild/init/<slug>.md, .guild/wiki/**, codebase-map.json + architecture-map.md stub
/guild:ideateguild:brainstorm (deep: wrapped by guild:loop-clarify).guild/spec/<slug>.md
/guild:planguild:team-composeguild:plan (deep: + guild:loop-plan-review).guild/team/<slug>.yaml, .guild/prd/<slug>.md, .guild/plan/<slug>.md
/guild:buildper lane: guild:context-assembleguild:execute-planguild:review (deep: + guild:loop-implement)handoff receipts, assumptions.md, review.md
/guild:qaguild:quality.guild/runs/<run-id>/quality/<run-id>.md
/guild:opsguild:operations.guild/runs/<run-id>/ops/<run-id>.md
/guild:learnguild:learn-map / learn-graph / learn-onboard / learn-diff / learn-explain (sub-verb selects)deep knowledge-graph + onboarding / diff / explain artifacts

Codex adversarial review gates

Cross-host review (--review=cross) runs at three gates:

GateTiming
G-specAfter guild:brainstorm writes the spec, before guild:team-compose.
G-planAfter guild:plan writes the plan, before the user-approval gate.
G-laneAfter each lane’s handoff receipt is written, before the next lane dispatches.

Loop cap: 5 rounds (configurable via --codex-cap=N or settings.json key codex_cap). On round 6, prompts with: force-pass / extend-cap / rework.

If Codex is unavailable, the gate emits a warning and proceeds — no hard-block on Codex outages.


v1 redirect stubs (v2.0.x only)

These v1 command names print a redirect message and exit non-zero. They run nothing. Redirect stubs are deleted at v2.1.0.

v1 commandv2 replacementRedirect behavior
/guild:guild-wiki/guild:wiki <ingest|query|lint>Prints rename notice + prefix-drop explanation.
/guild:guild-evolve/guild:evolve [skill] [--auto]Prints rename notice.
/guild:guild-rollback/guild:rollback <skill> [n]Prints rename notice.
/guild:guild-stats/guild:statsPrints rename notice.
/guild:guild-audit/guild:auditPrints rename notice.
/guild:guild-diagnose/guild:fix [run-id | "symptom"]Prints verb-rename notice (diagnose→fix).

/guild:guild-team was removed (not renamed). Team composition is now a sub-step of /guild:plan. See the migration guide §2.