memory-management
Meta-skill for Claude Code memory system (CLAUDE.md, static memory). Provides stable principles, keyword registry for documentation lookups, and navigation guidance. Use when working with CLAUDE.md files, memory hierarchy, import syntax, progressive disclosure patterns, memory organization, or best practices for static memory. Delegates to docs-management skill for current implementation details. Keywords: CLAUDE.md, static memory, memory hierarchy, import syntax, progressive disclosure, memory organization, enterprise project user memory.
What this skill does
# Memory Meta
## ๐จ MANDATORY: Invoke docs-management First
> **STOP - Before providing ANY response about Claude Code memory (CLAUDE.md):**
>
> 1. **INVOKE** `docs-management` skill
> 2. **QUERY** using keywords: CLAUDE.md, static memory, memory hierarchy, import syntax, or related topics
> 3. **BASE** all responses EXCLUSIVELY on official documentation loaded
>
> **Skipping this step results in outdated or incorrect information.**
### Verification Checkpoint
Before responding, verify:
- [ ] Did I invoke docs-management skill?
- [ ] Did official documentation load?
- [ ] Is my response based EXCLUSIVELY on official docs?
If ANY checkbox is unchecked, STOP and invoke docs-management first.
## Meta-skill for Claude Code memory system - 100% driven by official documentation
> **Zero Duplication Policy**
>
> This skill contains ZERO duplicated content from official documentation. ALL implementation details delegate to the `docs-management` skill using natural language queries. This skill provides stable principles and navigation that won't change, while docs-management provides current official guidance.
## Overview
This meta-skill provides stable principles, keyword registries, and patterns for working with Claude Code's memory system (CLAUDE.md files, static memory). It does NOT duplicate official documentation - instead, it teaches you how to efficiently query the `docs-management` skill for any memory-related information you need.
**What this skill provides:**
- Stable principles that won't change (timeless guidance)
- Keyword registry for efficient documentation lookups
- Common organization patterns
- Quick decision trees for navigation
- Troubleshooting guidance
**What this skill delegates to docs-management:**
- Current import syntax specifications
- Exact file locations and paths
- Version-specific behaviors
- Implementation details that may evolve
- Complete best practices documentation
## When to Use This Skill
This skill should be used when:
- **Working with CLAUDE.md files** - Creating, editing, or organizing memory
- **Memory hierarchy questions** - Understanding enterprise/project/user/local precedence
- **Import syntax questions** - How to import files, @ syntax, recursive lookup
- **Progressive disclosure patterns** - Organizing always-loaded vs on-demand content
- **Memory organization** - Hub-and-spoke, token budgets, cross-references
- **Best practices lookup** - Efficient queries to find official guidance
## Stable Principles (Won't Change)
These principles are fundamental to how LLMs and memory systems work. They won't change even as Claude Code's implementation evolves.
### 1. Progressive Disclosure
**Principle:** Load context on-demand, not everything upfront.
**Why stable:** Context windows are finite resources. This is a fundamental LLM constraint that won't change.
**Application:**
- Always-loaded content should be minimal and high-signal
- Detailed content loads only when needed
- Hub files link to detailed references
### 2. Strategic Emphasis
**Principle:** Use emphasis keywords (CRITICAL, NEVER, MUST, IMPORTANT) strategically for must-follow rules.
**Why stable:** Human communication patterns for priority signaling are universal.
**Application:**
- Reserve emphasis for truly critical rules
- Don't overuse (dilutes effectiveness)
- Use consistently across your memory files
### 3. Specificity Over Vagueness
**Principle:** "Use 2-space indent" beats "format code properly"
**Why stable:** Specific instructions are universally more actionable than vague ones.
**Application:**
- Concrete examples over abstract guidance
- Exact commands over general directions
- Measurable criteria over subjective standards
### 4. Structure Aids Parsing
**Principle:** Bullets, headings, and clear organization improve comprehension.
**Why stable:** Both humans and LLMs process structured content more effectively.
**Application:**
- Use markdown headings consistently
- Bullet points for lists of items
- Tables for structured comparisons
- Code blocks for commands/examples
### 5. Hierarchy/Layering
**Principle:** Configuration layers override each other (enterprise โ project โ user โ local).
**Why stable:** Standard configuration pattern used across all software systems.
**Application:**
- Higher levels set defaults
- Lower levels can override
- Understand which level your changes belong to
### 6. Token Efficiency
**Principle:** Context is finite - be efficient with tokens.
**Why stable:** LLM context windows have limits. Even as they grow, efficiency matters.
**Application:**
- Remove redundant content
- Link instead of duplicate
- Use progressive disclosure
- Monitor token budgets
**Detailed explanations:** See [Stable Principles Reference](references/stable-principles.md)
## Quick Decision Tree
**What do you want to do?**
1. **Create a new CLAUDE.md file** โ Query docs-management: "Find documentation about creating CLAUDE.md files and /init command"
2. **Organize memory for a project** โ See [Common Patterns](references/common-patterns.md)
3. **Understand import syntax** โ Query docs-management: "Find documentation about CLAUDE.md import syntax and @ references"
4. **Set up memory hierarchy** โ Query docs-management: "Find documentation about memory hierarchy enterprise project user"
5. **Optimize token usage** โ See [Stable Principles](#stable-principles-wont-change) + [Common Patterns](references/common-patterns.md)
6. **Fix memory not loading** โ See [Troubleshooting](#troubleshooting)
7. **Find official best practices** โ See [Keyword Registry](references/keyword-registry.md) for efficient queries
## Keyword Registry for docs-management
Use these keywords when querying the `docs-management` skill for memory-related documentation:
### Core Memory System
**Keywords:** `CLAUDE.md`, `static memory`, `memory hierarchy`, `memory system`
**Example query:**
```text
Find documentation about CLAUDE.md static memory system and memory hierarchy
```
### Import Syntax
**Keywords:** `import syntax`, `@ references`, `recursive lookup`, `file imports`
**Example query:**
```text
Find documentation about CLAUDE.md import syntax and @ file references
```
### Memory Commands
**Keywords:** `/init command`, `/memory command`, `# shortcut`, `memory commands`
**Example query:**
```text
Find documentation about /init and /memory commands for CLAUDE.md
```
### Best Practices
**Keywords:** `memory best practices`, `CLAUDE.md tuning`, `memory organization`
**Example query:**
```text
Find documentation about CLAUDE.md best practices and memory tuning
```
### Agent SDK Integration
**Keywords:** `settingSources`, `memory API`, `Agent SDK memory`
**Example query:**
```text
Find documentation about Agent SDK settingSources and memory integration
```
**Complete keyword registry:** See [Keyword Registry Reference](references/keyword-registry.md)
## Common Patterns
### Hub-and-Spoke Organization
**Pattern:** Central hub file (CLAUDE.md) links to detailed reference files.
```text
CLAUDE.md (hub)
โโ Quick Reference (essential, always loaded)
โโ Core principles (brief)
โโ Links to detailed docs
โโโ .claude/memory/architecture.md
โโโ .claude/memory/workflows.md
โโโ .claude/memory/testing.md
```
**Benefits:**
- Hub stays small (token efficient)
- Details load on-demand
- Single entry point
- Easy navigation
### Always-Loaded vs Context-Dependent
**Pattern:** Separate critical content from detailed content.
**Always-loaded (@-prefixed imports):**
- Core principles that apply to every task
- Critical rules that must never be violated
- Quick reference for common operations
- ~10-15k tokens maximum recommended
**Context-dependent (loaded on-demand):**
- Detailed guides for specific topics
- Reference documentation
- Examples and templates
- Can be larger since loaded selectively
### Token Budget Strategy
**Pattern:** Allocate tokens intentionally across memory tiers.
| Tier | TRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts โ single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score โฅ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.