Skip to main content
Category: Developer Tools · Version: 1.0.0 · Author: OpenDirectory · Compatibility: All targets (claude, codex, opencode, gemini, anti-gravity, openclaw, hermes)
claude-md-generator Reads your codebase and writes a CLAUDE.md that gives Claude Code the context it needs: build commands, code conventions, architecture notes, and gotchas. Stays under 200 lines.

Install

What It Does

  • Scans project files: package.json, tsconfig.json, linter configs, Makefile, directory structure
  • Extracts all build, test, lint, and dev commands
  • Identifies code style conventions that differ from defaults (path aliases, export patterns, naming)
  • Maps non-obvious architecture decisions
  • Finds gotchas: auto-generated files, required env var setup, test dependencies
  • Generates CLAUDE.md using Gemini, then verifies it stays under 200 lines
  • If CLAUDE.md already exists, improves it without discarding custom content

Requirements

Setup

How to Use

From the project root you want to document:
To update an existing CLAUDE.md:

What Goes in CLAUDE.md

Why Under 200 Lines

Long CLAUDE.md files get ignored. Claude loads the full file into context every session: a bloated CLAUDE.md with obvious content trains Claude to skim it. A tight 100-150 line CLAUDE.md with only non-obvious facts gets read and used. The skill cuts aggressively: if a section says only things Claude can infer from the code, it removes it.

Project Structure

License

MIT