Agent skill
validate-chalk
Validate chalk.json schema and docs completeness — check that project context is sufficient for skills to operate
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/validate-chalk
SKILL.md
Audit the .chalk/ directory to verify that chalk.json and PROFILE docs are complete, correct, and sufficient for skills to operate. Reports gaps and optionally fixes them.
When to Use
- Before running skills that depend on project context (capture-pr-visuals, create-pr, etc.)
- After initial setup to verify completeness
- Periodically to detect stale docs
- In CI to enforce chalk quality
Workflow
Step 1: Check chalk.json exists and is valid
- Read
.chalk/chalk.json - Validate required fields:
version— must be"1.0"project.name— must exist and be non-empty
- Check recommended fields and report if missing:
project.description,project.language,project.framework,project.typedev.command,dev.port,dev.urltest.commandbuild.commandroutes— at least one routesourceLayout.root
- Validate field values make sense:
dev.portis a valid port number (1-65535)dev.urlstarts withhttproutes[].pathandroutes[].nameare non-emptysourceLayoutpaths exist on disk
Step 2: Check PROFILE docs exist
Verify these files exist:
.chalk/docs/product/PROFILE.md.chalk/docs/engineering/PROFILE.md.chalk/docs/engineering/coding-style.md.chalk/docs/ai/PROFILE.md.chalk/docs/design/PROFILE.md
For each file:
- Check it exists
- Check it has more than 20 lines of content (not just stubs)
- Check it doesn't contain
<!-- STUB -->markers - Check it has a
Last updated:line
Step 3: Check for v1 legacy structure
Detect old numbered files that should have been migrated:
0_PRODUCT_PROFILE.md,0_ENGINEERING_PROFILE.md,1_architecture.md,3_techstack.md, etc.- If found, warn that migration is needed and suggest running
/setup-chalkwith migration
Step 4: Cross-validate chalk.json against docs
- If
chalk.jsonlists routes, check thatengineering/PROFILE.mdmentions them - If
chalk.jsonlists a framework, check thatengineering/PROFILE.mddocuments it - If
chalk.jsonhassourceLayout, verify the directories actually exist on disk
Step 5: Report
Print a summary:
Chalk Validation Report
=======================
chalk.json:
✓ version: 1.0
✓ project.name: my-app
✓ project.framework: next
✗ routes: missing (run /setup-docs to detect)
✗ test.command: missing
Docs:
✓ product/PROFILE.md (142 lines, updated 2026-03-10)
✓ engineering/PROFILE.md (298 lines, updated 2026-03-10)
✗ engineering/coding-style.md: MISSING
✓ ai/PROFILE.md (87 lines, updated 2026-03-10)
⚠ design/PROFILE.md: contains STUB markers
Legacy:
⚠ Found 0_ENGINEERING_PROFILE.md — migration needed
Score: 7/11 checks passed
Step 6: Auto-fix (if fix argument provided)
If the user passed fix as an argument:
- Run
/setup-docsto populate missing PROFILE docs - Run route detection to fill
chalk.jsonroutes - Run source layout detection to fill
chalk.jsonsourceLayout - Migrate v1 files if found (with user confirmation)
Rules
- Never modify files without the
fixargument — report-only by default - Don't fail on missing optional fields — just warn
- Required fields that cause failure:
chalk.jsonmust exist,versionandproject.namemust be present - Be specific about what's missing and how to fix it
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?