Skip to content

skilldrop·docs·How-to

Use sonar-review

Run a Sonar scan against the just-changed code on the current branch and produce a structured compliance report

Run a Sonar scan against the just-changed code on the current branch and produce a structured compliance report — quality-gate verdict (PASS / FAIL), then severity-tagged findings (🟥 blocker / 🟧 critical / 🟨 major / ⚪ minor / ⚪ info) scoped to changed files, each with file:line, the Sonar rule ID, the category (bug / vulnerability / security hotspot / code smell), why it matters, and a concrete fix. Works against both SonarQube server (self-hosted) and SonarCloud (SaaS) — mode is detected from sonar-project.properties. Sister skill to devils-advocate, but enforces Sonar's rule catalog and the project's quality gate rather than a hand-rolled lens sweep. Use after writing code, before pushing or opening a PR, when the user says "is this Sonar-compliant?", "run Sonar on this", "will the quality gate pass?", or any pre-merge compliance check.

Install it

npx skilldrop-cli install sonar-review                 # Claude Code, your user folder
npx skilldrop-cli install sonar-review --project       # Claude Code, this repo
npx skilldrop-cli install sonar-review --ide cursor    # or kiro, codex, antigravity, copilot

It is part of the Dev team pack: --pack dev-team installs it with its neighbours.

It needs SONAR_TOKEN set in the environment.

Ask for it

Say it the way you would to a colleague. Requests like these route to it:

Requests like these belong to a different skill, so it shouldn't answer them:

If another skill answers instead, ask for this one by name: "use sonar-review".

Check what you get

A good result:

Use something else when

Next

Edit this page on GitHub · View source