Extract Plan MD
Sync plan.md with plan.json content. Use this skill after ANY edit to plan.json.
IMPORTANT: When to Use
REQUIRED after plan.json edits:
- After using the Edit tool on plan.json → run this skill to sync plan.md
- After programmatically modifying plan.json content field
- After plan amendments, task status changes, or any plan modifications
Also use for:
- User requests to sync/extract/convert plan.json to markdown
- Reviewing a plan outside of the JSON structure
- Sharing the plan with others who don't need the structured JSON fields
Usage
To sync plan.md with plan.json:
python3 ${CLAUDE_SKILL_DIR}/scripts/extract.py /path/to/plan.json
The script:
- Reads the plan.json file
- Extracts the
contentkey (which contains the full markdown plan) - Fixes any escaped line breaks (
\n-> actual newlines) - Writes to
plan.mdin the same directory as the plan.json
Examples
After editing plan.json, sync plan.md:
python3 ${CLAUDE_SKILL_DIR}/scripts/extract.py .closedloop-ai/work/plan.json
# Updates .closedloop-ai/work/plan.md to match
Extract from a specific plan:
python3 ${CLAUDE_SKILL_DIR}/scripts/extract.py ~/work/plan.json
# Creates/updates ~/work/plan.md