No slash command · from sonarqube
Use when acting on SonarQube findings — deciding what to fix first, whether something is a real defect or a false positive, how to handle a detected secret, what a quality gate failure means, or whether a NOSONAR suppression is ever justified.
Ships in sonarqube. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
How to act on what SonarQube reports. The analysis tells you what it found; this is about deciding what it means and what to do.
Within a tier, prefer findings in code this session touched: they are freshest in context, and they are what a session-scoped hook is gating on.
A detected secret is a different kind of finding from everything else, because the damage is already done by the time you see it.
NOSONAR, no exclusion, no "it's just a
test value" unless the user says so themselves.The one legitimate false positive is a value that is genuinely a fixture
or a documented example (AKIAIOSFODNN7EXAMPLE and friends). Even then,
confirm with the user rather than deciding alone.
Fetch the rule when the message isn't self-explanatory — the rationale usually distinguishes a defect from a preference, and that decides whether to change the code.
A finding is real when the rule's rationale describes something that can actually happen in this code path. Fix it in the source.
A finding is a false positive when the analyzer lacks context you have: a framework guarantee it doesn't model, a check performed in a caller it can't see, a value constrained by something outside the file. Then:
sonarqube-web-api).Never rewrite working code purely to make a rule stop firing. A contorted workaround is worse than the finding it silences, and it hides the fact that a human ever disagreed with the analyzer.
NOSONAR exists, and this plugin's hooks deliberately never write one.
The reason is simple: a hook that auto-suppresses turns a security
finding into silence, and nobody reviews silence.
If a suppression is genuinely warranted, it should be a human's explicit decision, with a comment saying why — not a mechanical response to a loop that got tired. Prefer, in order:
Never suppress a secret. Ever.
A failing quality gate is a project-level verdict — coverage on new code, duplication, a count of open issues — not a specific line of code. Read which condition failed before acting: "fix the quality gate" usually means "add tests for new code", not "fix an issue".
Never resolve or won't-fix issues in bulk to make a gate go green. That changes the number without changing the code, and it is visible to everyone on the project.
Group findings by severity, name the file and line, and say what you did about each. Be explicit about two things people otherwise assume:
sonarlint exit 2, a skipped file,
an analyzer that couldn't load, or a sonar api call that failed means
something did not run. "Not checked" is not "clean", and
saying so is the difference between a useful report and a misleading
one.analyze (/sonarqube:analyze) — analyse chosen files locally.fix (/sonarqube:fix) — work through findings or one rule.sonarlint-analysis — the local CLI, its output and exit codes.sonarqube-web-api — server-side issues, rules, quality gates via
sonar api.sonarqube-connected-mode — where the project key comes from.What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/analyzeUse when the user asks to "run sonar", "run SonarQube", "run SonarLint", "scan for secrets", "check this for Sonar issues", or wants SonarQube analysis over code this session never touched. Runs SonarQube for IDE's engine locally, adds what SonarQube Server or Cloud recorded for the same files, and works through the findings./fixUse when the user asks to fix SonarQube or SonarLint issues, a specific Sonar rule key (like python:S5754 or githubactions:S8541), or "the Sonar findings" in some files, including issues SonarQube Server or Cloud reported. Gathers findings locally and from the server, explains each rule, and fixes the issues minimally./sonarlint-analysisUse after creating or editing source code (JS/TS, Python, Java, Go, PHP, HTML, CSS, XML, Terraform, Docker, Kubernetes, CloudFormation, or any file that could hold a credential) and before declaring a coding task done, or when asked to check code quality or security locally. Runs SonarQube for IDE's own analyzers on the working tree through the plugin's `sonarlint` CLI and explains how to read and act on the result./sonarqube-connected-modeUse when you need a SonarQube projectKey, are setting up or debugging .sonarlint/connectedMode.json, are calling `sonar api` against a bound project, need the Cloud organization, or are working out which project a file in a monorepo belongs to./sonarqube-web-apiUse when you need data from a SonarQube Server or SonarQube Cloud instance — open issues or security hotspots on a project, a quality gate verdict, a rule's rationale, measures or coverage, branches and pull requests, duplications, or changing an issue's status. Covers calling the Web API through `sonar api`, and the Server vs Cloud differences.npx claudepluginhub leonardo-marziali/agentic-development-kit --plugin sonarqube