onboard
Bootstraps the Spec-Driven Development chain in a repository: creates the plans/ root, installs the goalforge-validate pre-commit hook (via goalforge-install-hooks.sh), and stamps a minimal ## SDD pointer into the repo CLAUDE.md. Use when setting up SDD in a new or existing repo, when the user says "onboard this repo to SDD", "set up the SDD chain here", "install the SDD git hook", or "scaffold plans/". Uses the current status vocabulary only — not the legacy GSD lifecycle. Idempotent: safe to re-run.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- onboard
- hooks
- { "Stop": [ { "hooks": null } ] }
- metadata
- { "version": "1.1.0", "skill-kind": "preference" }
- description
- Bootstraps the Spec-Driven Development chain in a repository: creates the plans/ root, installs the goalforge-validate pre-commit hook (via goalforge-install-hooks.sh), and stamps a minimal ## SDD pointer into the repo CLAUDE.md. Use when setting up SDD in a new or existing repo, when the user says "onboard this repo to SDD", "set up the SDD chain here", "install the SDD git hook", or "scaffold plans/". Uses the current status vocabulary only — not the legacy GSD lifecycle. Idempotent: safe to re-run.
02 资源文件 3
- 参考文档evals/evals.json3.2 KB
- 脚本evals/run.sh4.7 KB
- 脚本scripts/goalforge-onboard.sh3.2 KB
03 SKILL.md 正文
goalforge-onboard
Bootstraps the SDD chain in a repository. Three idempotent steps:
- Create
plans/— createsplans/README.mdat the repo root ifplans/is absent; leaves it untouched if it already exists. - Install the pre-commit hook — delegates entirely to
goalforge-install-hooks.sh, which handles the chain-safe append-to-existing-hook case and the idempotency marker (# >>> sdd-pre-commit >>>). - Stamp
## SDDintoCLAUDE.md— appends a pointer block documenting the chain, plans root, hook, and status vocabulary. Creates a minimalCLAUDE.mdif none exists; skips if a## SDDheading is already present.
Usage
bash ${CLAUDE_SKILL_DIR}/scripts/goalforge-onboard.sh [<repo-dir>]
<repo-dir> defaults to git rev-parse --show-toplevel from the current
working directory. Aborts with a clear message if the target is not a git
repository.
What it delegates
Hook installation is fully delegated to the existing installer:
$HOME/.claude/skills/goalforge/scripts/goalforge-install-hooks.sh <repo-dir>
goalforge-onboard does not reimplement hook logic.
Gotchas
- Current vocabulary only. The stamped
## SDDblock uses the current status vocabulary: WPsdraft→spec→hardened→ready→executing→verified; taskspending→in-progress→implemented→verified(implementedis the interim post-eval+commit state;verifiedis written only at the WP gate bygoalforge-verify). It does NOT reference the legacy GSD 10-state lifecycle. Keep the stamped block in lockstep withgoalforge/references/schema.md— it is the canonical vocabulary onboarded repos inherit. - Not a GitHub-issues setup. This skill does not create GitHub issues,
triage labels, milestones, or projects. That was the removed
setup-sdd-reposurface.goalforge-onboardis purely on-disk scaffolding. - Idempotent everywhere. Re-running is safe:
plans/is not clobbered, the## SDDblock is not duplicated, and the pre-commit hook marker check (# >>> sdd-pre-commit >>>) prevents double-installation. - The hook validates TOUCHED features under
--strict, not commit hash. It is a drift guard, not a verification step. Hash-based verification happens ingoalforge-verifyat verify-time, not in the pre-commit hook.
04 同仓库更多 Skills
wayfind
goalforge-internal — use entry commands; do not auto-trigger Chart a foggy, multi-session effort into a decision map BEFORE goalforge-capture — when the work is too big to spec yet, spans multiple sessions, and needs a decision map before anyone can write a real spec. Triggers: "chart this foggy effort", "multi-session decision map", "too big to spec yet", "map the unknowns before we plan". Establishes <PLANS_ROOT>/<effort>/wayfind/ (map.md pointer-index + one-decision-per-ticket files), drives a frontier-computed work loop across sessions, and graduates the converged map into goalforge-capture. SKIP when the effort is one session and already clear — a single well-understood feature goes straight to goalforge-capture with no map. SKIP for a bounded one-off edit, and for anything already past spec (that is the SDD chain, not wayfind).
verify
goalforge-internal — use entry commands; do not auto-trigger Verify a work package at `status: implemented`: gate A deterministic (lint, typecheck, verification.command, diff ⊆ owned_files), gate B one fresh-context review of the WP diff, gate C goal judge plus one second opinion. Advances `implemented → verified` — the sole authority for that edge. TRIGGER: /verify <wp-path>, or when the chain reaches the verify step.
spec
goalforge-internal — use entry commands; do not auto-trigger Run a design pass on a captured feature and propose the spec document, or propose a revision of an approved spec when a learning falsifies it (the respec edge). Reads plans/<feature>/overview.md, optionally invokes personas or architect for a multi-lens review, writes plans/<feature>/spec.md from the feature-spec template as the proposal (draft → spec), and ratifies it on spec → ready. HUMAN-GATED: spec → ready needs explicit user approval. Trigger: the user asks to spec, design, or elaborate on a feature that already has an overview.md (status: draft), or a feature sits at status: spec with a proposal awaiting ratification.
run
goalforge-internal — use entry commands; do not auto-trigger Chain driver for the goalforge stages: capture → spec → decompose → harden → execute → verify. Reads the target's on-disk `status:` and enters the one step that status admits; supports --dry-run. Use it to drive a feature end-to-end; for a single stage, use the entry command for that stage.
redecompose
goalforge-internal — use entry commands; do not auto-trigger Reconcile a proposed re-decomposition against a partially-executed feature's verified WPs. Calls goalforge-reconcile-diff.sh to produce a 5-bucket diff, then routes: same → untouched (no-op), changed+new → status: spec and onto the harden frontier via goalforge-transition.sh, dropped-verified → supersede in place (ledger row, never delete), ambiguous (slug changed, goal matches a verified WP) → judgment/human — never auto-rename or auto-supersede. Logs goal mutations via goalforge-goal-changelog.sh. Idempotent: re-run on unchanged decomposition is a byte-identical no-op. TRIGGER: /goalforge-redecompose <feature-dir> --learning '<text>' or when goalforge-run loops back on a learning event.
prototype
goalforge-internal — use entry commands; do not auto-trigger Throwaway spike answering exactly ONE design question with runnable code — logic branch (pure logic module + interactive terminal harness, LOGIC.md), UI branch (several radically different variations, UI.md), or perf branch (benchmark study of rival implementations with a scaling curve, PERF.md). Keep the answer, delete the code. Use when an open question is of kind "how should it behave / which approach wins / how should it look / is it fast enough, does it scale, is the optimization worth it" and more interviewing or reading will not settle it — a spike will. Entry points: handoff mode `prototype` (cross-session dispatch seam), goalforge-harden open-question routing, idea-refine, or the user saying "spike this" / "quick prototype to check" / "benchmark this". Refuses to start without a single question AND explicit success criteria.