Comprehensive validation command that checks the entire OpenAgents Control repository for consistency between CLI, documentation, registry, and components.
/validate-repo
This command performs a comprehensive validation of:
Registry Integrity
Component Existence
Profile Consistency
Documentation Accuracy
Context File Structure
Cross-References
The command generates a detailed report showing:
You are a validation specialist. Your task is to comprehensively validate the OpenAgents Control repository for consistency and correctness.
registry.jsonversion field existsrepository field existscategories object existscomponents object exists with all typesprofiles object existsmetadata object existsFor each component type (agents, subagents, commands, tools, plugins, contexts, config):
Check required fields:
id (unique)nametypepathdescriptiontags (array)dependencies (array)categoryVerify file exists at path
Check for duplicate IDs
Validate category is in defined categories
For each profile (essential, developer, business, full, advanced):
navigation.md:
docs/agents/openagent.md:
docs/getting-started/installation.md:
.opencode/context/core/standards/ filescore/workflows/ filescore/system/ filesproject/ filesFor each component with dependencies:
type:id)Create a comprehensive report with sections:
Based on findings, suggest:
# OpenAgents Control Repository Validation Report
Generated: 2025-11-19 14:30:00
## Summary
✅ 95% validation passed
⚠️ 3 warnings found
❌ 2 errors found
---
## ✅ Validated Successfully
### Registry Integrity
✅ JSON syntax valid
✅ All required fields present
✅ Schema structure correct
### Component Existence (45/47 files found)
✅ Agents: 3/3 files exist
✅ Subagents: 15/15 files exist
✅ Commands: 8/8 files exist
✅ Tools: 2/2 files exist
✅ Plugins: 2/2 files exist
✅ Contexts: 13/15 files exist
✅ Config: 2/2 files exist
### Profile Consistency
✅ Essential: 9 components (matches README)
✅ Developer: 29 components (matches README)
✅ Business: 15 components (matches README)
✅ Full: 35 components (matches README)
✅ Advanced: 42 components (matches README)
### Documentation Accuracy
✅ README component counts match registry
✅ OpenAgent documentation up to date
✅ Installation guide accurate
---
## ⚠️ Warnings (3)
1. **Orphaned Context File**
- File: `.opencode/context/legacy/old-patterns.md`
- Issue: Exists but not referenced in registry
- Recommendation: Add to registry or remove file
2. **Unused Component**
- Component: `workflow-orchestrator` (agent)
- Issue: Defined in registry but not in any profile
- Recommendation: Add to a profile or mark as deprecated
3. **Outdated Metadata**
- Field: `metadata.lastUpdated`
- Current: 2025-11-15
- Recommendation: Update to current date
---
## ❌ Errors (2)
1. **Missing Context File**
- Component: `context:advanced-patterns`
- Expected path: `.opencode/context/core/advanced-patterns.md`
- Referenced in: developer, full, advanced profiles
- Action: Create file or remove from registry
2. **Broken Dependency**
- Component: `agent:opencoder`
- Dependency: `subagent:pattern-matcher`
- Issue: Dependency not found in registry
- Action: Add missing subagent or fix dependency reference
---
## 📊 Statistics
### Component Distribution
- Agents: 3
- Subagents: 15
- Commands: 8
- Tools: 2
- Plugins: 2
- Contexts: 15
- Config: 2
- **Total: 47 components**
### Profile Breakdown
- Essential: 9 components (19%)
- Developer: 29 components (62%)
- Business: 15 components (32%)
- Full: 35 components (74%)
- Advanced: 42 components (89%)
### File Coverage
- Total files defined: 47
- Files found: 45 (96%)
- Files missing: 2 (4%)
- Orphaned files: 1
### Dependency Health
- Total dependencies: 23
- Valid dependencies: 22 (96%)
- Broken dependencies: 1 (4%)
- Circular dependencies: 0
---
## 🔧 Recommended Actions
### High Priority (Errors)
1. Create missing file: `.opencode/context/core/advanced-patterns.md`
2. Fix broken dependency in `opencoder`
### Medium Priority (Warnings)
1. Remove orphaned file or add to registry
2. Add `workflow-orchestrator` to a profile or deprecate
3. Update metadata.lastUpdated to 2025-11-19
### Low Priority (Improvements)
1. Add more tags to components for better searchability
2. Consider adding descriptions to all context files
3. Document component categories in README
---
## Next Steps
1. Review and fix all ❌ errors
2. Address ⚠️ warnings as needed
3. Re-run validation to confirm fixes
4. Update documentation if needed
---
**Validation Complete** ✓
The command should: