MCPInstall

session-logger

Save a bounded, redacted session summary when the user asks to record a conversation or when a supported host provides an explicit session-end transcript event.

Installs
744
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/zhaono1/agent-playbook --skill session-logger
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads session-logger automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

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.

Completion Check

  • Destination and write authority are clear.
  • The summary is bounded and contains no known raw secret.
  • Repository-local storage was explicitly selected and ignore policy checked.
  • The returned path exists and is readable by the user.

FAQ

What does the session-logger skill do?

Save a bounded, redacted session summary when the user asks to record a conversation or when a supported host provides an explicit session-end transcript event.

How do I install session-logger?

Run npx skills add https://github.com/zhaono1/agent-playbook --skill session-logger in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/session-logger/ (personal) or .claude/skills/session-logger/ (project).

Which AI agents can use session-logger?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is session-logger safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains session-logger?

It is published by zhaono1 in zhaono1/agent-playbook. It has 744 recorded installs.

More from zhaono1/agent-playbook

View all →

self-improving-agent

zhaono1/agent-playbook

Use after a failure, user correction, repeated workflow problem, or validated success reveals a reusable lesson. Captures bounded redacted candidates, runs executable behavior evals, and separates validation from application in durable guidance.

AI & Agents35.1K installs

planning-with-files

zhaono1/agent-playbook

Uses persistent markdown files for general planning, progress tracking, and knowledge storage (Manus-style workflow). Use for multi-step tasks, research projects, or general organization WITHOUT mentioning PRD. For PRD-specific work, use prd-planner skill instead.

security-auditor

zhaono1/agent-playbook

Security vulnerability expert covering OWASP Top 10 and common security issues. Use when conducting security audits or reviewing code for vulnerabilities.

Security1.1K installs

architecting-solutions

zhaono1/agent-playbook

Designs technical solutions and architecture. Use when user says "design solution", "architecture design", "technical design", or "方案设计" WITHOUT mentioning PRD. For PRD-specific work, use prd-planner skill instead.

skill-router

zhaono1/agent-playbook

Routes an agent request to the narrowest matching portable skill when the user asks which skill to use or needs help selecting one across supported hosts.

874 installs

workflow-orchestrator

zhaono1/agent-playbook

Coordinates multi-skill workflows and records or runs follow-up actions when the host runtime supports them. Use when completing PRD creation, implementation, or any milestone that should be evaluated for additional skills.

Popular other skills

View category →

hyperframes-cli

heygen-com/hyperframes

The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.

1.3M installs

triage

mattpocock/skills

Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.

1M installs

ask-matt

mattpocock/skills

Ask which skill or flow fits your situation. A router over the skills in this repo.

778.4K installs

to-questionnaire

mattpocock/skills

Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

508.9K installs

wait-what

mattpocock/skills

Stop. That last message did not land: re-pitch it.

459.7K installs

loop-me

mattpocock/skills

Grill me about specs for the workflows I want to build, within this workspace.

447.9K installs