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
# /validate-contracts - Full Contract Validation
|
|
|
|
## Skills to Load
|
|
- skills/visual-output.md
|
|
- skills/plugin-discovery.md
|
|
- skills/interface-parsing.md
|
|
- skills/validation-rules.md
|
|
- skills/mcp-tools-reference.md
|
|
|
|
## Usage
|
|
|
|
```
|
|
/validate-contracts [marketplace_path]
|
|
```
|
|
|
|
## Parameters
|
|
|
|
- `marketplace_path` (optional): Path to marketplace root. Defaults to current project root.
|
|
|
|
## Workflow
|
|
|
|
1. **Display header** per `skills/visual-output.md`
|
|
|
|
2. **Discover plugins** per `skills/plugin-discovery.md`
|
|
|
|
3. **Parse interfaces** per `skills/interface-parsing.md`
|
|
- Use `parse_plugin_interface` for each plugin
|
|
|
|
4. **Run validations** per `skills/validation-rules.md`
|
|
- Use `validate_compatibility` for pairwise checks
|
|
- Use `validate_agent_refs` for CLAUDE.md agents
|
|
- Use `validate_data_flow` for data sequences
|
|
|
|
5. **Generate report**:
|
|
- Use `generate_compatibility_report` for full report
|
|
- Use `list_issues` to filter by severity
|
|
- Display summary and actionable suggestions
|
|
|
|
## Examples
|
|
|
|
```
|
|
/validate-contracts
|
|
/validate-contracts ~/claude-plugins-work
|
|
```
|