Command Palette

Search for a command to run...

Назад к скиллам
скилл № 29292

goal-persistence

Maintain explicit north-star goal for the whole thread that survives compactions and detects drift. USE WHEN: non-trivial task stated, user redirected…

БесплатноБез исполняемых скриптов
MiniMax-AIот MiniMax-AI★ 30 звёзд на GitHub

Установить goal-persistence в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Goal Persistence

The single biggest reason long tasks fail is goal drift: the agent starts doing A, the user asks for B, the conversation accumulates noise, the agent ends up doing C with the justification that "it felt like the right next step." The original goal is gone — or worse, silently replaced by a goal the agent inferred.

This Skill keeps the original goal visible, versioned, and checkable across the whole thread. It is the why of the task; world-state-tracking is the where.

v1.0 update: now incorporates the canonical completion audit and blocked audit from the Codex goal continuation template, so declaring "done" is always evidence-based, not intent-based.

When to use

Activate when any of these is true:

  • A non-trivial task has just been stated (one-time set).
  • The user has redirected the task ("actually, do X instead", "wait, scrap that", "now also include Y") — one-time update.
  • A context-pressure-compact is about to be applied — one-line alignment check.
  • The agent is about to start a tool call that has any chance of being misaligned with the original ask (a "drift self-test").
  • The agent is about to mark the goal as complete or blocked — the completion audit and blocked audit sections apply.

When NOT to use

  • Trivial one-shot tasks. The user request is the goal; no need to persist it.
  • Pure research / exploration ("look into X, no commitment"). A goal implies a deliverable.
  • The goal has not changed in many turns and the agent is on track. Re-writing the goal file is noise.

Process

  1. Pick a single, predictable path. Default (illustrative; actual on-disk path is host-internal): <host-goal-root>/<YYYY-MM-DD>-<short-id>.md. The mcode 0.2.4 public surface does not document a goal file path. The Skills below use <host-goal-root> as a conceptual placeholder; the host determines the actual root. Different from the world-state file (which is "where we are"; this is "what we are doing").

  2. Initialise the goal file at the start of a non-trivial task, in this exact shape:

    # Goal — <short task name>
    
    **Set**: <ISO date>
    **Owner**: <agent name or "main">
    **Last checked**: <ISO timestamp>
    **Version**: 1
    
    ## Original goal (verbatim from the user)
    
    <quote the user's exact words, or "the user wants: <one-sentence paraphrase>" if
    verbatim is impractical>
    
    ## Why this goal
    
    <one paragraph on the user's underlying motivation — what they are really trying
    to achieve, not just the surface request>
    
    ## Success looks like
    
    - <checkable deliverable 1>
    - <checkable deliverable 2>
    
    ## Explicitly out of scope
    
    - <thing the user said is NOT part of this>
    - <adjacent thing the agent might be tempted to do unprompted>
    
    ## Version history
    
    - v1: <ISO timestamp> — initial set
    
  3. Update the goal (bump Version, append a row to Version history) when any of:

    • The user explicitly redirects.
    • The user adds or removes a deliverable.
    • The user expands or narrows the scope.
    • The user re-states the goal in a way that supersedes the prior version.
  4. Drift self-test before any non-trivial tool call: read the goal file, read the tool call, ask "does this tool call serve the current version of the goal?". If no, surface the drift to the user before executing:

    Drift check: this tool call is `<what>`, but the current goal is `<why>`.
    - aligned → continue
    - misaligned (tool call is a side quest) → ask the user before executing
    - superseded (the goal has moved on) → update the goal file first
    
  5. At every context-pressure-compact, the compact summary must reference the goal file by path, not duplicate it. The goal file is the thing that survives; the summary is the thing that gets re-derived.

  6. Before marking the goal complete, run a completion audit (next section).

  7. When the user finally says "done" / "ship it" / "looks good", mark the goal as achieved in the file (Status: achieved, <ISO>) and leave the file in place as part of the audit trail. On a budgeted goal, also report the final token usage to the user (token accountability).

Completion Audit (before declaring done)

Treat completion as unproven until you have evidence for each requirement.

Verifying before declaring "<goal name>" done.

| Requirement                                | Evidence                                          | Result |
|--------------------------------------------|---------------------------------------------------|--------|
| <requirement 1>                            | <how I verified it>                                | ✅     |
| <requirement 2>                            | <how I verified it>                                | ✅     |
| ...                                        | ...
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл goal-persistence?

Maintain explicit north-star goal for the whole thread that survives compactions and detects drift. USE WHEN: non-trivial task stated, user redirected mid-task ("actually do X instead" / "wait scrap that" / "现在改成"), before `context-pressure-compact`, about to mark done, user said "我们的目标是" / "we're trying to" / "我想要的" / "what I want is" / "目标是", agent drifting (tool call no longer serves original ask). TRIGGER PHRASES: "我们的目标", "目标是", "我想要", "we're trying to", "what I want is", "drift", "走偏了", "focus on", "stay focused", "on track", "actually do X instead", "wait scrap that", "现在改成". SKIP WHEN: trivial one-shot task, exploration without commitment, goal hasn't changed in many turns.

Как установить скилл goal-persistence?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл goal-persistence запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить goal-persistence с