Skip to content
Category

AI Prompts for AI Agent & Markdown Files

For the instruction files coding agents read before they touch your repo: a CLAUDE.md that Claude Code actually follows, an AGENTS.md that works across Codex, Cursor and Claude, project rules files, and the build, test and style notes you keep repeating in every chat.

11 free promptsWorks withChatGPTClaudeGemini
Chat

Generate a CLAUDE.md for Your Repo That Claude Code Actually Follows

For when Claude Code keeps making the same mistakes in your repo even though the rule is right there in…

AI Agent & Markdown FilesClaudeChatGPTGemini
View

Coding agents like Claude Code, Codex and Cursor start every session by reading a plain Markdown file in your repo, usually CLAUDE.md or AGENTS.md. When that file is missing or vague, the agent guesses: it runs the wrong test command, reformats files you didn't ask it to touch, and reintroduces patterns your team removed months ago. When the file is bloated, it skims past the rules that matter. The prompts in this category help you write the short, specific version in between. Each prompt starts from your real project: the stack, the commands you actually run, the folders that matter and the mistakes you're tired of correcting. It turns that into a structured Markdown file with clear sections for commands, architecture, conventions and hard rules, written as direct instructions an agent can act on rather than a wiki page for humans. Nothing is invented, and anything the prompt had to assume is listed so you can check it before you commit the file. The output is a .md file, so you can paste it into the Markdown Preview tool to see how it renders, then drop it into the root of your repo. Treat it as a first draft: run a few agent sessions, note where it still goes wrong, and add one line at a time.

Browse other categories

FAQ

Frequently asked questions

What is the difference between CLAUDE.md and AGENTS.md?

CLAUDE.md is the file Claude Code reads automatically at the start of a session. AGENTS.md is a shared convention read by several tools, including OpenAI Codex and Cursor. The content is mostly the same: commands, structure and rules for your repo. Many teams keep one as the main file and point the other at it.

How long should an agent instructions file be?

Shorter than you think. Agents follow a tight file of specific rules better than a long one full of general advice. Aim for the commands you run, the structure that isn't obvious from the code, and the handful of mistakes you keep correcting, then grow it only when an agent gets something wrong.

Will these prompts invent commands or rules for my project?

No. Each prompt works only from the details you paste in, such as your package scripts, folder layout and team conventions, and it flags anything it couldn't confirm instead of making it up. Check every command in the output before you commit the file.

Do I need a paid ChatGPT, Claude or Gemini plan?

No. Every prompt is plain text you copy into whatever assistant you already use, free tier included. You don't need an MDCrafter account either.

Keep going

What's next