cy-spec-preflight
Installation
SKILL.md
Spec Preflight
Authors of AGH PRDs, TechSpecs, and _tasks.md repeatedly produce drafts that miss project-specific directives — frameworks named in PRDs, prose-only TechSpecs, "fraco" test coverage. This skill loads project memory before handing off to cy-create-prd, cy-create-techspec, or cy-create-tasks, then runs the relevant post-draft checks before approval.
Required Inputs
- phase (optional): one of
prd,techspec,tasks, ortask-body. When omitted, infer from the activecy-create-*skill or from the artifact path (_prd.md,_techspec.md,_tasks.md,task_NN.md).
Procedures
Step 1: Load Project Memory
- Read
docs/_memory/spec-authoring-playbook.mdin full. - Read
docs/_memory/standing_directives.md(SD-001..SD-011). - Read
docs/_memory/glossary.md(vocabulary discipline —capabilityvsrecipe, AGH is/is-not). - Read the matching lessons by phase. Read
references/phase-lessons.mdfor the phase → lesson mapping. - Read
CLAUDE.mdAuthoring Posture, Architecture Principles, Autonomy Contracts, Security Invariants sections.
Step 2: Load Active Project Context