Claude md manager

From tdimino/claude-code-minoan · View interactive version

Claude md manager is an AI agent skill from the GitHub repository tdimino/claude-code-minoan. Create, audit, and maintain CLAUDE.md documentation files that configure Claude Code for projects. Use this skill when (1) initializing a new project with Claude Code configuration, (2) reviewing or improving existing CLAUDE.md files, (3) organizing project instructions using progressive disclosure

How to use this skill

Skill file

CLAUDE.md Manager

Create and maintain effective CLAUDE.md files that configure Claude Code's project behavior.

Core Workflow

1. Determine the Mode

Creating new CLAUDE.md:

Refreshing existing CLAUDE.md:

2. Project Analysis (for new files)

Examine:

3. Apply the WHAT/WHY/HOW Framework

WHAT - Technical reality:

WHY - Context and purpose:

HOW - Practical workflows:

4. Validation Review Pass

After creating or refreshing CLAUDE.md, validate claims against the actual codebase using OSGrep. This catches stale commands, incorrect paths, and drifted conventions.

Validation Steps

1. Validate Commands

# For each command documented, verify it exists
osgrep "dev server startup configuration" -p $REPO -m 3
osgrep "test runner setup" -p $REPO -m 3
osgrep "build script configuration" -p $REPO -m 3

2. Validate Directory Structure

# Verify directories contain what's documented
osgrep "component definitions" -p $REPO/src/components -m 3
osgrep "API route handlers" -p $REPO/src/routes -m 3

3. Validate @import References

# Check each @path/to/file reference exists
test -f $REPO/docs/architecture.md && echo "EXISTS" || echo "MISSING"

4. Validate Conventions

# Verify conventions match actual code patterns
osgrep "error handling patterns" -p $REPO -m 5
osgrep "state management approach" -p $REPO -m 5
Validation Report Format
## Validation Report
- [x] `pnpm dev` - Verified in package.json scripts
- [x] `/src/components` - Contains 23 .tsx files
- [ ] `/src/services` - **EMPTY** - No files found
- [ ] `@agent_docs/testing.md` - **MISSING**
- [ ] "No class components" - **VIOLATION**: Found 2 in /src/legacy/
Deep Validation with /review (Optional)

For large codebases or quarterly audits, run multi-agent review:

/compounding-engineering:workflows:review CLAUDE.md

This invokes architecture-strategist and pattern-recognition-specialist agents to thoroughly verify structure claims and convention accuracy.

Conciseness Rules

Context budget: Claude's context window is shared. Every line in CLAUDE.md competes with conversation history and system prompts. LLMs can follow ~150-200 instructions consistently; the system prompt already uses ~50.

Targets:

Techniques:

Progressive Disclosure Pattern

When CLAUDE.md grows beyond 100 lines, split into focused files:

agent_docs/
├── building.md          # Build process details
├── testing.md           # Test conventions and execution
├── code-conventions.md  # Style and patterns
├── architecture.md      # System design decisions
└── deployment.md        # Release process

Reference in CLAUDE.md:

# Detailed Guides
- Building: @agent_docs/building.md
- Testing: @agent_docs/testing.md
- Architecture: @agent_docs/architecture.md

Claude loads these only when relevant.

Beyond agent_docs/

Three additional progressive disclosure mechanisms complement agent_docs/:

File Import Syntax

CLAUDE.md supports @path/to/file imports:

Anti-Patterns to Avoid

Avoid these patterns:

  1. Linting via LLM - CLAUDE.md instructions are advisory (the agent may ignore under context pressure). Use hooks for guaranteed execution:

```markdown

# WRONG - Don't add to CLAUDE.md:

"Always run eslint before committing"

# RIGHT - Use a hook instead (deterministic, runs every time)

```

  1. Auto-generated CLAUDE.md - /init produces suboptimal results. Craft manually.
  1. Exhaustive style guides - Claude learns from existing code patterns.
  1. Task-specific instructions in root file - Use agent_docs/ instead.
  1. Inline code snippets - Use file:line references that stay current.
  1. Secrets or credentials - CLAUDE.md should be treated as public.
  1. Negative-only constraints - Bare prohibitions ("never do X") with no alternative cause stuck agents. Every "never X" should end with "— do Y instead."
  1. Bare file references - Naked @path imports without context get ignored. Pitch each import: explain when and why to read it (e.g., @agent_docs/testing.md — test conventions and coverage thresholds. Read when writing or modifying tests.).

Template Structure

# Project Name

Brief description of what this project does.

## Stack
- [Framework] with [Key libraries]
- [Database/Storage]
- [Key tooling]

## Structure
- `/src` - Application code
- `/tests` - Test suites
- `/docs` - Documentation

## Commands
- Dev: `npm run dev`
- Test: `npm test`
- Build: `npm run build`

## Conventions
- [Critical convention 1]
- [Critical convention 2]

## Workflow
- Branch naming: `feature/description`
- Commits: Conventional Commits format
- PR: Rebase before merge

## Architecture Notes
@docs/architecture.md (if complex)

Audit Checklist (for refresh)

When reviewing existing CLAUDE.md:

Global Registration

When creating or refreshing a project CLAUDE.md, ensure the project has an entry in ~/.claude/agent_docs/active-projects.md with its directory and active plan.

Hierarchical Files

For monorepos, use CLAUDE.md at multiple levels:

/CLAUDE.md              # Repo-wide conventions
/frontend/CLAUDE.md     # Frontend-specific
/backend/CLAUDE.md      # Backend-specific
/services/auth/CLAUDE.md # Service-specific

Each file is concise and scope-appropriate.

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.