بنقرة واحدة
docs-verify
Documentation verification for 3-Tier system - validates line limits, cross-references, file counts
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Documentation verification for 3-Tier system - validates line limits, cross-references, file counts
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Coordinate specialized teammates in Agent Teams for execution, review, and planning. Delegate mode mandatory with TaskCompleted/TeammateIdle hooks.
Plan completion workflow - archive plan, verify todos, create git commit, push with retry. Use for finalizing completed plans.
Plan confirmation workflow - extract plan from conversation, create file, auto-review with Interactive Recovery. Use for confirming plans after /00_plan.
Plan execution workflow - parallel SC implementation, worktree mode, verification patterns, GPT delegation. Use for executing plans with TDD + Ralph Loop.
Use when blocked, stuck, or needing fresh perspective. Consults GPT experts via Codex CLI with graceful fallback.
Coordinate independent teammates concurrently in Agent Teams for 50-70% speedup. Launch multiple teammates simultaneously.
| name | docs-verify |
| description | Documentation verification for 3-Tier system - validates line limits, cross-references, file counts |
Purpose: Validate 3-Tier documentation system compliance - line limits, cross-references, file counts
/03_close)/document# Pure bash link check (no external deps)
for file in CLAUDE.md docs/ai-context/*.md; do
[ -f "$file" ] || continue
grep -oE '@[^][:space:]]+' "$file" | while read ref; do
ref_path="${ref#@}"
[ ! -e "$ref_path" ] && echo "Broken: $ref in $file"
done
done
Before running verification, check if docs changed:
# Get changed markdown files (with fallback)
CHANGED_MD=$(git diff --name-only HEAD~1 -- "*.md" 2>/dev/null || git diff --name-only -- "*.md" 2>/dev/null || echo "FALLBACK_FULL_VERIFY")
# Fallback: If git diff fails, run full verification
if [ "$CHANGED_MD" = "FALLBACK_FULL_VERIFY" ]; then
echo "Cannot detect changes, running full verification"
CHANGED_MD=$(find . -name "*.md" -type f ! -path "*/.git/*" ! -path "*/.trash/*")
fi
if [ -z "$CHANGED_MD" ]; then
echo "No markdown files changed"
echo "Skipping documentation verification"
exit 0
fi
echo "Changed markdown files:"
echo "$CHANGED_MD"
Tier 1 (3 files, ≤200 lines each):
CLAUDE.md - Project architecture, features, Quick Startdocs/ai-context/project-structure.md - Tech stack, file treedocs/ai-context/docs-overview.md - Documentation navigationTier 2: Component CONTEXT.md files (unlimited)
Tier 3: Feature-specific CONTEXT.md files
Limit: ≤200 lines per file
TIER1_FILES=(
"CLAUDE.md"
"docs/ai-context/project-structure.md"
"docs/ai-context/docs-overview.md"
)
for file in "${TIER1_FILES[@]}"; do
# Only check if file was changed
if echo "$CHANGED_MD" | grep -q "$file"; then
LINES=$(wc -l < "$file" | tr -d ' ')
if [ "$LINES" -gt 200 ]; then
echo "FAIL: $file has $LINES lines (limit: 200)"
exit 1
fi
echo "$file: $LINES lines"
fi
done
On violation: Extract content to Tier 2 CONTEXT.md files
Limit: Exactly 2 files in docs/ai-context/
COUNT=$(find docs/ai-context -maxdepth 1 -name "*.md" -type f | wc -l | tr -d ' ')
if [ "$COUNT" -ne 2 ]; then
echo "FAIL: docs/ai-context/ has $COUNT files (expected: 2)"
exit 1
fi
# Only validate changed files
for file in $CHANGED_MD; do
[ -f "$file" ] || continue
grep -oE '@\.(claude|docs)/[^][:space:]]+' "$file" 2>/dev/null | while read ref; do
ref_path="${ref#@}"
ref_path="${ref_path%[\`\*\]\"]}"
if [ ! -e "$ref_path" ]; then
echo "Broken reference: $ref in $file"
fi
done
done
# Check for self-references (A → A)
find . -name "*.md" ! -path "*/REFERENCE.md" ! -path "*/.git/*" | while read file; do
refs=$(grep -oE '@\.(claude|docs)/[^)[:space:]+' "$file" || true)
for ref in $refs; do
if [ "${ref#@}" = "$file" ]; then
echo "Self-reference: $file"
fi
done
done
ACTUAL=$(find .claude/skills -name "SKILL.md" | wc -l | tr -d ' ')
STATED=$(grep -oE '\*\*[0-9]+ Skills\*\*' README.md | grep -oE '[0-9]+' || echo "0")
if [ "$ACTUAL" -ne "$STATED" ]; then
echo "WARNING: Skill count mismatch - README: $STATED, actual: $ACTUAL"
fi
## Step 3: Documentation Verification
Invoke the `docs-verify` skill to validate documentation compliance.
The skill checks:
- Tier 1 line limits (≤200 lines)
- Tier 1 file count (exactly 2 in ai-context/)
- Cross-reference validity
- Circular references
Claude reads this skill file and executes the bash commands inline.
three-tier-docs: Full 3-Tier documentation system | vibe-coding: File size standards
Version: claude-pilot 4.4.14