К основному содержанию
скилл CX Codex

memory-md-management — скилл для Claude Code: аудит CLAUDE.md

Скилл проверяет файлы памяти проекта вроде CLAUDE.md, ставит им оценку по шести критериям и предлагает точечные правки.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add giuseppe-trisciuoglio/developer-kit --skill memory-md-management -a claude-code
Открыть на GitHub

Что делает memory-md-management

Скилл проходит по репозиторию и находит все файлы памяти: корневой ./CLAUDE.md, локальный ./.claude.local.md, глобальный ~/.claude/CLAUDE.md, а также файлы внутри пакетов и подкаталогов. Дальше каждый файл оценивается по шести критериям: команды и рабочие процессы, ясность архитектуры, неочевидные паттерны, лаконичность, актуальность и применимость. Итог — балл от 0 до 100 и буквенная оценка от A до F.

Работа идёт в пять фаз: поиск файлов, оценка качества, отчёт, точечные правки, применение изменений. Отчёт выводится всегда до правок, а сами правки скилл показывает в виде diff и ждёт подтверждения. Для этого ему нужны инструменты Read, Glob, Grep, Bash и Edit.

Полезно, когда документация устарела или её вообще нет. Скилл не переписывает файл целиком: он предлагает добавить команды сборки и тестов, описать подводные камни, поправить устаревшие пути. Если в проекте несколько пакетов, проверка затронет каждый файл памяти отдельно — это повод сначала решить, какие из них вы вообще хотите поддерживать.

Какие задачи решает

  • проверить качество CLAUDE.md и получить оценку по баллам
  • создать файл памяти проекта с нуля
  • найти устаревшие пути и команды в документации
  • дописать в файл памяти неочевидные паттерны и подводные камни
  • проверить файлы памяти во всех пакетах монорепозитория

Примеры запросов агенту

  • проверь качество CLAUDE.md в этом проекте
  • создай CLAUDE.md для этого проекта
  • обнови файл памяти: добавь команды тестов и сборки

Как установить memory-md-management

1Через Skills CLI (Vercel)

npx skills add giuseppe-trisciuoglio/developer-kit --skill memory-md-management -a claude-code

2Вручную: положить файлы

~/.claude/skills/memory-md-management/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/memory-md-management/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о memory-md-management

Как установить memory-md-management в Claude?

Через установщик скиллов: npx skills add giuseppe-trisciuoglio/developer-kit --skill memory-md-management -a claude-code. После этого файл скилла лежит в ~/.claude/skills/memory-md-management/SKILL.md.

Что делает memory-md-management?

Ищет файлы памяти проекта, оценивает их по шести критериям с баллом и буквенной оценкой, печатает отчёт и предлагает точечные правки. Изменения применяются только после подтверждения.

Какие инструменты нужны скиллу?

В нём разрешены Read, Glob, Grep, Bash и Edit. Поиск файлов идёт через find, а правки вносятся инструментом Edit.

Исходный текст

SKILL.md · MIT
---
name: memory-md-management
description: Provides comprehensive memory file management capabilities including auditing, quality assessment, and targeted improvements for files such as CLAUDE.md. Use when user asks to check, audit, update, improve, fix, maintain, or validate project memory files. Also triggers for "project memory optimization", "CLAUDE.md quality check", "documentation review", or when a project memory file needs to be created from scratch. This skill scans memory files, evaluates quality against standardized criteria, outputs detailed quality reports with scores and recommendations, then makes targeted updates with user approval.
allowed-tools: Read, Glob, Grep, Bash, Edit
---

# Memory.md Management

Provides comprehensive project memory file management capabilities including auditing, quality assessment, and targeted improvements. This skill ensures the coding agent has optimal project context by maintaining high-quality documentation files such as `CLAUDE.md`.

## Overview

Project memory files such as `CLAUDE.md` are the primary mechanism for providing project-specific context to coding agent sessions. This skill manages their complete lifecycle: discovery, quality assessment, reporting, and improvement. It follows a 5-phase workflow that ensures documentation is current, actionable, and concise.

The skill evaluates CLAUDE.md files against standardized quality criteria across 6 dimensions: Commands/Workflows, Architecture Clarity, Non-Obvious Patterns, Conciseness, Currency, and Actionability. Each file receives a score (0-100) and letter grade (A-F) with specific improvement recommendations.

## When to Use

Use this skill when:

- User explicitly asks to "check", "audit", "update", "improve", "fix", or "maintain" CLAUDE.md
- User mentions "CLAUDE.md quality", "documentation review", or "project memory optimization"
- A project memory file needs to be created from scratch for a new project
- User asks about improving Claude's understanding of the codebase
- Documentation has become stale or outdated
- Starting work on a new codebase and need to understand existing documentation
- User presses `#` during a session to incorporate learnings into a memory file

**Trigger phrases:** "audit CLAUDE.md", "check documentation quality", "improve project context", "review CLAUDE.md", "validate documentation"

## Instructions

### Phase 1: Discovery

