ghm-gate-check
Skill179 starsChanged 6 months agoMITView on GitHub
Validates gate criteria before PRD lifecycle advancement by delegating to the readiness scoring pipeline (scripts/readiness.py). Returns a graduated PASS / WARN / BLOCK verdict with top blockers and their causal chain. Triggers before advancing from v0.X to v0.Y or explicit `/ghm-gate-check`.
In this repository50 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ghm-harvestSkill
- ghm-id-registerSkill
- ghm-self-installSkill
- 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
- Very specific: line 33
Run the orchestrator. It runs SoT → EPIC → stage in dependency order and writes status/readiness.json.
- Very specific: line 40
If the exit code is 3, report a runtime error and stop.
- Very specific: line 44
If scripts/readiness.py is missing or Python is unavailable, fall back to reading status/readiness.json directly.
- Distinctive: line 60
Use this template. Fill every field from the JSON — do not improvise scores.
- Very specific: line 107
Always prioritize by impact = (100 − score) × #EPICs blocked.
- Distinctive: line 134
Create missing artifacts inside this skill (that's the author's job)
≈ “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
Gate Check
Validate whether the PRD stage is ready to advance to the next version. Delegates to the three-layer readiness scorer — SoT files → EPICs → stage — then surfaces the leverage view (what to fix first, and which EPICs it unblocks).
Workflow Overview
- Compute → run
scripts/readiness.py run --quietto refreshstatus/readiness.json - Read → parse
status/readiness.json - Report → PASS / WARN / BLOCK verdict with top blockers and causal links
- Recommend → actionable next steps (always highest-leverage first)
Authority
references/gate-criteria.md remains the canonical source of mandatory artifacts per gate. The scorer's GATE_REQUIREMENTS table mirrors it. Do not hand-roll checklists here — the scoring engine is the single source of truth.
Step 1: Compute
Run the orchestrator. It runs SoT → EPIC → stage in dependency order and writes status/readiness.json.
python scripts/readiness.py run --quiet
# exit 0 = all pass, 1 = warn, 2 = block, 3 = errorIf the exit code is 3, report a runtime error and stop. If 0/1/2, proceed to Step 2.
Fallback: no scripts available
If scripts/readiness.py is missing or Python is unavailable, fall back to reading status/readiness.json directly. If that's also absent, report: "Readiness not yet computed — install scripts/requirements.txt and run python scripts/readiness.py run."
Step 2: Read
cat status/readiness.jsonExtract:
summary.current_stage— the gate being evaluated and its scoresummary.top_blockers— ranked SoT files blocking progressstages.{target}— detailed stage block (dimensions, unmet_criteria, caps)epics.{id}— per-EPIC scores (cite the lowest ones)
Step 3: Report
Use this template. Fill every field from the JSON — do not improvise scores.
## Gate Check Report: {stage.gate_description}
**Verdict**: [PASS | WARN | BLOCK]
**Stage Score**: {stage.score} / 100 (warn < {threshold_warn}, block < {threshold_block})
**Date**: {now}
### Stage Dimensions
| Dimension | Score | Weight |
|-----------|-------|--------|
| required_ids_present | {score} | {weight} |
| relevant_sot_readiness | {score} | {weight} |
| cross_ref_integrity | {score} | {weight} |
| downstream_epic_readiness | {score or "n/a"} | {weight or "—"} |
### Top Blockers (leverage view)
1. **{file}** (score {score}) — blocks {N} EPICs: {EPIC-XX, …} — impact {impact}
2. …
### Unmet Criteria (high severity first)
- [high] {ref}: {reason}
- [medium] {ref}: {reason}
### Recommendation
**If PASS**: Advance to {next_version}. Run `ghm-status-sync` to update the README dashboard.
**If WARN / BLOCK**: Do not advance. Address top blockers in order — fixing the highest-impact SoT file cascades up the graph.
**Next action**: {top_blockers[0] → concrete fix}Verdict bands
| Stage score | Verdict | Meaning |
| ≥ 70 | PASS | Safe to advance |
| 50–69 | WARN | Advance with documented risk; log in PRD change log |
| < 50 | BLOCK | Cannot advance — per rule 05-lifecycle-gates, update the EPIC and STOP |
Step 4: Recommend
Always prioritize by impact = (100 − score) × #EPICs blocked. The top blocker is the single highest-leverage fix; cite its blocking_epics list so the human understands what unblocks.
Quality Gates
- Stage score cited from JSON, not estimated
- Top blockers include their consumer EPICs
- Recommendation is actionable (specific file, specific action)
- Verdict matches the score band exactly (don't round up)
Anti-Patterns
| Pattern | Example | Fix |
| Ignoring the score | "Feels ready; pass" | Cite stage.score verbatim |
| Skipping blockers | "Minor stuff, advance anyway" | Block if score < 50; warn if < 70 |
| Hand-rolling criteria | Re-checking IDs manually | Trust the scorer; if wrong, fix GATE_REQUIREMENTS in _readiness/stage.py |
| Forcing PASS | Overriding the verdict | Never override; the score is the contract |
Boundaries
DO:
- Delegate computation to
readiness.py - Cite specific scores, files, and EPICs from the JSON
- Surface the
top_blockersleverage view
DON'T:
- Modify
status/readiness.jsondirectly — it's computed output - Create missing artifacts inside this skill (that's the author's job)
- Override PASS/BLOCK verdicts subjectively
Handoff
After a report:
- PASS: Trigger
ghm-status-sync; the gate advancement updates the README dashboard - WARN: Same as PASS but note the risks in the PRD change log
- BLOCK: Return control to the human. The
top_blockers[0]fix is the single most important next action
References
references/gate-criteria.md— canonical gate requirements (consumed by scorer)references/examples.md— pass/warn/block report examples.claude/rules/07-readiness-protocol.md— the discipline ruledocs/READINESS_PROTOCOL.md— full schema
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.

