This skill should be used when the user asks to "initialize auto-memory", "create CLAUDE.md", "set up project memory", or runs the /auto-memory:init command. Analyzes codebase structure and generates CLAUDE.md files using the exact template format with AUTO-MANAGED markers.
Analyzes codebase structure and generates CLAUDE.md files using the exact template format with AUTO-MANAGED markers.
/plugin marketplace add severity1/claude-code-auto-memory/plugin install auto-memory@severity1-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
templates/CLAUDE.root.md.templatetemplates/CLAUDE.subtree.md.templateAnalyze project structure and generate CLAUDE.md files interactively.
MANDATORY: All rules below must be followed exactly. Violations produce incorrect CLAUDE.md content.
@../shared/references/guidelines.md
If CLAUDE.md already exists, ask the user how to handle it:
Detect frameworks and build systems:
package.json - Node.js/JavaScriptpyproject.toml, setup.py - PythonCargo.toml - Rustgo.mod - GoMakefile - Make-based buildsDockerfile - Container buildsExtract build/test/lint commands from config files.
Look for framework boundaries that warrant separate CLAUDE.md files:
src/ with 10+ source fileslib/ directorypackages/* (monorepo packages)apps/* (monorepo applications)Analyze source files for conventions:
If network available, fetch from https://code.claude.com/docs/en/memory:
Use AskUserQuestion to confirm:
Generate files using the EXACT template structure. Follow these steps precisely:
{{PLACEHOLDER}} with detected contentCRITICAL: Use the EXACT marker format below. Do NOT use variations.
<!-- AUTO-MANAGED: section-name -->
## Section Heading
Content goes here
<!-- END AUTO-MANAGED -->
For user-editable content:
<!-- MANUAL -->
## Custom Notes
Add project-specific notes here. This section is never auto-modified.
<!-- END MANUAL -->
Common mistakes to avoid:
<!-- BEGIN AUTO-MANAGED: name --> - WRONG (no BEGIN prefix)<!-- END AUTO-MANAGED: name --> - WRONG (no name in closing tag)<!-- AUTO-MANAGED section-name --> - WRONG (missing colon)Generate these sections in order:
| Section Name | Heading | Required | Placeholder | Content |
|---|---|---|---|---|
project-description | ## Overview | Yes | {{DESCRIPTION}} | Project name, tagline, key features |
build-commands | ## Build & Development Commands | Yes | {{BUILD_COMMANDS}} | Build, test, lint, run commands |
architecture | ## Architecture | Yes | {{ARCHITECTURE}} | Directory tree, key files, data flow |
conventions | ## Code Conventions | Yes | {{CONVENTIONS}} | Naming, imports, formatting rules |
patterns | ## Detected Patterns | Yes | {{PATTERNS}} | AI-detected recurring code patterns |
git-insights | ## Git Insights | No | {{GIT_INSIGHTS}} | Key commits, design decisions |
best-practices | ## Best Practices | No | {{BEST_PRACTICES}} | From official Claude Code docs |
Generate these sections in order:
| Section Name | Heading | Required | Placeholder | Content |
|---|---|---|---|---|
module-description | ## Purpose | Yes | {{DESCRIPTION}} | Module purpose and responsibility |
architecture | ## Module Architecture | Yes | {{ARCHITECTURE}} | Module structure, key files |
conventions | ## Module-Specific Conventions | Yes | {{CONVENTIONS}} | Module-specific rules |
dependencies | ## Key Dependencies | Yes | {{DEPENDENCIES}} | Module dependencies |
Reference the template files for exact structure:
@templates/CLAUDE.root.md.template
@templates/CLAUDE.subtree.md.template
Use AskUserQuestion for:
After generating files, report:
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.