# update-claudemd

update-claudemd — a skill that checks CLAUDE.md and the topic files in .claude/rules/ against the actual code and commit history, then trims what went stale and regroups the instructions.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 276 repo stars
- Author: Samarth Gupta
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/gupsammy/Claudest/tree/HEAD/plugins/claude-coding/skills/update-claudemd/SKILL.md
- Updated: 2026-10-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/update-claudemd

## What it does

The skill re-checks a project's `CLAUDE.md` and everything under `.claude/rules/*.md` against what the repository holds now, plus commits made after each file was last touched. Structure follows progressive disclosure: the root file keeps project identity, invariants shared by most tasks, and pointers; narrow notes move into topic files.

Before reading any code it sizes the job. How many commits landed since the last `CLAUDE.md` edit, and how many files git tracks, decide how many shards the scan gets, capped at 4. Then 3 + N `Explore` agents start at once. One classifies every section and looks for dead paths, wrong commands and duplicated text. Another replays `git log` for each instruction file separately. Limits are advisory: roughly 120 lines for `CLAUDE.md` with 150 as the ceiling, about 300 per topic file, and an overage gets flagged rather than blocked.

Every topic file it writes has to carry `paths:` in the frontmatter, because files in `.claude/rules/` otherwise load at SessionStart in every session. No `CLAUDE.md` at the repo root means the skill stops instead of generating one. A git repository is required too, since each staleness window starts at that file's own commit date. The user-level `~/.claude/CLAUDE.md` is left alone.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add gupsammy/Claudest
```
In the agent chat (not a shell):
```text
/plugin install claude-coding@Claudest
```
This installs the whole claude-coding plugin with all its skills

2. **Skills CLI (Vercel)**
```bash
npx skills add gupsammy/Claudest --skill update-claudemd -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/update-claudemd/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/update-claudemd/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add gupsammy/Claudest --skill update-claudemd -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/update-claudemd/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add gupsammy/Claudest --skill update-claudemd -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/update-claudemd/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install gupsammy/Claudest plugins/claude-coding/skills/update-claudemd
```

2. **Manually: put the files in place**
- File: `.github/skills/update-claudemd/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add gupsammy/Claudest --skill update-claudemd -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/gupsammy/Claudest --path plugins/claude-coding/skills/update-claudemd
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/update-claudemd/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/gupsammy/Claudest/tree/HEAD/plugins/claude-coding/skills/update-claudemd/SKILL.md

## When to use it
- sync `CLAUDE.md` with code that moved since the last edit
- strip dead paths and stale commands from project instructions
- split an oversized `CLAUDE.md` into files under `.claude/rules/`
- spot duplicated guidance between the root file and its topics
- catch topic files that nothing links to from the index

## Example prompts
- Update CLAUDE.md, it drifted away from the codebase.
- Reorganize CLAUDE.md and move subsystem notes into topic files.
- Audit .claude/rules/ and sync those files with the code.

## Similar
- [progressive-disclosure](https://affpapa.org/en/nevibecode/skills/progressive-disclosure.md) — skill · ★ 374 repo stars
- [recall](https://affpapa.org/en/nevibecode/skills/backnotprop-recall.md) — skill · 10100 installs
- [update-claude-learnings](https://affpapa.org/en/nevibecode/skills/update-claude-learnings.md) — skill · 162 installs
- [self-improving-agent](https://affpapa.org/en/nevibecode/skills/self-improving-agent.md) — skill · 1078 installs
- [memorize](https://affpapa.org/en/nevibecode/skills/memorize.md) — skill · 1400 installs
- [skill-integrator](https://affpapa.org/en/nevibecode/skills/skill-integrator.md) — skill · 387 installs

From the same set: [gupsammy/claudest](https://affpapa.org/en/nevibecode/by/gupsammy/claudest.md) — 47 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
