Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/HomenShum/NodeBenchAIWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/homenshum/nodebenchai/analyst_diagnostic)<a href="https://agentmods.dev/rules/homenshum/nodebenchai/analyst_diagnostic"><img src="https://agentmods.dev/badge/rules/homenshum/nodebenchai/analyst_diagnostic/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/homenshum/nodebenchai/analyst_diagnostic"><img src="https://agentmods.dev/badge/rules/homenshum/nodebenchai/analyst_diagnostic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00748 |
| Opus 5.5 | $0.00000 | $0.00299 |
| Sonnet 5.5 | $0.00000 | $0.00150 |
| Haiku 4.5 | $0.00000 | $0.00075 |
Grade A, and why
analyst_diagnostic scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Analyst Diagnostic
Guide yourself like an analyst diagnosing the root cause, not a junior dev slapping on a bandaid.
When to trigger
- Before writing ANY fix — investigate why the bug exists, not just what it looks like
- When an error appears — trace it upstream to the source, don't just suppress it
- When a test fails — understand the system state that caused it, not just make the assertion pass
- When something "works but feels wrong" — name the smell, don't ignore it
The diagnostic process
- Reproduce: Confirm the exact failure mode. What triggers it? What's the expected vs actual?
- Trace upstream: Walk from symptom → intermediate state → root cause. Follow the data, not assumptions.
- Ask "why" 5 times: Each answer should go one level deeper. Stop when you reach a design decision, missing constraint, or wrong assumption.
- Fix the cause, not the symptom: The right fix makes the symptom impossible, not just invisible.
- Verify the fix didn't shift the problem: Bandaids often move bugs sideways. Check adjacent behavior.
Red flags you're bandaiding
- Adding
try/catchthat swallows errors without understanding them - Adding
?.optional chaining to maskundefinedinstead of finding why it's undefined - Adding
as anyto silence type errors instead of fixing the type mismatch - Adding timeouts/retries to paper over race conditions
- Deleting a failing test instead of fixing the code it tests
- "It works now" without understanding why it didn't before
What analysts do differently
- They form a hypothesis BEFORE trying a fix
- They check if the "fix" actually addresses their hypothesis
- They look for other places the same root cause could cause problems
- They document what they found so the next person doesn't re-discover it
- They ask: "What system condition allowed this bug to exist?"
UI-specific diagnostic
When fixing a UI issue, the analyst approach demands:
- Which component actually renders? Trace sidebar label → view key → MainLayout switch → component import. Grep alone can find the wrong file.
- What layer owns the data? Convex backend, React frontend, or stored DB records? Each requires a different deployment path.
- Is this a cold-start problem? Empty states for new users often point to missing bootstrap/onboarding data, not just bad copy. Fixing text is a bandaid; showing fallback content (trending, sample, public data) is structural.
- Would hiding the problem make it invisible or actually solve it? Changing "0/7 healthy" to "7 scheduled" hides a monitoring signal. The structural question is: should this panel even render when the system isn't configured?
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 54 lines · 0 tokens per session scan A 0ee678c9d0ba
analyst_diagnostic is a cursor rule published in the GitHub repository HomenShum/NodeBenchAI (14 stars, last pushed 17d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 748 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
analyst_diagnostic compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| analyst_diagnosticHomenShum/NodeBenchAI | Cursor rule | 14 | 17d ago | MIT | A | 0 | Cursor |
| hatch3r-observability-logginghatch3r/hatch3r | Cursor rule | 26 | 2mo ago | MIT | A | 0 | Cursor |
| linuxAcKeskin/contexture | Cursor rule | 2 | 8d ago | MIT | A | 1,224 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 201k | 8d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 102k | 5d ago | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 76k | today | Apache-2.0 | A | 1,147 | Cursor |
| prefer-assertions-over-defensive-checksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |