Setup · Claude Skill

CLAUDE.md Generator Skill

Generates a project-specific CLAUDE.md file by scanning your codebase structure and conventions.

Claude Code

What it does

The CLAUDE.md Generator Skill produces a project-specific CLAUDE.md by inspecting your codebase — package manifests, folder structure, README, scripts, lint configs — and assembling a concrete context file that makes every future Claude session start smart.

What it does when Claude uses it

Claude walks through your repo, infers your stack, commands, style, and architecture, then writes a CLAUDE.md with overview, tech stack, folder guide, commands, style, state, testing, always-do, never-do, and common task sections. All specific to your project — never generic.

How to install

Which tool are you using?

Not sure? Claude.ai is the website. Claude Code is the command-line tool you install separately. Cursor is a code editor that reads .cursorrules.

  1. 01

    Download the skill file

    Click the Copy button on the code block below to grab the full contents of claude-md-generator.md. Save it locally as claude-md-generator.md.

  2. 02

    Create your skills folder

    Claude Code reads skills from ~/.claude/skills/. Create the folder if it does not exist.

    terminal
    mkdir -p ~/.claude/skills/
  3. 03

    Copy the file into the skills folder

    Move the file into your skills directory so Claude picks it up.

    terminal
    cp claude-md-generator.md ~/.claude/skills/claude-md-generator.md
  4. 04

    Verify installation

    Open Claude Code and run /skills list. You should see "claude-md-generator" appear in the list.

    terminal
    /skills list
  5. 05

    Start using it

    Claude will now apply this skill automatically whenever the task matches the skill description. No extra prompting required.

The claude skill file

Copy the full contents below, or download the file directly.

claude-md-generator.md
claude-md-generator.md
---name: claude-md-generatordescription: Use this skill to generate a project-specific CLAUDE.md by scanning the codebase.--- # CLAUDE.md Generator Skill When asked to generate a CLAUDE.md: 1. List package.json / pubspec.yaml / requirements.txt to infer stack2. Scan top-level folders to infer architecture3. Read existing README for purpose and commands4. Check scripts for dev/build/test/deploy commands5. Look for lint / format configs to infer style6. Identify state management, router, DB libs Then produce CLAUDE.md with these sections:- Project overview (2-3 sentences)- Tech stack with versions- Folder structure and what each holds- Key commands- Code style highlights- State management approach- Testing approach- Always-do list- Never-do list- Common tasks and patterns Output must be specific to this project, never generic.

Example output

What Claude does before and after you install this claude skill.

Without this claude skill

Claude writes a generic CLAUDE.md that says 'use TypeScript' and 'write tests'. Useless for your actual repo.

With this claude skill

Claude writes a CLAUDE.md that names your Next.js App Router routes, your Drizzle schema location, your pnpm commands, and your specific "never call Server Actions from Client Components" rule.

Customization tips

Edit the scan list at the top to include repo-specific files (e.g. docker-compose.yml, Makefile). If you want a shorter CLAUDE.md, remove sections you don't need. For monorepos, run the skill per package and concatenate.

Related resources

Frequently asked questions

Does it overwrite an existing CLAUDE.md?

No — it proposes a new one. Review and merge manually.

Does it work in monorepos?

Run it per package, then combine. A single CLAUDE.md for a large monorepo is usually too generic.

What if I have no README?

It still works — the inferred context will be thinner but usable.

Can it update CLAUDE.md over time?

Ask it to re-run after significant changes and diff against the existing file.

Does it read .gitignored folders?

It follows your .gitignore so secrets and node_modules are skipped.

Want more like this?

Browse the full RohanKit library — free resources for Claude and Cursor.

Back to RohanKit