Execute Command - Plan-Approve-Execute Composition
Executes complex tasks through automated planning, approval, and implementation workflows.
/plugin marketplace add jleechanorg/claude-commands/plugin install jleechanorg-claude-commands@jleechanorg/claude-commandsWhen this command is invoked, YOU (Claude) must execute these steps immediately: This is NOT documentation - these are COMMANDS to execute right now. Use TodoWrite to track progress through multi-phase workflows.
Action Steps:
Executes /plan command: Follows the complete planning protocol documented in plan.md
/plan calls /guidelines directly for comprehensive consultationAction Steps: Full Approval Workflow:
/preapprove: Prepare approval context, validate plan completeness/autoapprove: Trigger automatic approval mechanism (proceeds silently)/plan: Built-in auto-approval eliminates manual approval requirementAction Steps: Execution: Implements the approved plan from Phase 1
Summary:
/executeruns/plan, auto-approves the generated plan, then performs execution with TodoWrite progress tracking in a single uninterrupted workflow.
Purpose: Execute tasks by composing /plan ā auto-approve ā execute workflow
Usage: /execute or /e - Plan, auto-approve, then execute immediately
The /execute command is a composition of:
/plan - Create detailed implementation plan with TodoWrite/preapprove - Prepare approval context and validation/autoapprove - Automatic approval mechanism (proceeds silently with execution)Simple task:
User: /execute fix the login button styling
Assistant:
Phase 1 - Planning (/plan):
ā
CLAUDE.md read: Current rules, constraints, and protocols understood
ā
Guidelines consultation: `/guidelines` command completed - mistake prevention patterns applied
ā
Anti-patterns avoided: Using Edit tool for existing files, no _v2 or _backup files
Creating implementation plan with TodoWrite...
[Creates checklist: Check styles, Update CSS, Test changes, Commit]
[Displays execution plan using standard format from plan.md]
Execution Plan:
- Task complexity: Simple (direct execution)
- **Execution method: Direct execution** - Simple file edits, no parallelization needed
- Tool requirements: Read, Edit, Bash (guidelines-validated tool selection)
- Implementation approach: Check current styling ā Update CSS ā Test ā Commit
- Expected timeline: ~10 minutes
Phase 2 - Approval Chain:
/preapprove - Validating plan completeness and context
/autoapprove - Proceeding with execution
Phase 3 - Implementation:
[Follows plan: Read current styles, Edit CSS, Test, Commit]
Complex task:
User: /execute implement user authentication system
Assistant:
Phase 1 - Planning (/plan):
ā
CLAUDE.md read: Current rules, constraints, and security protocols understood
ā
Guidelines consultation: Applied security patterns from docs/pr-guidelines/{current}/guidelines.md + docs/pr-guidelines/base-guidelines.md
ā
Anti-patterns avoided: No subprocess shell=True, proper timeout enforcement, explicit error handling
Creating comprehensive implementation plan...
[Creates detailed TodoWrite with multiple subtasks]
[Displays execution plan using standard format from plan.md]
Execution Plan:
- Task complexity: Complex (coordination needed)
- **Execution method: Sequential Tasks** - Security implementation requiring coordination
- Tool requirements: Read, Write, Edit, Bash, Task (guidelines-validated)
- Implementation approach: Research patterns ā Core auth ā Session management ā Testing
- Guidelines applied: Subprocess safety, explicit error handling, 100% test coverage
- Expected timeline: ~45 minutes
Sequential Task Plan:
- Main task: Implement core authentication system
- Task 1: Research existing auth patterns in codebase (using Serena MCP first)
- Task 2: Create security tests and documentation
- Integration: Apply patterns to implementation with test validation
Phase 2 - Approval Chain:
/preapprove - Validating comprehensive plan and dependencies
/autoapprove - Proceeding with implementation
Phase 3 - Implementation:
[Research: Auth patterns across codebase using Serena MCP]
[Implement: Core authentication system systematically]
[Updates TodoWrite progress throughout]
[Integrates findings with implementation]
/plan creates structured approach with detailed display/preapprove + /autoapprove sequence/plan - Just planning, requires manual approval, defines standard plan display format/execute - Planning + built-in auto-approval + execution (no manual approval needed), uses same display format as /plan/preapprove - Prepare approval context and validation/autoapprove - Automatic approval mechanism that satisfies the approval requirement internally. When invoked, /autoapprove treats the plan as if the user explicitly approved it and proceeds directly to the execution phase. This command is integral to the /execute workflow, enabling seamless transitions from planning to implementation without user intervention.Format Consistency: Both /plan and /execute use the centralized plan display format documented in plan.md to ensure consistent presentation of execution strategies and parallelization decisions.