一键导入
validate-plan
Validate planning swarm output: artifact existence, AC coverage, pattern IDs, stale references, internal consistency. Produces a glass box report.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validate planning swarm output: artifact existence, AC coverage, pattern IDs, stale references, internal consistency. Produces a glass box report.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
On-demand vision alignment check. Spawns ndp-vision-guardian to review SPARC artifacts against product/vision/ALIGNMENT-CRITERIA.md.
NDP 4-tier implementation validation. Tier 1: compilation (build+test+anti-stub). Tier 2: process adherence. Tier 3: spec compliance. Tier 4: risk classification. Produces glass box reports.
Retrieve APPLICATION patterns (architecture, procedures, conventions) from AgentDB using multi-signal retrieval: pattern search, causal recall, and RL predictions. Use BEFORE implementing to ensure consistency.
AgentDB pattern lifecycle management: list, get, delete, deprecate, update, stats, search, duplicates. Use when cleaning up stale patterns, removing deprecated entries, finding duplicates, or auditing pattern health. Workaround for missing MCP delete/update tools (GH Issue #42).
Record feedback on pattern effectiveness. Stores episodes that train the recommendation system, feed the RL engine for smarter pattern ranking, build causal knowledge, and enable pattern discovery via learner.
Store APPLICATION patterns (architecture, procedures, conventions) in AgentDB's patterns table. NOT for swarm/transient memory.
| name | validate-plan |
| description | Validate planning swarm output: artifact existence, AC coverage, pattern IDs, stale references, internal consistency. Produces a glass box report. |
Validates the output of a planning swarm before handing off to implementation. Runs 5 checks against the planning artifacts for a given feature ID. Produces a glass box report showing exactly what was checked, what passed, and what needs human review.
Run this after the planning swarm completes and before creating the GH Issue.
/validate-plan {feature-id}
Where {feature-id} is e.g. ops-006, fe-004, dp-002.
FEATURE_DIR="product/features/${FEATURE_ID}"
for f in IMPLEMENTATION-BRIEF.md ACCEPTANCE-MAP.md LAUNCH-PROMPT.md ALIGNMENT-REPORT.md; do
[ -f "$FEATURE_DIR/$f" ] && echo "PASS: $f" || echo "FAIL: MISSING $f"
done
[ -f "$FEATURE_DIR/specification/SPECIFICATION.md" ] && echo "PASS: SPECIFICATION.md" || echo "FAIL: MISSING SPECIFICATION.md"
[ -f "$FEATURE_DIR/architecture/ARCHITECTURE.md" ] && echo "PASS: ARCHITECTURE.md" || echo "FAIL: MISSING ARCHITECTURE.md"
Parse SCOPE.md for acceptance criteria IDs, then verify each appears in ACCEPTANCE-MAP.md or IMPLEMENTATION-BRIEF.md.
# Extract AC-IDs from SCOPE.md
SCOPE_ACS=$(grep -oP 'AC-\d+' "$FEATURE_DIR/SCOPE.md" | sort -u)
# Check each AC appears in the map
for ac in $SCOPE_ACS; do
grep -q "$ac" "$FEATURE_DIR/ACCEPTANCE-MAP.md" 2>/dev/null && \
echo "PASS: $ac found in ACCEPTANCE-MAP.md" || \
echo "FAIL: $ac missing from ACCEPTANCE-MAP.md"
done
Extract pattern IDs from the IMPLEMENTATION-BRIEF.md Resolved Decisions table and verify each resolves in AgentDB.
For each pattern ID in the brief's "Resolved Decisions" table:
Call agentdb_pattern_search(task="pattern {id}", k=1)
If result found: PASS
If no result: WARN (pattern may not be stored yet)
Grep planning artifacts for deprecated pattern IDs and removed file paths.
# Deprecated pattern IDs
grep -rn 'pattern.*\b29\b\|pattern.*\b32\b' "$FEATURE_DIR/" --include='*.md' && \
echo "FAIL: Deprecated pattern IDs found" || echo "PASS: No deprecated pattern IDs"
# Known removed paths
for stale in "STATUS.md" "bugs/" "verification-quality"; do
grep -rn "$stale" "$FEATURE_DIR/" --include='*.md' 2>/dev/null && \
echo "WARN: Stale reference to $stale" || true
done
# Verify file paths in brief are plausible
grep -oP '`[^`]+\.(rs|md|sh|json|toml|yaml|yml|txt)`' "$FEATURE_DIR/IMPLEMENTATION-BRIEF.md" | \
tr -d '`' | while read filepath; do
parent=$(dirname "$filepath")
[ -d "$parent" ] || [ "$parent" = "." ] && echo "PASS: $filepath parent exists" || \
echo "WARN: $filepath parent dir does not exist: $parent"
done
Output to product/features/{feature-id}/reports/validate-plan-report.md:
# Validation Report: {feature-id} plan
> Date: {date}
> Type: plan
> Feature: {feature-id}
## Summary
RESULT: PASS | WARN | FAIL
Checks: {N passed} / {M total} ({K not checked})
Confidence: {score}/100
## Check Results
| # | Check | Result | Evidence |
|---|-------|--------|----------|
| 1 | Required artifacts exist | PASS/FAIL | {list missing files} |
| 2 | AC coverage | PASS/FAIL | {X/Y ACs found} |
| 3 | ADR pattern IDs resolve | PASS/WARN | {list unresolved IDs} |
| 4 | No stale references | PASS/WARN | {list stale refs found} |
| 5 | Internal consistency | PASS/WARN | {list inconsistencies} |
## NOT CHECKED
| Item | Reason |
|------|--------|
| Spec quality (content correctness) | Requires human review |
| ADR technical soundness | Requires domain expertise |
| Alignment report thoroughness | Requires human judgment |
## RECOMMENDED HUMAN REVIEW
- Review ALIGNMENT-REPORT.md for any VARIANCE or FAIL items
- Verify SCOPE.md acceptance criteria match your intent
- Review LAUNCH-PROMPT.md proposed prompt before pasting
- Check that architectural decisions (ADRs) align with your expectations
Confidence score calculation:
confidence = (checks_passed / checks_total) * 100
- (5 * count(NOT_CHECKED))
- (10 * count(WARN))
- (25 * count(FAIL))
Minimum 0, maximum 100.
.claude/protocols/planning-protocol.md -- planning swarm protocol (Step 3h calls this skill).claude/skills/validate/SKILL.md -- implementation validation (4-tier)product/vision/ALIGNMENT-CRITERIA.md -- vision alignment criteria