sonarqube
Skill by 686f6c61
Runs a local SonarQube instance in Docker, scans project code and turns the findings into improvement proposals. Aimed at developers who want automated static analysis and code quality checks.
Install sonarqube
Built from the published package, never by AI.
git clone --depth 1 https://github.com/686f6c61/alfred-dev /tmp/alfred-dev && mkdir -p ~/.claude/skills && cp -r /tmp/alfred-dev/skills/sonarqube ~/.claude/skills/sonarqubeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/686f6c61/alfred-dev /tmp/alfred-dev && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/alfred-dev/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
This skill starts a SonarQube Community instance in Docker on port 9000, runs an analysis of the project code and turns the results into actionable improvement proposals. It first checks that Docker is installed and that its daemon responds, and it asks for permission before installing Docker or starting it. It then creates or checks a sonar-project.properties file and runs a scanner for Node/TypeScript, Python, or a Docker-based CLI.
Findings are grouped into bugs, vulnerabilities, code smells and coverage. The skill then builds a report with the main metrics, the top 10 findings by impact and the code areas with the most problems. When the analysis is done, it stops and removes the container. The source says it complements the qa-engineer and security-officer roles rather than replacing them, and it is intended for developers who want an automated second opinion on code quality.
Written from the project's SKILL.md and checked against it.
What it can do
- Docker preflight checkChecks whether Docker is installed and whether the daemon responds before continuing.
- SonarQube startupStarts a SonarQube container named sonarqube-alfred on port 9000 and waits until it is ready.
- Project configurationCreates or verifies a sonar-project.properties file adapted to the project stack.
- Code analysisRuns sonarqube-scanner for Node/TypeScript, pysonar-scanner for Python, or a Docker scanner CLI.
- Result classificationSorts findings into bugs, vulnerabilities, code smells and coverage gaps.
- Improvement reportProduces a summary of key metrics, the top 10 findings by impact and the most problematic code areas.
- CleanupStops and removes the temporary SonarQube container once the analysis is reviewed.
What you need
- Docker installed, with a running daemon
- Permission from the user to install or start Docker, where needed
- Port 9000 free on the local machine
- Node.js for the npx scanner, or Python for pysonar-scanner
Try asking
- Run a SonarQube analysis on this project and summarize the bugs found
- Set up sonar-project.properties for this Python project and scan it
- Give me an improvement report with the top 10 SonarQube findings by impact
Good to know
- SonarQube is meant for a one-off analysis and is stopped after the review, not run as a permanent service
- Docker installation or startup requires explicit user approval
- The default SonarQube credentials are admin/admin and must be changed on first access
- The source says it does not replace qa-engineer, security-officer or human code reviews
Security check
C- Downloads a script from the internet and runs itIn
skills/sonarqube/SKILL.md:curl -fsSL https://get.docker.com | sh - Asks for administrator rights (sudo)In
skills/sonarqube/SKILL.md:sudo
Checked automatically: 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
Does this skill install Docker automatically?
No. The source says Docker must not be installed, opened or started without explicit user approval, and it asks for permission first.
Which languages does the SonarQube scan support in this skill?
The source lists Node.js/TypeScript with npx sonarqube-scanner, Python with pysonar-scanner, and a universal Docker-based scanner option.
Does SonarQube keep running after the analysis?
No. The source says SonarQube is a one-off analysis tool, and the skill stops and removes the sonarqube-alfred container at the end.
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 56 of 100. Grades: maintenance C, licence A, quality B. Security check: grade C (downloads a script from the internet and runs it). 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.
