SKILL_TEMPLATE
[1-2 sentence description of what this skill does]. Triggers on [specific phrases/contexts that should activate this skill].…
Install the PRD-Driven Context Engineering methodology into a fresh OR existing repository — the subscription-native alternative to forking the whole repo. Runs an interactive wizard that seeds the framework (.claude/ hooks, skills, agents, rules, scripts) without clobbering
Claude Code
$ npx -y skills add mattgierhart/PRD-driven-context-engineering --skill ghm-self-install --agent claude-code
Codex
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill ghm-self-install -a codex -y
Cursor
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill ghm-self-install -a cursor -y
Gemini CLI
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill ghm-self-install -a gemini-cli -y
GitHub Copilot
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill ghm-self-install -a github-copilot -y
OpenCode
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill ghm-self-install -a opencode -y
Windsurf
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill ghm-self-install -a windsurf -y
name: ghm-self-install description: > Install the PRD-Driven Context Engineering methodology into a fresh OR existing repository — the subscription-native alternative to forking the whole repo. Runs an interactive wizard that seeds the framework (.claude/ hooks, skills, agents, rules, scripts) without clobbering product content. Triggers on "install the methodology", "adopt this into my repo", "self-install", "set up PRD lifecycle here", "onboard existing project". Outputs an installed framework + a verification report. disable-model-invocation: true context: fork execution_modes: default: standard supports: [quick, standard, deep] allowed-tools: - Read - Write - Edit - Glob - Grep - Bash
Install the methodology into a target repo from the **install manifest**, the way Xantham's blueprint installs from markdown: the agent runtime *is* the installer, so the whole thing runs inside your Claude Code subscription — no API key, no metered calls, no service to stand up.
> **Two paths, one manifest.** This skill is the interactive path. `install.sh` is the > deterministic CLI path. Both read `.claude/install-manifest.yaml`, so they can't drift. > Prefer driving `install.sh` from this skill; fall back to manual copies only when the > script isn't reachable.
`never_touch` lists (the keystone; never hardcode file lists).
`MEMORY.md`, `SoT/*`, `PRD.md`, `README.md` content.
engine, it doesn't author specs).
1. Confirm `git`, `python3`, `awk` are present; warn if the target isn't a git repo. 2. Detect mode: **greenfield** (no `.claude/`) vs **brownfield** (existing `.claude/`). Brownfield means *merge, never overwrite product*. 3. State the trade explicitly: this installs files only — it costs subscription tokens for the wizard turn, **zero API**.
Ask only what changes the outcome (honor the execution mode's budget):
subset. Quick mode skips this and installs everything.
Run the deterministic installer so behavior matches the CLI path exactly:
bash install.sh --target <DIR> --profile <PROFILE> # add --dry-run to preview
after the user confirms (mirrors `ghm-template-sync` "show diff before destructive").
1. Run each `.claude/hooks/*.sh` in the target; assert valid JSON on stdout. 2. Run `python scripts/readiness.py run` — a non-zero exit on an empty scaffold is the **expected BLOCK gate** (no content yet), not a failure. Report the score. 3. Print next steps: customize `README.md` + `PRD.md`, then "Let's frame the problem".
| Pattern | Fix | |---------|-----| | Hardcoding the file list in the skill | Read `.claude/install-manifest.yaml` | | Overwriting a brownfield repo's `PRD.md`/`SoT` | Honor `never_touch`; seed templates once | | Treating readiness BLOCK on a fresh scaffold as a bug | It's the gate working — report the score | | Re-implementing copy logic instead of driving `install.sh` | One code path = no drift |
PRD-Led Context Engineering — Memory as Infrastructure. An ontology layer for product teams building products that solve real problems — with AI agents that remember. Gated PRD, typed IDs, markdown knowledge graph, Claude Code skills & hooks.
[1-2 sentence description of what this skill does]. Triggers on [specific phrases/contexts that should activate this skill].…
Validates gate criteria before PRD lifecycle advancement by delegating to the readiness scoring pipeline (scripts/readiness.py).…
Extracts durable insights from temp/ files to SoT during EPIC Phase E. Triggers at EPIC completion or explicit `/ghm-harvest`…
Validates and registers new SoT IDs with cross-reference integrity. Triggers when creating BR-XXX, UJ-XXX, API-XXX, or CFD-XXX…
Creates new Source of Truth (SoT) files when existing templates don't fit your needs. Triggers on requests to create a new SoT…
Synchronizes README.md Command Center with current project state. Triggers on gate changes, EPIC status changes, or explicit…
How to work in a Codebase Wiki project (the `codebase-wiki` starter pack): an agent-authored, source-grounded wiki of the…
Simulates academic peer review, evaluating papers across Originality, Methodology, Results, and Writing to provide Major/Minor…