sonar-rules

sonar-rules is a skill for Claude Code from Nmor/the-claude-council. It costs 176 tokens per session (13,556 once invoked), scanned D, original, no licence file.

A reference for SonarLint, SonarQube, SonarJS, and similar code-quality rules across several programming languages.

In plain words
What is it for?
It is for checking source files against rules and matching findings with tools such as golangci-lint, Ruff, RuboCop, Clippy, and related linters.
Why use it?
It helps developers find common maintainability, correctness, security, and complexity problems while changing code.

Skill for Claude Code

Written for Claude Code: paths in frontmatter.

Good fit It is for checking source files against rules and matching findings with tools such as golangci-lint, Ruff, RuboCop, Clippy, and related linters.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nmor/the-claude-council/sonar-rules
Install

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.

Any agent
npx skills add Nmor/the-claude-council --skill sonar-rules
Clone the repo
git clone --depth 1 https://github.com/Nmor/the-claude-council

Made for: Claude Code.

Wrote 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.

agentmods badge for sonar-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/nmor/the-claude-council/sonar-rules/github.svg)](https://agentmods.dev/skills/nmor/the-claude-council/sonar-rules)
Your own site
<a href="https://agentmods.dev/skills/nmor/the-claude-council/sonar-rules"><img src="https://agentmods.dev/badge/skills/nmor/the-claude-council/sonar-rules/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.

agentmods 80×15 button for sonar-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/nmor/the-claude-council/sonar-rules"><img src="https://agentmods.dev/badge/skills/nmor/the-claude-council/sonar-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 176 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 13,556 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00176 $0.13556
Opus 5 $0.00088 $0.06778
Sonnet 5 $0.00035 $0.02711
Haiku 4.5 $0.00018 $0.01356

Measured 9d ago against content hash bd4e81245763, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade D, and why

sonar-rules scanned grade D with 2 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 9d 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.

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

| SSRF validators | `sonarjs/no-hardcoded-ip` | The validator's job is to literally know the AWS IMDS IP `169.254.169.254` |

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

| **S6079** | sonarjs/no-code-after-done | Tests should not execute any code after "done()" is called | error |
skills/sonar-rules/SKILL.md · 685 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Changes

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.

  1. 9d ago First seen · 685 lines · 176 tokens per session scan D bd4e81245763

Subscribe to this mod's changes

sonar-rules is a skill published in the GitHub repository Nmor/the-claude-council (9 stars, last pushed 5d ago), with no licence file. It adds 176 tokens to every session and 13,556 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it D with 2 findings (cloud metadata endpoint, unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

review-loop

Run the adversarial verification loop — implement, then hand the change to a fresh checker that did not write it, fix what it finds, and re-dispatch until APPROVE. Use before claiming any behavioural change is done, and on requests like "review loop", "adversarial review", "independent review", "get this verified"…

sangrokjung/claude-forge · 100 tokens

semgrep-rule-creator

Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Use when writing Semgrep rules or building custom static analysis detections.

waybarrios/opencode-power-pack · 37 tokens

dorodango

Polishes working code through successive quality passes in fresh subagents. Use after tests pass when code needs multi-dimension refinement before release.

athola/claude-night-market · 31 tokens

code-review-web

Review web application code for bugs, security issues, performance problems, and stack-specific anti-patterns. Use this skill whenever the user wants to review code, debug a production issue, investigate a build failure, audit security, or check a PR before merging. Triggers on code review, review my code, debug…

rampstackco/claude-skills · 121 tokens

ln-22-codebase-auditor

Audits cross-cutting code health, security, delivery, and maintainability when no specialist audit is primary. Not for a single delivery review.

levnikolaevich/claude-code-skills · 38 tokens

ai-slop-cleaner

Post-implementation cleanup that removes AI-generated bloat while preserving functionality. Runs pass-by-pass with test verification after each pass. Activate after kraken/spark complete a feature, or when a codebase needs hygiene work.

vibeeval/vibecosystem · 50 tokens