sonarqube

sonarqube is a skill for Claude Code from DougTrajano/pydantic-ai-skills. It costs 143 tokens per session (1,922 once invoked), scanned A, original, MIT.

A command-line workflow for working with SonarQube, a service that checks source code for bugs, security risks, and maintainability problems. It can inspect projects, issues, measurements, quality gates, changed code, secrets, and dependency risks.

In plain words
What is it for?
Use it to inspect SonarQube projects, review reported issues and quality gates, analyze changed code, scan for secrets or vulnerable dependencies, call the SonarQube API, and start remediation tasks.
Why use it?
It avoids relying on web dashboards or assumptions when checking code quality. It also provides structured checks for authentication, project scope, branches, and pull requests before analysis or changes.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to inspect SonarQube projects, review reported issues and quality gates, analyze changed code, scan for secrets or vulnerable dependencies, call the SonarQube API, and start remediation tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dougtrajano/pydantic-ai-skills/sonarqube
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 DougTrajano/pydantic-ai-skills --skill sonarqube
Clone the repo
git clone --depth 1 https://github.com/DougTrajano/pydantic-ai-skills

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 sonarqube

README.md
[![agentmods](https://agentmods.dev/badge/skills/dougtrajano/pydantic-ai-skills/sonarqube/github.svg)](https://agentmods.dev/skills/dougtrajano/pydantic-ai-skills/sonarqube)
Your own site
<a href="https://agentmods.dev/skills/dougtrajano/pydantic-ai-skills/sonarqube"><img src="https://agentmods.dev/badge/skills/dougtrajano/pydantic-ai-skills/sonarqube/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 sonarqube

Your own site · 80×15
<a href="https://agentmods.dev/skills/dougtrajano/pydantic-ai-skills/sonarqube"><img src="https://agentmods.dev/badge/skills/dougtrajano/pydantic-ai-skills/sonarqube.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,922 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 31
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original 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.00143 $0.01922
Opus 5 $0.00072 $0.00961
Sonnet 5 $0.00029 $0.00384
Haiku 4.5 $0.00014 $0.00192

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

Security

Grade A, and why

sonarqube 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 6d 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.

.claude/skills/sonarqube/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SonarQube CLI

Use the installed sonar CLI as the source of truth for a SonarQube-enabled project. Prefer structured, read-only inspection before analysis or mutation, and make the final response state the project, branch or pull request, command scope, and result.

Start with a preflight

Run these checks from the repository or worktree the user placed in scope:

command -v sonar
sonar --version
sonar auth status

If the task involves installation state, integrations, or a confusing auth error, also run sonar system status --json.

Treat sonar auth status as the authoritative credential check. Do not infer authentication merely from a saved config file. In a sandbox, container, SSH session, or background agent, OS Keychain access may fail even though authentication works in the user's interactive terminal. Explain that distinction and use the environment-variable route in authentication.md when the user has made credentials available; never retrieve, print, or persist a token yourself.

The CLI is evolving. If the installed version differs from the reference snapshot or a command rejects an option, run sonar --help and sonar <command> --help, then follow the installed help. Read commands.md when selecting flags or when the user asks what the CLI supports.

Resolve the project before querying it

Use the exact project key, not the display name. Resolve it in this order:

  1. Use a project key explicitly supplied by the user.
  2. Inspect sonar.projectKey in sonar-project.properties at the repository root.
  3. Inspect SonarQube for IDE connected-mode binding under .sonarlint/, such as .sonarlint/connectedMode.json.
  4. Let the CLI auto-detect when the command supports it.
  5. Search accessible projects with sonar list projects -q <name-or-key> and disambiguate multiple matches before continuing.

Do not silently choose among multiple project matches. Read workflows.md for project-detail, issue, quality-gate, and API recipes.

Read the full file on GitHub · 133 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 133 lines · 143 tokens per session scan A 726554c4d48a

Subscribe to this mod's changes

sonarqube is a skill published in the GitHub repository DougTrajano/pydantic-ai-skills (369 stars, last pushed yesterday), licensed MIT. It adds 143 tokens to every session and 1,922 once invoked, about $0.0007 per session on Opus 5. 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-09-06.

Related

Other skills, from other repositories

python-code-quality

Code quality checks, linting, formatting, and type checking commands for the Agent Framework Python codebase. Use this when running checks, fixing lint errors, or troubleshooting CI failures.

microsoft/agent-framework · 40 tokens

systematic-debugging

Systematic approach to diagnosing and fixing errors.

vstorm-co/pydantic-deepagents · 13 tokens

performance-optimization

Measure-first performance work. Use on triggers like "it's slow", "profile this", "optimize perf", "fix the bottleneck", "improve load time / Core Web Vitals", or when a measured regression needs fixing. Enforces measure-before-optimize. Fills a perf gap not covered by existing project skills. Not a build/ship…

BlackBeltTechnology/pi-agent-dashboard · 77 tokens

ci-troubleshoot

Diagnose failed GitHub Actions runs for pi-agent-dashboard: the 10-file workflow taxonomy, the release pipeline, known failure modes, and how to read gh run logs and retrigger jobs. Use when a CI run is red, a release is stuck, a workflow won't dispatch, or you need to know which workflow does what. See release-cut to…

BlackBeltTechnology/pi-agent-dashboard · 93 tokens

node-inspect-debugger

See runtime state a console.log cannot reach — set real breakpoints, step, and dump the scope chain of a paused Node/TypeScript process. Use on "set a breakpoint", "inspect runtime state", "console.log isn't enough", "step through this", "what's in this closure at runtime", "attach a debugger". Not a logging or…

BlackBeltTechnology/pi-agent-dashboard · 83 tokens

debug-dashboard

Diagnose problems in the running pi-agent-dashboard system: server.log, /api/health, bridge WebSocket connectivity, vitest triage, known-issue FAQ entries. Routes UI/visual issues to the browser skill. Use when the server seems hung, a pi session won't connect, tests fail mysteriously, the dashboard shows a blank…

BlackBeltTechnology/pi-agent-dashboard · 89 tokens