audit-history

audit-history is a skill for Claude Code from paultyng/skill-issue. It costs 54 tokens per session (2,747 once invoked), scanned A, original, MIT.

A review guide for examining past coding-agent sessions and stored memory files. It looks for repeated corrections, friction, stale information, and missing guidance.

In plain words
What is it for?
Use it to audit session transcripts, review memory health, rank recurring problems, and suggest improvements such as testing, linting, or static analysis.
Why use it?
It helps reveal why agent work keeps needing fixes or repeating mistakes. It turns those findings into suggestions for memory cleanup, new skills, rules, and development checks.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Good fit Use it to audit session transcripts, review memory health, rank recurring problems, and suggest improvements such as testing, linting, or static analysis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/paultyng/skill-issue/audit-history
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 paultyng/skill-issue --skill audit-history
Clone the repo
git clone --depth 1 https://github.com/paultyng/skill-issue

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 audit-history

README.md
[![agentmods](https://agentmods.dev/badge/skills/paultyng/skill-issue/audit-history/github.svg)](https://agentmods.dev/skills/paultyng/skill-issue/audit-history)
Your own site
<a href="https://agentmods.dev/skills/paultyng/skill-issue/audit-history"><img src="https://agentmods.dev/badge/skills/paultyng/skill-issue/audit-history/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for audit-history

Your own site · 80×15
<a href="https://agentmods.dev/skills/paultyng/skill-issue/audit-history"><img src="https://agentmods.dev/badge/skills/paultyng/skill-issue/audit-history.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,747 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.
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.00054 $0.02747
Opus 5 $0.00027 $0.01373
Sonnet 5 $0.00011 $0.00549
Haiku 4.5 $0.00005 $0.00275

Measured 9d ago against content hash 1330f3f537f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

audit-history 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 9d 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/audit-history/SKILL.md · 282 lines

How it starts

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

Audit History

Review past agent sessions and memory files to surface friction patterns, stale memories, and gaps. Synthesize findings into ranked recommendations for new skills, rules, and memory cleanup actions.

Phase 1 -- Discover Sources

Transcripts

Transcripts come from two sources. Both use JSONL format but have different schemas.

Cursor

Cursor agent transcripts live under ~/.cursor/projects/*/agent-transcripts/.

  1. List all project workspace directories under ~/.cursor/projects/
  2. For each, list .jsonl files in agent-transcripts/
  3. Distinguish parent from subagent transcripts: parent transcripts are top-level .jsonl files; subagent transcripts live in subdirectories named by the parent's UUID. Only analyze parent transcripts
Claude Code

Claude Code session transcripts live under ~/.claude/projects/*/sessions/. Project directory names are URL-encoded absolute paths (e.g. %2FUsers%2Fpaul%2Fsrc%2Fmyproject).

  1. List all project directories under ~/.claude/projects/
  2. For each, list .jsonl files in sessions/

Memory

Memory files live under ~/.claude/projects/*/memory/.

  1. Scan all project directories for memory/ subdirectories
  2. For each, list .md files (separate MEMORY.md index from content files)
  3. Also scan ~/.claude/rules/ for global rules (needed for duplicate detection)

Inventory

Report the combined inventory before proceeding:

Found N transcripts across M projects, Z memories across P projects:

Cursor (X transcripts):
- project-a: X1 transcripts

Claude Code (Y transcripts, Z memories):
- project-b: Y1 transcripts, Z1 memories (feedback x2, project x1)
- project-c: Y2 transcripts, 0 memories

Global rules: R rules in ~/.claude/rules/
Empty memory directories: [list]
Projects with sessions but no memories: [list]

Phase 2 -- Batch and Dispatch

Launch transcript subagents and memory subagent in parallel.

Each subagent prompt follows subagent-prompt-contract: state the goal in one sentence, paste the file list and extraction schema inline (do not ask the subagent to re-read this SKILL.md), cap the output at the schema below, and prefix the return with the four-state Status line so Phase 3 can branch on it without parsing the body:

Read the full file on GitHub · 282 lines

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. 9d ago First seen · 282 lines · 54 tokens per session scan A 1330f3f537f8

Subscribe to this mod's changes

audit-history is a skill published in the GitHub repository paultyng/skill-issue (9 stars, last pushed 29d ago), licensed MIT. It adds 54 tokens to every session and 2,747 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

chatcrystal-task-writeback

Write reusable ChatCrystal task memories after substantive work completes. Use when implementation or debugging produced a durable fix, pitfall, pattern, or decision worth preserving, and when the environment can either persist it through writetaskmemory or emit a structured memory candidate for later save.

ZengLiangYi/ChatCrystal · 62 tokens

chatcrystal-debug-recall

Recall ChatCrystal memories for debugging tasks involving failing tests, compiler errors, runtime exceptions, dependency issues, environment breakage, or performance regressions. Use when historical root causes, fixes, or pitfalls may accelerate diagnosis before proposing a fix.

ZengLiangYi/ChatCrystal · 54 tokens

chatcrystal-task-recall

Recall project-first and global-supplement ChatCrystal memories before substantive implementation, refactoring, migration, configuration, investigation, or optimization work. Use when the task is non-trivial, has repository or project context, and prior fixes, decisions, pitfalls, or reusable patterns may change the…

ZengLiangYi/ChatCrystal · 66 tokens

workspace-knowledge-sync

Syncs knowledge to the agentic-harness knowledge base and AGENTS.md learned facts. Use when the assistant discovers new patterns, learns user preferences, workspace facts, or identifies information worth preserving for future sessions. Integrates with platform-engineer (formerly tech-assistant) for automatic trigger…

ulises-jeremias/agent-toolkit · 64 tokens

workspace

Scaffold and manage the stateless AI workspace — context, packs, repos, and knowledge for multi-repo orchestration.

ulises-jeremias/agent-toolkit · 27 tokens

memory

Persistent long-term memory system with beliefs, predictions, and knowledge graphs. Use for remembering decisions, learnings, and patterns across sessions.

kobie3717/ai-iq · 29 tokens