ultragoal
Durable multi-goal workflow that persists plan/ledger artifacts under .omc/ultragoal and prints Claude /goal handoff text for the active session
- 0
- Installs
- —
- Rating
- —
- Success rate
- 1
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 5e7ce571174288c4… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
<Use_When>
- The user wants a durable, repo-native way to track an ultragoal across multiple Claude sessions or worktrees
- The work is large enough to warrant multiple ordered "stories" with attempt counts and per-story evidence
- The user wants the final completion gated behind ai-slop-cleaner + verification + $code-review
- The user wants the active Claude
/goaldirective coordinated with the ledger so that a session restart does not lose progress </Use_When>
<Do_Not_Use_When>
- The task is a single small change — use direct delegation or
ralphinstead - The user wants the assistant to literally invoke
/goalitself from the shell — that is not possible;omc ultragoalonly writes artifacts and prints handoff text - The user wants a planning-only artifact with no execution loop — use
planinstead </Do_Not_Use_When>
<Why_This_Exists>
Claude Code /goal is a session-scoped Stop hook: it blocks the session from stopping until a condition holds, and auto-clears on success. That is a great single-session execution primitive, but it loses state across sessions and does not by itself enforce a final review gate. omc ultragoal adds a durable plan, ledger, and gating layer so a long multi-step initiative can survive session restarts, fresh worktrees, and review iterations while still leveraging Claude /goal to keep the active agent focused.
</Why_This_Exists>
<How_To_Use>
-
Create a plan from a brief:
omc ultragoal create-goals --brief-file plan.mdOr with explicit stories:
omc ultragoal create-goals --brief "ship the migration" \ --goal "Schema::Add new columns" \ --goal "Backfill::Backfill rows in batches" \ --goal "Cutover::Drop old columns and switch reads"The default mode is
aggregate(one Claude/goalcovers the run). Pass--claude-goal-mode per-storyif you want each story to have its own/goal.Multi-repo workspaces / parallel sessions: when several Claude sessions in the same workspace need to run
/ultragoalconcurrently, pass either--plan-id <stable-id>or--auto-plan-idso the plan is written to.omc/ultragoal/plans/{planId}/instead of the shared single-plan path. Without that flag, two sessions creating goals would clobber each other.--auto-plan-idderives{epochMs}-{slug}from the brief title. Then thread the same--plan-id <id>through every subsequent subcommand in that session. Useomc ultragoal list-plansto enumerate available planIds when needed. -
Start (or resume) the next story:
omc ultragoal complete-goals [<goal-id>]With no goal id, this preserves the default behavior of resuming the active story or starting the first pending story. With a goal id, OMC targets exactly that named eligible story (a pending story may be started out of order); it never falls through to another story. An active different story, unknown id, completed or review-blocked story, or failed story without
--retry-failedis rejected without state mutation. An in-progress named story is resumed without changing its attempt. This prints a model-facing handoff. The active Claude agent must read it and:- Set the native Claude
/goalfor this session — in standalone Claude Code neither the shell nor the agent can do it, so ask the user to type/goal <aggregate objective>and wait.--claude-goal-json(below) reconciles the ledger only and does not satisfy the PreToolUse/goalguard, which blocks tool calls until it observes an active/goal. - Work the story.
- When the story is complete (and for the final story, after the full quality gate), share back a snapshot of the active
/goalstate and callcheckpoint.
- Set the native Claude
-
Checkpoint a story:
omc ultragoal checkpoint --goal-id G001-... --status complete \ --evidence "tests/files/PR evidence" \ --claude-goal-json '{"goal":{"objective":"...","status":"active"}}'For the final story, also pass
--quality-gate-jsoncontainingaiSlopCleaner,verification, andcodeReviewevidence (all clean). -
If the final review is not clean, do NOT mark complete. Record blockers:
omc ultragoal record-review-blockers --goal-id G00X-... \ --title "Resolve final code-review blockers" \ --objective "Fix the listed review findings and rerun final gates" \ --evidence "<the review findings>" \ --claude-goal-json '{"goal":{"objective":"...","status":"active"}}'This appends a new blocker story and keeps the Claude
/goalactive. -
Inspect state at any time:
omc ultragoal status
</How_To_Use>
<Important_Limitations>
- The shell cannot invoke or mutate Claude Code
/goalstate.omc ultragoalonly persists durable artifacts and prints instructions that the active Claude agent reads and acts on in-session. - Snapshots passed via
--claude-goal-jsonare model-supplied proof of the active/goalstate; OMC validates them for textual consistency with the plan's expected objective and ledger event, but it cannot independently observe Claude/goalstate. They do not satisfy the PreToolUse/goalguard, which requires an actual active/goal— a host-injected snapshot or the native/goalthe user set in-session. - If the Claude
/goalslash command is renamed or restructured, only the handoff wording needs to change; the reconciliation logic is name-agnostic. </Important_Limitations>
Parallel session caveats
- Multi-repo workspace anchor: drop a
.omc-workspacemarker at the parent directory so multiple sessions across sub-repos share one.omc/. Resolution order:OMC_STATE_DIR > .omc-workspace > git > cwd. Seedocs/REFERENCE.md. - Session id source: OMC_SESSION_ID env var wins in CLI contexts; hook payload data.session_id wins in hook contexts.
- Plan id (when applicable): Two runs in the same workspace will conflict on shared plan artifacts. Use distinct session IDs (the hook payload session_id is already isolated per Claude Code session), or pass
--plan-idto keep parallel ultragoal runs on separate ledgers. - Parallel verdict: supported (each session writes its own session-scoped state)
Files
1- SKILL.md
8e590dc3706.8 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from Yeachan-Heo/oh-my-claudecode8
Writing-time discipline for documents agents consume (the five surfaces, specs, tickets, .omc/skills/) — every rule checkable and carrying a why, steps before reference, one meaning in one home, no restating what the environment already says. Mandatory at drydock seed generation and the launch C5 se
Clean AI-generated code slop with a regression-safe, deletion-first workflow and optional reviewer-only mode
Periodic architecture survey — walks the module graph and reports ranked deepening candidates (shallow modules, hypothetical seams, logic behind the wrong seam). Survey, not rescue: it finds candidates and hands them to the captain; it never refactors on its own.
Process-first advisor routing for Claude, Codex, Gemini, Antigravity, Grok, or Cursor via `omc ask`, with artifact capture and no raw CLI assembly
Shipyard's navigator — chart a foggy effort (destination unclear, questions not yet stateable) into a map of decision tickets on the repo's issue tracker, then work the frontier one ticket per session until the way is clear, and hand the collapsed decisions to /launch as a mission brief. Wayfinding,
Full autonomous execution from idea to working code
Stateful single-mission improvement loop with strict evaluator contract, markdown decision logs, and max-runtime stop behavior
Cancel any active OMC mode (autopilot, ralph, ultragoal, swarm, ultrapilot, pipeline, team) and clean up retired legacy state