execute-planlisted
Install: claude install-skill produtoramaxvision/maxvision
<purpose>
Execute a phase prompt (PLAN.md) and create the outcome summary (SUMMARY.md).
</purpose>
<required_reading>
Read STATE.md before any operation to load project context.
Read config.json for planning behavior settings.
@$HOME/.claude/maxvision/references/git-integration.md
</required_reading>
<available_agent_types>
Valid MaxVision subagent types (use exact names — do not fall back to 'general-purpose'):
- maxvision-executor — Executes plan tasks, commits, creates SUMMARY.md
</available_agent_types>
<process>
<step name="init_context" priority="first">
Load execution context (paths only to minimize orchestrator context):
```bash
set -euo pipefail
INIT=$(maxvision-sdk query init.execute-phase "${PHASE}")
if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
```
Extract from init JSON: `executor_model`, `commit_docs`, `sub_repos`, `phase_dir`, `phase_number`, `plans`, `summaries`, `incomplete_plans`, `state_path`, `config_path`.
If `.maxvision/` missing: error.
</step>
<step name="identify_plan">
```bash
# Use plans/summaries from INIT JSON, or list files
set -euo pipefail
(ls .maxvision/phases/XX-name/*-PLAN.md 2>/dev/null || true) | sort
(ls .maxvision/phases/XX-name/*-SUMMARY.md 2>/dev/null || true) | sort
```
Find first PLAN without matching SUMMARY. Decimal phases supported (`01.1-hotfix/`):
```bash
set -euo pipefail
PHASE=$(echo "$PLAN_PATH" | grep -oE '[0-9]+(\.[0-9]+)?-[0-9]+')
# config settings can be fetched via maxvision-sdk query conf