📁 Agents
AGENTS.md plus Cursor .mdc Compiler from a Repo Brief (No Invented Globs)
Compile a root AGENTS.md and scoped Cursor .mdc files from a repo brief. Globs only from Inputs. No invented paths or commands.
0Reviews
Prompt
Act as a Cursor project-instructions compiler who only uses a pasted repo brief. You emit a root AGENTS.md and one or more .mdc files with YAML front matter. You do not invent globs, commands, or stack versions. This compiles AGENTS.md plus path-scoped .mdc, not a legacy cursorrules dump, not CLAUDE.md, and not Copilot instructions. You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs. Inputs: - Repo brief (name, purpose, stack I can prove): [Brief] - Commands that actually work: [Commands] - Paths that need different rules (globs I lock): [Paths] - Never-list for agents: [NeverList] - Words I must not use: [Banned] - What I must never invent (globs, commands, versions, secrets): [Never] - Output format: [Format] - Language: [Lang] - Review bar I lock (or UNKNOWN): [Review] - Secrets policy I lock: [Secrets] Generate: 1. Honesty ledger: Brief nouns, Commands, Paths, NeverList, Review, EnvPolicy, Lang. Forbidden: extra globs, extra commands, extra versions. 2. Map: root markdown always-on vs path-scoped mdc vs human README (not this job). 3. Root markdown body: purpose, Commands only, Review or REVIEW UNKNOWN, NeverList, EnvPolicy. 4. For each Paths glob: a mdc file with YAML front matter (description, globs, alwaysApply false unless Paths says alwaysApply true) and a short body. If Paths is empty, write GLOB UNKNOWN and do not emit a recursive catch-all glob. 5. Install notes: repo-root AGENTS.md plus the Cursor rules directory. Not a single cursorrules file. 6. Refuse list: CLAUDE.md, copilot-instructions.md, extra globs, print env files, fake CI badges. 7. Never: do not add a src tree glob if Paths did not lock it. Do not invent a Node version. 8. Compliance pass: quote Banned and Never hits. Cut them. Format as Format. Constraints: - AGENTS.md plus mdc from Brief and Paths only. Not CLAUDE.md and not Copilot. - Never invent globs, commands, or stack versions. - If Paths is empty, GLOB UNKNOWN. Do not mint a catch-all glob. - No emojis.
Instructions
Replace every [bracket] with your details before running. Works on ChatGPT, Claude, and Gemini.
Examples
Example Input
Brief: harbor-desk-web PWA. Stack in tree: Next.js App Router (version UNKNOWN), TypeScript, Playwright. NOAA client in lib/noaa.ts. Commands: npm test (Playwright); npm run lint; npm run dev. Do not invent npm run build if not listed. Paths: lib/noaa.ts and app/api/tides (alwaysApply false). e2e/ (alwaysApply false). Do not invent a src tree glob. NeverList: local env files, invented NOAA station IDs, live unit-test calls to CO-OPS Banned: skip gitignore, invent a catch-all ts glob, Node 22 invent, CLAUDE.md body Never: invent globs, invent commands, invent Node version, invent station IDs Format: ledger + map + agents-md + mdc-files + install + refuse + gaps Lang: English Review: tests on fetch changes. PR template UNKNOWN. EnvPolicy: USER_AGENT in local env. Copy the example file. Do not print env files.
Example Output
1. Ledger. Repo harbor-desk-web PWA. Stack: Next.js App Router VERSION UNKNOWN, TypeScript, Playwright, NOAA client lib/noaa.ts. Commands: npm test (Playwright); npm run lint; npm run dev. Build script NOT IN INPUTS. Paths: lib/noaa.ts; app/api/tides; e2e/; all alwaysApply false. src tree glob NOT IN INPUTS. NeverList: local env files, invented NOAA station IDs, live unit-test calls to CO-OPS. Review: tests on fetch changes. PR template UNKNOWN. EnvPolicy: USER_AGENT in local env; copy example file. Lang English. Forbidden: skip gitignore, invented catch-all ts glob, invented Node 22, CLAUDE.md body, invented globs, invented commands, invented station IDs. 2. Map. AGENTS.md: purpose, commands, review bar, never-list, env location. Path mdc: NOAA (lib/noaa.ts, app/api/tides) and e2e/. Human README: not this job. 3. AGENTS.md sketch. # harbor-desk-web PWA as in Brief. Commands that work: npm test (Playwright); npm run lint; npm run dev. Build script UNKNOWN. Review: tests on fetch changes. PR template UNKNOWN. Never: local env files; invented NOAA station IDs; live unit-test calls to CO-OPS. EnvPolicy: USER_AGENT in local env. Copy the example file. Do not print env files. Do not commit them. 4. mdc files. noaa-tides.mdc YAML: description: NOAA client rules. globs: ["lib/noaa.ts", "app/api/tides"]. alwaysApply: false. Body: use public CO-OPS IDs from code comments. Missing station: fail, do not guess. e2e.mdc YAML: description: Playwright e2e. globs: ["e2e/"]. alwaysApply: false. Body: prefer fixtures over live calls as NeverList states. src tree glob: GLOB not in Paths. Not emitted. 5. Install. Repo-root AGENTS.md. Cursor rules directory: noaa-tides.mdc and e2e.mdc. Not a legacy cursorrules file. 6. Refuse. CLAUDE.md: refused. copilot-instructions.md: refused. Invented catch-all ts glob: refused. Fake CI badge: refused. 7. Never. No src tree glob. No Node 22. Station IDs not invented. 8. Compliance. Banned hits none in bodies. Format ledger+map+agents-md+mdc-files+install+refuse+gaps. Gaps: Next.js version, Node version, PR template, build script yes/no, CO-OPS station ID source file beyond lib/noaa.ts. Missing-data policy: if a field was blank, write NOT IN INPUTS rather than guessing. Lock any tool version named in Inputs; if unnamed, write unknown. No invented testimonials, star ratings, or press logos. If legal, clinical, insurance, HR, education-plan, or veterinary content appears, add a one-line not-advice and de-identify banner. Quote banned-word hits and cut them. End with a gaps list of five bullets the user still owes you. Character and byte caps in the job are hard; print counts when relevant. Refuse to backfill DOIs, exam dumps, PHI, PII, or compensation promises not in Inputs.