longranger2/claude-gpt-workflow/plan-execute
Claude Code and agent skill by longranger2/claude-gpt-workflow
- community
Checking that the SKILL.md file is still in the repository.
Use when the user says "/plan-execute", "plan execute", "implement plan", or "execute plan" and provides a finalized plan file path to carry out. Claude orchestrates, Codex writes code, Claude reviews, and Codex fixes issues until the quality bar is met.
Install
npx vskill@latest install longranger2/claude-gpt-workflow/plan-executeSKILL.md
Plan Execute Skill
Purpose
When the user runs /plan-execute {plan-file-path}, start the "orchestrated plan execution" workflow:
- I (Claude Code) ask Codex to implement the code according to the plan.
- After Codex finishes, I review the generated code.
- I write the review into the
reviews/directory, then ask Codex to inspect and fix the issues. - Repeat until the code quality bar is met.
Core principle: I do not write or edit code myself. I only do two things: review code and orchestrate Codex. All code changes, including implementation and fixes, are performed by Codex.
Usage
Session Reuse
After each Codex invocation, extract session_id=xxx from the script output and save it as the session ID for the current task. In later Codex calls for the same task, pass --session <id> to reuse context so Codex remembers prior implementation and fix history instead of rereading the entire codebase every time.
My Workflow (Claude Code)
Step 1: Read the Plan and Split Execution Steps
Read the specified plan file and understand:
- The overall goal and scope of the plan
- The list of files to create or modify
- The order of implementation steps
- Relevant project conventions, especially from
CLAUDE.md
If the plan already contains a checklist (- [ ] / - [x]), use those items as execution units. If it does not define clear steps, split the work into reasonable batches, with no more than 5 file changes per batch.
Step 2: Ask Codex to Implement the Code
Use the /codex skill and give Codex the following instruction:
Step 3: Review Codex Output (My Core Responsibility)
After Codex finishes, I perform a code review. Important: I only read code and write reviews. I never directly modify source files.
- Read every changed file and review them one by one.
- Compare against the plan to verify the implementation matches the intended design.
- Check code quality, including:
- Whether it violates the Code Quality Hard Limits
- Whether it introduces security risks
- Whether error handling is missing
- Whether naming and organization are clear
- Whether it follows existing project patterns
- Run `pnpm build` to confirm the compilation status.
Step 4: Write the Review and Hand Fixes Back to Codex
Append the review to reviews/{topic}-review.md (shared with plan-review):
If Verdict: NEEDS_FIX, call /codex and have Codex fix the issues instead of editing them myself:
If Verdict: APPROVED, skip to Step 6.
Step 5: Verify Fixes and Iterate
After Codex applies fixes, I review again, still without editing code directly:
- Check whether each issue was truly fixed
- Check whether the fixes introduced new problems
- If issues remain, write a new review round and hand it back to Codex for another fix pass (repeat Step 4)
- If everything passes, mark the review as
Verdict: APPROVED
Step 6: Update Plan Progress
After each batch is completed, ask Codex to update the checklist in the plan file (- [ ] -> - [x]). If unfinished steps remain, go back to Step 2 for the next batch. Once all work is complete, move to the wrap-up.
Step 7: Wrap Up
Report the following to the user:
- Which steps were completed
- How many code review rounds were needed
- Which major issues were fixed
- Final build status
- List of changed files
- Path to the review log file
Review Severity Levels
| Level | Meaning | Must Fix | |
|---|---|---|---|
| Critical | Causes runtime failures or security vulnerabilities | Yes | |
| High | Violates project conventions or has obvious design flaws | Yes | |
| Medium | Code quality issue that should be improved | Recommended | |
| Low | Style or preference issue | Optional | |
| Suggestion | Optimization suggestion | Optional |
Verdict rules:
- If any Critical or High issue exists ->
NEEDS_FIX - If all issues are Medium or below ->
APPROVEDwith optional improvement notes
File Convention
- Share the same review file as
plan-review:reviews/{topic}-review.md {topic}is the plan file name without.md- Both plan review rounds and code review rounds are appended to the same file
- Distinguish them by heading:
## Round {N}for plan review and## Code Review Round {N}for code review
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplan-execute/SKILL.md
Popularity
- Repository stars
- 68
- Repository forks
- 8
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/longranger2/claude-gpt-workflow/plan-execute)