/framework-dev:validate [contracts|links|state|all]from framework-dev
Validate blueprints against implementation. Checks API contracts, file links, and state file integrity.
Ships in framework-dev. Installing the plugin adds it to Claude Code.
This command validates framework blueprints against the actual implementation, detecting mismatches, broken links, and schema violations.
/validate contracts # Check endpoints match api-contracts.md
/validate links # Find broken file references
/validate state # Validate state file against schema
/validate all # Run all validations
Check all implemented endpoints match api-contracts.md:
Read: .framework-blueprints/03-api-planning/api-contracts.md
Extract all endpoints defined in the contract.
Search for route definitions in source:
grep -r "router\.\|app\.\|@Get\|@Post\|@Put\|@Delete" src/
For each endpoint in contract:
## Contract Validation Report
**Status:** PASS | FAIL
### Matched Endpoints
| Endpoint | Method | Status |
|----------|--------|--------|
| /api/users | GET | ✅ Match |
| /api/users | POST | ✅ Match (201) |
### Mismatches
| Endpoint | Issue | Expected | Actual |
|----------|-------|----------|--------|
| /api/users/:id | Method | GET | Not found |
### Missing from Contract
- POST /api/internal/sync (in code but not contract)
### Recommendations
1. Add missing endpoints to contract
2. Implement missing handlers
Find broken file references in blueprints:
Find all file paths mentioned in blueprints:
grep -r "src/\|\.ts\|\.js\|\.md" .framework-blueprints/
For each referenced path:
ls [path] 2>/dev/null || echo "BROKEN: [path]"
Find imports that reference moved/deleted files:
grep -r "from ['\"].*['\"]" src/ | while read line; do
# Extract import path and verify it exists
done
## Link Validation Report
**Status:** PASS | FAIL
### Broken Links in Blueprints
| File | Line | Broken Reference |
|------|------|------------------|
| outline-v1.md | 45 | src/auth/middleware.ts |
### Broken Imports in Source
| File | Import | Issue |
|------|--------|-------|
| api.ts | ./services/old | File not found |
### Recommendations
1. Update outline-v1.md line 45: src/auth/ → src/core/auth/
2. Fix import in api.ts
Validate 00-project-state.json against schema:
Read: .framework-blueprints/00-project-state.json
Read: skills/project-state-management/references/state-schema.json
Check:
## State Validation Report
**Status:** PASS | FAIL
### Schema Errors
| Field | Issue |
|-------|-------|
| decisions[2].source | Missing required field |
### Consistency Issues
| Issue | Details |
|-------|---------|
| Phase mismatch | currentPhase=4 but phase 3 not completed |
### Recommendations
1. Add source URL to decision D003
2. Update phase 3 status to 'completed'
Run all validations and generate summary:
## Full Validation Report
**Generated:** [timestamp]
**Overall Status:** PASS | PARTIAL | FAIL
### Summary
| Validation | Status | Issues |
|------------|--------|--------|
| Contracts | ✅ PASS | 0 |
| Links | ⚠️ PARTIAL | 2 |
| State | ✅ PASS | 0 |
### Critical Issues (Must Fix)
1. [Issue requiring immediate attention]
### Warnings (Should Fix)
1. [Non-critical issue]
### Next Steps
1. Fix broken links in outline-v1.md
2. Run /validate again after fixes
When issues are found, suggest fixes:
### Auto-Fix Available
The following issues can be automatically fixed:
1. **Update path reference**
- File: outline-v1.md
- Old: src/auth/middleware.ts
- New: src/core/auth/middleware.ts
- Command: `sed -i 's|src/auth/|src/core/auth/|g' outline-v1.md`
Apply fixes? [y/n]
Run /validate when:
Validation is also triggered automatically by:
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Generated from the plugin's indexed repository (ankurjain1121/framework-developer-agent) — no native marketplace selected
npx claudepluginhub p/ankurjain1121-framework-dev6 commands in this plugin
/autoplan/autoplan — Auto-Review PipelineAuto-review pipeline — runs the full Framework Developer Orchestrator with auto-decisions. Rough idea in, fully reviewed plan out. No intermediate questions except premises and user challenges./checkpointCheckpoint CommandForce a context refresh by re-reading all blueprint files and recent source changes. Use this when the conversation feels "drifted" or after a long chat session to re-seed Claude's context with accurate state./exportExport CommandExport blueprints to shareable formats like PDF, HTML, or Notion-compatible markdown./framework-devFramework Developer OrchestratorStart the Framework Developer Orchestrator to plan and architect a new project through structured 6-phase discussion with blueprint generation/rollbackRollback CommandRollback to a previous checkpoint state. Use when work needs to be reverted or to recover from errors.Other plugins' commands for the same job