К основному содержанию
скилл CX Codex

goal-writer — скилл для Claude Code: цели и установка

Помогает превратить расплывчатую задачу в проверяемую цель для режима /goal. Пригодится, когда агент должен работать без постоянного надзора и знать, где остановиться.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add autohandai/code-cli --skill goal-writer -a claude-code
Открыть на GitHub

Что делает goal-writer

Скилл помогает определить конечный результат, способ его проверить, границы изменений и условие остановки. Агент сначала предлагает формулировку на языке пользователя и показывает её целиком. Запускать цель можно только после явного согласия; несколько согласованных целей ставятся в заданном порядке в очередь.

Для проверки подойдут тесты, команды, поиск по проекту или измеримый результат. Для большой задачи можно задать цикл повторных проверок и описать, что делать при блокере. Бюджет токенов не добавляется без просьбы или явной необходимости. Без одобрения точного текста цель не запускается — это важно, если вы рассчитываете на автономную работу.

Какие задачи решает

  • превратить расплывчатую задачу в проверяемую цель
  • задать границы файлов и областей, которые можно менять
  • выбрать проверку, подтверждающую завершение работы
  • описать, когда остановиться и сообщить о блокере

Примеры запросов агенту

  • Помоги сформулировать цель для исправления падающих тестов и укажи, чем проверить результат.
  • Составь цель для миграции модуля: ограничь область изменений и добавь правило остановки при блокере.
  • Улучши эту цель для режима /goal, чтобы результат можно было проверить командой.

Как установить goal-writer

1Через Skills CLI (Vercel)

npx skills add autohandai/code-cli --skill goal-writer -a claude-code

2Вручную: положить файлы

~/.claude/skills/goal-writer/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/goal-writer/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о goal-writer

Как установить goal-writer в Claude Code?

Выполните npx skills add autohandai/code-cli --skill goal-writer -a claude-code. Файл скилла находится по пути ~/.claude/skills/goal-writer/SKILL.md.

Что делает goal-writer?

Помогает составить проверяемые цели для режима /goal: с конечным результатом, доказательством выполнения, границами и условием остановки. Перед запуском агент должен показать полный текст и получить ваше согласие.

Как goal-writer задаёт границы и проверку цели?

Он предлагает указать, какие файлы или области можно менять, а какие проверки подтвердят результат. При блокере цель может предписывать остановиться и сообщить о проблеме, а не продолжать работу любой ценой.

Исходный текст

SKILL.md · Apache-2.0
---
name: goal-writer
description: Help the user craft one or more well-specified `/goal` objectives for goal mode. Use when the user asks for help writing, refining, or improving goals, goal-mode objectives, completion contracts, autonomous run objectives, proof, boundaries, or stop rules.
---

# Write a good goal

Help the user turn a rough intention into one or more `/goal` objectives that
goal mode can pursue across many turns without supervision. A goal is not a task
description; it is a completion contract. It says what must become true, how
that truth is proven, where the work may and may not reach, and when to stop and
report.

Drafting and starting are separate steps. Settle the wording first. Only once
the user has approved the exact objective should you call `create_goal`. When
the user approves more than one objective, call `create_goal` for each approved
goal in the intended order; the first starts and the rest are queued.

## Ask, do not narrate choices

When a decision has concrete options, use the host's user-question tool if it is
available. Do not write a prose menu and ask the user to answer in free text.

Examples of choices that should use the tool:

- narrow vs broad scope
- which proof command to use
- whether to include a budget
- which budget size
- which permission mode or execution mode to use

If no user-question tool is available, fall back to a short plain-text question
with clearly labeled options and wait. Open-ended questions are fine in prose.

## Rules

- Only help when the user asks for goal-writing help. Do not wrap ordinary work
  in goal mode on your own.
- Write the draft in the user's language.
- Always show the full drafted objective before starting it.
- Get explicit approval before calling `create_goal`.
- Draft with the user. Offer a draft, explain the choices, invite changes, and
  revise.
- If the user wants a looser goal after you point out the trade-off, write their
  version. Do not keep relitigating it.
- Do not set a token budget unless the user asks or the work is clearly
  open-ended enough that a budget is useful.
- Never bake a turn cap into the objective text.

## What makes a goal good

Strong goals define proof, not effort.

Include as many of these as the task warrants:

1. End state: the concrete condition that must become true.
2. Proof: observable evidence, preferably a command, test, search, file, or
   metric.
3. Boundaries: what may be touched and what is off limits.
4. Loop: how to iterate, such as rerunning a check after each change.
5. Stop rule: when to stop and report instead of forcing a pass.

Queue-shaped goals work best: failing tests, open issues, error traces, files to
migrate, rows to process. Lean on existing verification: tests, CI, typechecks,
lint, evals, browser checks, or zero-match searches.

## Workflow

1. Understand the intention. Ask what outcome the user wants and what would
   prove it is done.
2. Resolve missing finish lines or checks. When options are concrete, use the
   user-question tool.
3. Draft concrete objectives. Keep simple work to one or two sentences; use a
   short structured block for larger work.
4. Present the full draft and explain the finish line, proof, boundaries, and
   stop rule for each goal.
