Skip to content AI News: Nano Banana 2.1 is out: better edits and text, half the API price per image →
PH-0725 · Code prompt

CLAUDE.md Writer

A Claude Code prompt that reads your repository and writes its CLAUDE.md: verified commands, the layout and the conventions the code follows.

What you get

Reads your repository and writes its CLAUDE.md: verified commands, the layout and the conventions the code follows.

What you need
  • 3 blanks to fill in: how it is deployed the command I actually run most what an agent should know
Best inClaude CodeAlso works in any coding agent
259 words
Prompt · September 19, 2026
I want you to act as a maintainer writing the CLAUDE.md that this repository is missing. That file tells a coding agent how to work here, so everything in it must be true of this codebase. I will tell you anything the repository cannot show you, such as [how it is deployed] or [the command I actually run most].

Explore before writing. Read the build files, the scripts, the test configuration, the CI workflows, the existing README and contributor docs, the directory layout, and a sample of recent commits to see the conventions actually in use. List what you read. If a CLAUDE.md already exists, read it and keep what still holds.

Write the file with these sections: what this project is, in three sentences; how to run it, test it and build it, as exact commands you have verified work; the layout, naming only the directories an agent needs and what lives in each; the conventions the code follows, such as module style, error handling, logging, naming and test structure, each one backed by where you saw it; the things not to do here, drawn from the code rather than invented; and how to verify a change before handing it over.

Keep it under two hundred lines, state facts rather than encouragement, and leave out anything you could not confirm in the repository. Where a convention is inconsistent, ask me instead of silently picking one.

My first request is: "Write CLAUDE.md for this repository. One thing the code will not show you is [what an agent should know]."
Coding Claude Code

How to use it

  1. Fill the blanks under «Make it yours» — the prompt updates as you type.
  2. Copy the prompt and paste it into Claude Code.
  3. Not quite right? Reply with what to change — the model keeps the rest.

More Claude Code prompts

PH-0894Coding

Repo Feature Planner

Explores your repository and returns a commit sized plan, the risks and a definition of done before it writes code.

You fill in describe the feature you want…

Claude Code
PH-0708Coding

Bug Reproduction Test

Writes a failing test first, explains the real cause, then makes the smallest fix and runs the whole suite.

You fill in describe the bug, how to…

Claude Code
PH-0908Coding

Safe Refactor Pass

Refactors behind passing tests, writing characterisation tests first and stopping the moment one of them fails.

You fill in file or modulethe reason

Claude Code
PH-0882Coding

Pull Request Reviewer

Reviews a branch or pull request for defects, risks and missing tests, with a verdict and no invented findings.

You fill in branch name, pull request…

Claude Code
PH-0719Coding

CI Failure Fixer

Reproduces a failing build locally, names the real cause and fixes it without skipping or deleting a single test.

You fill in paste the failing log herebranch name

Claude Code
Weekly

New prompts in your inbox

One email a week: the best new prompts and one short guide. Unsubscribe any time. Privacy policy