Skip to content
Rimfe Docs
GuidesWhat's newPricingSign in
Start free
On this page: On this page

Rimfe checks AGENTS.md, CLAUDE.md, Cursor rules and skills against your repository, so coding agents are not told to run commands or read files that do not exist.

Files that instruct coding agents are documentation for a reader that follows them literally. A wrong command or path in one becomes wrong code at scale. Rimfe reads them as their own audience, agent, and checks them.

Which files

AGENTS.md, CLAUDE.md and GEMINI.md at any depth, .cursor/rules/**/*.mdc, .cursorrules, .windsurfrules, .windsurf/rules/*.md, .clinerules, .github/copilot-instructions.md, .github/instructions/*.instructions.md, .github/prompts/*.prompt.md, and SKILL.md files in a skills/<name>/ folder, including under .claude/skills and .agents/skills. Files under node_modules, vendor, dist and build are skipped.

They are read even when your docsGlobs do not cover them. Paths in docsIgnorePaths are skipped. To turn the group off, set "agentContext": false in .rimfe.json.

Hidden instructions

Rimfe also scans docs and agent files for text aimed at an AI agent instead of a reader: invisible characters, HTML comments that give orders or name secrets (ignore previous, curl, token), images in agent files and links whose text names one host while the address points to another. Each page with such text becomes a Hidden instruction finding on reviews and audits. On a pull request, Rimfe looks only at lines the pull request added. A hosted docs site is not published while a page has it; a maintainer clears a page with rimfeAllowHidden: true in its front matter.

What is checked

These checks need no AI model:

  • Commands. Every pnpm, npm, yarn or bun script must exist in the package.json of the file's folder or the repository root (a filtered command may use any package's script), every make target in the Makefile, every just recipe in the justfile, and every cargo alias in .cargo/config.toml.
  • Paths. A path in backticks must exist in the repository.
  • Env vars. A variable in backticks must be in an env example file or read by your code.
  • Imports. A @path import such as @AGENTS.md must point at a file.

A failed lookup is a "Wrong agent instruction" finding with the quote and what was looked up. On a pull request it is reported when the pull request edited the line, or removed the script, target or path the line names. An env var on an edited line is reported only when its name looks like a misspelling of a name the pull request changed. Audits report all of them.

Claims about behavior, such as "tests run with pnpm test:unit", are left to the model review, which reads these files with the rest of your docs. It knows they instruct agents.

Last updated