memory-lint SKILL.md skillA
memory-lint from kerberosclaw/kc_ai_skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add kerberosclaw/kc_ai_skills/memory-lint@v0.3.0Pins v0.3.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- kerberosclaw/kc_ai_skills
- Path
memory-lint/SKILL.md- Versions recorded
- 5
- Latest version
- v0.3.0, committed Aug 17, 2026
- First version recorded
- Apr 16, 2026
- Size
- 18,229 bytes
- Repository stars
- 79
- License
- MIT
Use when the user wants to lint a Claude Code memory directory (~/.claude/memory or custom path) for index inconsistency, broken cross-links, stale project state, duplicate / conflicting feedback rules, naming violations, frontmatter gaps, and oversized files. Phase 1 is a read-only scan and report. Phase 2 applies fixes only for findings the user explicitly picks. Phase 3 verifies with an independent process and rolls back if it fails.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# memory-lint — Memory 品質健檢
```
Phase 1 唯讀掃描 ──► 報告(預設只做這段,不動任何檔案)
│ user 逐條拍板要修哪些
Phase 2 執行修正 ──► commit(開工前先記回退點)
│ 改完全部提交 = 凍結
Phase 3 獨立複驗 ──► 過 → 收工 / 不過 → 回退到 Phase 2 前
```
🔴 **收到 lint 觸發詞的預設動作是出報告。** user 必須明確點名要修哪幾條
(或明說「全部修掉」)才准進 Phase 2。Phase 1 期間不准順手合併、順手刪、順手歸檔。
**跟 llm-wiki-lint 差異**:本 skill 針對 memory 目錄(prefix-based 平鋪結構);
`llm-wiki-lint` 針對 Karpathy LLM Wiki repo(`wiki/` + `raw/` + `SCHEMA.md` 三層)。
---
# Phase 1 — 唯讀掃描
## Step 1: 找到 memory 目錄
依序嘗試,命中第一個就用:
| 順序 | 來源 |
|------|------|
| 1 | `$ARGUMENTS` 第一個位置參數 |
| 2 | 環境變數 `$CLAUDE_MEMORY_DIR` |
| 3 | `settings.json` 的 `autoMemoryDirectory` |
| 4 | `~/.claude/memory/` |
| 5 | 都找不到 → **停止**,告訴 user「偵測不到 memory 目錄」,不要瞎猜 |
第 3 條要看**當前設定目錄**(多帳號並存時 `$CLAUDE_CONFIG_DIR` 會指到別處):
```bash
CFG="${CLAUDE_CONFIG_DIR:-$HOME/.claude}"
MEMORY_PATH=$(jq -r '.autoMemoryDirectory // empty' "$CFG/settings.json" | envsubst)
```
## Step 2: 跑機械掃描
```bash
# <skill_dir> = 本 SKILL.md 所在的目錄;掃描標的由參數帶入,
# 所以在哪個工作目錄呼叫都不影響結果
python3 <skill_dir>/scripts/scan.py "$MEMORY_PATH"
```
只用標準函式庫、唯讀、輸出 JSON。**目標目錄由參數帶入**,所以在哪個工作目錄呼叫都一樣。
沒有 `MEMORY.md` 會回 `{"fatal": ...}` 並以 exit 1 結束。
…Read the whole file at its exact version.
How to install
mdr add kerberosclaw/kc_ai_skills/memory-lint@sha256:a079744c9fc82e70The line at the top of this page pins the label v0.3.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_74ozj5mqqsqgl6iz)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Apr 16, 2026 and Aug 17, 2026, about one every 31 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v0.3.0 latest | 2026-08-17 | d5cc3a0 | 18,229 B | A | view · diff |
| v0.2.0 | 2026-07-15 | 38420bb | 9,656 B | A | view · diff |
| v0.2.0 | 2026-04-26 | 90e7bc0 | 9,633 B | A | view · diff |
| v0.1.0 | 2026-04-16 | eaf7b61 | 5,215 B | A | view · diff |
| v0.1.0 | 2026-04-16 | a72c9e5 | 4,331 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (18229 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
kerberosclaw/kc_ai_skills · 79 stars · license MIT · pushed 2026-10-16 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_74ozj5mqqsqgl6iz GET https://markdownregistry.com/api/v1/resolve?ref=kerberosclaw/kc_ai_skills/memory-lint GET https://markdownregistry.com/api/v1/blob/a079744c9fc82e70a321eb98638d0832e9781ff6ca57551d833ddc978a380589
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.