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 155 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
5 months ago
Last Updated
today
Language
Shell
License
NOASSERTION

Similar Skills

Semantically similar based on skill content — not just same category