LaunchKit · 2026
Back to Skills

sonarqube-analyzer

Analisa projetos no SonarQube self-hosted, obtém issues e sugere soluções automatizadas.

1
1.1k downloads
by @felipeoff

Setup & Installation

openclaw skills install @felipeoff/sonarqube-analyzer

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install sonarqube-analyzer

Version History

v0.1.2Feb 10, 2026 - Version note by skill developer:

- Atualização dos comandos de uso para utilizar `my-project` em vez de `openclaw-panel`, tornando o exemplo mais genérico. - Exemplo de integração em GitHub Actions atualizado: agora inclui instalação via npm (`npm install -g @felipeoff/sonarqube-analyzer`) e invocação pelo comando global `sonarqube-analyzer`. - Restante da documentação permanece inalterado, sem alterações em ferramentas, parâmetros ou exemplos de resposta.

What This Skill Does

Connects to a self-hosted SonarQube instance to fetch code issues, check quality gate status, and generate fix suggestions for a project or pull request. Supports filtering by severity and status, and can attempt automatic fixes for certain rule violations.

Brings SonarQube issue triage and fix suggestions directly into an agent workflow without manually navigating the SonarQube UI.

When to use it

  • Check if a PR passes the quality gate before merging
  • List all CRITICAL and BLOCKER issues in a project
  • Get fix suggestions for nested ternary warnings in a TypeScript file
  • Automate SonarQube analysis in a GitHub Actions workflow
  • Generate a markdown report of open issues by severity

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: 'What issues are in PR #5 of the openclaw-panel project, and how do I fix them?'

AGENT
  1. 1Call sonar_get_issues with projectKey 'openclaw-panel' and pullRequest '5'
  2. 2Review returned issues grouped by severity
  3. 3Call sonar_analyze_and_suggest with the same project and PR to get fix recommendations
  4. 4Identify which issues are auto-fixable vs require manual refactoring
  5. 5Return a summary with next steps
OUTPUT

A list of 12 issues (2 MAJOR, 10 MINOR) with per-file suggestions and a note that 8 can be fixed automatically

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

SONAR_HOST_URL environment variable pointing to your SonarQube instanceSONAR_TOKEN environment variable with a valid SonarQube authentication tokenSelf-hosted SonarQube instance