5. Revise until the user approves the exact text and order.
6. Start approved goals with `create_goal` only after approval. Include a token
   budget only if one was agreed.
7. If the user approves structured acceptance criteria, show the exact criteria
   alongside the full objective and pass them as `acceptance_criteria`. Never
   add criteria the user did not approve. Completion then requires
   `completion_evidence`: a summary and a passed check with evidence for each
   criterion. Receipts record reported evidence, not independent verification;
   time or tokens spent cannot substitute for a passing check.

## Reusable shape

```text
<What must become true.>
Done when <command/search/state that proves it>.
Scope: only <files/area>; do not <off-limits action>.
Loop: <how to iterate, such as rerun the check after each change>.
If <blocking condition>, stop and report instead of forcing a pass.
```

Use only the lines that help. A small task can be a single clear sentence.

## Examples

Weak: `Find all bugs in this codebase.`

Strong: `Fix every test in test/auth that currently fails, rerun npm test until
it exits 0, change no file outside test/ or src/auth, and report anything you
cannot fix with its location and why.`

Weak: `Optimize the project.`

Strong: `Migrate the payment module to the new API, make npm test -- payment
exit 0, keep the diff limited to payment-related files, and stop and ask before
touching shared infrastructure.`

Weak: `Make it faster.`

Strong: `Make renderFrame at least 3x faster measured by the bench/render
benchmark; if you cannot reach 3x after several attempts, report the best result
and why.`

## Common mistakes

| Mistake | Better |
| --- | --- |
| Starting or suggesting a goal the user did not ask for | Only draft a goal once the user asks |
| Drafting in the wrong language | Match the user's language |
| Running before the user sees the exact text | Show the full draft and get agreement |
| Burying a discrete choice in prose | Use the user-question tool when available |
| Specifying effort | Specify proof |
| Setting a budget unprompted | Suggest a budget only when useful |
| No blocked path | Add an explicit stop-and-report rule |
| No way to verify completion | Anchor to tests, search, metric, file, or inspectable check |

© autohandai · Apache-2.0 · autohandai/code-cli

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

Все скиллы по теме «Тексты и документация» →
grill-with-docs Matt Pocock Скилл проводит жёсткое интервью по плану или дизайну и по ходу создаёт ADR и глоссарий. Подойдёт перед началом сложной разработки. 1 219 756установок skill-creator официальный anthropics Помогает создать новый скилл, доработать существующий и проверить результат через тестовые промпты и оценки. 414 180установок setup-matt-pocock-skills Matt Pocock Скилл настраивает репозиторий для инженерных скиллов Matt Pocock: задаёт трекер задач, метки триажа и расположение доменной документации. Запустите его перед первым использованием остальных скиллов. 1 052 851установок handoff Matt Pocock Собирает текущий диалог в документ передачи, чтобы другой агент продолжил работу с нужным контекстом. Нужен при смене сессии или исполнителя. 1 038 491установок triage Matt Pocock Скилл проводит issue и внешние PR через роли триажа, проверку и подготовку брифа для агента. Подойдёт мейнтейнеру, который разбирает очередь задач. 990 453установок domain-modeling Matt Pocock Скилл помогает уточнять термины проекта, вести GLOSSARY.md и фиксировать архитектурные решения в ADR. Нужен, когда модель предметной области меняется. 876 391установок

Из того же набора14

systematic-debugging Скилл запрещает агенту угадывать правки наугад при сбоях тестов или пайплайнов. Он обязывает сначала воспроизвести ошибку, подтвердить первопричину и написать регрессионный тест. CX Codex +1 ★ 211звёзд репо root-cause-analysis Скилл исследует инциденты, регрессии и повторяющиеся сбои, чтобы найти причину в устройстве системы. Помогает подготовить постмортем с хронологией событий и мерами профилактики. CX Codex +1 ★ 211звёзд репо pull-request-review Скилл для ревью пул-реквеста или диффа ветки: проверяет, что изменение делает заявленное, ищет дефекты и выдаёт замечания по приоритету. CX Codex +1 ★ 211звёзд репо performance-analysis Инструктирует агента измерять задержки и потребление памяти до правок кода. Помогает найти узкое место с цифрами и проверить результат повторным тестом. CX Codex +1 ★ 211звёзд репо git-analysis Отвечает на вопросы по истории git: что менялось, кто автор строки, где сломалось. Полезен при ревью, поиске регрессий и черновике changelog. CX Codex +1 ★ 211звёзд репо extension-builder Скилл создаёт, адаптирует и тестирует расширения для Autohand Code по текстовому описанию или из пакетов экосистемы Pi. Пригодится при разработке кастомных команд и агентов. CX Codex +1 ★ 211звёзд репо deep-research Скилл проводит исследование по нескольким источникам и сохраняет цитируемый отчёт. Подходит для вопросов, где нужно сверять факты и фиксировать пробелы. CX Codex +1 ★ 211звёзд репо data-scientist Скилл для разбора данных прямо в рабочей папке: находит файлы, чистит их и считает метрики воспроизводимым кодом. CX Codex +1 ★ 211звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой