From base
Writes, improves, or restructures CLAUDE.md project memory files. Use when the user asks to create, update, enrich, or fix CLAUDE.md, add project context, improve project understanding, or replace /init or /memory with a better result.
How this skill is triggered — by the user, by Claude, or both
Slash command
/base:claude-mdThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Write CLAUDE.md files that help Claude understand a project and work effectively in it.
Write CLAUDE.md files that help Claude understand a project and work effectively in it.
Prioritize business context, repository structure, conventions, and sensitive areas. Keep technical stack details secondary and relevant.
Use this skill when the user wants to:
CLAUDE.md.CLAUDE.md.CLAUDE.md./init or /memory.CLAUDE.md files for a large repo or monorepo.Do not use this skill for:
MEMORY.md.CLAUDE.md.Start with what the project does, who uses it, and the important workflows.
Do not use the tech stack as the project overview.
Bad:
This is a Next.js 15 app built with React 19 and Tailwind CSS.
Better:
This project is a platform for X to manage Y and perform Z. Main users are A and B.
Code can reveal structure and implementation. It rarely reveals domain intent, user roles, hidden conventions, or operational constraints.
When that information is missing or uncertain, ask the user. Do not guess.
Ask the fewest questions needed to produce a high-quality CLAUDE.md. Prefer targeted follow-up questions over broad questionnaires.
Every section must help Claude work better.
Remove filler, avoid repetition, and prefer concrete instructions over generic statements.
Target concise files. If a file becomes too broad, split it.
Use concise prose for context and architecture. Use short lists only when they improve scannability, such as commands, sensitive areas, or conventions.
If the draft becomes too large to stay clear and maintainable, propose splitting it into a root CLAUDE.md, subproject CLAUDE.md files, or targeted .claude/rules/ files before finalizing.
Do not force one CLAUDE.md for every project.
A small repo may need one file. A large repo may need one root file plus subproject files.
Reuse existing documentation where it helps.
Prefer references such as @README.md over copying large blocks of content.
Do not copy setup, installation, or workflow sections from existing docs unless summarizing them adds clear value.
Review the repository structure and identify:
package.json, pyproject.toml, Cargo.toml, go.mod, pom.xml.apps/, packages/, client/, server/, services/, libs/.CLAUDE.md, README.md, and .claude/rules/ files.Determine:
CLAUDE.md.If a subdirectory has its own build file, commands, and conventions, treat it as a separate subproject candidate.
Choose the smallest structure that matches the repo.
Typical patterns:
Single app or library
CLAUDE.md
Monorepo or multi-stack repo
CLAUDE.md
client/CLAUDE.md
server/CLAUDE.md
Use separate CLAUDE.md files when a directory has its own build system or clearly separate conventions.
Do not mix unrelated stacks in one file. For example, frontend commands and backend conventions should not be merged into the same local project memory file when they belong to different subprojects.
Ensure the scope of each file is internally consistent. A local CLAUDE.md should describe only the subproject it belongs to, not the entire repository.
Before drafting, state the proposed file strategy briefly.
Before writing, ask only for the information that cannot be inferred reliably.
Use this decision rule:
Essential questions when unknown:
Useful follow-up questions when relevant:
Do not dump unnecessary questions. Ask the minimum needed to produce a good result.
If some context appears inferable, state the inference briefly and ask the user to confirm or correct it.
Use only sections that add value.
Suggested structure:
# Project name
Short business-first summary.
## Business context
What the project does, who uses it, the core workflows, and the important business rules.
## Architecture
Main parts of the system, how they interact, and important external integrations.
## Development
Run, build, and test commands, plus setup notes if needed.
## Conventions
Naming or structure rules that matter, plus project-specific workflow expectations.
## Sensitive areas
Risky files, directories, flows, operations, and known pitfalls.
Writing rules:
@path imports when existing docs already explain something well.Before writing to disk:
.claude/rules/ only when path-specific rules would clearly help.Then apply the approved changes.
When improving an existing file:
Before finalizing, verify that the result:
Avoid:
Bad:
## Project Overview
This is a Next.js 15 application built with React 19, TypeScript, and Tailwind CSS.
Better:
## Project overview
This platform helps restaurant owners manage menus, track orders, and monitor daily sales.
Main users are restaurant staff and delivery partners.
## Architecture
- Next.js frontend.
- Backend API.
- Authentication provider.
- Core flows: menu updates, order tracking, sales reporting.
npx claudepluginhub kevin-rm/claude-code --plugin baseCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.