{ Prompts4All }

Find stale and conflicting agent instructions

Agent Audit

Compare each instruction that coding agents read in this repository with the repository as it is now. Find the instructions that are false, out of date, or in conflict with each other.

  1. Find all instruction files, for all tools: AGENTS.md, CLAUDE.md, GEMINI.md, .cursor/rules, .github/copilot-instructions.md, skill files and command files, and the same types of file in subfolders. Include the documents that these files tell the agent to read.

  2. Divide each file into claims. A claim is one statement that can be true or false, or one rule.

  3. Verify each claim that can be verified:

    • A command: does the script or the binary exist, and does it run? Run only commands that are safe and read-only. For the others, confirm that they exist.
    • A path, file name, function, flag or environment variable: does it exist?
    • A version, tool or dependency: does it agree with the manifest and the lock file?
    • A statement about structure or behavior: does the code agree?
  4. Compare the files with each other. List each pair of claims that conflict, and each rule that is in two or more files in different words.

  5. Use the git history to find risk: an instruction file that did not change while the code that it describes changed many times.

Rules:

  • Give the evidence for each finding: the claim with its file and line, and what you found in the repository.
  • When a claim and the code do not agree, do not decide which one is correct unless the evidence is clear. Ask me.
  • Do not rewrite the files until I approve the findings.

Output: three lists.

  1. False or out of date: the claim, its location, the evidence, and the correction or deletion that you propose.
  2. Conflicts: the two locations, the version that you recommend, and the reason.
  3. Not verifiable: claims that are judgment and not fact. These need no action.

Then recommend one file as the single source, and show how the other files can point to it and not repeat it.