# Template: Progressive Step Loading Skill

Use this template when creating a complex skill with multiple phases that benefit from progressive step loading.

## Generated SKILL.md format:

```yaml
---
name: {{SKILL_NAME}}
description: |
  {{DESCRIPTION}}
{{#if ARGUMENT_HINT}}
argument-hint: "{{ARGUMENT_HINT}}"
{{/if}}
{{#if DISABLE_MODEL_INVOCATION}}
disable-model-invocation: true
{{/if}}
{{#if MODEL}}
model: {{MODEL}}
{{/if}}
---

<objective>
{{OBJECTIVE}}
</objective>

<quick_start>

` ` `bash
/{{SKILL_NAME}} {{EXAMPLE_ARGS_1}}
/{{SKILL_NAME}} {{EXAMPLE_ARGS_2}}
` ` `

</quick_start>

<parameters>

<flags>
| Flag | Description |
|------|-------------|
| {{FLAG_SHORT}} | {{FLAG_DESCRIPTION}} |
</flags>

<examples>
` ` `bash
/{{SKILL_NAME}} {{EXAMPLE_1}}
/{{SKILL_NAME}} {{EXAMPLE_2}}
` ` `
</examples>

</parameters>

<workflow>
{{#each STEPS}}
{{@index_plus_one}}. {{this.title}}
{{/each}}
</workflow>

<state_variables>
| Variable | Type | Description |
|----------|------|-------------|
{{#each STATE_VARS}}
| `{ {{this.name}} }` | {{this.type}} | {{this.description}} |
{{/each}}
</state_variables>

<entry_point>

**FIRST ACTION:** Load `steps/step-00-init.md`

</entry_point>

<step_files>
| Step | File | Purpose |
|------|------|---------|
{{#each STEPS}}
| {{this.number}} | `steps/step-{{this.number}}-{{this.name}}.md` | {{this.description}} |
{{/each}}
</step_files>

<execution_rules>
- **Load one step at a time** - Progressive loading to minimize context
- **Persist state variables** across all steps
- **Follow next_step directive** at end of each step
- {{RULE_1}}
- {{RULE_2}}
</execution_rules>

<success_criteria>
- {{CRITERIA_1}}
- {{CRITERIA_2}}
- {{CRITERIA_3}}
</success_criteria>
```

## Notes:
- Keep SKILL.md under 500 lines (detailed content goes in steps)
- Each step should be self-contained
- State variables persist across all steps
- Always start with step-00-init for argument parsing
- Always end with a validation/summary step
- Best for: workflows, generators, multi-phase operations
