Ensure accessibility in UI components including semantic HTML, ARIA attributes, keyboard navigation, and WCAG 2.2 AA compliance.
中文简介正在准备中。当前显示原文说明。
Comprehensive health check across CC auto-memory and agent-studio memory systems — detects orphans, duplicates, staleness, and threshold violations
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Structured diagnostic sensor for both memory systems. Returns a health report with scores, findings, and recommendations. The skill is read-only by default — it measures and reports but does not modify memory. Use --auto-fix for safe cleanup of orphans and stale files only.
Skill({ skill: 'memory-audit' });
Command:
MEMORY_DIR=$(find ~/.claude/projects/ -path "*/memory/MEMORY.md" -printf "%h\n" 2>/dev/null | head -1)
echo "=== CC Auto-Memory ==="
wc -l < "$MEMORY_DIR/MEMORY.md" 2>/dev/null
ls -1 "$MEMORY_DIR/" 2>/dev/null | wc -l
grep -c "^type:" "$MEMORY_DIR/"*.md 2>/dev/null | grep -v MEMORY
Thresholds:
| Metric | OK | WARN | CRITICAL |
|---|---|---|---|
| MEMORY.md lines | <150 | 150-199 | >=200 (truncated!) |
| Total files | <20 | 20-30 | >30 |
| Feedback ratio | <70% | 70-85% | >85% (skewed) |
Check: Flag files present in directory but not referenced in MEMORY.md (orphaned).
Command:
echo "=== Agent-Studio Memory ==="
du -sh .claude/context/memory/
find .claude/context/memory/ -type f | wc -l
wc -l .claude/context/memory/learnings.md .claude/context/memory/decisions.md .claude/context/memory/issues.md 2>/dev/null
find .claude/context/memory/ -name "delegations.pid-*.json" | wc -l
find .claude/context/memory/ -name "*.bak" | wc -l
Thresholds:
| Metric | OK | WARN | CRITICAL |
|---|---|---|---|
| Directory size | <5MB | 5-10MB | >10MB |
| Total files | <120 | 120-200 | >200 |
| learnings.md lines | <300 | 300-500 | >500 (blocks spawning!) |
| decisions.md lines | <200 | 200-400 | >400 |
| issues.md lines | <300 | 300-500 | >500 |
| Delegation PID files | 0 | 1-10 | >10 |
| .bak files | 0 | 1-3 | >3 |
Verify: STM/MTM/LTM directories exist with content.
Command:
for f in access-stats.json codebase_map.json gotchas.json patterns.json open-findings.json; do
echo -n "$f: "
wc -c < ".claude/context/memory/$f" 2>/dev/null || echo "MISSING"
done
Checks:
access-stats.json: verify entries have distinct accessCount values (not all identical = bulk counter, useless)codebase_map.json: count entries vs 500-entry capgotchas.json: count entries, check for hash-based duplicatespatterns.json: count entries, check for hash-based duplicatesopen-findings.json: flag findings with status: "resolved" older than 30 days (stale)Compare content between CC auto-memory reference files and agent-studio JSON stores:
reference_technical_fixes.md and reference_context_management.mdgotchas.json and patterns.json entriesPolicy (Gemini consensus): CC auto-memory = thin index/pointers. Agent-studio = deep store. When duplicates found, recommend keeping detail in agent-studio, adding pointer in CC.
Command:
find .claude/context/memory/named/ -type f ! -name ".gitkeep" | wc -l
node -e "require('.claude/lib/memory/memory-manager.cjs').listMemories()"Command:
find .claude/context/memory/ -name "*.json" -mtime +30 -not -path "*/archive/*" -not -path "*/ltm/*"
find .claude/context/memory/metrics/ -name "*.json" -mtime +30
Flag entries older than 30 days for review. Do NOT auto-delete — report only.
Write structured report to .claude/context/reports/memory-audit-{YYYY-MM-DD}.md:
# Memory System Health Report — {date}
## Health Score: {0-100}/100
## Summary Table
| System | Metric | Current | Threshold | Status |
| ------ | ------ | ------- | --------- | ------ |
## Findings
### P0 (Critical)
### P1 (High)
### P2 (Low)
## Recommendations
1. ...
Health Score Calculation:
When invoked with --auto-fix, the skill will safely clean:
Will NOT auto-fix:
Before starting: Read .claude/context/memory/learnings.md for prior audit results.
After completing: Write audit summary to learnings.md. Record any new gotchas to gotchas.json via MemoryRecord.
Input validated against schemas/input.schema.json before execution.
Output contract defined in schemas/output.schema.json.
context-compressor — compress context when audit finds bloatmemory-search — semantic search across memory storesproactive-audit — broader framework health check that includes memory还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Ensure accessibility in UI components including semantic HTML, ARIA attributes, keyboard navigation, and WCAG 2.2 AA compliance.
中文简介正在准备中。当前显示原文说明。
Use when you want to improve response quality through meta-cognitive reasoning. Applies 15+ reasoning methods to reconsider and refine initial outputs.
中文简介正在准备中。当前显示原文说明。
N-round opposing-stance debates for trade-off analysis. Assigns pro/con roles to agents, runs structured debate rounds with quality scoring, and produces a moderator synthesis with confidence-rated recommendation. Generalizable to architecture, technology, security, and design decisions.
中文简介正在准备中。当前显示原文说明。
Force adversarial code review stance that eliminates confirmation bias — reviewer must find issues or re-analyze
中文简介正在准备中。当前显示原文说明。
Creates specialized AI agents on-demand when no existing agent matches a request. Use when the Router cannot find a suitable agent for a task. Enables self-evolution by generating persistent agents.
中文简介正在准备中。当前显示原文说明。
LLM-as-judge evaluation framework with 5-dimension rubric (accuracy, groundedness, coherence, completeness, helpfulness) for scoring AI-generated content quality with weighted composite scores and evidence citations
中文简介正在准备中。当前显示原文说明。