一键导入
captain-log
Append to or read the captain's narrative log — decisions, friction, learning, milestones, observations, builds.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Append to or read the captain's narrative log — decisions, friction, learning, milestones, observations, builds.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Captain-only. Fetch, merge origin into master, merge unique worktree work into master, and sync all worktrees. The daily rhythm command. NEVER pushes to remote. NEVER rebases. NEVER resets to origin. Formerly `/sync-all` — v2 rename to captain-actor-verb.
Captain-only. Fetch, merge origin into master, merge unique worktree work into master, and sync all worktrees. The daily rhythm command. NEVER pushes to remote. NEVER rebases. NEVER resets to origin. Formerly `/sync-all` — v2 rename to captain-actor-verb.
Captain-only. Land an agent's prepared branch — switch, verify receipt, bump agency_version, create PR, watch CI, merge, release, notify agent. The single-writer serialization point for agency_version and PR creation. Companion to /pr-submit (the-agency#296 Phase 1 pilot). The `captain-` qualifier in the name signals scope at a glance (complements `paths: []` scoping and the Step-1 runtime precondition).
Captain-only. Quality-check, commit, push, create PR, and cut a release in one flow. The "code is ready" command for captain-owned branches. Every PR is a release. Formerly `/release` — v2 rename to captain-actor-verb.
Captain-only. Review all draft PRs (or a specified PR / project) and generate per-workstream dispatch files routing findings to worktree agents. Formerly `/captain-review` v1 — v2 migration preserves semantics.
Captain-only. Merge a PR safely — true merge commit (never squash, never rebase), branch protection respected, --principal-approved gate for --admin override. Prevents the "accidentally squashed via the wide GitHub UI button" failure mode that has burned the fleet.
基于 SOC 职业分类
| name | captain-log |
| description | Append to or read the captain's narrative log — decisions, friction, learning, milestones, observations, builds. |
| agency-skill-version | 2 |
| when_to_use | Capturing the narrative thread of a session as work happens — decisions made, friction hit, things learned, milestones reached, tools built — or reading back the day's entries. Anti-triggers: do NOT use for session pickup context (use /handoff — handoffs are authoritative state, logs are narrative); do NOT use for ephemeral observations that need routing (use /flag — flags are a queue, logs are append-only history); do NOT use as a transcript (use /transcript — transcripts are full dialogue, logs are curated narrative). |
| argument-hint | [entry text | -c <category> <text> | read [YYYYMMDD] | list | path] |
| paths | [] |
| required_reading | ["agency/REFERENCE-AGENT-DISCIPLINE.md"] |
The captain's log is the narrative thread of a session. Distinct from handoffs (authoritative current state), transcripts (full dialogue), and flags (ephemeral observation queue) — the log captures what we discovered, what we built, what we decided as a rolling daily record. Append-only. Mined later for friction patterns and continual improvement.
Sessions lose their "why" the moment context compacts or the agent ends. Handoffs carry state; transcripts carry dialogue; flags carry open items. None of them carry the narrative — the decisions made, the friction hit, the things built, the things learned — in a form that accumulates across sessions and can be mined for patterns.
The log fills that gap:
The richer the log, the more useful the mining. Log proactively; don't batch.
Before running, Read the files listed in required_reading: frontmatter.
agency/REFERENCE-AGENT-DISCIPLINE.md — Two Priorities + Over/Over-and-out. The log is a working-session practice; it sits inside the agent-discipline frame./captain-log <free text> # appended as observation (default)
/captain-log -c <category> <text> # appended with category
/captain-log --category <category> <text> # long form
/captain-log read # read today's log
/captain-log read YYYYMMDD # read a specific day
/captain-log list # list all log files
/captain-log path # print today's log file path
Categories: decision, friction, learning, milestone, observation (default), build.
Examples:
./agency/tools/captain-log "noticed agents kept cd-ing to main checkout"
./agency/tools/captain-log -c friction "permission prompt for chmod blocked agent boot"
./agency/tools/captain-log -c decision "QGRs go in workstream/quality-gate-reports/, not usr/"
./agency/tools/captain-log -c build "shipped /collaborate skill + tool + hookify warn"
./agency/tools/captain-log read
./agency/tools/captain-log read 20260406
usr/{principal}/captain/ — the tool writes daily log files beneath it.observation if unsure).read [YYYYMMDD]), the target day's file must exist — otherwise the tool reports "no log for that day."The skill is append-only on writes and read-only on reads. Writes never rewrite earlier entries; running twice produces two entries.
read, read YYYYMMDD, list, or path).Invoke the tool with the entry text. Choose the category deliberately — the category is what makes the log mineable later:
./agency/tools/captain-log -c <category> "<entry text>"
-c observation (or omit -c) for general notes that don't fit another bucket.-c decision when the entry is "we chose X over Y because Z" — future sessions read this to understand why the codebase looks the way it does.-c friction when something got in the way — this is a toolification seed.-c learning when you learned something non-obvious — about the codebase, methodology, or principal preferences.-c milestone for significant progress — phase complete, plan delivered, release shipped.-c build when you shipped a tool, skill, hookify rule, or process change — pair "what" with "why."The tool appends to today's file at usr/{principal}/captain/logs/captains-log-{YYYYMMDD}.md with an HH:MM:SS — category heading plus the entry body.
read — read today's log.read YYYYMMDD — read a specific day's log.list — enumerate all log files.path — print today's log file path (for scripting or piping into another tool).The log is a side-channel practice — it never blocks the work. Capture the entry, keep moving. The mining step happens later, at week-end or when friction patterns are being reviewed.
usr/{principal}/captain/logs/. Run /sandbox-init or create the directory.list to see what exists.&, |, ;, or * will lose content./flag or /agency-issue per agency/REFERENCE-AGENT-DISCIPLINE.md./coord-commit or the session-lifecycle skills like any other coord artifact.active (v2 migrated from v1 in the sister-repo V1→V2 migration). Stable surface; the underlying tool at agency/tools/captain-log has the same CLI it did pre-migration.
/handoff — authoritative session pickup state; reads first, log reads for color./flag — ephemeral observation queue; route to discussion, log if the observation is closed./transcript — full dialogue capture; log is curated narrative, not verbatim./dispatch — cross-agent coordination; log captures local narrative, dispatches carry cross-agent findings.agency/tools/captain-log — the underlying tool this skill invokes.OFFENDERS WILL BE FED TO THE — CUTE — ATTACK KITTENS!