Skip to content
Back to skills

Audit 5

ASecurity

Review and maintain EC memories. List all memories, find duplicates, prune stale entries, and organize by type. Use when memories need cleanup, when user says "audit memories", "clean up EC", "review what's stored", or periodically for hygiene.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 27, 2026
documentationgoapi

Works with

  • api

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill audit-5 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Audit 5?

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

Security grade badge for Audit 5
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-audit-5/badge)](https://www.skillsdirectory.com/skills/david-li0406-audit-5)

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: audit
description: Review and maintain EC memories. List all memories, find duplicates, prune stale entries, and organize by type. Use when memories need cleanup, when user says "audit memories", "clean up EC", "review what's stored", or periodically for hygiene.
---

# Audit EC Memories

Review, clean, and organize stored memories.

**Announce:** "I'm using the audit skill to review EC memories."

## The Flow

```
List All → Analyze → Present → Clean → Verify
```

## Step 1: List All Memories

Pull everything by type:

```
ec_list:
  limit: 100
  type: decision

ec_list:
  limit: 100
  type: learning

ec_list:
  limit: 100
  type: pattern

ec_list:
  limit: 100
  type: config
```

Also check for invalidated entries:

```
ec_list:
  limit: 50
  include_invalid: true
```

## Step 2: Analyze

### Check for Issues

1. **Duplicates** - Same or very similar content
2. **Stale** - References outdated code/patterns
3. **Vague** - Content too generic to be useful
4. **Miscategorized** - Wrong type for the content

### Group by Area

Organize memories by their area tag to see coverage:
- Which areas have many memories?
- Which areas are sparse?
- Any orphaned areas (code deleted)?

## Step 3: Present Summary

```markdown
## EC Memory Audit

**Total Memories:** N (D decisions, L learnings, P patterns, C config)
**Invalidated:** N

### By Area
| Area | Decisions | Learnings | Patterns |
|------|-----------|-----------|----------|
| auth | 3 | 2 | 1 |
| api  | 1 | 4 | 2 |
| ...  | ... | ... | ... |

### Issues Found
- **Duplicates (N):** [list IDs]
- **Potentially stale (N):** [list with reason]
- **Vague entries (N):** [list IDs]
```

## Step 4: Clean Up

**Use AskUserQuestion** for each category:

```json
{
  "questions": [{
    "question": "How should I handle the N duplicate memories?",
    "header": "Duplicates",
    "options": [
      { "label": "Merge", "description": "Keep best version, invalidate others" },
      { "label": "Keep all", "description": "They might have nuance" },
      { "label": "Review each", "description": "Show me one by one" }
    ],
    "multiSelect": false
  }]
}
```

### Invalidating Memories

When removing a memory, use `ec_invalidate` with optional superseding:

```
ec_invalidate:
  id: <old_memory_id>
  superseded_by: <new_memory_id>  # Optional: link to replacement
```

### Merging Duplicates

1. Create new consolidated memory with `ec_add`
2. Invalidate old entries with `ec_invalidate`, pointing to new ID

## Step 5: Verify

After cleanup, show the delta:

```markdown
## Cleanup Complete

**Before:** N memories
**After:** M memories
**Invalidated:** X entries

### Changes
- Merged N duplicates
- Invalidated M stale entries
- Recategorized P entries
```

## Audit Checklist

| Check | Action |
|-------|--------|
| Duplicate content | Merge or invalidate |
| References deleted code | Invalidate |
| Too vague to act on | Rewrite or invalidate |
| Wrong type | Create new with correct type, invalidate old |
| Missing area tag | Update via new entry |

## When to Audit

- **Periodically** - Every few weeks on active projects
- **After major refactors** - Code changed, memories may be stale
- **Before onboarding** - Clean slate for new team members
- **When searches return noise** - Too many irrelevant results

## Red Flags

Stop and ask if:
- About to invalidate >10 memories
- Unsure if memory is still valid
- Memory references code you can't find

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.

Comments

Loading comments…