Goals phase P3 (Execute): make the smallest complete change and back every P3 criterion with checks Goals runs itself. Use when `goals next` shows P3 or a fix is needed inside an active goal. Not for finding what the user wants (P1), choosing the approach (P2) or reviewing the result (P4).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Goals Build?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/shivamgupta42-goals-build)
---
name: goals-build
description: "Goals phase P3 (Execute): make the smallest complete change and back every P3 criterion with checks Goals runs itself. Use when `goals next` shows P3 or a fix is needed inside an active goal. Not for finding what the user wants (P1), choosing the approach (P2) or reviewing the result (P4)."
---
# Goals Build
Change as little as you can, finish it, and let the engine judge it.
## Outcome rules, never traded away
| Rule | Measured by |
|---|---|
| 1. Every P3 criterion and P3-bound `DP-` or `A-` id has a passing `auto` check. | `goals phase verify P3` and `goals phase review P3` both pass. |
| 2. Every check can fail. | Each new check was seen failing once, or `notes` says why not. |
| 3. The change stays inside the goal. | Every path `git status --short` lists outside `.goals/` is in `changed_files`. |
| 4. Nothing only the user can decide is decided silently. | Each such choice is a `needs_user` checkpoint shown by `goals check`. |
| 5. Gaps are written down. | Unfinished work and out-of-scope findings are in `known_gaps`. |
## Steps
1. **Load the phase.** Read the P3 criteria and `DP-` ids from `goals next`,
and the `A-` ids from `goals assess journey --json`. A product question
still open gets a checkpoint (last section); build around it. Coding calls
are yours.
2. **Order the work.** Start a task once its inputs are known.
Build the parts most likely to fail, or that others lean on, first; then one
slim path from input to output; polish last. Parallel helpers get separate
files.
3. **Invert before you build.** Ask how the change might break (edge values,
empty or huge input, concurrency, failing dependencies). Each
one gets a fix, a test that exercises it, or a load-bearing assumption:
`goals assess assume "I'm assuming ..." --depends --phase P3`.
4. **Make the smallest complete change.** No side refactors, no abstraction for
a need nobody stated. Error paths and tests are part of the change.
5. **For every fix:** write down what will prove it, make the change, run that
proof, and confirm nearby code still works. Then search the repo for
the same root cause. Fix the copies inside this goal's scope; list the rest
in `known_gaps` and leave them alone.
6. **If evidence shows the plan won't work,** pause just the tasks it touches.
Mark the assumption broken
(`goals assess assume "<statement>" --id <A-id> --status broken`) and log the
new approach with `goals decision record`. If the agreed outcome itself must
change, ask the user through a checkpoint; only after their yes run
`goals assess revise --reason "<what changed>"`.
7. **Finished means the engine's checks are green.** Record proof (next
section), run `goals phase review P3`, fix what it flags, then accept with
`goals phase accept P3`.
8. **Commit carefully.** Stage your own files by name, not `git add -A`.
Don't stash, reset or discard someone else's uncommitted work.
## Recording proof
Fill in the evidence draft whose path `goals next` prints:
```json
{
"changed_files": ["src/dates.py", "tests/test_dates.py"],
"verifications": [
{"covers": "P3.C2", "kind": "auto", "command": "pytest tests/test_dates.py -q"},
{"covers": "DP-1a2b3c4d", "kind": "auto", "command": "pytest tests/test_dates.py -q -k leap"}
],
"known_gaps": ["Same bug in scripts/report.py, outside this goal; not changed."],
"notes": "Leap test failed before the fix, passes after."
}
```
```bash
goals phase evidence P3 --file <evidence-draft>
goals phase verify P3
```
- Each `covers` names one id (`P3.C#`, `DP-` or `A-`); every id needs one.
- `DP-` and `A-` ids accept only a passing `auto` check. A `manual` check needs
a `rationale`, covers only `P3.C#`, and never counts under `GOALS_UNATTENDED`.
- Only the engine sets `ran` and `passed`; never claim a pass in prose.
- Re-recording evidence clears results: rerun `goals phase verify P3`.
- A failing check means fixing the code, or the check if it is wrong (say which
in `notes`). Never weaken a check to turn it green.
## When nobody is watching
- An open question must never just sit in chat. Find facts on your own.
- For a routine choice, take the safe default that can be undone and log it:
`goals decision record "<question>" --choice "<what you chose>" --by agent`.
- If the decision belongs to the user, write the question down before you ask:
`goals checkpoint record <PHASE> <id> --kind approval --status needs_user --needs-user --title "<the question>" --summary "<your recommended answer; what it blocks>"`.
Use `--kind understanding` for questions about meaning.
- Next, complete everything the answer cannot change, then hand the turn back.
- Only the user's reply closes that checkpoint. Silence never counts as agreement.
- Reach for `--unverified` only on the user's instruction, such as when the
host has no way to record their answer.