Skip to content
Back to skills

Post Audit Memory Capture

ASecurity

After any adversarial/red-team analysis of a component, skill, or control mechanism, write two durable memory notes — design invariants + audit baseline, and closed attack vectors — into the memweave corpus so future sessions can answer "is this change a regression?" without relying on git history alone.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 1, 2026
ai-agentsgobashgitsecurity

Security analysis

A100/100

Scanned October 1, 2026

npx -y skills add williamblair333/Uncle-J-s-Refinery --skill post-audit-memory-capture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Post Audit Memory Capture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Post Audit Memory Capture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/williamblair333-post-audit-memory-capture/badge)](https://www.skillsdirectory.com/skills/williamblair333-post-audit-memory-capture)

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

Download with Pro
SKILL.md
---
name: post-audit-memory-capture
description: After any adversarial/red-team analysis of a component, skill, or control mechanism, write two durable memory notes — design invariants + audit baseline, and closed attack vectors — into the memweave corpus so future sessions can answer "is this change a regression?" without relying on git history alone.
---

## When to use

After completing any multi-cycle adversarial analysis, security audit, or hardening pass on a component, skill, or enforcement mechanism. Trigger when:
- A red-team/blue-team cycle has closed findings on a component
- A skill or gate mechanism has been formally reviewed and certified
- You want a future session to audit proposed changes against a known-clean baseline

## The pattern

Two markdown sections per audited component, appended to the memweave corpus. No more, no less.
Both go in one file so they index together and surface as a pair in `mw_search.py`:

Run via the Bash tool (the tool result confirms the write). The heredoc terminator is a unique
token — keep it as-is and do not let baseline content contain that exact line:
```bash
mkdir -p ~/.uncle-j-memory/memory
cat >> ~/.uncle-j-memory/memory/audit-baselines.md <<'PM_AUDIT_BASELINE_EOF'

## [AUDIT BASELINE] <Component> — <YYYY-MM-DD>

### Design invariants + audit baseline
Invariants (numbered — the non-negotiables):
1. ...
2. ...

Audit certification: <N>-cycle adversarial analysis completed <date>.
Final cycle result: <only MEDIUMs/LOWs | no new CRITs or HIGHs>.
Confidence baseline: any single-session edit touching invariants requires its own adversarial pass.

### Known closed attack vectors
- **<Attack name>** — <one-line vector description>; closed by <one-line fix description>
PM_AUDIT_BASELINE_EOF
```

### Section 1 — Design invariants + audit baseline

Properties that **must hold** in any future version. If a proposed change violates any of these, it is a regression regardless of what the commit message says.

### Section 2 — Known closed attack vectors

Specific attacks found and patched. A future reviewer scans this and asks: "does this proposed change re-open any of these?"

## Filter criterion

Only write entries for components where: *"if this changed unexpectedly in 6 weeks, would it matter?"*

Yes → write entries. No → skip.

## What to leave out

- The full component source — that lives in the file
- Every individual patch description — those live in git history and HANDOFF
- Hook or implementation details — those live in the code

## Retrieval contract

With these two entries, a future session asking "is this change safe?" can answer:
- Here are the invariants it must preserve
- Here are the known bypasses it must not re-open
- Here is when it was last certified clean

Without them, git history shows *what* changed but not *whether the change was intentional or a regression*.

Attribution

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

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.