/claude-leverage:session-log [topic-one-liner] [--noninteractive]from claude-leverage
Writes a session log when a working session ends (user says thanks/tomorrow/wrap up, or 3+ commits with no log). Distills conversation into a short markdown file for future continuity.
Ships in claude-leverage. 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.
None: SKILL.md is the whole skill.
At the end of a working session, writes a short distilled summary to
docs/sessions/YYYY-MM-DD-<topic>.md following the standard template
(context, what was done, key decisions, open questions, next steps,
references). The next agent — yours tomorrow, or a different agent in a
month — reads it to pick up the thread without re-discovering everything
cold.
This is not a transcript dump. Raw chat is noise the next agent can't usefully consume. A session log is the distillate: 30–80 lines that compress a multi-hour conversation into actionable continuity.
Find target dir. Default docs/sessions/ from the current repo
root (via git rev-parse --show-toplevel). If it doesn't exist, ask
"create it now?" — if yes, create with a stub README.md describing
the convention (mirror the one shipped with this plugin at
docs/sessions/README.md).
Get topic. If $ARGUMENTS has a positional, use it. Otherwise
ask: "what was this session about, in one line?" Convert to
kebab-case for the filename: 2026-05-24-pivot-cleanup.md.
Compute filename. YYYY-MM-DD-<kebab-topic>.md. If a file with
the same name exists (multiple sessions on the same topic same day),
suffix with -2, -3, etc.
Gather facts from git and the conversation:
git rev-parse --abbrev-ref HEAD.git log --oneline -10. Use the
first commit hash after the previous session's HEAD if you
can infer it, otherwise show the last 5–10 with the human
confirming which ones belong./adr-new for any
decision likely to be re-litigated).Generate the file using the template
(docs/sessions/template.md).
Substitute:
<TODO> for anything you
genuinely can't infer; better an honest gap than a fabrication.Confidentiality pass. This file gets committed and pushed — sometimes to a public repo. Before writing, scrub anything that shouldn't ship: secrets, credentials, client names, internal business reasoning, security details. Keep the decision, drop the sensitive specific ("chose vendor X for pricing reasons" → "chose the payments vendor; rationale in the private tracker"). See the Hard rule below.
Hard cap on length. If your draft is over 80 lines, reduce. Cut the "what was done" bullets to the load-bearing 5–8. Move tactical detail into commit messages, ADRs, or specs. The session log is pointers + decisions + next-actions, not a play-by-play.
Report. Print the file path and one line:
"Next session: start by reading
docs/sessions/<filename>plus the last 1–2 prior session logs."
docs/sessions/ is
a tracked, durable artifact that gets pushed, sometimes to a public
repo. Never put secrets, credentials, client names, internal business
reasoning, or security details in a log. The block-secrets-precommit
hook catches key-shaped secrets at commit time, but it cannot catch
confidential prose — that judgment is yours. Distill the sensitive
specifics out: write "the client" not the name; reference a private
ticket by ID rather than pasting its content. Gitignore docs/sessions/
only as a last resort in a fully public repo where even the distilled
narrative shouldn't ship (you lose cross-agent continuity if you do).docs/specs/<file>."-2, -3 suffix) rather than editing.--noninteractive — skip prompts; requires a topic positional.
Pulls everything else from git + the visible conversation context.--dry-run — print the generated content to stdout, write nothing.A useful rule of thumb: would the next agent benefit from knowing where this session left off? If yes, write the log. If no, skip.
/adr-new — when a session produces a load-bearing decision,
record it as an ADR in addition to the session log. The session log
is "what happened this session"; the ADR is "the durable reason for
the choice."AIDEV-TODO(by: YYYY-MM-DD): and reference from the session log.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub filip-podstavec/claude-leverage --plugin claude-leverage16 skills in this plugin
/adr-newUSE WHEN a load-bearing architectural decision is being made in conversation (database / framework / auth model / integration choice, or explicit rejection of an alternative) — one likely to be re-litigated in 6 months without the rationale. Bootstraps a numbered MADR ADR in `docs/adr/`, asks for context + decision + alternatives, updates the index. Immutable status once accepted. See `docs/adr/README.md` for the convention; full Do/Don't list in this SKILL body.
/arch-mapUSE WHEN setting up a repo for AI-first work, after a major directory restructure, or when an agent needs structured answers like "which modules are stable?" / "what's the public surface of X?" that the prose AGENTS.md doesn't give cheaply. Bootstraps or refreshes `architecture.yml` at repo root — machine-readable module metadata (path / role / stability / public_surface / depends_on / paired_with / owners). Hand-curated; the skill drafts, the user confirms. See ADR 0005 for why this file lives at root and why YAML over JSON.
/codex-sandboxUSE WHEN setting up Codex CLI in a project, tightening sandbox for prod/CI, or when user asks about Codex permissions. Interactive helper for per-project `.codex/config.toml`: `dev` / `prod` / `custom` profiles, idempotent via markers, preserves unmanaged config below the block. Codex-only artifact.
/conventions-initUSE WHEN setting up a repo for AI-first work (after /init-repo), or when the context-surface hook should start feeding repo conventions to agents before edits. Drafts `conventions.yml` at repo root: per-kind casing (inferred from the code), a vague-name denylist seed, directory roles, and a hand-filled house-rules block. Idempotent — never overwrites a populated file; re-running prints suggested additions for manual merge. Read-only on code; never invents house rules. After writing, run /refresh-context-map so the hook picks it up.
/dynamic-checkUSE WHEN the user explicitly asks to verify that this repo's DECLARED build/test/lint commands actually run ("does the quickstart work?", "validate the commands in AGENTS.md"), typically after /repo-doctor or /repo-doctor --semantic raised suspicion. Executes only commands the repo itself declares (AGENTS.md build/test blocks, README quickstart), with preview + explicit confirmation, denylist tripwire, and timeouts. Advisory — results never enter /repo-doctor's deterministic score (ADR 0012/0013). Opt-in by invocation; never fired by hooks or other skills.
/explain-diffUSE WHEN about to open a PR, when teammate asks "what's in this diff?", or when returning to a branch and needing self-orientation. Three modes: `--for pr|review|self`. Reads `git diff HEAD` (or passed range), returns 3–5 bullet plain-English narration. Read-only — defers security/test concerns to other skills.
Other plugins' skills for the same job