Refactored commands to extract reusable skills following the Commands → Skills separation pattern. Each command is now <50 lines and references skill files for detailed knowledge. Plugins refactored: - claude-config-maintainer: 5 commands → 7 skills - code-sentinel: 3 commands → 2 skills - contract-validator: 5 commands → 6 skills - data-platform: 10 commands → 6 skills - doc-guardian: 5 commands → 6 skills (replaced nested dir) - git-flow: 8 commands → 7 skills Skills contain: workflows, validation rules, conventions, reference data, tool documentation Commands now contain: YAML frontmatter, agent assignment, skills list, brief workflow steps, parameters Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
45 lines
1.1 KiB
Markdown
45 lines
1.1 KiB
Markdown
# /check-agent - Validate Agent Definition
|
|
|
|
## Skills to Load
|
|
- skills/visual-output.md
|
|
- skills/interface-parsing.md
|
|
- skills/validation-rules.md
|
|
- skills/mcp-tools-reference.md
|
|
|
|
## Usage
|
|
|
|
```
|
|
/check-agent <agent_name> [claude_md_path]
|
|
```
|
|
|
|
## Parameters
|
|
|
|
- `agent_name` (required): Agent to validate (e.g., "Planner", "Orchestrator")
|
|
- `claude_md_path` (optional): Path to CLAUDE.md. Defaults to `./CLAUDE.md`
|
|
|
|
## Workflow
|
|
|
|
1. **Display header** per `skills/visual-output.md`
|
|
|
|
2. **Parse agent** per `skills/interface-parsing.md`
|
|
- Use `parse_claude_md_agents` to extract agent definition
|
|
- Get responsibilities, tool references, workflow steps
|
|
|
|
3. **Validate** per `skills/validation-rules.md`
|
|
- Use `validate_agent_refs` - check all tools exist
|
|
- Use `validate_data_flow` - verify producer/consumer order
|
|
|
|
4. **Report findings**:
|
|
- Tool references found
|
|
- Missing tools (with suggestions)
|
|
- Data flow issues
|
|
- Recommendations
|
|
|
|
## Examples
|
|
|
|
```
|
|
/check-agent Planner
|
|
/check-agent Orchestrator ./CLAUDE.md
|
|
/check-agent data-analysis ~/project/CLAUDE.md
|
|
```
|