AI Agent Instruction File Builder (AGENTS.md, CLAUDE.md, Cursor Rules)

Fill in guided sections for your project, start from a stack template, check length and clarity, and save the same instructions under each AI coding tool's file name.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Name the project

    Type the project name, which becomes the H1 of every exported file.

  2. 2
    Apply a template

    Pick your stack and fill empty sections, or replace them with the template text.

  3. 3
    Edit the sections

    Open each section, make the commands exact and write boundaries in plain rules.

  4. 4
    Choose a target

    Switch between AGENTS.md, CLAUDE.md, GEMINI.md, Copilot, Cursor and Windsurf.

  5. 5
    Fix warnings

    Read the length and quality checks and shorten or sharpen the text until they clear.

  6. 6
    Save the file

    Copy or download the file and save it at the path shown above the preview.

About this tool

AI coding agents read a plain Markdown file from your repository before they touch any code, and the quality of that file shows in every change they make. Each tool looks for its own name: AGENTS.md is the shared open format used by Codex, Jules, Zed, Aider and many others, Claude Code reads CLAUDE.md, Gemini CLI reads GEMINI.md, GitHub Copilot reads .github/copilot-instructions.md, Cursor reads rule files with front matter in .cursor/rules and Windsurf reads its own rules folder. Teams end up keeping several copies that drift apart. This builder keeps one set of sections: project overview, tech stack, exact commands, folder structure, code style, testing, git workflow, boundaries the agent must respect and known gotchas. You can start from templates for Next.js, Python with uv, Go, Rust, Rails or a blank project, import an existing instruction file, switch sections on and off, and export the result for each tool. The checker counts lines, words and estimated tokens against sensible limits for each tool, warns when no test command is given, spots vague phrases, repeated lines, shouted rules and anything that looks like a secret.

What to put in the file

The sections that pay off most are the ones an agent cannot guess. Exact commands come first: how to install, run, build, lint, type-check and run a single test, written in a code block so they are copied exactly. Boundaries come next: files that need your approval, commands that must never run, secrets that must never be printed. A short overview of what the product does helps the agent choose between two reasonable designs. Style rules work best as concrete patterns, such as named exports for helpers or no bare except, rather than as adjectives.

One source of truth

If several tools work in the same repository, write AGENTS.md as the main file. Claude Code supports imports, so the CLAUDE.md option writes a two-line file that imports AGENTS.md and adds nothing else. Cursor rules can either load on every request (alwaysApply true) or only for files matching globs, which suits rules for one folder or language. Nested AGENTS.md files in subfolders override the root file for that folder in tools that support them.

Length checks

Every line of an instruction file is read in every session, so length costs context and attention. The checker warns past about 400 lines for AGENTS.md and GEMINI.md, 300 for CLAUDE.md, 500 for a Cursor rule and 200 for Copilot, and treats 6,000 characters as a hard cap for a Windsurf rule file, the limit Windsurf documents.

Limits

These limits and file names come from each tool's documentation as reviewed on the date above; tools change their conventions often, so check their docs when something does not load. The page does not read your repository and cannot verify that the commands you list actually work.

Worked example

A team building Shoplist, a Next.js shopping list app, picks the Next.js template and fills the empty sections. The overview says lists must never lose items when two people edit at once. Commands list npm install, npm run dev, npm run build, npm run lint, npx tsc --noEmit and npm test in a bash block. Boundaries say never edit src/lib/sync/merge.ts without asking, never commit .env files and never run migrations against production. The AGENTS.md export comes to 62 lines, 302 words and about 466 tokens, with no warnings. They also export CLAUDE.md as a two-line import of AGENTS.md and a Cursor rule with globs src/**/*.ts, src/**/*.tsx and alwaysApply false.

Quick facts

Frequently asked questions

Which file should I create first?

AGENTS.md in the repository root, because most agents read it. Then add tool-specific files only where a tool does not read AGENTS.md, ideally as thin files that point back to it.

Does Claude Code read AGENTS.md?

Claude Code reads CLAUDE.md. A CLAUDE.md that contains @AGENTS.md imports the shared file, so both stay in sync. The builder writes that version when you tick the import option.

How long should the file be?

As short as it can be while still listing the commands, boundaries and non-obvious rules. A few hundred lines is plenty; long files dilute the rules that matter.

Can I import my existing file?

Yes. Open a .md or .mdc file and its second-level headings are matched to the builder's sections; headings that do not match land in Gotchas so nothing is lost.

What goes in boundaries?

Files and folders that need human review, commands that must never run, data the agent must not touch, and actions such as dependency upgrades or migrations that need your approval.

Is my text stored anywhere?

Only in your browser's local storage on this device, so your draft and undo history survive a reload. Nothing is uploaded.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages