- Home
- Skills
- Prompt & Skill Engineering
- agentic dead rules detector
Works with the AI Agents you already use
agentic dead rules detector
by Gabe
Test coding agent instructions through controlled experiments to identify useless or broken rules with statistical evidence.
$13.37
agentic dead rules detector
Example session with this skill installed
I want to see if the 'no-comments' rule in AGENTS.md actually stops the agent from adding comments, or if it's dead weight. Set up a plan for 10 runs per arm at $0.05 per run with a $2 cap.
- Read your context and instructions
- Compiled the agentic dead rules
I have initialized the experiment plan to test the 'no-comments' rule impact.
Experiment Plan: No-Comments Rule Detection
| Phase | Runs (Baseline) | Runs (No-Rule Arm) | Total Runs | Est. Cost |
|---|---|---|---|---|
| Smoke | 1 | 1 | 2 | $0.10 |
| Pilot | 2 | 2 | 4 | $0.20 |
| Main | 10 | 10 | 20 | $1.00 |
| Total | 13 | 13 | 26 | $1.30 |
Budget Status: The estimated total of $1.30 is within your $2.00 cap.
Next steps
- Review the
task.mdcreated in the lab folder to ensure the prompt triggers comment generation. - Provide a "bad fixture" (code with comments) to the
fixtures/directory for verifier rehearsal. - Approve the budget of $1.30 by typing "Approve $1.30" to begin the smoke tests.
Connects securely to your tools. The creator never sees your data.
About this skill
Stop guessing whether your agent instructions actually work. Every developer has a "rules" file bloated with instructions that the agent ignores, or worse, rules that conflict and cause silent failures. This skill provides a rigorous, data-driven method to identify "dead rules" and prove which instructions actually improve model performance.
What it does
- Rule Isolation tests specific instruction variants (arms) against a baseline to measure their actual impact on task success.
- Automated Verification runs a hidden "verifier" command that the agent never sees to judge output without bias.
- Budget Enforcement calculates estimated API costs and enforces a hard spend cap before any sessions execute.
- Statistical Reporting generates reports with 95% Wilson intervals to distinguish between actual improvements and random noise.
- Regression Testing uses "bad fixtures" to prove the verifier can actually catch the mistakes the rule is meant to prevent.
How it works
- Identify the mistake by analyzing git logs or bug reports where the current instructions failed to prevent a specific error.
- Setup the lab by creating a
task.md, defining instruction variants, and writing a verifier script in a dedicated folder. - Rehearse the verifier against known good and bad fixtures to ensure it correctly identifies the target mistake.
- Execute phases starting with smoke and pilot runs to verify costs before committing to a full-scale experiment.
- Generate report using the included script to analyze pass rates and produce a final recommendation for the instruction.
Frameworks & tools
The core logic resides in a standalone Node.js script (dead-rules.mjs) using the standard library. It integrates with any headless agent harness such as claude -p, codex exec, or gemini -p.
Why this beats prompting it yourself
Prompting an agent to "check if this rule is good" results in hallucinations and confirmation bias. This skill treats instructions like code, using controlled experiments and held-out test cases to provide objective evidence before you modify your system prompts.
Use cases
- Instruction Pruning to remove rules that have no measurable effect on agent success rates.
- Bug Fix Validation to prove that adding a specific rule prevents a recurring logic error.
- Refactoring to determine if moving a rule into a type definition or linting rule is more effective than a text prompt.
- Model Upgrades to test if existing instructions are still necessary when moving to a newer, more capable model.
Known limitations
Requires Node.js 18 or later. Does not provide a sandbox environment; isolation depends on the user's agent harness or external containers. Requires a manual spend approval step.
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 buying a skill.
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 12 days ago
- Software
Node.js 18 or later
Git
All you need to use this skill is a coding agent that can start fresh sessions on its own & planning and verifier rehearsal cost nothing. Each run is a real agent session billed to your own agent or model account.
Permissions
The terminal runs Node, git, your verifier, and new agent sessions. File reads and writes build the lab folder, the run copies, and the report. Network access is only for the model calls your own agent makes in each run; the script itself makes no network calls and reads no environment variables.
What's inside
Frequently Asked Questions
New in Prompt & Skill Engineering
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Prompt & Skill Engineering.