Goals closeout: turn a finished goal into a pull request. Use after P4 is accepted and the user wants the work published. Stops at the pull request and never merges. Not for building (P3), review (P4), or merging, which only the user does.
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 Ship?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/shivamgupta42-goals-ship)
---
name: goals-ship
description: "Goals closeout: turn a finished goal into a pull request. Use after P4 is accepted and the user wants the work published. Stops at the pull request and never merges. Not for building (P3), review (P4), or merging, which only the user does."
---
# Goals Ship
Publish what the goal proved, and nothing else. The user does the merging.
## Outcome rules, never traded away
| Rule | Measured by |
|---|---|
| 1. The pull request holds only the goal's own files. | After committing, `git diff --name-only <default branch>...HEAD` lists only P3 `changed_files` plus `.goals/GOAL.md` and `.goals/goal-state.json`. New files were staged by name. |
| 2. No secret file is in it. | That same list was checked against step 4's patterns; any hit stopped the run. A loose one outside the goal stayed unstaged. |
| 3. Nothing red ships. | `goals finish` exited 0 right before the commit. |
| 4. Nothing is merged and history is never rewritten. | The commands you ran include no merge, force-push, amend, rebase or reset. |
| 5. The pull request tells the truth. | Its body lists real checks and every `known_gaps` entry; the link is recorded in Goals. |
## Steps
1. **Check readiness.** Run `goals finish`. A non-zero exit means stop and
report why; do not patch around it. It refreshes `.goals/`, which this
skill commits. Confirm `git branch --show-current` is the goal's branch,
not the default branch.
2. **Check the tool.** Run `gh auth status`. Without a working, signed-in
`gh`, halt and report that to the user, who can install it or sign in. Don't
substitute raw API calls, tokens or the web page.
3. **Gather the goal's files.** `git diff --name-only <default branch>...HEAD`
shows what earlier commits hold. `git status --short` shows what is
still loose. Stage a loose path only if the P3 evidence (`changed_files`)
or `.goals/` accounts for it; anything else is someone else's work, so
leave it and say so in the pull request. Read checks and `known_gaps` in
`.goals/GOAL.md`.
4. **Refuse secrets.** Check every path that is, or will be, in the pull
request: committed on the branch, or about to be staged because the
goal accounts for it. Patterns: `.env*`, `*.pem`, `*.key`, `*.p12`,
`id_rsa*`, `*credentials*`, `*secret*`, keystores, or text holding a token
or private key. On a hit, stop and name the file. Don't commit, hide or
move it, and don't rewrite history to remove it; the user decides. A
loose secret-looking file outside the goal is no reason to stop: leave it
unstaged, ship the goal's files, and name it in the body.
5. **Commit what is left.** If anything is loose, `git add <path> <path>` for
each file by name, never `git add -A` or `git add .`, then commit with a
message saying what changed and why. Nothing loose means nothing to commit.
6. **Push.** `git push -u origin <branch>`, with the branch named. If it is
refused, stop and report; never force.
7. **Open the pull request.** If `gh pr view` finds one, update its body with
`gh pr edit --body-file` instead. Otherwise run `goals merge-check`, keep
its findings, write the body to a file, and run
`gh pr create --base <default branch> --body-file <file>`. Never `--fill`.
Body sections:
- What changed and why, from the goal's objective.
- Proof: each check run and its real result.
- Known gaps, copied from the evidence, plus merge risks.
- What still needs the user's eyes.
8. **Record the link.** `goals decision record "Open the pull request" --choice "<PR url>" --by agent --phase P4 --evidence "<PR url>"`.
Decisions show on the dashboard and in the next session's handoff, so the
link survives a fresh session. It lives in Goals' event log, not in the PR.
9. **Hand back.** Give the link and say it is waiting for the user to read it
and merge it. Stop. Merging, deleting branches and removing worktrees are
the user's to do.
## 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.