goal

Understand a task fully and write a plan to a file before any code changes. Covers what changes, where, how, in what order, and the consequences. Use when the user types /goal or asks to plan a task before doing it.

Qu'est-ce que goal ?

goal is a Claude Code agent skill that understand a task fully and write a plan to a file before any code changes. Covers what changes, where, how, in what order, and the consequences. Use when the user types /goal or asks to plan a task before doing it.

Compatible avec✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/israelcamp/rstack/tree/HEAD/skills/goal

Installed? Explore more Productivité et collaboration skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Que fait goal ?

Turn the user's request into a clear plan, saved to a file. Do not do the task. Stop at the plan and wait for approval.

Read-only rules

These apply until the user approves the plan:

  • Do not edit, create, or delete any file except the plan file.
  • Only run commands that read: list, search, view, git log, git diff. Do not install, build, migrate, commit, or push.
  • Ask the user when something is unclear. Do not guess.

Steps

1. Understand the request

Follow the reword skill: restate the request, its scope, your assumptions, and your questions. Talk with the user until they confirm it. Do not go on to step 2 until they do.

2. Agree on how far to explore

Ask the user: "Where should I look?" Accept answers like specific files, a folder, a feature, or "search everything."

  • If the user names places, start there. Go further only when you must, and say why.
  • If you find that a smaller set of files is enough, tell the user which ones and why. Do not read the rest.
  • If the user says nothing, explore only as much as the task needs.

3. Rate complexity

Pick one and give the reason in one line:

  • Small: one or two files, no effect on other parts.
  • Medium: several files, or changes that other code depends on.
  • Large: many files, data or schema changes, public APIs, or changes that are hard to undo.

For a small task, keep the plan short. Skip any section that does not apply.

4. Write the plan file

Save it as .goals/<task-name>.md at the project root. <task-name> is a short kebab-case name for the task, like add-csv-export.md. If the file already exists, ask before you overwrite it. The plan file belongs in git. Commit it together with the work.

Fill the Tests section by following the wtt skill.

Use this template:

# <Task name>

## Goal
<The confirmed request from step 1, in one or two sentences.>

## Scope
- Do: <...>
- Don't: <...>

## Complexity
<Small | Medium | Large>: <reason>

## Explored
<The files and folders you read, and what you skipped and why.>

## Changes
For each change:
- **Where:** `path/to/file` (function, section, or line)
- **What:** <what changes>
- **How:** <the approach, in short>

## Order
- [ ] 1. <first step>
- [ ] 2. <next step>
<Say when one step must finish before another starts.>

## Consequences
- <What else this affects: callers, data, tests, users, other features.>
- <Risks, and anything that is hard to undo.>

## Tests
<The test list agreed with the user using the wtt skill.>

## Done when
- <How we check it works: tests, commands, or behavior to see.>

## Open questions
- <Anything still unknown.>

5. Ask for approval

Give the user the file path and a two- or three-line summary. Ask: "Should I go ahead with this plan?" Start the work only after they say yes. If they ask for changes, update the plan file and ask again.

6. Keep the plan up to date while working

After approval, the read-only rules no longer apply. Keep the plan file current:

  • Tick each step in Order (- [x]) when it is done.
  • Write or change only the tests listed in Tests. Ask before adding any other.
  • If something comes up that the plan did not cover, stop and tell the user. Update the plan only after they agree.
  • When resuming in a new session, read the plan file first and continue from the first unticked step.

7. Cut the fluff before finishing

When all steps are ticked, run the ctf skill on the changes made for this task. Only after that, tell the user the task is done.

Skills associés