ultraplan-codex
Skill27 starsChanged 3 months agoMITView on GitHub
Deprecated for GPT-5.6 Sol. Use native Codex Plan Mode for grounded, decision-complete implementation plans.
In this repository16 other files it gives its agents.
- adversarial-plan-review-codexSkill
- canvas-design-codexSkill
- code-intelligenceSkill
- code-mapper-skillSkill
- deep-planning-codexSkill
- document-handoffSkill
- docx-winSkill
- frontend-design-codexSkill
- grill-me-codexSkill
- grill-with-docs-codexSkill
- handoff-codexSkill
- pptx-winSkill
- repo-map-codexSkill
- verification-plan-codexSkill
- web-artifacts-builder-codexSkill
- xlsx-winSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
35 rules. About 0 are common, 21 are distinctive, and 14 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Run a read-only, multi-phase implementation planning session before coding.
- Distinctive: line 16
Treat the user's invocation text as the planning task.
- Very specific: line 36
Keep .ultraplan/plan.md as UltraPlan's native planning state.
- Very specific: line 38
Treat deep-planning-codex as the owner of proceed gates.
- Very specific: line 43
Check whether .ultraplan/plan.md exists.
- Very specific: line 44
If it exists, read it and ask: "I found an existing plan at .ultraplan/plan.md.
- Very specific: line 45
If starting fresh, create .ultraplan/plan.md with skeleton headings and rough notes only.
- Very specific: line 54
If the current directory is not a Git repository, record Git context: not a git repository in the plan and continue.
- Very specific: line 56
Write discoveries to .ultraplan/plan.md incrementally.
- Very specific: line 63
Update .ultraplan/plan.md immediately with verified findings, paths, and open decisions.
- Distinctive: line 64
Ask the user only for requirements, preferences, tradeoffs, or scope choices that cannot be derived from the code.
- Distinctive: line 70
Start by scanning 3-5 likely key files.
- Distinctive: line 73
Never ask what can be found by reading the repo.
- Distinctive: line 82
Use local exploration for all tasks.
- Distinctive: line 91
Test infrastructure and relevant commands.
- Distinctive: line 100
If parallel design review is explicitly authorized, use Codex default subagents with specific design lenses and require each to return 3-5 …
- Very specific: line 104
Write the final .ultraplan/plan.md in this structure:
- Distinctive: line 132
Keep context to one line.
- Distinctive: line 133
Do not restate the user's request.
- Distinctive: line 134
Do not include multiple approaches.
- Distinctive: line 135
Keep the plan under 40 lines when possible.
- Very specific: line 139
Read references/planning-patterns.md only when the task needs a more detailed plan shape or multi-agent exploration pattern.
- Distinctive: line 143
Before presenting the plan:
- Distinctive: line 145
Read every critical file referenced in the plan.
- Distinctive: line 146
Verify referenced paths, functions, and signatures exist.
- Distinctive: line 149
If multiple design perspectives were used, synthesize them and pick one recommendation.
- Distinctive: line 153
Do not ask for approval through structured question tooling.
- Distinctive: line 157
Use for complex or high-risk plans, including 3+ file edits, backend/API changes, infrastructure changes, data migrations, or …
- Very specific: line 159
If parallel review is explicitly authorized, ask a Codex default subagent to read .ultraplan/plan.md and every critical referenced file, …
- Distinctive: line 164
If subagents are not authorized or unavailable, perform this review locally.
- Distinctive: line 168
When the user later approves execution:
- Very specific: line 170
Read .ultraplan/plan.md one final time.
- Distinctive: line 171
Follow the implementation sequence exactly.
- Distinctive: line 172
Run the verification command from the plan.
- Very specific: line 190
Read references/anti-patterns.md when the plan starts to drift into one of these:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex UltraPlan
Deprecated for GPT-5.6 Sol. Use native Codex Plan Mode for grounded, decision-complete implementation plans. Do not use this package for new work.
Overview
Run a read-only, multi-phase implementation planning session before coding. Produce a concise, file-path-grounded .ultraplan/plan.md that can be executed without guessing.
Activation
Treat the user's invocation text as the planning task.
Enter deep planning mode. This is not quick planning: investigate the codebase, interview the user only for non-discoverable decisions, synthesize one recommended approach, and validate the plan before presenting it.
Read-only rule: Do not create, modify, or delete files except .ultraplan/plan.md while planning. When invoked by deep-planning-codex, .deep-planning/implementation-plan.md and .deep-planning/state.md are also allowed planning artifacts. Do not install dependencies, run migrations, commit, push, format, or edit implementation files. Read commands, searches, tests, and build checks are allowed when they improve the plan and do not intentionally modify tracked source.
Quick Reference
| Need | Use |
| Find files | rg --files |
| Search code | rg |
| Read files | normal file reads or shell read commands |
| Parallel local reads | multi_tool_use.parallel when available |
| Ask user | direct concise questions; use structured question tooling only when available |
| Delegate exploration | Codex subagents only when the user explicitly asked for subagents or parallel agent work |
| Save state | .ultraplan/plan.md |
When Invoked By deep-planning-codex
- Keep
.ultraplan/plan.mdas UltraPlan's native planning state. - Also create or update
.deep-planning/implementation-plan.mdwith the selected execution sequence, key file references, verification command, and a pointer to.ultraplan/plan.md. - Treat
deep-planning-codexas the owner of proceed gates. Do not ask "Ready to execute this plan, or do you want changes?" Instead, end with "Plan ready for verification phase" when the plan is complete. - End with a Deep Planning Delta for the orchestrator to merge into
.deep-planning/state.md. UseREADY_FOR_PROCEEDonly after referenced paths, functions, and verification commands have been checked.
Setup
- Check whether
.ultraplan/plan.mdexists. - If it exists, read it and ask: "I found an existing plan at
.ultraplan/plan.md. Continue refining it, or start fresh?" - If starting fresh, create
.ultraplan/plan.mdwith skeleton headings and rough notes only. - Gather read-only git context:
git status --short
git log --oneline -5
git branch --show-currentIf the current directory is not a Git repository, record Git context: not a git repository in the plan and continue. Do not treat missing git metadata as a blocker for planning small fixtures, archives, or copied code directories.
Write discoveries to .ultraplan/plan.md incrementally. Do not keep planning state only in conversation memory.
Planning Loop
Repeat until the plan is complete:
- Explore the repo with read-only searches and file reads. Prefer reuse of existing utilities, patterns, tests, and APIs before proposing new code.
- Update
.ultraplan/plan.mdimmediately with verified findings, paths, and open decisions. - Ask the user only for requirements, preferences, tradeoffs, or scope choices that cannot be derived from the code.
Phase 1: Requirements Interview
Goal: build a shared understanding of what needs to happen and why.
Start by scanning 3-5 likely key files. Then write the initial skeleton plan and ask the first round of questions if user intent remains ambiguous.
Rules:
- Never ask what can be found by reading the repo.
- Batch related questions.
- Focus on user-owned decisions: requirements, priorities, tradeoffs, edge cases, and scope.
- Scale depth to task complexity.
Phase 2: Deep Codebase Exploration
Goal: understand every file and pattern that affects the plan.
Use local exploration for all tasks. When the user explicitly asked for subagents or parallel agent work, use bounded Codex explorer subagents for independent read-heavy questions:
- Breadth-first discovery: data layer, business logic, presentation/API layer.
- Feature trace: UI to API to service to storage, plus related tests.
- Impact analysis: direct changes and indirect callers/importers.
For each exploration pass, capture:
- Existing functions or utilities to reuse, with
file:line. - Architecture patterns and conventions.
- Dependencies and coupling.
- Test infrastructure and relevant commands.
- Similar features to use as references.
Phase 3: Architecture Design
Goal: design one implementation approach grounded in verified repo facts.
For complex tasks with genuine architectural ambiguity, compare lenses internally: simplicity, performance, maintainability, risk, and incremental migration. Present only the recommended approach unless the user explicitly asks for alternatives.
If parallel design review is explicitly authorized, use Codex default subagents with specific design lenses and require each to return 3-5 critical implementation files. Otherwise, perform the same design comparison locally.
Phase 4: Plan Synthesis
Write the final .ultraplan/plan.md in this structure:
# Implementation Plan: [Title]
## Context
[One line: what is changing and why]
## Changes
### [Component or Module]
- **File**: `path/to/file.ext:line`
- **Change**: [specific change]
- **Reuses**: `existingFunction()` from `path/to/utility.ext:line`
## Implementation Sequence
1. [First dependency-safe step]
2. [Second step]
3. [Final integration step]
## Edge Cases & Risks
- [Risk]: [mitigation]
## Verification
[single command or short command sequence]Rules:
- Keep context to one line.
- Do not restate the user's request.
- Do not include multiple approaches.
- Keep the plan under 40 lines when possible.
- Include exact paths and line references for code reuse.
- End with the verification command.
Read references/planning-patterns.md only when the task needs a more detailed plan shape or multi-agent exploration pattern.
Phase 5: Validation and Approval
Before presenting the plan:
- Read every critical file referenced in the plan.
- Verify referenced paths, functions, and signatures exist.
- Confirm the implementation sequence has no circular dependency.
- Confirm the verification command actually exercises the proposed changes.
- If multiple design perspectives were used, synthesize them and pick one recommendation.
Then present the plan and ask directly: "Ready to execute this plan, or do you want changes?" If the user explicitly requested a report-only planning run, no-implementation output, a forward-test report, or orchestration by deep-planning-codex, do not ask for execution approval; report the plan location, validation status, and any unclear instruction instead.
Do not ask for approval through structured question tooling; presenting the plan is the approval request.
Phase 6: Adversarial Verification
Use for complex or high-risk plans, including 3+ file edits, backend/API changes, infrastructure changes, data migrations, or security-sensitive behavior.
If parallel review is explicitly authorized, ask a Codex default subagent to read .ultraplan/plan.md and every critical referenced file, then report:
PASSif the plan is sound.FAILwith specific issues if the plan is unsafe or wrong.PARTIALif some items cannot be verified.
If subagents are not authorized or unavailable, perform this review locally. Fix the plan and re-review until no blocking issue remains.
Execution Handoff
When the user later approves execution:
- Read
.ultraplan/plan.mdone final time. - Follow the implementation sequence exactly.
- Run the verification command from the plan.
- Report results faithfully, including failures and unrun checks.
The plan file remains as the record of the agreed approach.
Complexity Scaling
| Task size | Exploration | Design review | Interview depth | Expected time |
| Simple: 1-2 files | Local, optional one focused pass | Local | 0-2 questions | 5-10 min |
| Medium: 3-5 files | Local plus 1-2 explorer agents if authorized | Local or one reviewer | 3-5 questions | 15-20 min |
| Complex: many files | 2-3 focused explorer agents if authorized | 1-2 design lenses | Multiple rounds | 25-35 min |
| Major refactor | 3 focused explorer agents if authorized | 2-3 design/review lenses | Extensive | 35-45 min |
Skip delegation for trivial typo fixes, single-line changes, and simple renames.
Common Mistakes
Read references/anti-patterns.md when the plan starts to drift into one of these:
- False completion claims.
- Plan bloat.
- Phantom file references.
- Premature convergence.
- Asking findable questions.
- Alternative paralysis.
- Scope creep.
Portability Notes
For details on how this Codex port maps Claude Code-specific companion behavior, read references/codex-port-notes.md. Do not treat Claude-specific global autonomy, hidden environment variables, or slash-command behavior as Codex-native features.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

