- Home
- Skills
- Code Quality & Review
- Rule Enforcement Map — Find Rules With No Hook Behind Them
Works with the AI Agents you already use
Rule Enforcement Map — Find Rules With No Hook Behind Them
A rule in `.claude/rules/` that nothing enforces is a suggestion.
$15
Rule Enforcement Map — Find Rules With No Hook Behind Them
Example session with this skill installed
Run Rule Enforcement Map on this project's .claude/rules folder (include the tests folder with --extra-dir tests) and tell me which rules nothing enforces, and which ones point at a script that does not exist.
- Read your context and instructions
- Compiled the rule enforcement map
Summary
5 rules found in .claude/rules/. 3 are enforced by something other than the agent's memory, 1 is honor-system only, and 1 claims an enforcer that does not exist.
Result
Rule Enforcement Map: 5 rules, 3 enforced, 1 honor-system, 1 broken-claim
!! commit-message-style nothing mentions this rule
BAD docs-stay-current declared enforcer missing: scripts/check_docs.py
OK no-force-push hook-script
OK no-secrets-in-logs extra
OK tests-before-done hook-script
| Rule | Status | Why |
|---|---|---|
| no-force-push | OK | a hook script mentions it |
| tests-before-done | OK | a hook script mentions it |
| no-secrets-in-logs | OK | found in an extra folder you named |
| commit-message-style | honor system | no hook, script, git hook, CI job or test mentions it |
| docs-stay-current | broken claim | it declares enforced-by: scripts/check_docs.py, but that file is missing |
Next steps
- Create
scripts/check_docs.pyor remove theenforced-bycomment from docs-stay-current. - Decide whether commit-message-style should get a git hook; if not, leave it as a guideline.
- Add
--fail-on-honor-onlyto CI to stop new unenforced rules from slipping in.
Note: a match means something mentions the rule by name, not that the hook works.
Connects securely to your tools. The creator never sees your data.
About this skill
A rule in .claude/rules/ that nothing enforces is a suggestion. The model follows it when it remembers and ignores it when it does not, and nothing tells you which rules are which.
Rule Enforcement Map answers the question in one command:
Rule Enforcement Map: 5 rules, 3 enforced, 1 honor-system, 1 broken-claim
!! commit-message-style nothing mentions this rule
BAD docs-stay-current declared enforcer missing: scripts/check_docs.py
OK no-force-push hook-script
OK no-secrets-in-logs extra
OK tests-before-done hook-script
What it does
- Reads every rule file and searches the places that can enforce it: hook commands in
settings.jsonandsettings.local.json, the scripts those hooks run,.claude/hooks/, git hooks, CI workflows, and any folder you name with--extra-dir(tests, scripts) - Marks each rule
OK,!!(honor system) orBAD(it declares<!-- enforced-by: path -->but the path is missing) - Lets you declare enforcers the name match cannot see: an
enforced-bycomment orenforce_keywordsin the front matter - Prints text or JSON, and
--fail-on-honor-onlyturns it into a CI gate (exit 1) - Never edits your project, never runs your hooks, makes no network calls
Honest limits, stated in the README: a match means something mentions the rule by name, not that the hook works. Read the hooks you rely on.
What is inside
SKILL.md,README.md,LICENSEscripts/rule_enforcement_map.pytests/test_package.py(17 tests)examples/sample_project/(the project used in the example above)
Requirements and safety
Python 3.8+, macOS or Linux, standard library only. Read-only: no installers, no background services, no credentials, no network.
License
Personal, non-transferable license for your own projects, including commercial work. No resale or redistribution.
Matches filenames only, does not verify hook logic. Ignores filenames < 4 chars. Skips files > 512 KB. Requires Python 3.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
Requires