Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

session-log

БесплатноЗапускает вложенные скриптыНе проверен

Durable on-disk memory for agent work in a repo, kept in an untracked .notes/ directory at the top of the working tree: an execution plan per body of work…

Roasbeefот Roasbeef★ 33 звезды на GitHub

Об этом скилле

Session log

Context compacts, sessions end, and worktrees get picked up days later. What survives is what was written to disk where the next session will look. This skill keeps that record in .notes/ at the top of the working tree, out of git, in four files that each change in one way:

File Holds Changes by
plans/<slug>.md One body of work: goal, exit criteria, steps, cut list, decisions Edited in place; it is current state
notebook.md Dated entries: progress, discoveries, blockers, decisions Append only, newest entry first
execution.md How work gets done in this repo: gates, hazards that cost time Addendum only
next.md The handoff: where the tree is, what to do next, rulings, what is open Rewritten at the end of a body of work

The plan says where the work is going, the notebook says what happened, the execution file says how not to repeat a mistake, and the handoff says where the next session should start. Keep each fact in one of them.

scripts/notes.sh holds the mechanical parts. notes.sh init creates the directory and adds .notes/ to the repository's info/exclude, which every worktree shares, so no tracked file changes. notes.sh status prints the summary the SessionStart hook shows. Orient first, then run init before the first write in a tree.

NOTES=$(~/.claude/skills/session-log/scripts/notes.sh init)

Orient (no arguments)

The first action after a compaction, and when a fresh session continues earlier work.

  1. Run notes.sh status. If it reports nothing and there is no .notes/, say there is no record for this tree and suggest plan. If it reports legacy .sessions/ files, import them (below) before anything else.
  2. Read next.md if it exists, every plan with status: active, and the newest two notebook entries. Read the headings of execution.md, and the whole of any hazard that touches the next step.
  3. Check the record against the tree: current branch and HEAD against the plan's branch and baseline, uncommitted changes, and the most recent commits since the baseline. A step marked done whose commit is missing, or work committed but not ticked, is reported, not silently fixed.
  4. Report in at most ten lines: the plan, the next unchecked step, open blockers, and any mismatch from step 3. Then continue the work. Do not re-derive anything the record already settles.

Importing a legacy .sessions/ record

Read .sessions/active/*.md and everything under .sessions/journal/; the journal's progress.md is often newer than the active file. Treat the record as a previous edition and sort each claim against the tree: still true, now false, or cannot verify.

  • Steps still open go into a plan named for the work, not the old shortname. If none are open, or the old goal was open-ended, build the plan from what the tree shows remains.
  • Gotchas that cost time become hazards in execution.md.
  • Today's notebook entry records the now-false claims, so the next reader learns how the tree moved.
  • Leave .sessions/ in place. If git ls-files .sessions is non-empty, say so: removing tracked files is a commit, and that is the user's call.

plan "<goal>"

Start a body of work, or revise the active one.

  • If an active plan already covers this goal, edit it in place and bump updated. If a different plan is active, ask whether the new goal replaces it, runs beside it, or waits.
  • Otherwise copy assets/plan.md to plans/<slug>.md, with a short kebab-case slug named for the work. Fill the baseline from git rev-parse --short HEAD and today's date.
  • Every exit criterion and every step's done-when clause is a check a fresh session can run. "Tests pass" is not a check; go test ./htlcswitch/... exits 0 is.
  • The cut list is the highest-value section. Write down what the plan does not do.
  • If /ideate or plan mode already produced a plan, transcribe it here instead of planning twice. Before transcribing steps from a design doc or spec, read any later decisions that amend it (merge notes, review rulings, addenda); the doc is often the stale one.

Revise the plan when the work changes direction: rewrite the steps, and record why in a decision entry. The plan is current state, so it never carries struck-out history; the notebook does.

progress, discovery, blocker, decision

Record as work happens. The notebook has one heading per day and topic, newest heading first; bullets under a heading go in the order they happened. Append under today's heading for the topic, creating it if missing:

## 2026-10-27 — <plan slug or topic>

- **Progress.** Step 2 done: the batch path dedupes node announcements
  across batches; `go test ./discovery/...` exits 0 at a1b2c3d.
- **Discovery.** `FetchChanAnns` resets `nodePubsSent` per call
  (`discovery/chan_series.go:280`), so hubs repeat in every batch.
- **Blocker.
Полный SKILL.md на GitHub

Установить session-log в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Grep
Glob
Bash
AskUserQuestion

Вложенные файлы

assets/plan.mdscripts/notes.sh

FAQ

Что делает скилл session-log?

Durable on-disk memory for agent work in a repo, kept in an untracked .notes/ directory at the top of the working tree: an execution plan per body of work (goal, exit criteria, steps with done-when checks, cut list, decisions), an append-only dated notebook of progress, discoveries, blockers, and decisions, a repo-specific execution.md of gates and hazards, and a next.md handoff rewritten at the end of each body of work. Run with no arguments to orient (always the first action after a context compaction or in a fresh session that continues earlier work), `plan` to start or update a plan, `progress|discovery|blocker|decision` to record as work happens, `hazard` when something cost real time, and `handoff` to close out. Modeled on the next.md, notebook.md, and execution.md layout in roasbeef/loom.

Как установить скилл session-log?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл session-log запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить session-log с