Run comprehensive validation audit on tools, documentation, and best practices compliance
Performs comprehensive validation audit checking tool usage compliance, documentation consistency, cross-references, and best practices adherence. Run this before releases, after major changes, or periodically to catch issues early and get auto-fix suggestions for common errors.
/plugin marketplace add bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude/plugin install bejranonda-autonomous-agent@bejranonda/LLM-Autonomous-Agent-Plugin-for-Claudevalidate/Performs thorough validation of:
This command delegates to the validation-controller agent which:
/validate:all
[PASS] Validation Complete - Score: 85/100
Key Findings:
* [ERROR] Documentation path inconsistency: 6 occurrences in CLAUDE.md
* [WARN] Write operation without prior Read: plugin.json
* [INFO] All cross-references valid
Top Recommendations:
1. [HIGH] Standardize path references in CLAUDE.md -> Prevent user confusion
2. [MED] Add Read before Write to plugin.json -> Follow tool requirements
3. [LOW] Consider adding path validation utility
š Full report: .claude/data/reports/validation-2025-10-21.md
ā± Completed in 1.2 minutes
Located at: .claude/data/reports/validation-YYYY-MM-DD.md
# Comprehensive Validation Report
Generated: 2025-10-21 12:30:45
## Executive Summary
Validation Score: 85/100 (Good)
- Tool Usage: 27/30 [PASS]
- Documentation Consistency: 18/25 [FAIL]
- Best Practices: 20/20 [PASS]
- Error-Free Execution: 12/15 [PASS]
- Pattern Compliance: 8/10 [PASS]
## Detailed Findings
### š“ Critical Issues (2)
#### 1. Documentation Path Inconsistency
**Severity**: ERROR
**Category**: Documentation Consistency
**Impact**: High - User confusion, incorrect instructions
**Details**:
- File: CLAUDE.md
- Inconsistent path references detected:
- `.claude-patterns/patterns.json` (standardized)
- Line 17: Pattern learning location
- Line 63: Pattern database location
- Line 99: Skill auto-selection query
- Line 161: Verification command
- Line 269: Pattern storage
- Line 438: Notes for future instances
- Actual implementation: `.claude-patterns/patterns.json`
**Root Cause**: Documentation written before Python utilities (v1.4) implementation
**Recommendation**: Standardize all references to `.claude-patterns/patterns.json`
**Auto-Fix Available**: Yes
```bash
# Automated fix command
sed -i 's|\.claude/patterns/|\.claude-patterns/|g' **/*.md
Severity: WARNING Category: Tool Usage Impact: Medium - Violates tool requirements
Details:
Root Cause: Edit tool called without prerequisite Read operation
Recommendation: Always call Read before Edit on existing files
Auto-Fix Available: Yes
# Correct sequence
Read(".claude-plugin/plugin.json")
Edit(".claude-plugin/plugin.json", old_string, new_string)
Tool Usage Compliance: 27/30 points
Documentation Consistency: 18/25 points
Best Practices Adherence: 20/20 points
Error-Free Execution: 12/15 points
Pattern Compliance: 8/10 points
Fix Documentation Path Inconsistency
Add Pre-flight Validation for Edit/Write
Create Path Validation Utility
Enhance Session State Tracking
This validation compared to baseline (first validation):
Next Validation Recommended: After applying high-priority fixes Expected Score After Fixes: 95/100
## When to Use
Run `/validate:all` when:
- Before releases or major changes
- After significant refactoring
- When documentation is updated
- After adding new components
- Periodically (every 10-25 tasks)
- When unusual errors occur
- To audit project health
## Integration with Autonomous Workflow
The orchestrator automatically triggers validation:
- **Pre-flight**: Before Edit/Write operations (checks prerequisites)
- **Post-error**: After tool failures (analyzes and auto-fixes)
- **Post-documentation**: After doc updates (checks consistency)
- **Periodic**: Every 25 tasks (comprehensive audit)
Users can also manually trigger full validation with `/validate:all`.
## Success Criteria
Validation passes when:
- Score ā„ 70/100
- No critical (ERROR) issues
- Tool usage compliance ā„ 90%
- Documentation consistency ā„ 80%
- All cross-references valid
- Best practices followed
## Validation Benefits
**For Users**:
- Catch issues before they cause problems
- Clear, actionable recommendations
- Auto-fix for common errors
- Improved project quality
**For Development**:
- Enforces best practices
- Prevents documentation drift
- Maintains consistency
- Reduces debugging time
**For Learning**:
- Builds failure pattern database
- Improves prevention over time
- Tracks validation effectiveness
- Continuous improvement loop