Find all CLAUDE.md files in the repository:

```bash
find . -name "CLAUDE.md" -o -name ".claude.md" -o -name ".claude.local.md" 2>/dev/null | head -50
```

**File Types & Locations:**

| Type | Location | Purpose |
|------|----------|---------|
| Project root | `./CLAUDE.md` | Primary project context (checked into git, shared with team) |
| Local overrides | `./.claude.local.md` | Personal/local settings (gitignored, not shared) |
| Global defaults | `~/.claude/CLAUDE.md` | User-wide defaults across all projects |
| Package-specific | `./packages/*/CLAUDE.md` | Module-level context in monorepos |
| Subdirectory | Any nested location | Feature/domain-specific context |

### Phase 2: Quality Assessment

For each CLAUDE.md file, read [references/quality-criteria.md](references/quality-criteria.md) and evaluate against these criteria:

| Criterion | Weight | What to Check |
|-----------|--------|---------------|
| Commands/workflows | 20 pts | Are build/test/deploy commands present and working? |
| Architecture clarity | 20 pts | Can Claude understand the codebase structure? |
| Non-obvious patterns | 15 pts | Are gotchas and quirks documented? |
| Conciseness | 15 pts | Is content dense without filler? |
| Currency | 15 pts | Does it reflect current codebase state? |
| Actionability | 15 pts | Are instructions executable and copy-paste ready? |

**Quality Scores:** A (90-100), B (70-89), C (50-69), D (30-49), F (0-29)

### Phase 3: Quality Report Output

**CRITICAL: Always output the quality report BEFORE making any updates.**

Format:
```markdown
## CLAUDE.md Quality Report

### Summary
- Files found: X
- Average score: X/100
- Files needing update: X

### File-by-File Assessment
#### 1. ./CLAUDE.md (Project Root)
**Score: XX/100 (Grade: X)**

| Criterion | Score | Notes |
|-----------|-------|-------|
| Commands/workflows | X/20 | ... |
| Architecture clarity | X/20 | ... |
| Non-obvious patterns | X/15 | ... |
| Conciseness | X/15 | ... |
| Currency | X/15 | ... |
| Actionability | X/15 | ... |

**Issues:**
- [List specific problems]

**Recommended additions:**
- [List what should be added]
```

### Phase 4: Targeted Updates

After report output, ask user for confirmation before updating.

**Read [references/update-guidelines.md](references/update-guidelines.md) for detailed update principles.**

Key principles:
1. **Propose targeted additions only** - commands, gotchas, patterns, configs
2. **Keep it minimal** - avoid obvious info, generic advice, one-off fixes
3. **Show diffs** - file, change (diff format), explanation

Diff format:
```markdown
### Update: ./CLAUDE.md
**Why:** [Brief explanation of why this helps]

```diff
+ ## Quick Start
+
+ ```bash
+ npm install
+ npm run dev
+ ```
```
```

### Phase 5: Apply Updates

After user approval, use Edit tool to apply changes. Preserve existing content structure.

## Examples

### Example 1: Quality Assessment

**User request:** "Check if my CLAUDE.md is good"

**Response:**
~~~markdown
## CLAUDE.md Quality Report

### Summary
- Files found: 1
- Average score: 65/100
- Files needing update: 1

### File-by-File Assessment

#### 1. ./CLAUDE.md
**Score: 65/100 (Grade: C)**

| Criterion | Score | Notes |
|-----------|-------|-------|
| Commands/workflows | 10/20 | Only npm install documented |
| Architecture clarity | 15/20 | Basic tree, missing module relationships |
| Non-obvious patterns | 5/15 | No gotchas documented |
| Conciseness | 15/15 | Concise and dense |
| Currency | 10/15 | Some outdated paths |
| Actionability | 10/15 | Some vague instructions |

**Issues:**
- Missing test command
- Missing build command
- No documentation of auth flow complexity
- References to old src/structure

**Recommended additions:**
- Add Commands section with test/build
- Document auth module gotcha
- Update architecture paths
```

### Example 2: Creating from Scratch

**User request:** "Create a CLAUDE.md for this React project"

**Response:**
```markdown
I'll create a CLAUDE.md for your React project. Let me first analyze the codebase structure.

[Scans package.json, src/, and key config files]

## CLAUDE.md Quality Report

### Summary
- Files found: 0
- Creating new CLAUDE.md at project root

### Proposed CLAUDE.md Content:

# Project Name

## Commands

| Command | Description |
|---------|-------------|
| `npm install` | Install dependencies |
| `npm run dev` | Start dev server (Vite on port 5173) |
| `npm run build` | Production build |
| `npm run test` | Run Vitest tests |
| `npm run lint` | ESLint check |

## Architecture

```
src/
├── components/    # Reusable UI components
├── pages/         # Route pages
├── hooks/         # Custom React hooks
├── lib/           # Utilities and API clients
└── main.tsx       # Entry point
```

## Gotchas

- Vite requires files in `public/` for static assets
- State updates in `useEffect` need proper dependency arrays
```

Shall I create this file?
```

