Use when auditing, extracting, pruning, or writing Claude Code memory files. Covers memory file format, MEMORY.md index conventions, staleness scoring, claim extraction heuristics, destination routing, mutation rules, and archive conventions.
From echo-sleuthnpx claudepluginhub xiaolai/claude-plugin-marketplace --plugin echo-sleuthThis skill uses the workspace's default tool permissions.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Calculates TAM/SAM/SOM using top-down, bottom-up, and value theory methodologies for market sizing, revenue estimation, and startup validation.
Frontmatter schema (simple key: value, NOT general YAML):
---
name: <string, required> # short identifier
description: <string, required> # one-line summary for relevance matching
type: <enum, required> # value | user | feedback | project | reference
---
:--- delimiter as markdown- [filename.md](filename.md) — brief descriptionExponential decay: score = 100 * (1 - exp(-age_days * ln(2) / half_life))
| Type | Half-life | Score 50 at | Score 90 at |
|---|---|---|---|
| value | 365 days | 365d | ~1213d |
| user | 180 days | 180d | ~598d |
| feedback | 90 days | 90d | ~299d |
| reference | 60 days | 60d | ~199d |
| project | 14 days | 14d | ~47d |
| unknown | 30 days | 30d | ~100d |
Score-to-action: 0-50 = keep, 50-75 = review, 75-100 = prune.
Deep verification modifiers (additive, capped at 100):
| Claim Type | Detection Pattern | Verification |
|---|---|---|
| File path | Contains /, ends with file extension | Glob for existence |
| Function/class | Backtick identifier in camelCase/PascalCase/snake_case | Grep in project |
| URL | Starts with http:// or https:// | curl HEAD request |
| Branch | After "branch" keyword or git pattern in backticks | git branch -a |
| Package | In dependency/package context | Grep in manifest files |
Skip generic descriptions that aren't verifiable (e.g., "use a database" vs "uses PostgreSQL 15").
| Destination | When to Use | Target Path |
|---|---|---|
| Memory file (value) | Learned value choices — "X is better than Y" | Session's project memory/ dir, type=value |
| Memory file | Knowledge for Claude's future behavior | Session's project memory/ dir |
| CLAUDE.md | High-impact instructions for every conversation | Session's project root CLAUDE.md |
| Knowledge file | Human-readable notes, decision logs | docs/knowledge/ in project root |
| Skip | Session-specific, not worth preserving | — |
Priority: Value choices are the most durable memories. When extracting, surface them first. Facts decay (files move, APIs change); values persist (readability > cleverness survives any rewrite).
Rule: Always target the session's originating project, not the current shell cwd.
| Layout | How to Write |
|---|---|
| Index + files | Create .md file with frontmatter, append to MEMORY.md |
| Standalone MEMORY.md | Convert to index layout: create first .md file, rewrite MEMORY.md as index |
| No memory dir | Create memory/, create MEMORY.md, create .md file |
| Malformed frontmatter | Read as type=unknown. Never corrupt existing files. |
memory/archive/ subdirectoryiter_memories() skips archive/ — invisible to dashboard/audit/tokensarchive/ + re-add to MEMORY.md