Automatically saves your conversation history to timestamped markdown files in a sessions directory when you say "save session" or "保存对话". It structures the logs with metadata, summaries, decisions made, technical notes, and follow-up items, which is genuinely useful for tracking what you accomplished across multiple sessions. The template format is solid, and there's a nice touch where it extracts structured data about skill executions, errors, and code patterns for a self-improving agent to learn from. Sessions stay local and aren't committed to git, so you can log sensitive stuff. It's basically a structured journal for your AI pair programming sessions.

skills.sh installs
680
GitHub stars
66
last updated
Jul 14, 2026

Install

$ npx -y skills add charon-fan/agent-playbook --skill session-logger --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/charon-fan/agent-playbook
Category
AI & Agent Building
First seen
May 16, 2026

More from charon-fan/agent-playbook

All 24
1jwynia avatarstory-idea-generatorjwynia/agent-skillsGenerate story concepts using a genre-first approach. Use when starting a new project, when brainstorming ideas, when a concept needs strengthening, or when you679skills.sh installs
2charon-fan avatardebuggercharon-fan/agent-playbookdebugger678skills.sh installs
3charon-fan avatarqa-expertcharon-fan/agent-playbookqa expert678skills.sh installs
4aj-geddes avataragile-sprint-planningaj-geddes/useful-ai-promptsPlan and execute effective sprints using Agile methodologies. Define sprint goals, estimate user stories, manage sprint backlog, and facilitate daily standups t677skills.sh installs
5aj-geddes avatarlog-analysisaj-geddes/useful-ai-promptsAnalyze application and system logs to identify errors, patterns, and root causes. Use log aggregation tools and structured logging for effective debugging.674skills.sh installs
6aj-geddes avatarsecurity-compliance-auditaj-geddes/useful-ai-promptsConduct comprehensive security compliance audits for SOC 2, GDPR, HIPAA, PCI-DSS, and ISO 27001. Use when preparing for certification, annual audits, or complia673skills.sh installs