Skip to content

Add audit-memory skill to claude-code-tools - #6

Merged
MrDHat merged 1 commit into
mainfrom
add-audit-memory-skill
Sep 17, 2026
Merged

MrDHat merged 1 commit into
mainfrom
add-audit-memory-skill

Conversation

@MrDHat

@MrDHat MrDHat commented Sep 17, 2026

Copy link
Copy Markdown
Member

Why?

Saved memories are point-in-time observations, so a note that was true when written quietly becomes a confidently wrong instruction to every later session. This was the one skill named in our internal guidance on running efficient sessions that had no public equivalent, and it helps anyone who keeps memories at all.

How?

Each saved claim is checked against current code, pull requests and tickets, every file is copied to an archive before it is touched, and only claims positively proven stale are offered for removal. Anything that could not be checked is reported as needing a named tool rather than treated as false.

Generated with Claude Code

Saved memories are point-in-time observations. Code moves, PRs merge,
projects finish — and a memory that was true when written silently
becomes a confidently wrong instruction to every future session.
/audit-memory verifies each claim against current code, PRs and tickets,
then archives the stale ones with the user's approval.

Its load-bearing guarantees: absence of evidence never becomes evidence
of staleness (an unverifiable claim is NEEDS-<tool>, never offered for
removal); every file is snapshotted before any write, so nothing is
unrecoverable; and stated preferences are never truth-checked.

Ported from an internal plugin. The three internal MCP namespaces are
dropped from allowed-tools — the skill now uses whichever tracker and
telemetry MCPs a session happens to have, and names the missing one in
the verdict. Internal example figures are replaced with synthetic ones.

Verified: plugin manifest validates, and a headless /audit-memory run
against a synthetic fixture flagged the superseded claim from in-corpus
evidence, listed all three of its occurrences (body, frontmatter
description, and MEMORY.md pointer), left the preference untouched, and
made no writes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@MrDHat
MrDHat merged commit c4ff125 into main Sep 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants