Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Analyze Session Transcripts

ASecurity

Mine local Codex CLI and Desktop rollout transcripts, including archived sessions, into factual evidence-anchored reports. Use only when the user explicitly asks to analyze, debrief, or report on past Codex sessions; Claude Code transcripts use an independent provider package.

8 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsjavascriptgojavabashsqlnodedatabase

Works with

claude codevscodecli

Security Analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned 9/29/2026

$npx -y skills add KyleMit/Splotch --skill analyze-session-transcripts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Analyze Session Transcripts?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Analyze Session Transcripts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kylemit-analyze-session-transcripts/badge)](https://www.skillsdirectory.com/skills/kylemit-analyze-session-transcripts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: analyze-session-transcripts
description: Mine local Codex CLI and Desktop rollout transcripts, including archived sessions, into factual evidence-anchored reports. Use only when the user explicitly asks to analyze, debrief, or report on past Codex sessions; Claude Code transcripts use an independent provider package.
disable-model-invocation: true
---

# Analyze Codex session transcripts

Produce factual reports from Codex's lossless local rollout JSONL without resuming the original
thread. Resuming can load compacted context; the rollout retains the raw records needed for a
forensic report.

This is the registered direct Codex implementation of `analyze-session-transcripts`. Its Claude
counterpart has the same skill name but an independent package and parser because the stores and
record envelopes do not match. Edit this package in place, never through `.ruler/`.

## Storage and session selection

Codex's local thread database is `~/.codex/state_5.sqlite`. It indexes both surfaces:

* CLI: database `source=cli`; rollout `originator=codex-tui`.
* Desktop: database `source=vscode`; rollout `originator=Codex Desktop`.

Active rollouts live under `~/.codex/sessions/YYYY/MM/DD/`; archived Desktop or CLI rollouts live
under `~/.codex/archived_sessions/`. Do not infer recency from filenames or directory mtimes. Query
the database's recency field, which covers both locations:

```bash
node .agents/skills/analyze-session-transcripts/catalog.mjs --limit 10 --cwd "$PWD" --json
```

The default excludes automated exec, guardian, and subagent threads by accepting only `cli` and
`vscode` sources and checking older CLI rollouts for their initial delegated-task marker. Use
`--all-cwds` only when the user asked across projects, and `--include-automated` only when they
explicitly want non-human threads. Confirm the chosen sessions and output directory before a batch
that will spend model tokens.

## Skeleton first, raw drill second

Never load a rollout wholesale. Codex rollouts contain repeated instructions, tool schemas, large
tool outputs, and compaction replacement histories. Generate a compact semantic skeleton:

```bash
node .agents/skills/analyze-session-transcripts/skeleton.mjs '<rollout.jsonl>' > '<scratch-skeleton.md>'
```

The extractor streams JSONL, omits developer/system instructions and hidden reasoning, removes the
synthetic AGENTS/environment user envelope, preserves actual user/assistant messages, previews every
tool call/result, flags suspected failures for inspection, marks compaction, and emits `L<n>` raw
record anchors. It looks up title/archive/surface/model metadata from the thread database. The
database lookup uses the exact rollout path before `session_meta.session_id`; historical subagent
rollouts can retain their parent's id in that envelope. The skeleton records `metadata_source` and
`metadata_path_mismatch`. When an id fallback points to a different rollout, it withholds that row's
identity metadata and marks the mismatch for the report's coverage limitations; `session_id_source`
records that the identity came from the rollout filename instead of the known-wrong parent envelope
id.

Read the skeleton end to end. Then drill only into relevant raw records:

```bash
sed -n '<n>p' '<rollout.jsonl>' | jq .
```

Always drill for `?FAILURE`, truncated evidence, and one-off scripts. A `custom_tool_call` named
`exec` contains JavaScript orchestration in `payload.input`; its paired
`custom_tool_call_output.payload.output` can contain a nested command failure even when the outer
wrapper says `Script completed`. `function_call`/`function_call_output` use a different envelope but
the same `call_id` pairing. Treat raw pre-compaction records as authoritative; do not substitute the
`replacement_history` summary.

## Write the report

Give `report-prompt.md` verbatim to the reporting agent. Copy the skeleton front matter. Evidence
anchors, `none found` for empty categories, failure deduplication, exact-script recovery, secret
redaction, and the ban on advice/speculation are mandatory.

Name each report `<start-date>-<first-8-of-session-id>-<slug>.md`. Reports meant to remain local go
in a user-approved directory outside tracked docs; reports intended as repository evidence go in a
user-approved `docs/scratchpad/session-reports/` directory.

## Batch runs

Use one fresh subagent per session in bounded parallel batches up to the available agent slots. Give
each subagent only: this skill directory, one transcript path, one scratch path, one report path,
and the instruction to run the skeleton, read it completely, drill raw evidence, apply
`report-prompt.md`, write the report, and return a one-line status. The orchestrator reads only the
catalog and final statuses, so its context stays nearly flat across 10–50 sessions. Do not ask the
original sessions to report on themselves.

If subagents are unavailable, process sessions sequentially with a fresh context where the runner
supports it. Never combine multiple raw transcripts in one reporting context.

## Schema drift

Codex's database and rollout schemas are internal. The extractor records parse failures and skipped
record types as drift signals. If expected messages or tools are missing, inspect a few raw records,
update only this Codex package and its tests/note, and leave the Claude implementation unchanged.

Attribution

KyleMitKyleMit
View sourceSee grades on GitHubMore from KyleMit →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →