sonarqube
Skill by catatafishen
Analyzes and fixes SonarCloud quality gate issues for the catatafishen_agentbridge project. It runs ready-made API queries for bugs, vulnerabilities, hotspots and coverage, then guides fixes toward Reliability and Security grade A.
Install sonarqube
Built from the published package, never by AI.
git clone --depth 1 https://github.com/catatafishen/agentbridge /tmp/agentbridge && mkdir -p ~/.claude/skills && cp -r /tmp/agentbridge/.agents/skills/sonarqube ~/.claude/skills/sonarqubeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/catatafishen/agentbridge /tmp/agentbridge && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentbridge/.agents/skills/sonarqube ~/.gemini/antigravity-cli/skills/sonarqubeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The sonarqube skill helps an AI assistant analyze and fix SonarCloud quality gate issues for the catatafishen_agentbridge project. It includes ready-made curl scripts that query the SonarCloud API for quality gate status, open bugs, vulnerabilities, code smells, security hotspots, duplications, coverage and cognitive complexity. The skill says to run these scripts first to gather facts before changing code.
The workflow targets an A grade for Reliability and Security. For Reliability, it asks for zero open bugs and lists common fixes for rules such as S3077 and S2095. For Security, it requires zero open vulnerabilities and all hotspots reviewed, marked as SAFE, FIXED or ACKNOWLEDGED. It is aimed at developers who use SonarCloud on this project and want an assistant to work through its findings.
Written from the project's SKILL.md and checked against it.
What it can do
- Quality gate statusQueries the project status and lists failed quality gate conditions, optionally for a pull request.
- List open issuesLists open bugs, vulnerabilities and code smells, with filters by type and severity.
- Hotspot reviewLists hotspots to review and marks one as SAFE, FIXED or ACKNOWLEDGED with a comment.
- Issue transitionsMarks an issue as WONTFIX or false positive, or reopens it, through the SonarCloud API.
- Duplication reportFinds the files with the most duplicated lines and lists the duplicate blocks for one file.
- Coverage reportLists the files with the most uncovered lines and their line coverage.
- Cognitive complexity reportLists open issues for rules S3776 in Kotlin and Java.
- Reliability and Security workflowGives steps and common rule fixes to reach grade A for Reliability and Security.
What you need
- A SonarCloud token in the SONAR_TOKEN environment variable
- curl and jq
- python3, used to URL-encode the hotspot comment
- Access to the SonarCloud project catatafishen_agentbridge
Try asking
- Show the SonarCloud quality gate failures for this project
- List open bugs and vulnerabilities and help me fix them
- Review the security hotspots and mark the safe ones
Good to know
- The project key and example IDs are hardcoded for catatafishen_agentbridge and must be changed for other projects.
- Accepting hotspots or issues changes their status in SonarCloud.
- The source says ACKNOWLEDGED hotspots should be used sparingly.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/sonarqube/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to sonarqube
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
sonarqube: common questions
What does the sonarqube skill need to run?
It uses a SonarCloud token in the SONAR_TOKEN environment variable. Its scripts call the SonarCloud API with curl and jq, and the hotspot script uses python3.
What goal does the skill aim for?
The stated goal is to get Reliability and Security to grade A. For that it asks for zero open bugs, zero open vulnerabilities and all hotspots reviewed.
Can the skill change issue status in SonarCloud?
Yes. It calls the hotspot change_status and issue do_transition APIs to set hotspots to SAFE, FIXED or ACKNOWLEDGED, and issues to WONTFIX, false positive or reopen.
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 Apache-2.0 licence. The service it connects to may have its own pricing.
Is sonarqube safe to use?
It scores 71 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.
