ワンクリックで
plan
Strategic planning with interview, direct, consensus, and review modes.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Strategic planning with interview, direct, consensus, and review modes.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
[OMAGY] Run an anti-slop cleanup/refactor/deslop workflow
Run read-only deep repository analysis with ranked synthesis, concrete evidence, and explicit Evidence/Inference/Unknown boundaries.
Full OMX-style autonomous pipeline for Omagy: interview, plan, goal execution, optional team, review, and UltraQA.
Professor-critic research workflow with durable Omagy artifacts for agy.
Stateful validator-gated research loop with artifact-gated completion.
[Omagy] Bounded best-practice research wrapper using official/upstream evidence first
| name | plan |
| description | Strategic planning with interview, direct, consensus, and review modes. |
| argument-hint | [--direct|--consensus|--interactive|--deliberate|--review] <task or artifact> |
<Use_When>
--consensus.--review.
</Use_When><Do_Not_Use_When>
/omagy:deep-interview./omagy:autopilot once that entrypoint is available. Until then, finish planning and hand off the approved plan to /omagy:ralph or /omagy:team.<Execution_Policy>
omagy explore before asking the user about repository internals; use the explorer subagent only when the lookup is too broad for the bounded CLI./omagy:best-practice-research before planning when correctness depends on current external best practices, official recommendations, standards, or version-aware upstream behavior.omagy question for material preference, scope, risk, feedback, and approval questions when an attached tmux renderer is available; otherwise use Antigravity native structured input when available, falling back to exactly one plain-text question.omagy question success JSON uses answers[] as the primary contract. For single-question prompts, read answers[0].answer; treat top-level answer only as a legacy fallback. Batch questions[] may be used for non-interview grouped preference or approval prompts when one submitted form is clearer than multiple interruptions; interview mode still asks one question per round.ask_codex(agent_role=...) semantics to agy native invoke_subagent plus omagy plan record-review; do not invent an external omagy ask_codex CLI.omagy plan start to activate mode state and omagy plan complete or omagy plan cancel to terminate it..omagy/plans/, following the same artifact-store model as omx .omx/plans/.omagy plan record, temporary payload files, ad hoc Node files, or shell wrappers for final plan artifact recording.omagy plan handoff --mode <team|ralph>. Do not use Plan handoff to launch /omagy:ultrawork; Ralph may use Ultrawork internally as its execution engine..omagy/state directly. State belongs to the Omagy runtime.
</Execution_Policy><Runtime_Contract> Start every plan run by reading current state and artifacts:
omagy plan status --json
omagy memory read --json
omagy artifact list --json
Use clear independent tool calls for startup status, memory, artifact, and
explore reads. Do not use long &&, ;, or newline shell chains for planning
context gathering because they hide which evidence source produced which result
and make failures harder to audit.
If the prompt points at a .omagy/context, .omagy/specs, .omagy/interviews,
or .omagy/plans artifact, read it through the artifact CLI:
omagy artifact read --input '{"path":"<repo-relative artifact path>","max_bytes":20000}' --json
Plan follows the omx planning boundary: pre-start fact gathering is allowed so
the planner can classify the request and ask informed questions. Before
omagy plan start, keep work limited to mode classification, current plan
status, memory/artifact reads, prompt-targeted artifact reads, and bounded
read-only omagy explore lookups. Do not ask user interview questions, write
drafts, record reviews, write final PRD/test-spec artifacts, or call
omagy plan complete before the selected mode has been started.
Start the selected mode:
omagy plan start --mode direct --input '{"task":"<task>"}' --json
omagy plan start --mode interview --input '{"task":"<task>"}' --json
omagy plan start --mode consensus --input '{"task":"<task>","deliberate":false,"interactive":false}' --json
omagy plan start --mode review --input '{"task":"<plan artifact or review request>"}' --json
Once the mode is selected, omagy plan start is the lifecycle gate for all
mode-owned work. In interview mode, start the plan state before the first
preference/scope/risk question. In direct mode, start before writing final
PRD/test-spec artifacts. In consensus mode, start before planner draft
generation, omagy plan draft, Architect review, Critic review, or any
record-review. In review mode, start before critic evaluation. If planning
cannot continue after start, cancel with omagy plan cancel --json.
Record intermediate drafts before review or approval:
omagy plan draft --input '{"slug":"<slug>","kind":"plan","content":"<markdown draft>"}' --json
Write final artifacts directly as markdown files:
.omagy/plans/prd-<YYYYMMDDTHHMMSSZ>-<slug>.md
.omagy/plans/test-spec-<same-YYYYMMDDTHHMMSSZ>-<same-slug>.md
Use the same timestamp and slug for the PRD and test spec. Do not create
payload.json, .tmp wrappers, .omagy/scratch wrappers, or scripts to
record plan artifacts. Plan artifacts are append-only during planning: never
delete, rename, overwrite, or "clean up" pre-existing .omagy/plans/* files to
make a new plan appear latest. After the files exist, register completion
through the runtime with the exact PRD path that was just written:
omagy plan complete --input '{"prd_path":".omagy/plans/prd-<timestamp>-<slug>.md"}' --json
Run omagy plan complete --input '{"prd_path":"<new-prd-path>"}' --json before
omagy plan handoff --mode <team|ralph> --input '{"prd_path":"<new-prd-path>"}' --json.
Do not run handoff against an incomplete active plan.
Use a real current UTC timestamp for final artifact filenames. If you obtain
the timestamp with date -u +"%Y%m%dT%H%M%SZ", use that value consistently for
both files. Do not rename plan artifacts to invented placeholder timestamps
such as 20260524T000000Z.
Cancel instead of leaving active state if planning stops early:
omagy plan cancel --json
</Runtime_Contract>
| Mode | Trigger | Behavior |
|---|---|---|
| Interview | broad/vague request | ask one focused question at a time, gather repo facts first |
| Direct | --direct or detailed request | generate PRD/test-spec directly |
| Consensus | --consensus | Planner -> Architect -> Critic loop with RALPLAN-DR |
| Interactive Consensus | --consensus --interactive | pauses for structured user feedback and final approval |
| Review | --review | critic-only review of an existing planning artifact |
omagy explore before asking the user. This may happen before omagy plan start only while classifying the request or preparing informed questions.omagy plan start --mode interview ... before the first user preference, scope, risk, or acceptance-criteria question.(skipped), Skip, Esc, timeout, silence, or answer options such as "I have more requirements". In those cases, continue interviewing or cancel the active plan state with omagy plan cancel --json; never write final artifacts, complete the plan, or run handoff.analyst subagent before finalizing when hidden requirements, edge cases, or risk tradeoffs remain material.omagy explore lookups when file/module references are implied.analyst subagent for large-scope, high-risk, or ambiguous direct plans..omagy/plans/, then complete plan state with omagy plan complete --input '{"prd_path":"<new-prd-path>"}' --json.Consensus mode follows omx $plan --consensus: short RALPLAN-DR by default,
deliberate RALPLAN-DR when --deliberate is present or the work is explicitly
high risk: auth/security, data migration, destructive/irreversible changes,
production incident, compliance/PII, or public API breakage.
Consensus must preserve the same explicit scope and cardinality constraints as direct planning. RALPLAN-DR may improve clarity, alternatives, risks, and verification, but it must not broaden the requested product surface. For example, a singular or generic README badge plan stays one selected badge unless the user asked for multiple badges or approved that expansion.
The sequence is strict and sequential:
Planner creates the initial PRD/test-spec draft and compact RALPLAN-DR summary, then records the full draft with omagy plan draft before Architect review:
Launch and record consensus lanes through the Omagy/agy mapping:
omagy plan start --mode consensus --input '{"task":"<task>","deliberate":false,"interactive":false}' --json
The JSON includes invoke_subagent_tool for the next agy native subagent.
It may also include runtime.scope_constraints. Treat that object as a
hard planning contract, not advisory text. Every Planner, Architect, and
Critic lane must receive and enforce it. If the constraint says exactly one
README badge, the draft, final PRD, and test spec must require exactly one
README badge. Do not turn "make it concrete" feedback into npm downloads,
license, Node/runtime, CI, coverage, build, or status badges unless those
categories were explicitly requested or approved by the user.
Invoke that native subagent, then record the lane output:
omagy plan record-review --input '{"role":"planner","verdict":"draft","summary":"<draft summary>"}' --json
Architect reviews the draft for architectural soundness, strongest counterargument, tradeoff tension, and synthesis path. Wait for Architect before Critic. Record the architect result; the returned JSON includes the critic subagent spec.
Critic evaluates principle-option consistency, fair alternatives, risk mitigation, testable acceptance criteria, and concrete verification. Critic runs only after Architect. Record the critic result:
omagy plan record-review --input '{"role":"critic","verdict":"approve|iterate|reject","summary":"<critic review>"}' --json
If Critic says iterate or reject, collect all Architect + Critic feedback, invoke the returned Planner revision subagent, record the revised full draft with omagy plan draft, then repeat Architect -> Critic, up to 5 iterations.
If Critic approves with improvements, deduplicate and categorize accepted suggestions, merge them into the final PRD/test-spec markdown files under .omagy/plans/, and add a brief changelog section.
Accepted improvements may make the selected implementation more precise
with exact markdown, URLs, risks, and verification; they must not add extra
same-kind required items beyond the runtime scope constraint or original
user scope.
If max iterations are reached without approval, present the best current plan with a residual-risk warning and complete only if the user explicitly accepts the risk.
When --interactive is present, use omagy question twice:
/omagy:ralph/omagy:teamNever ask for approval in plain text when omagy question or native structured
input is available.
On user approval, do not implement directly. Invoke /omagy:ralph with the
approved plan path plus staffing guidance for persistent single-owner execution,
or invoke /omagy:team with the approved plan path plus explicit worker roles,
launch hints, and team verification path for coordinated parallel execution.
When /omagy:autopilot is implemented, it becomes the preferred entrypoint for
hands-off ralplan -> ralph -> code-review delivery; Plan still must not
implement source changes itself.
omagy artifact read.critic subagent to evaluate clarity, testability, risks, verification, and handoff quality./omagy:code-review, critic, quality-reviewer, security-reviewer, or verifier as appropriate.<Output_Requirements> Every final PRD must include:
runtime.scope_constraints returned by omagy plan start, including
its original scope quote, selected cardinality, selected default, forbidden
required expansions, and how the PRD/test spec preserves it/omagy:team and /omagy:ralph Launch Hints, and Team Verification PathLaunch via /omagy:team 3:implementer "<approved task>"
Launch via /omagy:ralph "<approved task>"
Every matching test spec must include concrete verification, preferably as a Verification Matrix:
| Risk | Check | Type | Expected Result |
|---|---|---|---|
| <what could fail> | <exact command, static inspection, or manual check> | static/manual/unit/integration/e2e/observability | <pass condition> |
N/A test sections. If a category is not applicable, omit it from the matrix and include the real check that covers the risk.Intermediate drafts are saved to .omagy/drafts/ through omagy plan draft.
Final PRD and test-spec artifacts are saved directly to .omagy/plans/ with
matching timestamped filenames. omagy plan complete --input '{"prd_path":"<new-prd-path>"}' --json records runtime completion state for
the PRD written in this run.
</Output_Requirements>
<Handoff_Gate> After recording PRD and test spec, complete the plan state, then verify the intended handoff before invoking execution:
omagy plan complete --input '{"prd_path":"<new-prd-path>"}' --json
omagy plan handoff --mode team --input '{"prd_path":"<new-prd-path>"}' --json
omagy plan handoff --mode ralph --input '{"prd_path":"<new-prd-path>"}' --json
If the handoff command reports missing or ambiguous launch hints, fix the PRD
markdown file and rerun omagy plan complete --input '{"prd_path":"<new-prd-path>"}' --json. Do not rely on stale or ambient plans.
</Handoff_Gate>
<Tool_Usage>
omagy explore --prompt "<narrow lookup>" --json for bounded read-only codebase fact gathering.explorer only when omagy explore returns unsupported_prompt or the investigation requires richer synthesis.omagy tool-search --input '{"query":"mcp","scope":"all","limit":50}' --json. This is the Omagy adaptation of omx ToolSearch("mcp"); do not pretend agy exposes a literal ToolSearch host API. If no suitable MCP tool exists, fall back to the CLI/subagent path; never block planning on optional MCP capability.omagy question, Antigravity native structured prompt, or
plain-text fallback question, match the user's language. If the user prompt
is Chinese, ask Chinese planning questions and summarize in Chinese while
preserving technical names such as omagy team, tmux, file paths, and
command snippets.invoke_subagent for the ask_codex(agent_role=...) equivalent; persist every lane with omagy plan record-review.omagy plan draft for full planner drafts and revisions before final approval.analyst for hidden requirements, edge cases, risk analysis, and direct/interview plans that are not yet crisp.planner for PRD/test-spec drafting on substantial plans.plan-architect for consensus architecture review.critic for consensus critic and review mode./omagy:ai-slop-cleaner for cleanup/refactor/anti-slop execution plans,
and use quality-reviewer for artifact quality gates or plan review.security-reviewer for auth, secrets, permissions, data exposure, injection, sandbox, plugin, MCP, subprocess, dependency, and compliance risk checks.verifier for PASS/FAIL evidence validation before treating a plan or handoff as complete.omagy plan record-review after each analyst/planner/architect/critic lane result and follow the returned invoke_subagent_tool.omagy plan complete only after matching .omagy/plans/prd-*.md and .omagy/plans/test-spec-*.md files exist.
</Tool_Usage><Stop_Conditions>
--interactive, user can approve and hand off to /omagy:ralph or /omagy:team./omagy:autopilot when available. Until /omagy:autopilot is implemented, record any existing PRD/test-spec and hand off to /omagy:ralph by default./omagy:team for explicit parallel work and /omagy:ralph for persistent execution and verification.<Final_Checklist>
omagy plan start.N/A test sections are used as placeholders..omagy/plans/.omagy plan record, temporary payload file, helper script, or ad hoc wrapper was used to record the plan.omagy plan draft.omagy plan complete, or handoff..omagy/plans/* files were not deleted, renamed, or overwritten during planning.omagy plan complete --input '{"prd_path":"<new-prd-path>"}' --json ran before omagy plan handoff --mode <team|ralph> --input '{"prd_path":"<new-prd-path>"}' --json.omagy plan handoff for the PRD path written in this run.Good: The user says continue after the workflow already has a clear next
step. Continue the current branch of work instead of restarting or re-asking the
same question.
Good: The user changes only the output shape or downstream delivery step,
for example make a PR. Preserve earlier non-conflicting workflow constraints
and apply the update locally.
Bad: The user says continue, and the workflow restarts discovery or stops
before the missing verification or evidence is gathered.
When presenting design choices during interviews, chunk them:
Format each option:
### Option A: <name>
Approach: <one sentence>
Pros: <bullets>
Cons: <bullets>
What is your reaction to this approach?
Before asking any interview question, classify it:
| Type | Examples | Action |
|---|---|---|
| Codebase Fact | "What patterns exist?", "Where is X?" | Explore first; do not ask the user |
| User Preference | "Priority?", "Timeline?" | Ask through omagy question or native structured input |
| Scope Decision | "Include feature Y?" | Ask the user |
| Cardinality Decision | "Add one README badge" but considering two or more badges | Preserve the requested count in direct mode; ask before expanding in interactive/interview mode |
| Requirement | "Performance constraints?" | Ask the user |
| Criterion | Standard |
|---|---|
| Clarity | 80%+ repository-fact claims cite file/line evidence |
| Testability | 90%+ acceptance criteria are concrete |
| Verification | All file references exist or are clearly marked as planned new files |
| Specificity | No vague terms without metrics or pass/fail language |
/omagy:ralplan is an alias for /omagy:plan --consensus. Prefer
/omagy:plan for interview, direct, consensus, and review planning workflows.