Why Is My AGENTS.md Ignored? Codex Instruction Diagnosis
A SKILL.md that finds why Codex skips or half-follows your AGENTS.md: wrong root, an override file, the 32 KiB limit cutting a nested file, or rules too vague to act on.
Skill prompt for Claude Code and Cursor
Prompt
Installs to .agents/skills/why-is-my-agents-md-ignored-codex-instruction-diagnosis/
mkdir -p .agents/skills/why-is-my-agents-md-ignored-codex-instruction-diagnosis && curl -sL "https://prompts-gpt.com/prompts/why-is-my-agents-md-ignored-codex-instruction-diagnosis/raw" -o .agents/skills/why-is-my-agents-md-ignored-codex-instruction-diagnosis/SKILL.mdExample output
Tips and common edits
Why this works
- It separates "not loaded" from "loaded but not followed", which need completely different fixes.
- Asking Codex to quote the first rule of each file it loaded gives ground truth instead of guessing from the folder tree.
- The byte total explains rules that work in small repos and vanish in monorepos, where nested files get cut.
Save as .agents/skills/agents-md-diagnosis/SKILL.md for Codex, or .claude/skills/ for Claude Code; Cursor and Gemini CLI read the same file. Then ask: "why does Codex ignore the test rule in AGENTS.md?"
Common edits
- For Claude Code only, swap the Codex steps for CLAUDE.md files and the /memory command to see what loaded.
- Raise project_doc_max_bytes in config.toml if splitting the root file is not an option, and say so in the output.
Reuse it: Use in a workflowAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Codex Writes an AGENTS.md for This Repository From the Real Setup
Has Codex inspect your repository and write a short, accurate AGENTS.md with the real build, test and lint commands, conventions and boundaries, checked by actually running them.
copilot-instructions.md Generator From Your Repo's Real Build, Test and Style Setup
Has GitHub Copilot inspect your repo and write a .github/copilot-instructions.md with the real build, test and lint commands and checkable conventions, plus up to three path-scoped .instructions.md files.
Diagnose Why an AI Answer Missed and Rewrite the Prompt
Paste a prompt, the weak output and what went wrong to get a root-cause table, a targeted rewrite and a small test plan, so you fix the instruction instead of guessing.
Find the failing line in a stack trace
Isolate your application code from noisy framework trace logs and explain the root runtime crash. Use it when debugging confusing error logs.
Guide Where to Tap Next One Step at a Time from a Screenshot
Get one clear tap-by-tap instruction from your settings screenshot, then upload a fresh screenshot after each step until you finish.
Draft friendly reproduction questions for vague bugs
Generate painless, jargon-free troubleshooting questions to help non-technical users share the exact steps engineers need to reproduce bugs.
- Diagnose prompt failures and improve AI outputs
- Fix a mediocre response in three targeted turns
- Build an Interactive Yes/No Troubleshooting Flowchart Infographic in HTML
- Fix an Excel or Google Sheets Formula That Returns an Error or Wrong Result
- Decode a Home Appliance Error Code from a Photo Safely
- Explain a Tech Error Pop-Up from a Screenshot with Safe Fixes