Execute a single AXEL file (workflow or todo)
Executes a single AXEL workflow or todo file without lifecycle management.
/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
SEMANTIC:
- "run" = tek dosya çalıştır, lifecycle yok
- Workflow veya todo fark etmez
- Fire-and-forget (stateless)
⚠️ For lifecycle management (pending → in-progress → completed), use /axel:todos-run
]]>
</enforcement>
<objective>
Execute a single AXEL file (workflow or todo).
Stateless execution without lifecycle management.
</objective>
<documents name="core" load="always" mode="context">
<read src="${CLAUDE_PLUGIN_ROOT}/AXEL-Bootstrap.md"/>
<understanding>
!! MANDATORY: READ -> UNDERSTAND -> APPLY !!
Bootstrap provides AXEL syntax and execution rules.
</understanding>
</documents>
<variables>
<var name="args" from="$ARGUMENTS"/>
<var name="plugin_root" value="${CLAUDE_PLUGIN_ROOT}"/>
<var name="file_path" value=""/>
</variables>
<command id="cmd:main">
<goto when="args = 'help'" to="help"/>
<goto when="args = ''" to="help"/>
<goto to="execute"/>
</command>
<execution flow="staged">
<!-- help: Show usage -->
<stage id="help">
<print>
## /axel:run
Execute a single AXEL file (workflow or todo).
**Usage:**
/axel:run {file.md} - Execute the file
**Examples:**
/axel:run .claude/workspaces/default/todos/pending/my-task.md
/axel:run .claude/workflows/my-workflow.md
/axel:run plugins/axel/workflows/example.md
**Note:**
- For todo lifecycle management, use `/axel:todos-run`
- This command is stateless (fire-and-forget)
</print>
<stop kind="end"/>
</stage>
<!-- execute: Run the file -->
<stage id="execute">
<set var="file_path" value="${args}"/>
<print>## Running: ${file_path}</print>
<invoke name="Task" output="result">
<param name="subagent_type">axel:agent-axel-runner:agent-axel-runner</param>
<param name="description">Run: ${file_path}</param>
<param name="prompt"><![CDATA[
PLUGIN_ROOT: ${plugin_root}
axel_file_path: ${file_path}
]]></param>
</invoke>
<goto to="show_result"/>
</stage>
<!-- show_result: Display result -->
<stage id="show_result">
<print>
## Execution Complete
**File:** ${file_path}
**Status:** ${result.status}
</print>
<stop kind="end"/>
</stage>
</execution>
<understanding/>
</document>