Skip to content
Back to skills

Goals Review

ASecurity

Goals phase P4 (Review): a fresh-context helper tries to break the finished change; grade it against the agreed criteria and fix serious findings in a capped loop. Use when `goals next` shows P4. Not for building (P3), writing checks (goals-test) or shipping (goals-ship).

  • 17 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentsgoc#bashawsgit

Works with

  • claude code

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add ShivamGupta42/goals --skill goals-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Goals Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Goals Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shivamgupta42-goals-review/badge)](https://www.skillsdirectory.com/skills/shivamgupta42-goals-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: goals-review
description: "Goals phase P4 (Review): a fresh-context helper tries to break the finished change; grade it against the agreed criteria and fix serious findings in a capped loop. Use when `goals next` shows P4. Not for building (P3), writing checks (goals-test) or shipping (goals-ship)."
---

# Goals Review

Authors see what they meant. A fresh reviewer sees what is there.

## Outcome rules, never traded away

| Rule | Measured by |
|---|---|
| 1. Someone other than the author reviews. | A helper ran in P4, after P3 was accepted; a `manual` P4 check gives its findings. Otherwise `known_gaps` says so. |
| 2. Every agreed criterion is graded on the real change. | `REVIEW.md` grades each `DP-`, `A-` and `P#.C#` id: met (rerunnable check or `path:line`), partly, unmet or unknown. |
| 3. The loop ends on zero serious findings or at the cap. | The last round lists no open serious finding, or a `needs_user` checkpoint lists what must change. |
| 4. No finding disappears quietly. | Each serious finding is fixed and re-reviewed, or `REVIEW.md` says why it was dropped. |
| 5. The limits hold. | At most 3 helper rounds and 3 runs of `goals phase review P4`; nothing after BLOCKED. |

## Steps

1. **Pin the scope.** Diff from the real base
   (`git merge-base HEAD <default branch>`) plus loose P3 `changed_files`.
   Collect the criteria (`goals next`, `goals assess journey --json`) and P3
   evidence. Finding no change or no criteria means BLOCKED (step 7).
2. **Brief a fresh helper** through the host's helper-agent tool (`Task` or
   `Agent` in Claude Code). Give it the diff, the criteria and the evidence,
   nothing else: no summary, no verdict, no hint of what you expect. Never
   skip this for a small or prose change. Ask it to:
   - break the change: find an input, line or sentence that fails a criterion;
   - check every claim, number and name against its source;
   - flag leftovers (debug prints, scratch files) and repeated flaws;
   - rank findings serious (wrong, unsafe, criterion unmet) or minor, each
     with where, how it fails, and the fix;
   - pose 3 questions whose answers would sink its biggest findings, answer
     them, and withdraw what falls.
3. **Check each finding yourself**: reproduce it or read the line.
   Rejecting or downgrading one needs a written reason.
4. **Log the round** in `REVIEW.md`, beside the evidence draft, under
   `## Round <n>`: findings with rank and status, and criterion grades. A
   missing test is not missing behaviour; open the source. Changes nobody
   asked for are scope creep.
5. **Fix serious findings** the `goals-build` way: proof, change, rerun.
   Search for the same root cause; repair matches within this goal, put the
   rest in `known_gaps`. Minor findings are only listed.
6. **Re-review with a new helper**, briefed the same way, on the new diff.
   Serious findings your fixes caused count. Stop at a round with none or
   after round 3.
7. **BLOCKED.** At the cap or with context missing, record
   `goals checkpoint record <PHASE> review-blocked --kind approval --status needs_user --needs-user --title "<what blocks>" --summary "<each change needed to pass>"`.
   Stop reviewing; do not accept.
8. **Close a clean loop.** Record evidence, `goals phase verify P4`,
   `goals phase review P4`, then `goals phase accept P4`. The engine prints
   BLOCKED on a phase's third failed review, counted across all fixes. On
   BLOCKED in any phase, stop and go to step 7; never retry.

**No helper tool, or refused?** Don't retry. Review it yourself, add
"Self-review only; no helper agent" to `known_gaps`, and never call a
self-review independent.

## Recording proof

```json
{
  "changed_files": ["src/report.py"],
  "verifications": [
    {"covers": "P4.C1", "kind": "auto", "command": "pytest -q"},
    {"covers": "P4.C2", "kind": "auto", "command": "grep -q '^## Round' <review-path>"},
    {"covers": "P4.C2", "kind": "manual", "rationale": "Helper review, round 1: off-by-one in date range, fixed. Round 2: nothing serious."},
    {"covers": "P4.C3", "kind": "auto", "command": "goals dashboard >/dev/null"}
  ]
}
```

```bash
goals phase evidence P4 --file <evidence-draft>
goals phase verify P4
```

## 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.