一键导入
lint-memory
Run health checks on project memory files — broken links, orphan memories, stale entries, contradictions, oversized index lines
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run health checks on project memory files — broken links, orphan memories, stale entries, contradictions, oversized index lines
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | lint-memory |
| description | Run health checks on project memory files — broken links, orphan memories, stale entries, contradictions, oversized index lines |
| user-invocable | true |
Apply token-economy whenever this skill would otherwise trigger broad
exploration, repeated file reads, multi-file scans, or heavy reference
loading.
Memory hygiene workflow for checking broken references, orphan files, stale code pointers, contradictions, oversized index entries, and frontmatter schema issues.
This file is a router. Do not keep all six check definitions resident.
/lint-memoryphases/phase-1-scope-and-modes.mdphases/phase-2-mechanical-checks.mdphases/phase-3-semantic-checks.mdphases/phase-4-reporting-and-fixes.mdphases/phase-5-maintenance-outcomes.md (full mode, only when Phase 2/3 surfaced drift)build_doc_graph.pyFor dense corpora (>100 source files), pair this skill with periodic runs
of scripts/build_doc_graph.py (available in claude-skills/scripts/ and
courierflow/scripts/). The graph is the durable maintenance lever:
[[wikilinks]] resolve via basename_index (added in
claude-skills PR #124):
vaults and memory dirs using [[name]] cross-references lint correctly.
Ambiguous basenames (multiple files same name) are silently skipped to
avoid false edges. Cross-corpus links via external URLs
(https://github.com/...) are filtered as external — per-corpus linting
only. See
~/claude_code/agent-vault/agent/doc-graph-tooling.md.Run it before manual consolidation and after every batch of memory adds. The script is wrapped as the doc-graph skill — same script, with read-the-report and interpretation guidance for direct user invocation.
phases/phase-5-maintenance-outcomes.md.
Supporting evidence: a 2026 arXiv study of LLM-agent memory systems
(data-management framing, four-module analysis) found localized
maintenance beats global reorganization under realistic workloads —
prefer targeted single-entry edits over section rewrites when both
would fix the finding.Produce:
Include errors, warnings, auto-fixes applied, and clean yes/no summary.
status: stale (with stale_reason + stale_date) rather than guessing
at a Replace — stale-marking is reversible; a wrong Replace misleads
silently. See phase 5.Conservative cross-repo worktree + branch pruning audit. Classifies every branch/worktree as safe-to-delete (proven dead via merged PR or zero unique commits) or keep-with-reason, then deletes what's proven dead. Use for 'clean up stale branches', 'prune dead worktrees', 'repo hygiene sweep', or any multi-repo branch-pruning ask.
Best practices for AI-authored writing — consolidated rules for when Claude (or any LLM) drafts prose a human will put their name on: emails, posts, newsletters, docs, scripts, bios, marketing copy. Use whenever AI-drafted output must not read as generic AI sludge; triggers on '/ai-writing', 'de-slop this draft', 'make this not sound like AI'. Pulls the AI-relevant rules from the writing and communication skills into one pre-ship gate. NOT a voice profile (use writing-voice for Summer's voice, sme-voice for someone else's) and NOT a conflict/timing layer (use communication-safeguards for heated messages).
Document a dead end so future sessions avoid re-exploring. Writes an abandon record to .claude/abandoned/<date>-<topic>.md capturing what was tried, why it failed, and what was learned. Invoked as `/session-handoff --abandon`, or when the user says "abandon this", "this didn't work", "scrap this approach", or "dead end". Also used by claude-flow Phase 1 (Explore/Archive path) and the research skill. Normal state-export handoffs are written by the `next` skill to docs/plans/<date>-session-handoff.md — not by this skill.
Captures another person's writing voice from samples and applies it when ghostwriting or editing in their voice — primarily for SME (subject-matter expert) scripts at DeepLearning.AI. Phase A builds a saved voice profile from samples; Phase B applies it when editing or extending the SME's scripts. Profiles live in ~/claude_code/agent-vault/sme-voices/ to sync across machines. Trigger on 'capture [name]'s voice', 'edit this in [name]'s voice', 'ghostwrite as [name]', or '/sme-voice'. NOT for writing as Summer herself (use writing-voice), ToneGuard analysis, or summarizing/analyzing documents.
Typography rules — quote marks, dashes, spacing, hierarchy, HTML entities. Auto-apply when generating HTML/CSS/React/Jinja with visible text; audit on "fix the typography", "typography audit", "make this look professional".
Loads Summer Rae's personal voice profile for any writing she'll put her name on — fiction, personal essays, blog posts, newsletters, social posts, course marketing hooks, L0 scripts, business emails and documents. Applies her creative voice (sensory, deadpan dark humor, show-don't-tell) and her business-writing preferences (minimal, direct, lead with the ask, no hollow openers). Default whenever Summer asks you to write or draft anything ('write this for me', 'in my voice'). NOT for ghostwriting or preserving an SME's voice (use sme-voice), ToneGuard analysis, or summarizing/analyzing documents.