/mad-skills:logbook [loop | review | archive | resolve <n|a<n>> | dismiss <n|a<n>> | restore a<n> | add <text>]from mad-skills
Shows the project's outstanding work in two sections: recommended lifecycle stages (computed from repo state) and a durable backlog of follow-ups. Lets you resolve, dismiss, add, or review items; `loop` auto-fixes and ships trivial follow-ups.
Ships in mad-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
When this skill is invoked, IMMEDIATELY output the banner below before doing anything else.
Pick ONE tagline at random — vary your choice each time.
CRITICAL: Reproduce the banner EXACTLY character-for-character, including the diagonal / glyph before the name.
{tagline}
/$$ /$$ /$$$$$$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$
/$$/| $$ /$$__ $$ /$$__ $$| $$__ $$ /$$__ $$ /$$__ $$| $$ /$$/
/$$/ | $$ | $$ \ $$| $$ \__/| $$ \ $$| $$ \ $$| $$ \ $$| $$ /$$/
/$$/ | $$ | $$ | $$| $$ /$$$$| $$$$$$$ | $$ | $$| $$ | $$| $$$$$/
/$$/ | $$ | $$ | $$| $$|_ $$| $$__ $$| $$ | $$| $$ | $$| $$ $$
/$$/ | $$ | $$ | $$| $$ \ $$| $$ \ $$| $$ | $$| $$ | $$| $$\ $$
/$$/ | $$$$$$$$| $$$$$$/| $$$$$$/| $$$$$$$/| $$$$$$/| $$$$$$/| $$ \ $$
|__/ |________/ \______/ \______/ |_______/ \______/ \______/ |__/ \__/
Taglines:
After the banner, show parsed input:
┌─ Input ────────────────────────────────────────
│ Action: {show | review | resolve | dismiss | add}
│ Arg: {value or "none"}
└────────────────────────────────────────────────
Status icons: ✅ done · ⏭️ skipped · ⚠️ degraded
/logbook is the project's single "what's on deck" surface. It answers the
one question — what should I do on this project? — that used to be split across
two commands, so you no longer have to guess which to call. It shows two things,
clearly separated because they're genuinely different:
LOGBOOK.md (plus a
sibling LOGBOOK-ARCHIVE.md for anything that outgrows it — see Notes) at
the repo root and auto-captured at /build and /ship debrief so they
survive /clear. Personal and durable.It is read-only by default — it never runs a skill or resolves an item
unless you choose to. The one exception is /logbook loop, an explicit opt-in
that fixes, verifies, and ships the items that need no human input. All operations go through session-guard.cjs subcommands
(single source of truth) and degrade to a no-op on a malformed file.
| Dependency | Type | Check | Required | Resolution | Detail |
|---|---|---|---|---|---|
| session-guard | skill | ls "${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/slamb2k}/hooks/session-guard.cjs" | yes | stop | Ships with the mad-skills plugin; reinstall if missing |
| git | cli | git --version | no | fallback | Lifecycle signature + linked-item auto-resolve degrade without git (CON-002/CON-003) |
| ship | skill | ls .claude/skills/ship/SKILL.md ~/.claude/skills/ship/SKILL.md ~/.claude/plugins/marketplaces/slamb2k/skills/ship/SKILL.md 2>/dev/null | no | fallback | loop only: without it, commit + push the branch and report the manual PR command instead of shipping |
The argument selects the action (default is show when empty):
loop → loop: fix every follow-up that needs no human input, ship, then
rank the top 5 that need youreview → review follow-ups (assisted cleanup)archive → archive view (lists relocated-open items with a-prefixed
selectors, plus historical archive entries for context)resolve <n|a<n>> → resolve follow-up n (hot file) or archive item andismiss <n|a<n>> → dismiss follow-up n (hot file) or archive item anrestore a<n> → restore a relocated archive item back into the hot fileadd <text> → add a manual follow-upSet _R once for every command below:
_R="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/slamb2k}"
Query both surfaces, then render one box:
node "$_R/hooks/session-guard.cjs" lifecycle-next # 🧭 lifecycle
node "$_R/hooks/session-guard.cjs" logbook-list # 📌 follow-ups
lifecycle-next prints a LIFECYCLE_NEXT_BEGIN … LIFECYCLE_NEXT_END block;
each line is {command} — {why} (with [previously dismissed] where relevant),
or none when nothing applies. A pending build handoff (left by /speccy or
/build --handoff) is always the first line, printed as
/build <spec> — spec ready since <date>, so it shows as the first "on deck" item.logbook-list prints a LOGBOOK_LIST_BEGIN … LOGBOOK_LIST_END block of category
headings + numbered items N. {title} — {source} ({date}) [{link}], or
LOGBOOK_LIST_EMPTY.Render both in a single box. Letter the lifecycle steps (A, B, C…) and keep the follow-up numbers (1, 2, 3…) so the two act-verbs never collide:
┌─ Logbook · What's on deck ─────────────────────
│
│ 🧭 Lifecycle — best-practice stages for this project
│ A. {command} {why}
│ B. {command} {why}
│
│ 📌 Follow-ups — what you said you'd come back to
│ Deferred fixes
│ 1. {title} {source} · {date}
│ Tech debt
│ 2. {title} {source} · {date} 🔗 {link}
│
│ act: resolve <n> · dismiss <n> · add <text> · review · set up <A>
│
└─────────────────────────────────────────────────
Empty-state rules (never fabricate):
none → show ✅ fully caught up — no lifecycle steps apply.LOGBOOK_LIST_EMPTY → show — no open follow-ups.✅ All clear — nothing on deck.
and stop (no verbs footer).Only when the user picks one (or asks). Running a lifecycle step just invokes
that skill (e.g. set up A → invoke /keel). Never run one without the user
choosing it — every lifecycle transition is user-consented. If you want to
prompt, use AskUserQuestion with each listed command plus Not now.
Follow references/loop.md exactly. In short: require a clean tree, /sync,
branch; triage each open item as 🔧 Auto (concrete, locally verifiable,
repo-only) or 🙋 Needs you (decision, credentials/external system, machine
config, "wait until…", or needs a spec — when in doubt, Needs you); fix and
test each Auto item, resolving only verified ones and reverting any that fail;
repeat passes until nothing new resolves (max 3 passes / 10 items); ship via
/ship --next-up-by-caller; then end with the ranked 🙋 Needs you report
(max 5) as the very last output. Never auto-run a lifecycle step, never
dismiss an item, never resolve one that wasn't verified.
node "$_R/hooks/session-guard.cjs" logbook-review
Two tracks:
task#,
spec:, rec:, pr#/commit:) auto-resolve silently; a
LOGBOOK_AUTORESOLVED [...] line means they were already handled.LOGBOOK_REVIEW_BEGIN … LOGBOOK_REVIEW_END block as N. {title} — {reason}
(LOGBOOK_REVIEW_EMPTY = nothing to review).Assisted candidates may mix plain hot-file items (N) with archive-resident
relocated items (aN) in the same block — distinguishable by a (relocated)
suffix on the reason string. Resolving an aN candidate
(logbook-resolve aN) follows the same user-confirmation discipline as any
hot-file candidate; it becomes ordinary archive history, it does not restore
the item to the hot file (see ### restore for that).
For the assisted candidates you MUST get user confirmation before resolving
anything (never silently drop a free-text idea). Present them via
AskUserQuestion (multi-select + a "keep all" escape); for each confirmed item
run logbook-resolve <n>. Anything not confirmed stays open.
Task-linked items (task#): logbook-review runs as a plain Node process and
can't see harness task state, so it does not auto-resolve task# links. After
it, scan the logbook-list output for items annotated [task#<id>]; for each, call
TaskGet <id> — if the task is completed, resolve it silently:
node "$_R/hooks/session-guard.cjs" logbook-resolve <n>.
node "$_R/hooks/session-guard.cjs" logbook-archive
Prints a LOGBOOK_ARCHIVE_BEGIN … LOGBOOK_ARCHIVE_END block: a numbered
a1, a2, … list of still-open items that relocated off the hot file when it
hit cap — actionable via resolve a<n> · dismiss a<n> · restore a<n> —
followed by a -- history (not actionable) -- block of resolved/dismissed
archive entries shown for context only, with no action affordance beyond
display. LOGBOOK_ARCHIVE_EMPTY when nothing has ever relocated.
This is read only on demand — never on the hot path /logbook's default
show output touches (see Notes).
node "$_R/hooks/session-guard.cjs" logbook-resolve <n|a<n>> # done
node "$_R/hooks/session-guard.cjs" logbook-dismiss <n|a<n>> # not done, not wanted
For a plain <n>, both move the follow-up to the Archive section and drop it
from the open list/counts. An a-prefixed selector (e.g. a3) targets
LOGBOOK-ARCHIVE.md's still-open (relocated) items instead of the hot file;
resolving/dismissing one does not move it back to LOGBOOK.md — it
becomes ordinary resolved/dismissed history within the archive file itself.
Confirm the archived title either way.
node "$_R/hooks/session-guard.cjs" logbook-restore a<n>
Moves a still-open archive item back into LOGBOOK.md, clearing its
relocated: marker — it's an ordinary open hot-file item again. If this
pushes the hot file back over cap (40 open items), the system immediately
relocates whatever is now lowest-priority/oldest in the hot file, the same
victim-selection rule as capture-time relocation. Report both the restore and
any resulting relocation to the user — never silent.
Preview first — a manual add is itself always interactive and can breach cap just like an auto-capture:
node "$_R/hooks/session-guard.cjs" logbook-capture-preview '[{"title":"<text>","category":"<category>","source":"manual","date":"<today>"}]'
If would_relocate is non-empty, present the candidate(s) via
AskUserQuestion — same per-item choice pattern as review. Address each
candidate by its title text, not the preview list's ordinal — the preview
numbers candidates in victim-selection order (lowest priority, then oldest
date), which does not match logbook-resolve/logbook-dismiss's plain-number
selector (hot-file display order); the title is matched by substring
regardless of ordering, so it's the only selector guaranteed to hit the right
item. Options per candidate:
node "$_R/hooks/session-guard.cjs" logbook-resolve "<title>"node "$_R/hooks/session-guard.cjs" logbook-dismiss "<title>"node "$_R/hooks/session-guard.cjs" logbook-add "<text>" --category <ideas|fixes|questions|risks|debt> --link <link>
--category (default ideas) and --link are optional. Source is manual,
date is today. Confirm the added item — and if the add itself relocated
another item to make room (the Relocated to archive (cap reached): [...]
line), mention that relocation to the user too. Never silent.
task#<id> (and auto-resolve when that task completes), but the logbook is the
durable backlog, not a task queue. Promote an item to active work with
TaskCreate; don't duplicate.📌 N open follow-ups) on a genuine launch/reconnect — never
on /clear. /logbook is the on-demand, full-picture counterpart.LOGBOOK.md is committed and hand-editable. Keep the - [ ] checkbox shape and
the category headings; the module normalizes the rest on the next write.LOG.md / FOLLOWUPS.md.
The module reads any legacy file and merges its items in (deduped), so a rename
never orphans a backlog. The first write in a project (a capture, resolve, or
add) consolidates everything into LOGBOOK.md and removes the legacy files —
a visible git change. Nothing is lost across the rename./logbook archive, /logbook review), never on the
hot path; /logbook's default (no-argument) output stays byte-for-byte the
same as before this file existed.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
project-management, backlog, task-tracking, lifecycle, follow-ups
Other plugins' skills for the same job
npx claudepluginhub slamb2k/mad-skills --plugin mad-skills14 skills in this plugin
/braceInitialize any project directory with a standard scaffold for AI-assisted development. Creates specs/ and context/ directories, a project AGENTS.md with development workflow and guardrails (plus a CLAUDE.md that just points at it), .gitignore, and branch protection. Idempotent — safe to run on existing projects. Triggers: "init project", "setup brace", "brace", "initialize", "bootstrap", "scaffold"./buildContext-isolated feature development pipeline. Takes a detailed design/plan as argument and executes the full feature-dev lifecycle (explore, question, architect, implement, review, ship) inside subagents so the primary conversation stays compact. Use when you have a well-defined plan and want autonomous execution with minimal context window consumption./distilGenerate multiple unique web design variations for any website or web application. Accepts site specifications from a file (--spec path) or pasted text block. Creates a Vite + React + TypeScript + Tailwind project with Bun and produces N different creative designs accessible at /1, /2, /3, etc. Use when prototyping or exploring design directions for any web interface./dockGenerate container-based release pipelines that build once and promote immutable artifacts through environments (dev → staging → prod). Detects your stack, interviews for infrastructure choices, then outputs deterministic CI/CD files (Dockerfile, workflows, deployment manifests) that run without an LLM. Use when setting up deployment pipelines, containerizing an app, creating release workflows, or connecting CI to container-friendly infrastructure (Azure Container Apps, AWS Fargate, Google Cloud Run, Kubernetes, Dokku, Coolify, CapRover, etc.)./ferryFerry a session's live state across a context reset — persist a waybill document and arm a one-shot handoff so the next fresh session resumes from it. Use when the user types /ferry, says they want to hand off, checkpoint, wrap up, clear context, or start fresh while preserving state, or asks to carry work into a new session with clean optimised context. Captures task, status, next steps, key files, decisions, gotchas and repo state, writes a waybill (outside the repo by default), arms the handoff, and tells the user to /clear. "/ferry clean" lists and removes leftover waybills this skill created./hoistGenerate secure, low-infrastructure release pipelines that publish artifacts directly — language packages (npm, PyPI, crates, RubyGems, NuGet, Go), GitHub Releases with binaries, static sites/Pages, or serverless functions — without building a container image. OIDC/trusted publishing, provenance, idempotent publish guards, and three trigger models (auto-bump with optional approval, tag, manual). The non-container sibling of /dock. Use when releasing a package or app that doesn't ship as a container.