From context-engineering
Optimize a plan file for efficient context management and agent handoffs.
How this command is triggered — by the user, by Claude, or both
Slash command
/context-engineering:optimize-planThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /optimize-plan Command Optimize a plan file for efficient context management and agent handoffs. ## Usage ## Arguments **path** (optional): - Path to plan file (default: most recent plan in `.claude/plans/`) ## Instructions You are the MINIMAL entry point for plan optimization. Your ONLY job is to: 1. Locate the plan file to optimize 2. Launch the plan-coordinator agent 3. Return the coordinator's output directly ### Step 1: Locate Plan If no path provided: 1. Look in `.claude/plans/` for recent `.md` files 2. If multiple found, use most recently modified 3. If none found, ask ...
Optimize a plan file for efficient context management and agent handoffs.
/optimize-plan [path]
path (optional):
.claude/plans/)You are the MINIMAL entry point for plan optimization. Your ONLY job is to:
If no path provided:
.claude/plans/ for recent .md filesVerify the plan exists by attempting to read it.
Use the Task tool to launch the plan-coordinator agent:
Task: Optimize plan for context efficiency
Agent: agents/plan-coordinator.md
Prompt:
plan_path: [resolved plan file path]
The coordinator will:
Return the coordinator's output DIRECTLY to the user.
DO NOT:
ONLY return the final optimized plan and comparison.
This command is the FIREWALL between main session and optimization work:
/optimize-plan
# Optimizes most recent plan in .claude/plans/
/optimize-plan ~/.claude/plans/my-feature-plan.md
# Optimizes specific plan file
The optimization output includes:
npx claudepluginhub abossenbroek/abossenbroek-claude-plugins --plugin context-engineering/planrefineDeeply critiques and refines an existing plan file or content with code verification, applying TDD/DRY/SOLID principles and task management rules.
/deepen-planEnhances an existing plan file with parallel research agents for each section, adding best practices, optimizations, implementation details, and real-world examples.
/planGuides Claude through a structured planning workflow: context assessment, strategic analysis, execution plan presentation, and user approval before proceeding.
/iterate-planUpdates an existing implementation plan based on feedback. Prompts for plan path or changes if missing, then surgically edits while preserving structure.
/run-planExecutes PLAN.md at given path with intelligent checkpoint-based segmentation: autonomous subagents for tasks, human verifies in main, produces SUMMARY.md, ROADMAP update, and git commit.
/amend-planDiscusses amendments to plan.json via multi-turn conversation and applies confirmed changes by editing files and regenerating plan.md.