agentleFS
tjp2021tjp2021/claude-session-skill/SKILL.md

session

Skill0 starsChanged 9 months agoMITView on GitHub

Search and browse past Claude Code sessions. Indexes all session history already stored by Claude Code and makes it searchable by keyword, project, or date. Can also name sessions for easy recall.

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use debug, release and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 3 projects that use this

  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    Also in 4 projects that use this

  • GoogleSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do NOT summarize, paraphrase, truncate, or reformat it.

    line 50
  2. Distinctive:

    Do NOT add commentary: after the output. No "What do you need?", no "Here are your sessions:", no interpretation.

    line 51
  3. Very specific:

    Do NOT ask follow-up questions: after list or search. The output is self-contained.

    line 52
  4. Distinctive:

    If the user asks you to "name + summarize" a session, or otherwise wants a generated title based on the session itself:

    line 57
  5. Very specific:

    Use session.ts autoname [<id>] instead of asking them for a manual title.

    line 59
  6. Distinctive:

    Keep the final title within the existing 50-character limit.

    line 62

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Session Tracker Skill

Usage

/session <query>                 # Search sessions by keyword
/session list                    # Show 20 most recent sessions
/session list --all              # Show all sessions
/session show <id>               # Full details (supports partial IDs)
/session name <name>             # Name the most recent session (by last activity)
/session name <id> <name>        # Name a specific session by ID
/session autoname [<id>]         # Generate title from summary + session start time
/session unname [<id>]           # Clear a session's name
/session rebuild                 # Force rebuild the index
/session stats                   # Index statistics by project

How It Works

Claude Code already saves every user message to ~/.claude/history.jsonl with session IDs, timestamps, and project paths. Session transcripts live as individual JSONL files under ~/.claude/projects/*/. This skill indexes all of that and makes it searchable.

Implementation

Entry point: bun run ~/.claude/skills/session/session.ts <command> [args]

CRITICAL OUTPUT RULES — read before running anything:

  1. Print the FULL command output verbatim, inside a fenced code block. Wrap ALL output in triple backticks so it renders exactly as-is. Like this:
    ```
    <raw output here>
    ```
    Do NOT summarize, paraphrase, truncate, or reformat it. Do NOT shorten session IDs — they are full UUIDs and must be shown in full. The skill handles all formatting. Your only job is to relay what it prints, nothing more.
  2. Do NOT add commentary after the output. No "What do you need?", no "Here are your sessions:", no interpretation. Just the code block.
  3. Do NOT ask follow-up questions after list or search. The output is self-contained.
  4. If the user references an already-shown list (e.g., "the most recent", "the third one", "that one") — use the IDs already printed in the previous output. Do NOT re-run list or show unnecessarily.

Name + summarize requests

If the user asks you to "name + summarize" a session, or otherwise wants a generated title based on the session itself:

  1. Use session.ts autoname [<id>] instead of asking them for a manual title.
  2. The generated session name MUST start with the session start timestamp in this exact format: dd/mm/yy HH:MM
  3. The rest of the title should be a concise summary derived from the session's summary or first bullet.
  4. Keep the final title within the existing 50-character limit.

Naming Sessions

Users name sessions in natural language. They will NEVER type IDs. Your job is to resolve which session they mean.

How to handle naming requests:

  1. "Name this session X" / "Call this session X" — Name the most recent session (by last activity). Run: session.ts name "<name>"
  2. "Name the session where I worked on the clinic bot" — First search (session.ts search "clinic bot"), identify the right session from results, then name it by ID (session.ts name <id> "<name>"). The user never sees or types the ID — you resolve it.
  3. "Name my last session X" — Run: session.ts name "<name>" (defaults to most recent by last activity)
  4. After /session list, user says "name the third one X" — You already have the list output with IDs. Use the ID from the third entry.
  5. "Clear the name from X" / "Unname the clinic bot session" — Search to find it, then run: session.ts unname <id>. Or session.ts unname to clear the most recent.
  6. "Name + summarize this session" / "Summarize and title that one" — Run: session.ts autoname (or session.ts autoname <id> if the target session is already known)

Key rules:

  • The user NEVER types or sees session IDs. You handle all ID resolution behind the scenes.
  • Names are 1-50 characters. If the user gives something longer, ask them to shorten it.
  • Auto-generated names for name+summarize requests MUST include the session start time prefix in dd/mm/yy HH:MM format.
  • Named sessions show as Name — summary in list view and Name: X in detail view.
  • Names are searchable — /session search "Vault Reorg" finds named sessions with highest relevance.
  • Names can be cleared with unname — this removes the name but preserves the AI summary.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.