Definition-of-done for a work session — verify, sync the bookkeeping (log, index, resume), commit with the vault's conventions. Use for "wrap up", "end the session", "call it a day", or after a milestone.
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 Wrap?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/neamulmorshed-wrap)
---
description: Definition-of-done for a work session — verify, sync the bookkeeping (log, index, resume), commit with the vault's conventions. Use for "wrap up", "end the session", "call it a day", or after a milestone.
argument-hint: "[one-line summary of the session]"
effort: high
---
# /brain:wrap — close the loop on a session
Nothing is "done" until it is verified, logged, and committed. This skill is the manual
counterpart of the automatic wrap hook (which only reminds and self-heals index stats) —
the narrative belongs to you.
## Steps
1. **Verify the work honestly.**
- If `.brain/specs/` has a spec this session worked against: a spec `/brain:review`
already closed (`status: done`) is **trusted** — report its `audit_score`, don't
re-verify. A spec still `active` gets its numbered acceptance criteria checked one
by one, each reported as met / not met. If your own check disagrees with a `done`
spec, report the disagreement and leave the spec's status unchanged — reopening it
is the curator's call (via `/brain:review`).
- If project code changed and the project has obvious checks (package scripts, test
suite, linters), run them — unless the same check already ran this session after the
last source change (a build or review ran it): report that result instead of re-running.
Report failures with output — never paper over them.
- **CI parity:** if the repo has `.github/workflows/*.yml`, run their `run:` steps that
work locally too — CI often checks more than the test suite (an example lint, a build).
- **Domain-pack gate:** if the active workstream's `projects/<name>.md` names a `pack:`
(e.g. `pack: product-design`), open that pack's `checklist.md`
(`${CLAUDE_SKILL_DIR}/../<pack>/checklist.md`) and run it. Report every **open P0** with
its location; an unmet P0 **blocks "done"** unless the curator explicitly accepts it
(record the acceptance in the project-status). Non-P0 items are advisories.
2. **Sync the wiki bookkeeping** (skip whatever already happened during the work):
- `wiki/log.md` — if knowledge work happened this session and has no entry yet, append
`## [YYYY-MM-DD] session | <summary>` (or the specific `ingest |` / `query |` /
`lint |` prefix) with 2–4 lines of what changed. Append-only.
- `wiki/index.md` — ensure new pages are listed and the frontmatter
`source_count` / `page_count` / `updated` match reality.
- `decisions/` — if this session made a real design/architecture decision
(a build or review usually does), distill the **why** into
`decisions/<slug>.md` (template `templates/decision.md`) so the reasoning
survives. The wrap hook nudges once when a build/review session filed none.
3. **Update the resume pointer** — the resume file the session-start hook reported (one per
project: the brain copy, unless only a root `resume.md` holds a real narrative). Rewrite
**"Where we left off"** in 2–4 lines and **"Next steps"** (add new boxes, tick finished ones).
The history of what happened belongs in `wiki/log.md`, not in the resume narrative.
Leave **"Task log (auto)"** alone — hooks own it. Bump `updated:`.
4. **Commit** with the vault conventions — one commit per logical step that isn't
committed yet (`ingest:` / `query:` / `lint:` / `session:` / `feat:` / `schema:` / `research:` /
`plan:` / `build:` / `review:`).
Show what will be staged, then commit. Never commit `Clippings/` staging drops.
**After a push**, check the pushed commit's CI (`gh run list --branch <branch> --limit 3`,
`gh run watch <id>` or `gh run view <id> --log-failed`). Red CI means **not done**: report
the failing step with its output. If `gh` is missing or unauthenticated, say CI was not checked.
5. **Report the outcome** in 3–5 lines: what was verified (with results, CI included), what was logged
and committed, and the top next step now recorded in resume.md.
**Done when:** checks ran (or none applied), log + index + resume reflect the session,
and every logical step is committed.