All skills
anthropics avatar

/claude-md-improver

@a86e346

Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project memory optimization".

Use this Skill: https://skilld.dev/gh/anthropics/claude-plugins-official/claude-md-improver

This session only. Nothing lands on disk.

referencestemplates.md

≈922 tokens on demand. Your agent reads this file only when SKILL.md points to it.

CLAUDE.md Templates

Key Principles

  • Concise: Dense, human-readable content; one line per concept when possible
  • Actionable: Commands should be copy-paste ready
  • Project-specific: Document patterns unique to this project, not generic advice
  • Current: All info should reflect actual codebase state

Recommended Sections

Use only the sections relevant to the project. Not all sections are needed.

Commands

Document the essential commands for working with the project.

## Commands

| Command | Description |
|---------|-------------|
| `<install command>` | Install dependencies |
| `<dev command>` | Start development server |
| `<build command>` | Production build |
| `<test command>` | Run tests |
| `<lint command>` | Lint/format code |

Architecture

Describe the project structure so Claude understands where things live.

## Architecture

<root>/ <dir>/ # <purpose> <dir>/ # <purpose> <dir>/ # <purpose>

Key Files

List important files that Claude should know about.

## Key Files

- `<path>` - <purpose>
- `<path>` - <purpose>

Code Style

Document project-specific coding conventions.

## Code Style

- <convention>
- <convention>
- <preference over alternative>

Environment

Document required environment variables and setup.

## Environment

Required:
- `<VAR_NAME>` - <purpose>
- `<VAR_NAME>` - <purpose>

Setup:
- <setup step>

Testing

Document testing approach and commands.

## Testing

- `<test command>` - <what it tests>
- <testing convention or pattern>

Gotchas

Document non-obvious patterns, quirks, and warnings.

## Gotchas

- <non-obvious thing that causes issues>
- <ordering dependency or prerequisite>
- <common mistake to avoid>

Workflow

Document development workflow patterns.

## Workflow

- <when to do X>
- <preferred approach for Y>

Template: Project Root (Minimal)

# <Project Name>

<One-line description>

## Commands

| Command | Description |
|---------|-------------|
| `<command>` | <description> |

## Architecture
<structure> ```

Gotchas

  • <gotcha>

---

## Template: Project Root (Comprehensive)

```markdown
# <Project Name>

<One-line description>

## Commands

| Command | Description |
|---------|-------------|
| `<command>` | <description> |

## Architecture
<structure with descriptions> ```

Key Files

  • <path> - <purpose>

Code Style

  • <convention>

Environment

  • <VAR> - <purpose>

Testing

  • <command> - <scope>

Gotchas

  • <gotcha>

---

## Template: Package/Module

For packages within a monorepo or distinct modules.

```markdown
# <Package Name>

<Purpose of this package>

## Usage

<import/usage example>


## Key Exports

- `<export>` - <purpose>

## Dependencies

- `<dependency>` - <why needed>

## Notes

- <important note>

Template: Monorepo Root

# <Monorepo Name>

<Description>

## Packages

| Package | Description | Path |
|---------|-------------|------|
| `<name>` | <purpose> | `<path>` |

## Commands

| Command | Description |
|---------|-------------|
| `<command>` | <description> |

## Cross-Package Patterns

- <shared pattern>
- <generation/sync pattern>

Update Principles

When updating any CLAUDE.md:

  1. Be specific: Use actual file paths, real commands from this project
  2. Be current: Verify info against the actual codebase
  3. Be brief: One line per concept when possible
  4. Be useful: Would this help a new Claude session understand the project?

Source: SKILL.md on GitHub

1 warning17d5 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    This skill includes some security considerations such as indirect prompt injection risks and access to local configuration files. While these warrant review, they are part of the skill's intended functionality for auditing project documentation. See detailed analysis for context.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    1/4 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at a86e346. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 9 months ago
tools
Read, Glob, Grep, Bash, Edit
  • Documentation
  • claude-md
  • project-context
  • audit
  • code-quality
  • repository-management
  • ai-coding-agents

README badge

README badge for anthropics/claude-plugins-official/claude-md-improver

Scans a repository for CLAUDE.md files, evaluates them against quality criteria, outputs a quality report with scores and recommendations, then applies targeted improvements with user approval. Designed for teams maintaining project context files that Claude Code reads during sessions.

Generated from the current SKILL.md.

What file types and locations does this skill scan?
The skill finds CLAUDE.md files in multiple locations: project root (./CLAUDE.md), local overrides (./.claude.local.md), global defaults (~/.claude/CLAUDE.md), package-specific files in monorepos (./packages/*/CLAUDE.md), and nested subdirectories. It searches up to 50 files per scan.
Does this skill write to CLAUDE.md files automatically?
No. The skill presents a quality report and list of recommended changes first, then asks for user approval before making any updates to files.
What happens if CLAUDE.md is missing or outdated?
The skill flags this during the quality assessment phase (typically a D or F grade) and recommends specific additions based on discovered commands, architecture patterns, and gotchas found in the codebase.
Can this skill work with monorepo projects?
Yes. The skill scans for CLAUDE.md files at package level and automatically handles monorepos because Claude's file discovery works across parent directories.

Generated from the current SKILL.md. These answers refresh after source changes.