Validate AXEL document against Bootstrap rules, show numbered inconsistencies, and apply user-selected fixes through interactive staged execution
Validates AXEL documents against Bootstrap rules and applies interactive fixes.
/plugin marketplace add ahmetmeral/axel-marketplace/plugin install axel@axel-marketplace<document type="command" entry="cmd:main">
<enforcement>
<![CDATA[
- Read the `src`, `ref`, or `target` attribute from the document XML to locate referenced files
- ${CLAUDE_PLUGIN_ROOT} resolves to plugin installation directory
- Target document path comes from args.0
- Command only handles routing, workflow handles validation logic
- RESUMABLE: On re-invoke, continue from last incomplete stage
- Run to completion - only user cancellation interrupts flow
]]>
</enforcement>
<objective>
Validate AXEL document against Bootstrap rules, show numbered inconsistencies,
and apply user-selected fixes through interactive staged execution.
Delegates to AXEL-Validator-Workflow.
</objective>
<documents name="core" load="always" mode="context">
<read src="${CLAUDE_PLUGIN_ROOT}/AXEL-Bootstrap.md"/>
<understanding>
!! MANDATORY: READ → UNDERSTAND → APPLY !!
Bootstrap provides AXEL core rules for document execution.
</understanding>
</documents>
<variables>
<var name="target_path" from="args.0"/>
</variables>
<command id="cmd:main">
<goto when="${target_path} = ''" to="help"/>
<goto to="validate"/>
</command>
<execution flow="staged">
<!-- help: Show usage -->
<stage id="help">
<print>
## /axel:fix
Usage: `/axel:fix {file-path}`
Example:
- `/axel:fix plugins/axel/references/components/AXEL-Agent.md`
- `/axel:fix .claude/agents/agent-review/AGENT.md`
</print>
<stop kind="end"/>
</stage>
<!-- validate: Run validator workflow -->
<stage id="validate">
<print>Starting AXEL validation for: ${target_path}</print>
<workflow src="${CLAUDE_PLUGIN_ROOT}/workflows/utilities/AXEL-Validator-Workflow.md" output="validation_result">
<param name="target_path" value="${target_path}"/>
</workflow>
<goto to="complete"/>
</stage>
<!-- complete: Show result -->
<stage id="complete">
<print>
## Validation Complete
${validation_result.summary}
</print>
<stop kind="end"/>
</stage>
</execution>
<understanding/>
</document>