From claude-helper
Manage Claude Code memory — CLAUDE.md files, AGENTS.md, and .claude/rules/. Use when user wants to create, update, review, or optimize project memory files. Triggers: "manage memory", "create CLAUDE.md", "update rules", "init memory", "optimize CLAUDE.md".
npx claudepluginhub filipowm/claude-plugins --plugin claude-helperThis skill uses the workspace's default tool permissions.
Manages the full lifecycle of Claude Code memory: CLAUDE.md files, AGENTS.md, and `.claude/rules/`. Performs deep codebase research to generate accurate, project-specific memory files.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
Manages the full lifecycle of Claude Code memory: CLAUDE.md files, AGENTS.md, and .claude/rules/. Performs deep codebase research to generate accurate, project-specific memory files.
IMPORTANT: This skill must be highly interactive. Challenge user decisions, propose alternatives, and surface non-obvious patterns. Do NOT rubber-stamp — push back when you see weak patterns or missing conventions.
Determine the execution path based on $ARGUMENTS:
react, security, testing, architecture) → Go to Phase 4: Targeted UpdateScan the project to determine current memory state.
Use Glob and Read to check for:
./CLAUDE.md or ./.claude/CLAUDE.md (project CLAUDE.md)./AGENTS.md (cross-tool agent instructions)./.claude/rules/*.md (modular rules)CLAUDE.md or AGENTS.md files (use **/CLAUDE.md and **/AGENTS.md glob)./.claude/settings.json or ./.claude/settings.local.json| State | Action |
|---|---|
| No CLAUDE.md, no rules | Full generation → Phase 2 |
| CLAUDE.md exists, no rules | Propose adding rules → Phase 3 (targeted) |
| Rules exist, no CLAUDE.md | Propose creating CLAUDE.md → Phase 3 |
| Both exist | Propose improvements → Phase 5 |
Before proceeding, fetch the latest official Claude Code memory documentation:
https://code.claude.com/docs/en/memory.md using WebFetch — extract the full memory system documentationhttps://code.claude.com/docs/en/sub-agents.md using WebFetch — extract subagent memory patternsUse fetched docs as authoritative reference throughout all phases. Cross-reference with best practices in memory-best-practices.md.
Present findings to user using AskUserQuestion:
Gatekeeping: User must approve the action path before proceeding.
Use AskUserQuestion to ask the user (provide sufficient context):
Question: "Should this project use AGENTS.md alongside CLAUDE.md?"
Present these options with clear trade-offs:
@AGENTS.md as first line.IMPORTANT: If AGENTS.md approach is chosen:
@AGENTS.md@imports, no .claude/ references)@AGENTS.md importUse AskUserQuestion to determine:
Challenge the user's choices:
Gatekeeping: Confirm final strategy with user before spawning research agents.
IMPORTANT: Prefer using TeamCreate for parallel research. If teams are unavailable or fail, fall back to sequential Agent tool calls.
Team approach (preferred):
Create a team with TeamCreate. Then create tasks and spawn agents for parallel research:
stack-analyst — Discovers tech stack, frameworks, languages, package managers, build tools. Reads package.json, Cargo.toml, go.mod, pom.xml, requirements.txt, etc. Reports exact versions.
Explorearchitecture-mapper — Maps project structure, identifies key directories, module boundaries, entry points, data flow patterns. Produces an architecture map.
Exploreconventions-researcher — Analyzes existing code for naming conventions, file organization, import patterns, error handling patterns, logging patterns. Identifies both followed AND violated conventions.
Explorecommands-researcher — Discovers build commands, test commands, lint commands, deploy commands from package.json scripts, Makefile, CI configs, README. Verifies commands actually work.
ExploreAfter initial research completes, review findings and dynamically spawn additional domain experts based on discoveries:
| Discovery | Spawn Agent | Focus |
|---|---|---|
| React/Vue/Svelte | frontend-expert | Component patterns, state management, styling approach |
| Java/Kotlin/Spring | java-expert | Spring conventions, Maven/Gradle patterns, package structure |
| Python/Django/FastAPI | python-expert | Python conventions, framework patterns, virtual env |
| Go | go-expert | Go conventions, module structure, error handling |
| Rust | rust-expert | Cargo workspace, trait patterns, error handling |
| Database/ORM | data-expert | Schema patterns, migration conventions, query patterns |
| API routes | api-expert | Route patterns, auth, validation, error handling |
| Tests found | testing-expert | Test framework, patterns, fixtures, coverage |
| CI/CD configs | devops-expert | Pipeline patterns, deployment, environment management |
| Monorepo structure | monorepo-expert | Package boundaries, shared code, workspace patterns |
Consider other domain experts based on findings, but follow patterns above (e.g. product-manager, dotnet-expert etc..).
Each spawned agent should:
subagent_type: "Explore" or subagent_type: "general-purpose" as appropriateSubagent fallback (if teams unavailable):
Spawn sequential Agent calls with subagent_type: "Explore":
After all research completes:
Present research summary to user using AskUserQuestion:
Challenge the user:
Gatekeeping: User must approve the proposed structure before content generation.
Follow the template structure from claudemd-templates.md.
CRITICAL constraints:
.claude/rules/ and subdirectory docs for depthIf AGENTS.md strategy was chosen:
@AGENTS.md import + Claude-specific extensionsCreate rule files based on research findings. Use path-scoped rules (paths: frontmatter) where applicable.
Common rule files to consider:
code-style.md — naming, formatting, import patterns (if not handled by linter)architecture.md — layer dependencies, module boundaries, data flow (global, no paths)testing.md — test patterns, mocking, fixtures (scoped to **/*.test.*)security.md — security patterns, input validation, secrets handling (global)Each rule file: target under 50 lines. Move detailed content to separate files.
Only for directories that have genuinely distinct conventions. Target 30-80 lines each.
If $ARGUMENTS was provided (e.g., react, security, testing):
IMPORTANT: This phase is mandatory. Never skip it.
Show user:
Review generated content against best practices:
Proactively identify weaknesses:
Use AskUserQuestion to present findings and proposed improvements.
Repeat review cycle until user approves all content.
Gatekeeping: User MUST explicitly approve before saving.
Save all approved content to their target locations:
./CLAUDE.md (or ./.claude/CLAUDE.md)./AGENTS.md (if chosen)./.claude/rules/*.md./[subdir]/CLAUDE.md (or ./[subdir]/AGENTS.md if chosen)After saving:
@ imports resolve correctly@AGENTS.md referencePresent final summary:
When existing memory is detected, analyze and propose specific improvements:
Use AskUserQuestion to present each group and let user cherry-pick which to apply.
For detailed guidance, read these files from the skill directory: