adr-new
USE WHEN a load-bearing architectural decision is being made in conversation (database / framework / auth model / integration choice, or explicit rejection of…
USE WHEN ending a substantial working session — user says "thanks/tomorrow/wrap up", or session shipped 3+ commits with no log today, or user asks for a summary. Distills the conversation into `docs/sessions/YYYY-MM-DD-<topic>.md` (context, what was done, key decisions, open
$ npx -y skills add Filip-Podstavec/claude-leverage --skill session-log --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/session-logContext preview
The summary Claude sees to decide when to auto-load this skill.
USE WHEN ending a substantial working session — user says "thanks/tomorrow/wrap up", or session shipped 3+ commits with no log today, or user asks for a summary. Distills the conversation into `docs/sessions/YYYY-MM-DD-<topic>.md` (context, what was done, key decisions, open
name: session-log description: > USE WHEN ending a substantial working session — user says "thanks/tomorrow/wrap up", or session shipped 3+ commits with no log today, or user asks for a summary. Distills the conversation into `docs/sessions/YYYY-MM-DD-<topic>.md` (context, what was done, key decisions, open questions, next steps). Hard cap ~80 lines. Distillate, NOT transcript. See `docs/sessions/README.md`. allowed-tools: - Read - Write - Edit - Glob - Bash(git rev-parse:*) - Bash(git log:*) - Bash(git branch:*) - Bash(date:*) - Bash(ls:*) argument-hint: "[topic-one-liner] [--noninteractive]"
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.
1. **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`](../../docs/sessions/README.md)).
2. **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`.
3. **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.
4. **Gather facts** from git and the conversation:
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.
the model, have access). Categorize into:
recorded, files moved, skills added. Bullet list.
Link to ADRs if applicable (suggest `/adr-new` for any decision likely to be re-litigated).
5. **Generate the file** using the template ([`docs/sessions/template.md`](../../docs/sessions/template.md)). Substitute:
genuinely can't infer; better an honest gap than a fabrication.
6. **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.
7. **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.
8. **Report.** Print the file path and one line: > "Next session: start by reading `docs/sessions/<filename>` plus > the last 1–2 prior session logs."
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).
conversation," push back. The full conversation is in Claude Code's session history; the journal is for future-agent consumption.
conversation was mostly planning, write that explicitly: *"Session was planning-only — no code shipped. Plan landed in `docs/specs/<file>`."*
number/hash — never copied into the session log body.
write a new dated file (`-2`, `-3` suffix) rather than editing.
Pulls everything else from git + the visible conversation context.
that shipped a commit chain or made a load-bearing decision.
need a journal entry; the commit message is enough.
an
Make any repo AI-first - write sustainable code from the start, or refactor a legacy codebase to prepare it for agent-driven development.Building blocks for Claude Code: subagents, slash commands, hooks, and workflow patterns. Copy what you need. A working developer's stack for Claude Code.
Repo: Filip-Podstavec/claude-leverage
USE WHEN a load-bearing architectural decision is being made in conversation (database / framework / auth model / integration choice, or explicit rejection of…
USE 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?" /…
USE 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…
USE 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.…
USE WHEN the user explicitly asks to verify that this repo's DECLARED build/test/lint commands actually run ("does the quickstart work?", "validate the…
USE 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…