ghm-self-install
Skill179 starsChanged 6 months agoMITView on GitHub
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.
In this repository50 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ghm-gate-checkSkill
- ghm-harvestSkill
- ghm-id-registerSkill
- ghm-sot-builderSkill
- ghm-status-syncSkill
- ghm-template-syncSkill
- initSkill
- prd-v01-problem-framingSkill
- prd-v01-user-value-articulationSkill
- prd-v02-competitive-landscape-mappingSkill
- prd-v02-product-type-classificationSkill
- prd-v03-features-value-planningSkill
- prd-v03-moat-definitionSkill
- prd-v03-outcome-definitionSkill
- prd-v03-pricing-modelSkill
- prd-v04-persona-definitionSkill
- prd-v04-screen-flow-definitionSkill
- prd-v04-user-journey-mappingSkill
- prd-v04-visual-prototype-gateSkill
- prd-v05-risk-discovery-interviewSkill
- prd-v05-technical-stack-selectionSkill
- prd-v06-architecture-designSkill
- prd-v06-environment-setupSkill
- prd-v06-technical-specificationSkill
- prd-v07-epic-scopingSkill
- prd-v07-implementation-loopSkill
- prd-v07-test-planningSkill
- prd-v08-changelog-as-marketingSkill
- prd-v08-drift-baseline-compareSkill
- prd-v08-marketing-ops-handoffSkill
- prd-v08-monitoring-setupSkill
- prd-v08-release-planningSkill
- prd-v08-runbook-creationSkill
- prd-v09-aeo-auditSkill
- prd-v09-alternatives-pagesSkill
- prd-v09-cold-outreach-tieredSkill
- prd-v09-feedback-loop-setupSkill
- prd-v09-gtm-strategySkill
- prd-v09-hn-reddit-launchSkill
- prd-v09-launch-channels-orbSkill
- prd-v09-launch-metricsSkill
- prd-v09-offer-construction-hormoziSkill
- prd-v09-positioning-dunfordSkill
- prd-v10-case-study-builderSkill
- prd-v10-chasm-adoption-mooreSkill
- prd-v10-continuous-discovery-torresSkill
- prd-v10-mom-test-interviewSkill
- prd-v10-testimonial-collectorSkill
- prd-vXX-skill-nameSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 60
Ask only what changes the outcome (honor the execution mode's budget):
- Distinctive: line 67
Run the deterministic installer so behavior matches the CLI path exactly:
- Very specific: line 72
If a framework file shows drift, surface the diff and only re-run with --force after the user confirms (mirrors ghm-template-sync "show …
- Very specific: line 74
Never write anything in the manifest's never_touch list.
- Very specific: line 77
Run each .claude/hooks/*.sh in the target.
- Very specific: line 78
Run python scripts/readiness.py run — a non-zero exit on an empty scaffold is the
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Self-Install
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.shis the deterministic CLI path. Both read.claude/install-manifest.yaml, so they can't drift. Prefer drivinginstall.shfrom this skill; fall back to manual copies only when the script isn't reachable.
Consumes
.claude/install-manifest.yaml— authoritativeframework/template_seed/never_touchlists (the keystone; never hardcode file lists).install.sh— the deterministic installer this skill normally drives.- Safety rules from
ghm-template-syncPhase "Safety Rules" — never overwriteMEMORY.md,SoT/*,PRD.md,README.mdcontent.
Produces
- An installed framework in the target repo (no new SoT IDs — this skill places the engine, it doesn't author specs).
- A verification report (hooks emit valid JSON;
readiness.pyruns).
Workflow
Phase 1 — Preflight & mode detect
- Confirm
git,python3,awkare present; warn if the target isn't a git repo. - Detect mode: greenfield (no
.claude/) vs brownfield (existing.claude/). Brownfield means merge, never overwrite product. - State the trade explicitly: this installs files only — it costs subscription tokens for the wizard turn, zero API.
Phase 2 — Wizard questions
Ask only what changes the outcome (honor the execution mode's budget):
- Target directory (default: current repo).
- Domain profile:
product(default) ·library·infrastructure·research. - Subset
[standard+]: keep all 4 agents + all skills (default), or trim to a role subset. Quick mode skips this and installs everything.
Phase 3 — Install (drive install.sh)
Run the deterministic installer so behavior matches the CLI path exactly:
bash install.sh --target <DIR> --profile <PROFILE> # add --dry-run to preview- Show the
--dry-runplan first[standard+], then execute. - If a framework file shows drift, surface the diff and only re-run with
--forceafter the user confirms (mirrorsghm-template-sync"show diff before destructive"). - Never write anything in the manifest's
never_touchlist.
Phase 4 — Verify (trust-but-verify, the Xantham verify-blueprint.sh analog)
- Run each
.claude/hooks/*.shin the target; assert valid JSON on stdout. - 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. - Print next steps: customize
README.md+PRD.md, then "Let's frame the problem".
Anti-patterns
| 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 |
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.

