Cursor .mdc Rules to Portable AGENTS.md Converter

Converts your pasted Cursor .mdc rules into a single AGENTS.md that Codex, Copilot and Gemini CLI can read, plus a table of what does not carry over.

You get: Working code with an explanation

More like this

The prompt

Installs to .agents/skills/cursor-mdc-rules-to-portable-agents-md-converter/

mkdir -p .agents/skills/cursor-mdc-rules-to-portable-agents-md-converter && curl -sL "https://prompts-gpt.com/prompts/cursor-mdc-rules-to-portable-agents-md-converter/raw" -o .agents/skills/cursor-mdc-rules-to-portable-agents-md-converter/SKILL.md
SKILL.md
Preview
---
name: cursor-mdc-rules-to-portable-agents-md-converter
description: "Converts your pasted Cursor .mdc rules into a single AGENTS.md that Codex, Copilot and Gemini CLI can read, plus a table of what does not carry over."
---

# Cursor .mdc Rules to Portable AGENTS.md Converter

Converts your pasted Cursor .mdc rules into a single AGENTS.md that Codex, Copilot and Gemini CLI can read, plus a table of what does not carry over.

## Prompt

```
You are a developer-tooling engineer who knows Cursor project rules and the AGENTS.md convention read by Codex, GitHub Copilot and Gemini CLI. Convert the Cursor .mdc rules below into one portable AGENTS.md.

Rules:
- Keep only instructions any coding agent can follow. Rewrite them as short imperative bullets under plain headings such as Setup, Code style, Testing and Conventions.
- Turn glob-scoped rules into explicit path sections like "In src/api/**: ...", because other tools ignore frontmatter fields such as globs and alwaysApply.
- Merge duplicates, and flag every contradiction instead of silently picking one side.
- Never invent commands or conventions that are not in the rules. If a build or test command is missing, ask me at most two short questions first.

Output exactly:
1. The complete AGENTS.md in one markdown code block.
2. A table titled "Does not carry over" with columns: Original rule or feature, Why it is lost, Suggested workaround (for example keep a slim .mdc for Cursor-only auto-attach, or use @file references).
3. A short list of conflicts, gaps and assumptions.

Rules to convert:
{paste your .mdc rules here}
```

## Usage Notes

Use when you want one instruction file shared across several coding agents. Paste the full text of your .mdc files, including frontmatter, so scoping can be translated.

Example output

AI-written example
# AGENTS.md

## Setup
- Use pnpm. Install dependencies with `pnpm install`.
- Start the dev server with `pnpm dev`.
- Lint with `pnpm lint`.
- Typecheck with `pnpm typecheck`.

## Code style
- Use TypeScript in strict mode. Do not use `any`.
- Use named exports only.
- Write React components as functions with hooks. Do not write class components.
- Style with Tailwind classes. Do not use inline styles.

## Testing
- Run `pnpm test` before finishing a task.
- Place tests next to the source file as `*.test.ts`.
- <!-- CONFLICT: rules name both Jest and Vitest. Confirm the runner and delete this note. -->

## Conventions
- Write commit messages in Conventional Commits format.
- Do not add new dependencies without asking.

## Path-specific rules

### In src/api/**
- Validate all request input with zod.
- Return errors as `{ error: string, code: string }`.
- Access the database only through `src/db/repo`. Do not call Prisma directly.

### In src/components/**
- Put one component in each file.
- Name files in PascalCase.

### In prisma/migrations/**
- Never edit an existing migration. Create a new one instead.
Does not carry over
Original rule or featureWhy it is lostSuggested workaround
globs: frontmatterOther tools ignore it, so rules no longer auto-attach by file patternKeep a slim .mdc with the globs for Cursor. The path sections in AGENTS.md cover the other tools.
alwaysApply: false with a description (agent-requested rules)Codex, Copilot and Gemini CLI load the whole file and cannot choose rules on demandPut nested AGENTS.md files in subfolders such as src/api/
@tsconfig.json file
Generated from this prompt by AI. Your results will vary.

Tips and common edits

Use when you want one instruction file shared across several coding agents. Paste the full text of your .mdc files, including frontmatter, so scoping can be translated.

Questions about this prompt

More in Cursor

Characterization Tests Before a Refactor

Writes tests that lock in a module's current behavior, including edge cases and quirks, so you can refactor safely.

Codebase Tour for a Specific Task

Explores a repo through the lens of your task and explains the architecture, key files and data flow, then says where to start.

Failing Test First Bug Fix

Reproduces a bug with a failing test, finds the root cause, applies the smallest fix and shows the test passing.

Side Hustle Matcher Ranked by Cost, Speed and Realism

Get five side hustles matched to your skills and weekly hours, ranked by startup cost, time to first $100 and realism, each with a first step.

Trending

Developmental Edit Memo for an Essay Draft With Revise-or-Cut Decisions

Gives a draft essay a structured developmental edit: thesis check, paragraph-by-paragraph audit, and a prioritized revision plan so you can decide what to keep, rewrite, or cut before line editing.

20-Case Agent Eval Set with Pass/Fail Rubric for Normal, Edge and Unsafe Requests

Builds 20 test cases for your agent's task, with expected behavior, failure signals and a pass/fail rubric covering normal, edge and unsafe requests.

30-Minute Moderated Usability Test Script with Tasks and Notes Template

Produces a timed 30-minute moderated usability script with task scenarios, neutral follow-up questions and a ready-to-use notes template.

4-Week Small Business Launch Plan: $0 and Small-Budget Versions

Builds a 4-week launch plan for a product or service in a specific market, with channels and weekly tasks in a $0 version and a small-budget version.

60-Minute Lesson Plan with Checks for Understanding and Differentiation

Builds a timed, objective-aligned lesson plan with formative checks, differentiation, and a teach-or-revise readiness verdict. It asks for missing inputs first and keeps assumptions separate.

60-Second Product Explainer Script and Shot List

Turns a product brief into a timed explainer script, shot list, and production checklist so a team can decide whether to greenlight, revise, or shoot the video.

8-Second Veo, Sora or Seedance Prompt with Timed Beats

Writes one ready-to-paste 8-second AI video prompt with timed beats, camera moves, lighting and audio cues.

90-Day Lifecycle Marketing Diagnostic and Experiment Roadmap for Onboarding and Retention

Diagnoses drop-off across the customer lifecycle from your funnel data and produces a prioritized 90-day plan of messages, triggers, and experiments with metrics so teams can decide where to invest first.