跳到正文
Skillpedia
任务与项目41k · #7030

ultragoal

它能做什么

这项技能管理由若干有顺序的子目标组成的一项大型工作,并保存进度记录。适合工作跨越多个会话或工作树、且不能丢失进度的人。

适用场景

  • ✓当一项大任务有多个需要长期跟踪的有顺序子目标的时候。
  • ✓当工作将跨越多个 Claude 会话或工作树继续进行的时候。
  • ✓当你希望在任务被标记为完成之前检查最终的完成情况的时候。

技能链接

https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/ultragoal/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/ultragoal/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“这次迁移有八个有顺序的子目标,需要好几个会话才能完成。请设置好,让进度被保存下来,我们可以从中断的地方继续。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会把这些子目标写入项目内的计划和持久日志,并在开始、检查点和阻碍出现时进行记录。它会打印一份交接说明,让当前会话知道如何继续,并把完成状态放在验证之后。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

<Purpose> Ultragoal breaks a brief into an ordered set of goals, records start/checkpoint/blocker/failure events in a durable append-only ledger, and tells the active Claude agent how to drive the Claude Code `/goal` slash command alongside the plan. It does not — and cannot — mutate Claude `/goal` state from the shell; it persists durable repo state and prints a model-facing handoff that the active agent must act on in-session. </Purpose> <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 `/goal` directive 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 `ralph` instead - The user wants the assistant to literally invoke `/goal` itself from the shell — that is not possible; `omc ultragoal` only writes artifacts and prints handoff text - The user wants a planning-only artifact with no execution loop — use `plan` instead </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>

On plugin-only installs where omc is not on PATH, replace the omc prefix in the commands below and in generated handoffs with oh-my-claudecode.js, or use node <plugin-root>/bin/oh-my-claudecode.js.

  1. Create a plan from a brief:

    omc ultragoal create-goals --brief-file plan.md
    

    Or 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 /goal covers the run). Pass --claude-goal-mode per-story if 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 /ultragoal concurrently, pass either --plan-id <stable-id> or --auto-plan-id so 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-id derives {epochMs}-{slug} from the brief title. Then thread the same --plan-id <id> through every subsequent subcommand in that session. Use omc ultragoal list-plans to enumerate available planIds when needed.

  2. 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-failed is 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 /goal for 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 /goal guard, 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 /goal state and call checkpoint.
  3. Checkpoint a story:

    omc ultragoal checkpoint --goal-id G001-... --status complet
    
常见问题

它可以直接控制 Claude 的目标功能吗?

不可以。它保存文件并打印交接文字,由当前会话根据这些文字采取行动。

它适合小改动吗?

不适合。单个小改动更适合直接处理,或使用更简单的循环。

进度保存在哪里?

保存在项目内的一个文件夹中,是一个只追加的日志,会话重启后仍然保留。

详情

作者的原始描述

Durable multi-goal workflow that persists plan/ledger artifacts under .omc/ultragoal and prints Claude /goal handoff text for the active session

repo: Yeachan-Heo/oh-my-claudecode

热度

GitHub 星标
41k
排名
#7030
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能