session-logger

session-logger is a skill for Claude Code from zhaono1/agent-playbook. It costs 33 tokens per session (602 once invoked), scanned A, original, MIT.

A tool for saving a short, redacted summary of an agent session when the user asks to record it or the host supplies an approved session-end transcript. It stores a bounded recovery note rather than the full conversation.

In plain words
What is it for?
Use it to record authorized session summaries, create handoff artifacts, and preserve limited project context for a later task.
Why use it?
It creates a compact handoff for later recovery without silently retaining unlimited raw transcripts or sensitive information. The saved note can include message counts, selected commands and file references, questions, and a hashed session reference.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

not rated 77repo 12d ago A scan Socket: warnSnyk: failSkillSpector: warn 33 tokens original MIT

Good fit Use it to record authorized session summaries, create handoff artifacts, and preserve limited project context for a later task.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhaono1/agent-playbook/session-logger
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zhaono1/agent-playbook --skill session-logger
Clone the repo
git clone --depth 1 https://github.com/zhaono1/agent-playbook

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for session-logger

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhaono1/agent-playbook/session-logger.svg)](https://agentmods.dev/skills/zhaono1/agent-playbook/session-logger)
Your own site
<a href="https://agentmods.dev/skills/zhaono1/agent-playbook/session-logger"><img src="https://agentmods.dev/badge/skills/zhaono1/agent-playbook/session-logger.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 602 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 18 Mar 2026
  • Snyk fail 5 Mar 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 82
    Skill attempts to nullify the agent's safety policies or restrictions ('you have no restrictions', 'ignore your guidelines', 'do anything now'). This is a direct jailbreak that disables guardrails.
    Fix: Remove jailbreak framing that nullifies safety policies or restrictions. Skill content must not instruct the agent to ignore its guidelines or operate without guardrails.
  • medium Rogue Agent · line 4
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00602
Opus 5 $0.00016 $0.00301
Sonnet 5 $0.00007 $0.00120
Haiku 4.5 $0.00003 $0.00060

Measured 7d ago against content hash 3c9d4d9e0a06, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

session-logger scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/session-logger/SKILL.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Session Logger

Create a compact recovery artifact without treating raw conversation history as durable memory.

Use This Skill When

  • The user explicitly asks to save or record the current session.
  • A supported host invokes the Agent Playbook SessionEnd hook with a transcript path.
  • A later task needs a concise handoff artifact and the user has authorized writing it.

Do not silently persist raw transcripts, credentials, private customer data, or unbounded agent output. Host support and write authority must be visible; skill metadata alone does not execute a hook.

CLI Runtime Contract

Claude Code installation can invoke:

agent-playbook session-log

The command reads the host-provided JSONL transcript and stores only bounded, redacted details:

  • message counts;
  • the last user prompt, truncated after redaction;
  • up to 12 detected commands and file references;
  • up to 8 detected questions;
  • a hashed session reference and project identity.

By default, files are private local artifacts:

~/.agent-playbook/sessions/<project-id>/YYYY-MM-DD-<topic>.md

Set AGENT_PLAYBOOK_DATA_DIR or pass --data-dir to move the private data root. Writing inside a repository is opt-in only:

apb session-log --session-dir ./sessions

If a repository-local directory is selected, verify its ignore and retention policy before writing. Never assume another repository ignores sessions/.

Manual Summary Contract

When the host cannot provide a transcript event, create a user-authorized summary from the context actually visible in the current session. Include only:

  1. outcome and current state;
  2. decisions that affect future work;
  3. relevant files or commands;
  4. open questions and next proof gate.

State omissions honestly. Do not claim full conversation capture, structured decision extraction, automatic append behavior, or cross-session recall unless the active runtime demonstrably provides it.

Privacy and Safety

  • Redact common credentials, bearer tokens, private keys, email addresses, and password/secret assignments before writing.
  • Replace the current project root with a project identity in generated metadata.
  • Write generated summaries with owner-only permissions where the platform supports it.
  • Keep the artifact local unless the user separately authorizes commit, upload, or sharing.
  • Treat redaction as risk reduction, not a guarantee that arbitrary confidential text is safe.

Read the full file on GitHub · 84 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 84 lines · 33 tokens per session scan A 3c9d4d9e0a06

Subscribe to this mod's changes

session-logger is a skill published in the GitHub repository zhaono1/agent-playbook (77 stars, last pushed 12d ago), licensed MIT. It adds 33 tokens to every session and 602 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

establishing-project-context

Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.

GanyuanRan/Aegis · 45 tokens