Initialize AXEL structure with folders and configuration files
Initializes AXEL project structure with folders and configuration files.
/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
- Collect parameters from user first
- Execute Python script for fast installation
- Python is REQUIRED for this command
]]>
</enforcement>
<objective>
Initialize AXEL with folder structure and configuration files.
Collects parameters, then executes Python script for fast installation.
</objective>
<documents name="bootstrap" 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="plugin_root" value="${CLAUDE_PLUGIN_ROOT}"/>
<var name="script_path" value="${CLAUDE_PLUGIN_ROOT}/scripts/axel_install.py"/>
<var name="project_name" from="param.project_name"/>
<var name="project_desc" from="param.project_desc"/>
<var name="tech_stack" from="param.tech_stack"/>
<var name="locale" from="param.locale" value="en"/>
</variables>
<command id="cmd:main">
<goto to="collect-info"/>
</command>
<execution flow="staged">
<!-- collect-info: Collect project information from user -->
<stage id="collect-info">
<print>Starting AXEL installation...</print>
<ask>
- var: project_name
prompt: "Project name:"
default: ${cwd.basename}
- var: project_desc
prompt: "Project description:"
- var: tech_stack
prompt: "Tech stack (e.g.: typescript, react, nodejs):"
- var: locale
prompt: "Default locale:"
default: en
</ask>
<goto to="execute"/>
</stage>
<!-- execute: Run Python installation script -->
<stage id="execute">
<print>Running installation...</print>
<bash output="install_result"><![CDATA[
PYTHONIOENCODING=utf-8 python "${script_path}" --name "${project_name}" --desc "${project_desc}" --stack "${tech_stack}" --locale "${locale}" --plugin-root "${plugin_root}" --cwd "${cwd}"
]]></bash>
<goto to="complete"/>
</stage>
<!-- complete: Report result and ask for references -->
<stage id="complete">
<print>${install_result}</print>
<goto to="ask-refs"/>
</stage>
<!-- ask-refs: Ask user if they want to generate reference content -->
<stage id="ask-refs">
<print>
## Reference Files
Reference dosyaları şu an boş placeholder olarak oluşturuldu:
- .claude/references/conventions.md
- .claude/references/standards.md
- .claude/references/core.md
- .claude/references/checklist.md
Tech stack'inize (${tech_stack}) göre bu dosyalar için içerik oluşturabilirsiniz.
</print>
<ask var="generate_refs" prompt="Reference dosyaları için içerik oluşturmak ister misiniz? (yes/no)">
<goto when="${generate_refs} == 'yes'" to="run-refs"/>
<goto to="done"/>
</ask>
</stage>
<!-- run-refs: Execute references generator workflow -->
<stage id="run-refs">
<workflow src="${CLAUDE_PLUGIN_ROOT}/workflows/utilities/AXEL-References-Generator-Workflow.md" output="refs_result">
<param name="tech_stack" value="${tech_stack}"/>
<param name="project_name" value="${project_name}"/>
<param name="cwd" value="${cwd}"/>
</workflow>
<goto to="done"/>
</stage>
<!-- done: Final completion -->
<stage id="done">
<print>
## Installation Complete
AXEL kurulumu tamamlandı. Başlamak için:
- CLAUDE.md dosyasını inceleyin
- .claude/references/ altındaki referans dosyalarını özelleştirin
</print>
<stop kind="end"/>
</stage>
</execution>
<understanding/>
</document>