Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

sonarqube

Skill by DougTrajano

Operates SonarQube projects through the SonarQube CLI (`sonar`) for reading project issues, measures, and quality gates. It is for developers and agents working in repositories that use SonarQube Cloud or SonarQube Server.

  • Score 77
  • 382 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install sonarqube

Built from the published package, never by AI.

git clone --depth 1 https://github.com/DougTrajano/pydantic-ai-skills /tmp/pydantic-ai-skills && mkdir -p ~/.claude/skills && cp -r /tmp/pydantic-ai-skills/.claude/skills/sonarqube ~/.claude/skills/sonarqube

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install sonarqube in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill tells an assistant how to use the SonarQube CLI, the `sonar` command, inside a repository. It starts with preflight checks such as `sonar auth status`, then resolves the exact project key from the user, `sonar-project.properties`, or SonarQube for IDE connected-mode files. From there it covers read-only inspection of issues, measures, and quality gates, along with analysis of changed files, staged changes, or a base ref. It also covers secrets scanning, dependency risk analysis, authenticated API GET calls, and troubleshooting.

The skill is aimed at developers and AI agents that work with SonarQube Cloud or SonarQube Server projects. It asks the assistant to prefer read-only commands, report the project and branch scope, and treat state-changing commands such as remediation, integrations, and logout as actions that need explicit user approval.

Written from the project's SKILL.md and checked against it.

What it can do

  • Auth checkVerifies the CLI installation and authentication with `sonar auth status`.
  • Project discoveryFinds exact project keys from user input, repository config, or `sonar list projects`.
  • Issues and quality gatesLists project issues and checks quality gate status, with branch or pull request scope.
  • Changed code analysisAnalyzes selected files, uncommitted Git changes, staged files, or changes against a base ref.
  • Secrets scanningScans file paths for hardcoded secrets and reports type and safe location only.
  • Dependency risk scanUploads dependency manifests for security and license analysis where the product allows it.
  • API callsRuns authenticated GET requests against SonarQube APIs when dedicated commands are not enough.
  • RemediationTriggers `sonar remediate` for a limited set of issue keys after the user approves the scope.
  • IntegrationsConfigures `sonar integrate` hooks and agent settings after inspecting existing configuration.
  • TroubleshootingWalks through CLI version, auth, system status, network, and entitlement checks when commands fail.

What you need

  • SonarQube CLI executable `sonar` (verified against v1.7.0)
  • SonarQube Cloud account or SonarQube Server instance
  • Git for some analysis operations
  • SonarQube Cloud plan or Server edition for some operations
  • Product-specific entitlements for some operations

Try asking

  • Check my SonarQube auth and list the quality gate status for this project
  • Show the open SonarQube issues on my current branch as a summary
  • Analyze my staged changes with SonarQube and list the findings

Good to know

  • Some operations require Git, a SonarQube Cloud plan or Server edition, or product-specific entitlements.
  • Agents cannot authenticate themselves. Browser login must be done manually by the user.
  • Non-interactive `sonar remediate` accepts at most 20 comma-separated issue keys.
  • Analysis of an empty Git change set analyzes no files and does not show the repository is clean.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/sonarqube/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to sonarqube

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

sonarqube: common questions

Does this skill change my SonarQube project?

Most workflows are read-only, but commands such as remediate, API writes, integrate, and logout can change remote or local state. The skill asks the assistant to get explicit user approval before running them.

How does the skill handle my SonarQube token?

The skill says never to retrieve, print, or persist a token. For sandboxes or background agents, it points to an environment-variable route when the user has supplied credentials.

Which SonarQube products does it support?

The source mentions SonarQube Cloud, also called SonarCloud, and SonarQube Server. Some operations depend on the plan, edition, or entitlements of the instance.

How do I install sonarqube?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is sonarqube free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is sonarqube safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to sonarqube?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

sonarqube Install

Add to stack

Loading.