Extract plan md

From closedloop-ai/claude-plugins · View interactive version

Extract plan md is an AI agent skill from the GitHub repository closedloop-ai/claude-plugins. Sync plan.md with plan.json content. MUST be used after ANY edit to plan.json to keep plan.md in sync. Triggers: - After editing plan.json with Edit tool (REQUIRED - always sync after edits) - User asks to "sync plan.md", "update plan.md", "extract the md from a plan" - Converting plan.json to markd

How to use this skill

Skill file

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:

Also use for:

Usage

To sync plan.md with plan.json:

python3 ${CLAUDE_SKILL_DIR}/scripts/extract.py /path/to/plan.json

The script:

  1. Reads the plan.json file
  2. Extracts the content key (which contains the full markdown plan)
  3. Fixes any escaped line breaks (\n -> actual newlines)
  4. Writes to plan.md in 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
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.