CLAUDE.md and Agent Skills can both guide Claude Code, but they solve different problems. Put repository-wide facts and constraints that should shape most work into project memory. Put a repeatable procedure with a clear trigger and output into a skill.
Use the scope and task test
Ask two questions. First, should this instruction apply to work across the repository? Second, does it describe the project or a task? A root rule such as ‘packages/web owns the browser interface, services/api owns HTTP endpoints, and public interfaces require backward-compatibility review’ describes the repository. It belongs in the root CLAUDE.md.
A workflow such as ‘audit one guide, compare its claims with authoritative project references, produce a finding table, and suggest a patch’ describes a task. It belongs in a skill that Claude can load for a documentation audit.
A worked repository example
For a monorepo, the root memory can record facts that help with code, tests and documentation:
## Repository map - packages/web owns the browser interface - services/api owns public HTTP endpoints - packages/contracts owns shared request and response types ## Change constraints - Update tests with behavior changes - Review compatibility before changing a public interfaceDocumentation-only rules should have a narrower home. Put rules such as ‘use US English’ and ‘include an expected result after each command’ in docs/CLAUDE.md, or in a path-scoped rule that matches documentation files. Keep the root file useful to every contributor.
Then create a review-install-guide skill for the ordered review, evidence requirements and return format. Memory supplies project context; the skill supplies a method.
Test the boundary
Start a fresh session and ask Claude to summarize the repository map. The answer should reflect the root file. Open a documentation file and confirm that the narrower documentation instructions become relevant. Next, request the installation-guide review and confirm that the skill returns its required finding table.
Know the limitation
Loaded instructions consume context, and stale directory facts can misdirect future work. Keep every memory file short and maintain it with the project. A skill also needs review when its evidence sources or publishing rules change. Neither mechanism proves that the documentation is correct.
Source and further reading
This independent Starizzi field note draws on claude-howto, the community guide maintained by Luong NGUYEN (@luongnv89). The examples in this article were written by Starizzi. Source at revision 5609e68: 02-memory/README.md and 03-skills/README.md (MIT license).
Claude Code documentation: memory and skills.
Explore the claude-howto source and its five field notes in the public Knowledge Graph or open the full Claude topic graph. Next in this series: Turn a Repeated Claude Code Custom Slash Command into a Documentation Skill.
