OMA routes slash commands through cto (or brainstorm for brainstorm sessions). Plan state and artifacts are persisted under .oma/ in the workspace directory.
System lifecycle commands stay outside the slash-command surface: oma auth, oma debug, and oma upgrade. oma upgrade follows the stable lane by default and can opt into the alpha lane with --channel alpha.
OMA exposes the command catalog defined in src/commands/catalog.ts.
- Public stable surface:
/plan,/implement,/validate,/roadmap,/roadmap-status,/roadmap-continue - Targeted but non-stable:
/review,/status,/analyze - Advanced orchestration:
/brainstorm,/prompt,/loop
The most common implementation workflow is /plan → /implement → /validate. Roadmap commands extend that flow for multi-phase work.
| Command | Agent | Gate Policy | Description |
|---|---|---|---|
/plan |
cto | none | Create or revise an implementation-ready plan. |
/implement |
cto | redirect_to_plan_if_not_ready | Execute an implementation-ready task from the active plan. |
/validate |
cto | smallest_sufficient_validation | Run the smallest validation scope that proves the requested change. |
/roadmap |
cto | none | Create or revise a roadmap-scale plan. |
/roadmap-status |
cto | none | Summarize current roadmap progress. |
/roadmap-continue |
cto | none | Continue roadmap execution from the current phase. |
These commands are supported for targeted workflows, but they are not the primary launch-stable path.
| Command | Agent | Gate Policy | Description |
|---|---|---|---|
/review |
cto | findings_first | Review a plan, diff, or current workspace with findings-first output. |
/status |
cto | none | Summarize current repo, plan, validation, and execution status. |
/analyze |
cto | facts_before_inference | Investigate a repository, architecture, or target area before execution. |
These commands stay in the catalog for advanced workflows, but they are not part of the public stable launch surface.
| Command | Agent | Gate Policy | Description |
|---|---|---|---|
/brainstorm |
brainstorm | none | Run a structured brainstorm session and persist the artifact. |
/prompt |
cto | none | Convert a brainstorm artifact into a refined downstream prompt. |
/loop |
cto | none | Execute roadmap items through plan → implement → validate. |
These names are not registered in src/commands/catalog.ts and should not appear in product-facing help.
| Command | Status | Notes |
|---|---|---|
/audit |
Unsupported | Use /validate |
/quality-gate |
Unsupported | Use /validate or /review |
/instinct-status |
Unsupported | No public replacement |
/projects |
Unsupported | No public replacement |
/git-clean |
Unsupported | No public replacement |
Commands are registered statically in src/commands/catalog.ts. Each definition declares:
agent— which embedded agent handles executionexecutionIntent— the purpose of the commandoutputContract— required##heading fields in the responsegatePolicy— pre-execution gate enforced byCommandRoutercontrolNotes— injected instructions the agent must followdetailPolicy—always_detailedorstructured_compact
Before execution, CommandRouter injects a <command_control> block that the receiving agent must treat as the authoritative contract for depth, gates, and output shape.
All commands share these required ## headings:
StateDecisionWhyNext
These headings must match exactly because downstream tooling parses markdown by heading name.
/brainstorm runs a structured meta-prompt brainstorm session.
Additional required headings:
QuestionsContradictionsInspirationsArchitecture OptionsRisk SurfaceRecommended Direction
Rules:
- Ask clarifying questions before synthesizing — surface hidden assumptions.
- Identify and surface contradictions in the stated requirements or context.
- Propose patterns, analogies, and architecture options with trade-off rationale.
- Persist the brainstorm artifact to
.oma/prompts/before concluding.
/prompt converts a brainstorm artifact into a refined downstream prompt artifact.
Additional required headings:
Prompt SourcePrompt ArtifactDownstream TargetQuality Assessment
Rules:
- Read the brainstorm artifact from
.oma/prompts/before generating. - Assess prompt quality and flag weak or ambiguous sections.
- Persist the refined prompt artifact to
.oma/prompts/before concluding.
/loop executes roadmap items sequentially or in parallel through plan → implement → validate.
Additional required headings:
Roadmap ItemsCurrent ItemPlan StatusImplementation StatusValidation StatusCompleted ItemsRemaining ItemsBlockers
Rules:
- Read roadmap items from
.oma/roadmap/before beginning. - For each item: plan → implement → validate in sequence.
- Track progress explicitly: completed, current, and remaining items.
- Report completion or surface concrete blockers when execution cannot proceed.
/roadmap is roadmap-scale planning for multi-phase, multi-milestone work.
Additional required headings:
Roadmap ScopePhasesMilestonesDependenciesRisksAssumptions
Rules:
- Follow the
/roadmapflow: scope definition → phase breakdown → milestone sequencing → dependency mapping → risk assessment. - Use
writerfor roadmap persistence operations. - Persist roadmap state to
.oma/roadmap/. - A
/roadmaprun is not complete until roadmap persistence succeeds.
/roadmap-status summarizes the current roadmap state.
Additional required headings:
Current PhaseActive MilestonesProgress SummaryBlockers
Rules:
- Read roadmap state from
.oma/roadmap/before summarizing. - Report the current phase, active milestones, and overall progress clearly.
- Surface blockers and next steps explicitly.
- Keep the answer operational and scoped to roadmap state.
/roadmap-continue advances roadmap execution from the current phase.
Additional required headings:
Execution ScopeCompleted ItemsRemaining ItemsBlockers
Rules:
- Read roadmap state from
.oma/roadmap/before continuing. - Identify the current phase and remaining items.
- Execute the next roadmap item through plan → implement → validate.
- Track completed items and remaining items explicitly.
- Report blockers when execution cannot proceed.
/plan is implementation-grade planning — not a sketch.
Canonical headings:
Metadata,State,Decision,Why,Goal,Non-Goals,ScopeEntry Criteria,Exit Criteria,Deliverables,ConstraintsCurrent State,Impacted Areas,Assumptions,Evidence ContractExecution Mode,Approach,Work Packages,Dependency GraphDelegation Rules,Validation Layers,Failure ClassificationRisk Register,TODO / Deferred,Ownership,Quality GatesOperator Checklist,Closure Output Contract,Decision GatesPhases,Unknowns,Next
Rules:
- Treat this as an implementation-grade planning pass.
- Flow: repo scan → gap analysis → plan-advisor → optional targeted research → clarifications/default assumptions → plan-validator → persistence.
## Phasesmust use unchecked checklist items (- [ ]).- A
/planrun is not complete untilsave_active_plansucceeds. - Call
save_active_planwithoverwrite=truewhen replacing an existing active plan.
Persistence:
- Active plan:
.oma/plans/active.md+.oma/plans/active.json - Archive:
.oma/plans/archive/<plan-id>/plan.md+.oma/plans/archive/<plan-id>/plan.json
/implement continues implementation-ready work from the active plan. If no active plan exists, it redirects to /plan.
Additional required headings:
Preparation,Execution,Execution Scope,PreconditionsPlanned Steps,Assignments and Task Tracking,ChangesValidation,Residual Risks,Blockers / TODOsCompleted Plan Items,Remaining Plan ItemsEvidence Status,Gate Result,Failure ClassificationExit Criteria Evaluation
Rules:
- Read
.oma/plans/active.mdbefore coding when it exists. - If the work is not implementation-ready, redirect to
/planwith concrete gaps. - Progress persistence is not complete until
update_plan_tasksucceeds (allowUpdate=true). - When called with no user arguments and an active plan exists, continue through remaining plan items sequentially until completion or a real blocker.
/validate coordinates the smallest sufficient validation scope for the current workspace.
Additional required headings:
Validation Scope,Checks,Failures,Remediation,Residual Risks
Rules:
- Choose the smallest validation scope that still proves the requested change.
- Prefer explicit build, test, lint, and typecheck evidence where relevant.
- If validation cannot run, explain exactly why and what evidence is still missing.
/review is findings-first and severity-ordered when problems exist.
Additional required headings:
Findings,Evidence,Risks
Rules:
- Determine whether the target is a plan, a code change, or current workspace state.
- Return findings first and severity-ordered when problems exist.
- Prioritize correctness, regressions, missing validation, and unnecessary complexity.
/analyze is for repository, architecture, or target-area investigation before implementation.
Additional required headings:
Question,Findings,Evidence,Options,Recommendation,Uncertainty
Rules:
- Inspect relevant code paths before concluding.
- Separate facts from inferences and call out uncertainty explicitly.
- Prefer concrete repo findings over generic advice.
- Do not implement changes unless the user explicitly converts this into execution.
/status summarizes the current workspace state without expanding into a full plan.
Additional required headings:
Current Focus,Validation Status,Blockers,Next Milestone
Rules:
- Keep the answer operational and scoped to the current workspace state.
- Mention git/worktree, validation, blockers, and next milestone only when they materially change the answer.
- Do not inflate status into a planning document.