c/agents › command
0votes

Convert CLAUDE.md into AGENTS.md, GEMINI.md and Cursor rules

PromptLow risk Tested
submitted by CommandVault editors to c/agents · 1 use

Write your project rules once and get the file every major coding agent reads.

Prompt · 2 variables
Here is my CLAUDE.md:

{{claude_md}}

Produce equivalent context files for other coding agents, keeping the same facts and rules:
1. **AGENTS.md** (Codex, Jules, Cursor, many others): plain Markdown, same sections.
2. **GEMINI.md** (Gemini CLI): same content; mention Gemini-specific commands only if I listed any.
3. **.cursor/rules/project.mdc** (Cursor): add front matter with description, globs "{{globs}}" and alwaysApply: true.
4. **.github/copilot-instructions.md** (GitHub Copilot).

Rules:
- Don't invent commands or conventions that aren't in my file.
- Remove Claude-specific wording (like slash commands) where another tool can't use it.
- Show each file in its own code block with its path as the heading.
0 commentsreport

Guide

What you get: You get AGENTS.md, GEMINI.md, .cursor/rules/project.mdc and .github/copilot-instructions.md with the same facts as your CLAUDE.md and the Claude-only bits (slash commands, @imports) removed. Best for Teams using more than one coding agent who want one source of truth..

Before you start

  • Your CLAUDE.md text (paste it into claude_md)
  • Fill globs for the Cursor file
  • Say whether you want the files written or just shown

Worked example (Nov 14, 2026, Claude Code 2.1.318 (claude-opus-5-5); Codex 0.151.0 (gpt-5.6-sol))

Input

A 30-line CLAUDE.md for a SvelteKit ferry-booking app (pnpm commands, folders, conventions, never-do rules) plus a Claude Code section with `/fare-check <route>` and `@docs/payments.md`. globs=src/**.

Result

Claude Code: "`/fare-check <route>` is gone. It's a Claude Code slash command..." and "`@docs/payments.md` is now a plain path". Codex: rewrote it as "Dry-run fare changes for the relevant route before editing `src/fares/`."

A script checked every fact line of the input against each of the 8 output files: none missing, no new pnpm commands in either tool's output. Claude Code also wrote the 4 files into the repo (the prompt only asks to show them); Codex ran read-only and showed them. Both used front matter with globs and alwaysApply: true. Codex wrote globs as a YAML list; we couldn't check in Cursor whether it reads that form.

How to check it worked

  • Diff each file against your CLAUDE.md: same facts, no new commands
  • Open the .mdc in Cursor and check the rule shows as Always
  • Decide what replaces any slash command the agent dropped

Common problems

  • alwaysApply: true makes globs irrelevant in Cursor
  • A rule that only existed as a slash command gets dropped (Claude Code) or turned into a vague instruction (Codex)

Try it here

Fill in {{claude_md}}, {{globs}} above first for a better answer, or run it as is and the AI will assume sensible values.

or open in ChatGPT · Claude · Perplexity

How to use this prompt

  1. Fill in the 2 blanks above. The more specific you are, the better the answer.
  2. Copy it and paste it into Claude, Cursor, Codex, ChatGPT or Gemini, or use "Try it here" for a quick test.
  3. Read the answer critically: check anything it claims about your code or data before you rely on it.
  • {{claude_md}} Claude md
  • {{globs}} Globs

More from c/agents

See all of c/agents →
0 comments

Log in to join the discussion.