memory-index-lint

Solid

Validate discoverability invariants of memory `index.md` and `archive/superseded-decisions.archive.md`. Tool-agnostic L3 prompt + capability-dependent L4 script. Detects table corruption, dangling/orphan supersession pointers, frontmatter inconsistencies, missing affordance signals.

Code & Development 160 stars 28 forks Updated today NOASSERTION

Install

View on GitHub

Quality Score: 83/100

Stars 20%
73
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Memory Index Lint ## Purpose / When to Activate Validate that `index.md` and `archive/superseded-decisions.archive.md` satisfy the discoverability invariants required for AI agents to reliably navigate the memory corpus without missing context. **Activate when:** - Pre-commit (via git hook) - Post-merge (via CI) - Before invoking `memory-archive-superseded` (precondition check) - After invoking `memory-archive-superseded` (post-condition check) - After manual edits to `index.md` or archive files - As part of `memory-index-sync` post-step --- ## Two execution paths ### L4 — Capability-dependent script (preferred when shell available) When the agent has Bash/shell access (Claude Code, Cursor with terminal, daemon `claude -p`) : ```bash python3 scripts/validate-memory-index.py # Exit 0 = CLEAN # Exit 1 = VIOLATIONS (printed to stderr/stdout) # Exit 2 = USAGE / IO error # Strict mode: treat soft warnings as failures (use post-migration) python3 scripts/validate-memory-index.py --strict # Quiet mode: print only final summary line python3 scripts/validate-memory-index.py --quiet ``` Pre-commit hook invokes the script automatically — no manual invocation needed in most flows. ### L3 — Tool-agnostic in-session prompt (fallback when no shell) When the agent is on a surface without shell access, or when invoking the script is not appropriate, perform these checks manually by reading the files : #### Invariant checks (mandatory) 1. **Table column consistency.** For ever...

Details

Author
Fr-e-d
Repository
Fr-e-d/GAAI-framework
Created
6 months ago
Last Updated
today
Language
Shell
License
NOASSERTION

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

memory-attribution-lint

Validate and auto-inject the 11-key provenance frontmatter contract on memory files at write time. Use when authoring memory entries, running lint passes on memory directories, or backfilling missing attribution fields. Enforces a uniform provenance schema (name, description, type, source_surface, host, tool, session_id, written_at_utc, source_path, confidence, lifecycle) so every memory entry is traceable to its origin surface, tool, and session.

1 Updated 3 weeks ago
cerebrocybersolutions
Data & Documents Listed

memory-tidy

Keep Claude Code's always-loaded MEMORY.md index healthy — trim over-length entries, move done work to the archive, fold domains into hub files, and give orphaned notes a pointer so they stay findable. Triggers on "/memory-tidy", "tidy memory", "my memory index is huge", "MEMORY.md is over budget", "orphaned memory notes", "clean up memory". Also run it yourself when the memory guard reports RED or the index approaches its budget. Do NOT touch an index another machine owns — ownership is declared in memory_scope.json, never guessed.

0 Updated 2 days ago
tonydzi
AI & Automation Solid

memory-index-compact

Compact verbose memory index / registry files to pointer-only form. Activate when an index file (index.md, index-decisions.md, or any sibling registry table) breaches the file-size budget OR shows substance-duplication drift. Distinct from memory-compact (which targets content categories) and memory-archive-superseded (which migrates superseded rows to archive).

160 Updated today
Fr-e-d