### Example 3: Update Proposal

**User request:** "Update my CLAUDE.md with what you learned"

**Response:**
```markdown
### Update: ./CLAUDE.md

**Why:** Discovered that tests require database setup which wasn't documented.

```diff
## Testing

+ **Prerequisites:** Start test database first with `docker-compose up -d test-db`
+ `npm run test` - Run all tests
+ `npm run test:unit` - Unit tests only (no DB required)
```

Also found issue with API_BASE_URL:

```diff
## Environment

- `API_BASE_URL` - API endpoint (default: localhost:3000)
+ `API_BASE_URL` - API endpoint (required for production, defaults to http://localhost:3000 in dev)
```

Apply these changes?
~~~

## Best Practices

1. **Always read references before acting**: Quality criteria, templates, and update guidelines contain essential details
2. **Report before editing**: Never modify CLAUDE.md without first presenting a quality report
3. **Preserve existing structure**: When updating, maintain the existing organization and style
4. **Be project-specific**: Only add information specific to this codebase, not generic advice
5. **Verify commands work**: Before suggesting commands, mentally or actually verify they execute correctly
6. **Use progressive disclosure**: Keep SKILL.md lean, reference detailed rubrics in separate files
7. **Score consistently**: Apply the same scoring standards across all files for fair comparison

## Constraints and Warnings

1. **Never modify without approval**: Always get user confirmation before editing CLAUDE.md files
2. **Don't remove content without asking**: If suggesting deletions, explicitly mark them and get approval
3. **Respect `.claude.local.md`**: These are personal settings; never suggest modifying them in shared docs
4. **Avoid generic advice**: Do not add "write good code" type content - focus on project-specific patterns
5. **Keep diffs concise**: Show only the actual changes, not entire file contents
6. **Verify file paths**: Ensure all referenced files exist before documenting them
7. **Score objectively**: Use the rubric consistently; don't inflate scores for incomplete documentation

© giuseppe-trisciuoglio · MIT · giuseppe-trisciuoglio/developer-kit

Похожие скиллы

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
memory-spring-cleaning davila7 Разбирает CLAUDE.md и файлы документации, сверяет записанные правила с реальным кодом и убирает устаревшее. 391установок memory-audit nhadaututtheky Проверяет качество памяти NeuralMemory по шести измерениям и выдаёт отчёт с оценкой и списком проблем. Пригодится, когда агент путается в старых записях. CX Codex +1 602установок story-memory haowjy Скилл для ИИ-кодинга и письма: хранит канон, факты и контекст между главами. Пригодится, когда проект растёт и агент теряет детали. CX Codex +1 527установок claude-migrate-memory-to-doc daymade Вытаскивает профиль и предпочтения из личной памяти Claude в документы, которые читают Codex, Cursor и другие CLI. CX Codex +1 325установок memory-merger официальный github Собирает зрелые заметки из memory-файла и переносит их в файл инструкций. Пригодится для поддержания правил проекта в актуальном виде. 12 846установок memory-management официальный anthropics Скилл раскладывает рабочие сокращения, имена и термины по файлам памяти, чтобы агент учитывал их в запросах. Пригодится для проектов с внутренним словарём и множеством контекстных деталей. CX Codex +1 7 400установок

Из того же набора93

better-auth Скилл с готовыми шаблонами Better Auth: подключение к NestJS, Drizzle ORM и PostgreSQL, вход через соцсети и плагины вроде 2FA и passkey. CX Codex +1 3 600установок aws-lambda-typescript-integration Помогает проектировать серверлесс-функции на TypeScript под AWS Lambda, выбирая между NestJS и чистым кодом с оптимизацией холодного старта. CX Codex +1 3 600установок aws-lambda-python-integration Подсказывает агенту, как писать и разворачивать Python-функции в AWS Lambda: Chalice или чистый Python, холодный старт, API Gateway и ALB. CX Codex +1 3 600установок graalvm-native-image Скилл помогает компилировать Java-приложения в нативные бинарники с помощью GraalVM Native Image. Пригодится для сокращения времени холодного старта и потребления памяти. CX Codex +1 3 500установок dynamodb-toolbox-patterns Скилл с готовыми шаблонами TypeScript для DynamoDB-Toolbox v2: схемы, сущности, .build()-команды, запросы и транзакции. CX Codex +1 3 500установок github-issue-workflow Пошаговый сценарий из 8 фаз для решения задач на GitHub от чтения описания до создания пулл-реквеста. Помогает безопасно разобрать issue и написать проверенный код. CX Codex +1 3 500установок notebooklm Скилл подключает агента к Google NotebookLM через CLI nlm: поиск по документации, добавление источников, генерация подкастов и отчётов. CX Codex +1 3 500установок docs-updater Скилл сравнивает текущую ветку с последним релизным тегом и правит README, CHANGELOG и папки с документацией. Пригодится перед релизом или пул-реквестом. CX Codex +1 3 500установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой