FREE TOOL
CLAUDE.md Grader
Score your CLAUDE.md, AGENTS.md or .cursorrules in seconds. See what your agent loads on every turn, what’s gone stale, what to move out of the file, and where it leaks secrets or gives your agent risky permissions.
Questions
What is a CLAUDE.md file?
CLAUDE.md is the file Claude Code reads at the start of every session in a repo. AGENTS.md does the same job for Codex, Cursor and other agents, and .cursorrules is Cursor’s older format. They hold the commands, conventions and boundaries your agent should follow.
How long should CLAUDE.md be?
Short enough to be worth loading on every turn. As a rough guide, under about 2,000 tokens (around 150–250 lines) is comfortable. Past that, each session pays for history and feature notes that most tasks never use.
What belongs in CLAUDE.md, and what doesn’t?
Put in rules that apply to almost every task: commands to build and test, code style, directory layout, things never to touch. Leave out decision history, incident write-ups, ticket notes and temporary workarounds. Your agent needs those only for tasks that touch that area, so retrieve them per task instead.
How is the score calculated?
Twelve checks run in your browser. Eight cover quality: length, build and test commands, structure, decision history, time-bound notes, vague instructions, emphasis overload and repeated rules. Four cover security: leaked secrets and credentialed URLs, risky instructions such as skipping permissions or piping scripts to a shell, hidden text that only your agent reads, and missing boundaries around secrets and production. Each check has a weight, and the score is 100 minus the points lost. A leaked secret caps the score at 49. It’s a heuristic, so read the examples before changing anything.
Can a CLAUDE.md file be a security risk?
Yes. Your agent reads it on every task and follows it literally. A pasted API key leaks to every session and every tool call. An instruction to skip permissions or push to main runs without anyone checking. Invisible Unicode characters or HTML comments can hide instructions reviewers never see, which is how rules-file prompt injection works. The grader flags all of these.
Is my file uploaded?
No. For a public repo, your browser fetches the file straight from GitHub. Pasted text never leaves the page. Shifu stores nothing.