بنقرة واحدة
org-plan
Multi-step implementation method to use when creating, studying or executing a plan. org-plan helper script.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Multi-step implementation method to use when creating, studying or executing a plan. org-plan helper script.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when an implementation goal is complete enough to define coherent automated tests, or when implementation and tests must be brought to green before completion
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Use when reporting that work is complete, fixed, passing, verified, ready for review, or safe to ship
Use when creating or editing reusable agent skills, improving skill discovery metadata, organizing bundled resources, or validating a skill package
| name | org-plan |
| description | Multi-step implementation method to use when creating, studying or executing a plan. org-plan helper script. |
Never over-engineer: prefer the simplest viable approach.
Choose for minimalism and clarity, and use native doc-comments to explain functions. Choose well known algorithms over inventing new ones. Write code that is elegant and readable for humans.
This section governs plan authoring only. Planner is a phase name, not a role in the supervised four-role hierarchy below.
When writing a plan go into detail: even a lesser LLM with low thinking should be able to implement it. Ask for help if you have material doubts. Do not add dependencies unless asked to, suggest them if very useful.
Plan using Org files in ./<topic>.org (short name, no date).
Org rules: headings in execution order; L1 * and L2 **; each
heading has TODO + importance [#A|#B|#C] and a unique kebab-case :ID:.
Every L1 property drawer has exactly one :REVIEW_STATUS:. New L1s start
:REVIEW_STATUS: UNREVIEWED; only reviewer-accepted L1s use REVIEWED. L2 property
drawers never contain :REVIEW_STATUS:.
Use the bundled org-plan helper to validate and change plan state.
See org-plan --help for its commands.
Use next PLAN review to select the first completed unreviewed L1, review PLAN ID REVIEWED after reviewer acceptance, and review PLAN ID UNREVIEWED before a
material correction that does not reopen the L1. Reopening a reviewed L1 as WIP
resets it to UNREVIEWED automatically. Use describe PLAN ID to resolve an ID
to its title and Goal or Why text without parsing the Org file directly.
Plan file includes #+TITLE, #+SUBTITLE, #+DATE, #+KEYWORDS.
Each L1 includes - Effort ::, - Goal ::, - Notes ::.
Each L2 includes - Why ::, - Change ::, - Tests ::, - Done when ::.
Order L1s by implementation dependency so foundations and contracts precede their consumers, then order each L1's L2s by the same rule. Partition L1s into cohesive, reviewable use cases sized for one fresh executor. Make every L1 a standalone handoff: include its relevant starting context, prior-L1 dependencies and outputs, scope, invariants, tests, and acceptance criteria. Avoid hidden cross-L1 context, arbitrary equal-sized splits, and separation of changes that must be understood or validated together. Repartition or add context until a fresh executor can complete the L1 from the plan and repository alone.
Finish the plan:
For each implementation, ask whether the user wants manual or supervised execution. Manual execution is the fallback.
Supervised execution uses exactly three canonical roles:
org-plan-reviewer launch profile, whose
default model is gpt-5.6-sol, when possible. It owns user communication,
launches the supervisor, reviews requested DONE + UNREVIEWED L1s, and never
implements or modifies the plan.org-plan-supervisor, default model
gpt-5.6-luna. It coordinates the executor, performs routine supervision,
enforces evidence gates, requests review verdicts from the director, and
reports only to the director. It never spawns a reviewer.org-plan-executor, default model
gpt-5.6-terra. It is the only code writer, receives implementation and
corrective work, and reports only to the supervisor.The root launch profile and model are recommendations because a skill cannot
change the model of an already-running root conversation. If the root was not
launched with org-plan-reviewer, it adopts the director/reviewer contract in
the current model. Model names are profile defaults, not substitutes for the
canonical role names.
Model identifiers are configuration values; Codex reports unavailable models when a role is spawned. The helper prepares the recommended root reviewer profile plus the supervisor and executor profiles. Manual execution remains the fallback. Machine-readable success records percent-encode unsafe path bytes; unreserved path characters remain unchanged.
The deterministic supervised sequence is:
[agents] max_depth = 2 is required: the director/reviewer is depth zero,
the supervisor is depth one, and the executor is depth two. If nested
spawning is unavailable, stop and tell the user to set this prerequisite;
never edit the user's Codex configuration automatically.fork_turns=none and a fresh,
complete assignment. The supervisor never spawns a reviewer. It sends each
complete review request upward to the director and waits for the director's
explicit verdict.org-plan-executor with fork_turns=none for exactly that L1. Never carry an
executor into another L1 or start the next L1 while the prior executor lives.Only two subagents exist below the active root at once: the supervisor and its single executor. Every assignment and upward review request must stand alone without inherited conversation context.
The executor returns concise evidence summaries only to the supervisor, never raw logs or complete transcripts. The supervisor distills executor results without concealing or reinterpreting findings. Its report and review request to the director contain only decisions, actionable findings, commit IDs or ranges, test commands with pass/fail summaries, dirty-scope results, blockers, and the smallest relevant diagnostic excerpt when a failure cannot be understood without it.
The supervisor runs potentially large repository inspections, test commands, and log processing through an available context-preserving execution path that derives milestone evidence without injecting raw output into conversational context. If no such facility is available, capture output outside conversational context and report only the command, exit status, pass/fail counts, affected scope, and the smallest diagnostic excerpt needed for a failure. Keep short, fixed-output observations direct.
Apply the same rule to director-side verification. Raw command output from these operations must never enter supervisor or director reports. Do not install, require, or silently enable a context-management plugin; context-mode is acceptable only when already available, and the workflow must remain functional without it.
Keep the root active and show the user a brief console update at supervision
start and whenever the active L1 starts, reaches review, is rejected, is
accepted, or becomes blocked. Use L1 POSITION/TOTAL — TITLE: STATUS when the
plan can be described. Keep routine updates to one or two lines.
On the first mention of an L1 or L2 in a supervision run, the supervisor resolves
it with org-plan describe PLAN ID and reports its title plus the concise Goal
or Why description. For L1s, describe also supplies the stable plan position
and total. The exact ID may follow as supplemental data. Later updates may use
the position and title alone and do not repeat the full description. Never
identify a milestone only by an ordinal or raw ID.
On the first mention of a commit, the supervisor resolves its conventional
subject with the simplest read-only Git query, such as
git show -s --format=%s COMMIT, and reports that subject plus a concise purpose
before any optional short hash. A human checkpoint may format this as
subject — purpose (short-hash). Later references may use the subject or
milestone title; a hash remains supplemental and is never the only human-facing
identifier.
This human-prose contract does not alter machine-readable agent assignments. Fresh assignments continue to carry exact plan IDs, commit hashes or ranges, and all other standalone execution boundaries.
By default, the director does not open, request, or forward complete child transcripts. It may inspect a targeted part of a child thread only to investigate a named failure or material ambiguity; any subsequent upstream report remains summarized under this boundary.
The supervisor enforces these acceptance gates:
next PLAN review
to select only DONE + UNREVIEWED L1s. Each fresh upward review request covers
only the selected L1 and its commit range, Goal, Tests, Done-when criteria,
shared-code regression impact, and named evidence. The director may inspect
targeted shared context when necessary, but accepted criteria from REVIEWED
L1s are not reopened.next PLAN review finds nothing, the supervisor skips a review request and
records that review is already current. Final acceptance requires the
supervisor's current full-suite pass and clean intended scope, never a
redundant whole-branch reviewer audit.A reviewer REJECT verdict must contain actionable findings. The supervisor returns the affected item to the executor for correction; the reviewer never fixes it. Acceptance must always be an explicit verdict with evidence.
For UI work, the plan's Tests and Done-when fields must name screenshots, components, viewport sizes, and font-scale combinations. Non-UI work does not require UI artifacts.
Each supervisor assignment states the plan path, target branch and base branch,
all prepared profile and model names, the complete L1/L2 loop, evidence gates,
incremental DONE + UNREVIEWED review selection and status transitions, the
upward director-review request and per-L1 fresh-executor lifecycle, root status
reporting contract, preserved paths, the [agents] max_depth = 2 nesting
requirement, and the stop condition for material ambiguity.
Each executor assignment states the active L1 and complete L2 block, plan path, target branch, its prepared profile and model names, relevant repository starting state and accepted prior-L1 outputs, exact allowed change scope, required tests, the exactly-one-commit rule, preserved paths, the single-L1 lifetime, and the stop condition for material ambiguity.
Each upward review request states the plan path, target branch, the selected L1 ID, position, title, and UNREVIEWED status, its read-only commit range or diff, relevant Goal, Tests, and Done-when acceptance criteria, shared-code regression impact, evidence locations, any applicable named UI screenshot/component/ viewport/font-scale matrix, prohibited actions, preserved paths, the REVIEWED-request skip rule, the stop condition for material ambiguity, and the required structured findings with evidence plus an explicit ACCEPT or REJECT verdict.
Every role receives its checklist as a complete fresh assignment: once for the supervisor and once per L1 executor generation. The director receives a complete upward request for every audit. Never rely on agent memory or use context references such as "continue above", including for nested agents.
The supervisor classifies every failure before routing it:
After correction, the supervisor reruns the applicable L2 or L1 gate and requests a new director verdict while the milestone remains UNREVIEWED. Before a material correction to an accepted milestone, the supervisor explicitly resets it to UNREVIEWED or reopens it as WIP, which performs that reset automatically.
This section governs manual execution only. It is distinct from the supervised
depth-two org-plan-executor role defined above.
When assigned work, don't ask confirmation. Study the plan, check you are on its assigned branch, pose questions at beginning only for material doubts, then start and follow strictly the Loop per L1 and L2. Resolve minor reversible questions from the plan and repository context.
Loop per L1, in order: Take next WIP L1, else first TODO L1 → set WIP. Study L1.
Loop per L2, in order:
Repeat loops until all L1 and L2 in plan are DONE and all L1s are REVIEWED.
Remember: The test execution is part of the editing workflow. Add, update and run tests only when work on L1|L2 lead to code changes, else skip test operations. If an L2 changes any file, you must create one conventional commit before marking that L2 done. An L1 becomes DONE only after all child L2s are DONE and the full suite passes; it becomes REVIEWED only after reviewer acceptance. Do not commit Org plan files. Stop only for material ambiguity.
Update AGENTS.md (LLM-oriented) with changes if relevant.
Print a brief summary for reviewers