一键导入
check-prp
Validate a generated PRP structure against its source requirements to catch gaps and misalignments before execution begins.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validate a generated PRP structure against its source requirements to catch gaps and misalignments before execution begins.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Safely upgrade this Cortex repo to the latest template: detects on-disk state, reconciles infrastructure, and applies idempotent migrations — preserving your customizations and never overwriting your edits without asking.
Safely upgrade this Cortex workspace to the latest template: detects on-disk state, reconciles infrastructure, and applies idempotent migrations — preserving your customizations and never overwriting your edits without asking.
Maintainer auto-check for the Cortex source repo. Invoke this PROACTIVELY and automatically WHENEVER files under templates/ have been added, edited, deleted, renamed, or restructured — and before committing template changes — to classify the change as ADDITIVE (handled by the runner's reconciliation) or MIGRATION-NEEDED (breaking/structural), and scaffold a migrations/NNN-*.md if one is required. Do not wait to be asked. For use INSIDE the template source repo only; it is never shipped to user projects.
Run a full project health check across context-engineering, the knowledge base, and docs to surface gaps, drift, and inconsistencies.
Validate implementation progress of a PRP against its original requirements, auditing completed, current, and remaining phases.
Capture a complete, durable checkpoint of the current PRP work so a fresh context window can resume with zero loss via /continue-prp.
| name | check-prp |
| description | Validate a generated PRP structure against its source requirements to catch gaps and misalignments before execution begins. |
| argument-hint | <prp-path> |
| disable-model-invocation | true |
Validate a generated PRP structure against its source requirements document. Run this after /generate-prp completes to ensure the PRP is complete and aligned with requirements.
PURPOSE: Catch gaps, missing sections, and misalignments BEFORE execution begins.
Check if $ARGUMENTS is:
context-engineering/PRPs/{feature-name}.mdcontext-engineering/PRPs/{FEATURE-NAME}/For phased PRPs:
_STATUS.md or OVERVIEW.md to find the Source Document fieldcontext-engineering/{FEATURE-NAME}.mdFor simple PRPs:
Source Document or Requirements field in the PRP file headercontext-engineering/{feature-name}.mdRead the ENTIRE requirements document to understand:
Check that these files exist in the PRP folder:
| File | Status | Notes |
|---|---|---|
_STATUS.md | -- | Must point to current phase |
OVERVIEW.md | -- | Must summarize feature |
For EACH phase folder (phase-{N}-{name}/), verify these files exist:
| File | Purpose | Must Have |
|---|---|---|
PLAN.md | Implementation tasks | Tasks, file paths, code patterns |
COMPLETED.md | Work log | Can be empty template |
FIXES.md | Bug tracking | Can be empty template |
HANDOFF.md | Context transfer | Can be empty template |
========================================
STRUCTURAL VALIDATION
========================================
Root Files:
- _STATUS.md exists
- OVERVIEW.md exists
Phase Folders Found: {N}
Phase 0 - {name}:
- PLAN.md
- COMPLETED.md
- FIXES.md
- HANDOFF.md
Phase 1 - {name}:
- PLAN.md
- COMPLETED.md (MISSING)
...
Issues Found: {count}
Verify:
Current Phase field is setSource Document points to valid fileVerify these sections exist and are filled:
Verify each PLAN.md has:
From the requirements document, extract:
For EACH item from requirements, check if it's covered in the PRP:
========================================
REQUIREMENTS ALIGNMENT CHECK
========================================
PHASES COVERAGE:
Requirements defines {N} phases:
- Phase 0: Foundation - Covered in phase-0-foundation/
- Phase 1: UI Updates - Covered in phase-1-ui/
- Phase 2: Testing - NOT FOUND IN PRP
DATA MODEL CHANGES:
Requirements mentions these changes:
- Add column `status` - Phase 0, Task 1
- Create table `participants` - Phase 0, Task 2
- Add index on `foreign_key` - NOT FOUND IN ANY PLAN
FILE MODIFICATIONS:
Requirements references these files:
- src/components/forms/main-form.tsx - Phase 3, Task 2
- src/lib/utils.ts - NOT FOUND IN ANY PLAN
SUCCESS CRITERIA:
- "Users can create records" - Phase 1 Acceptance
- "Dashboard shows analytics" - NOT FOUND IN ANY PHASE
KEY DECISIONS:
- "Use approach A over B" - Documented in OVERVIEW.md
Also check if PRP includes things NOT in requirements:
For each file path mentioned in PLAN.md tasks:
FILE PATH VALIDATION:
- src/components/forms/main-form.tsx - EXISTS
- src/components/forms/new-component.tsx - DOES NOT EXIST (will be created)
- src/lib/missing-util.ts - DOES NOT EXIST (not marked as CREATE)
Check if code patterns in PLAN.md:
Verify validation commands are:
========================================
PRP VALIDATION REPORT
========================================
PRP: {path}
Type: {Simple | Phased}
Source: {requirements file}
Generated: {date from OVERVIEW.md}
========================================
STRUCTURAL VALIDATION
========================================
Status: PASS | FAIL
Root Files: {X}/{Y} present
Phase Folders: {N}
Files per Phase: {checked}/{expected}
Issues:
- {list any missing files}
========================================
CONTENT VALIDATION
========================================
Status: PASS | FAIL
_STATUS.md: {complete/incomplete}
OVERVIEW.md: {X}/{Y} sections filled
PLAN.md files: {X}/{Y} have required sections
Issues:
- {list any missing sections}
========================================
REQUIREMENTS ALIGNMENT
========================================
Status: ALIGNED | GAPS FOUND | MAJOR GAPS
Phases: {X}/{Y} covered
Data Model Changes: {X}/{Y} covered
File Modifications: {X}/{Y} covered
Success Criteria: {X}/{Y} covered
Key Decisions: {X}/{Y} documented
Gaps Found:
- {list uncovered requirements}
Potential Scope Creep:
- {list PRP items not in requirements}
========================================
QUALITY CHECKS
========================================
Status: PASS | WARNINGS | FAIL
File Paths: {X}/{Y} verified
Code Patterns: {quality assessment}
Validation Commands: {present/missing}
Issues:
- {list any problems}
========================================
OVERALL ASSESSMENT
========================================
Score: {1-10}/10
Recommendation:
- READY FOR EXECUTION - PRP is complete and aligned
- MINOR FIXES NEEDED - Fix issues before executing
- REGENERATE PRP - Major gaps require re-running /generate-prp
{If issues found:}
Action Items:
1. {specific fix needed}
2. {specific fix needed}
...
========================================
Next Step: /execute-prp {path}
========================================
Offer to fix minor issues automatically:
Ask user: "I found {N} minor issues. Would you like me to fix them automatically?"
Do NOT auto-fix. Instead:
/generate-prp with more thorough research[] Located PRP and determined type (simple/phased)
[] Found and read source requirements document
[] Verified all required files exist
[] Checked _STATUS.md content
[] Checked OVERVIEW.md content
[] Checked each PLAN.md has required sections
[] Extracted all requirements items
[] Cross-referenced each requirement with PRP
[] Verified file paths exist in codebase
[] Assessed code pattern quality
[] Generated comprehensive report
[] Provided actionable recommendations