Search

PythonReactSEOPDF
OpenClaw

Sonarqube Analyzer

SonarQube Analyzer Skill

felipeoff0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install felipeoff/sonarqube-analyzer

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

SonarQube Analyzer Skill

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

Ferramentas Registradas

sonar_get_issues

Obtém lista de issues de um projeto/PR no SonarQube.

Parâmetros:

  • projectKey (string, obrigatório): Chave do projeto
  • pullRequest (string, opcional): Número da PR para análise específica
  • severities (string[], opcional): Severidades a filtrar (BLOCKER, CRITICAL, MAJOR, MINOR, INFO)
  • status (string, opcional): Status das issues (OPEN, CONFIRMED, FALSE_POSITIVE, etc.)
  • limit (number, opcional): Limite de issues (padrão: 100)

Exemplo:

{
  "projectKey": "openclaw-panel",
  "pullRequest": "5",
  "severities": ["CRITICAL", "MAJOR"],
  "limit": 50
}
sonar_analyze_and_suggest

Analisa issues e sugere soluções com base nas regras do SonarQube.

Parâmetros:

  • projectKey (string, obrigatório): Chave do projeto
  • pullRequest (string, opcional): Número da PR
  • autoFix (boolean, opcional): Tentar aplicar correções automáticas (padrão: false)

Exemplo:

{
  "projectKey": "openclaw-panel",
  "pullRequest": "5",
  "autoFix": false
}
sonar_quality_gate

Verifica o status do Quality Gate de um projeto.

Parâmetros:

  • projectKey (string, obrigatório): Chave do projeto
  • pullRequest (string, opcional): Número da PR

Exemplo:

{
  "projectKey": "openclaw-panel",
  "pullRequest": "5"
}

Configuração

O skill usa as seguintes configurações do ambiente:

SONAR_HOST_URL=http://127.0.0.1:9000  # URL do SonarQube
SONAR_TOKEN=admin                      # Token de autenticação

Uso

Analisar uma PR específica:
node scripts/analyze.js --project=my-project --pr=5
Gerar relatório de issues:
node scripts/report.js --project=my-project --format=markdown
Verificar Quality Gate:
node scripts/quality-gate.js --project=my-project --pr=5

Estrutura de Resposta

sonar_get...

Source information

Source
github
Repository
openclaw/skills
Path
skills/felipeoff/sonarqube-analyzer
Version
—
Commit
b40d82b1285cab64f02e707e95093d9b1fabf613
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

OpenClaw SonarQube Analyzer

License: MIT Node.js Version OpenClaw Plugin

An OpenClaw Plugin + CLI Skill for automated SonarQube code quality analysis with intelligent issue detection and suggested solutions.

🎯 Dual Mode

This package works in two modes:

Mode Use Case Installation
OpenClaw Plugin AI agents, automation, cron jobs Add to openclaw.json
CLI Tool Manual analysis, CI/CD scripts npm install -g or npx

🎯 Overview

This skill integrates with SonarQube self-hosted instances to:

  • Fetch and analyze code quality issues
  • Provide intelligent solutions based on SonarQube rules
  • Generate actionable reports in JSON or Markdown
  • Check Quality Gate status
  • Distinguish between auto-fixable and manual-fix issues

🚀 Quick Start

Mode 1: OpenClaw Plugin (Recommended for AI Agents)

Install as an OpenClaw plugin to use native tools (sonar_get_issues, sonar_analyze_and_suggest, sonar_quality_gate):

# Clone to your OpenClaw workspace
git clone https://github.com/FelipeOFF/sonarqube-analyzer.git \
  ~/.openclaw/workspace/skills/sonarqube-analyzer

# Install dependencies
cd ~/.openclaw/workspace/skills/sonarqube-analyzer
npm install

Add to your ~/.openclaw/openclaw.json:

{
  "plugins": {
    "load": {
      "paths": [
        "/home/YOUR_USER/.openclaw/workspace/skills/sonarqube-analyzer"
      ]
    },
    "entries": {
      "sonarqube-analyzer": {
        "enabled": true,
        "config": {
          "sonarHostUrl": "http://127.0.0.1:9000",
          "sonarToken": "your-token-here",
          "defaultProject": "my-project"
        }
      }
    }
  }
}

Then reload OpenClaw: ``...

Extracted content

SKILL.md
# SonarQube Analyzer Skill

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

## Ferramentas Registradas

### `sonar_get_issues`
Obtém lista de issues de um projeto/PR no SonarQube.

**Parâmetros:**
- `projectKey` (string, obrigatório): Chave do projeto
- `pullRequest` (string, opcional): Número da PR para análise específica
- `severities` (string[], opcional): Severidades a filtrar (BLOCKER, CRITICAL, MAJOR, MINOR, INFO)
- `status` (string, opcional): Status das issues (OPEN, CONFIRMED, FALSE_POSITIVE, etc.)
- `limit` (number, opcional): Limite de issues (padrão: 100)

**Exemplo:**
```json
{
  "projectKey": "openclaw-panel",
  "pullRequest": "5",
  "severities": ["CRITICAL", "MAJOR"],
  "limit": 50
}
```

### `sonar_analyze_and_suggest`
Analisa issues e sugere soluções com base nas regras do SonarQube.

**Parâmetros:**
- `projectKey` (string, obrigatório): Chave do projeto
- `pullRequest` (string, opcional): Número da PR
- `autoFix` (boolean, opcional): Tentar aplicar correções automáticas (padrão: false)

**Exemplo:**
```json
{
  "projectKey": "openclaw-panel",
  "pullRequest": "5",
  "autoFix": false
}
```

### `sonar_quality_gate`
Verifica o status do Quality Gate de um projeto.

**Parâmetros:**
- `projectKey` (string, obrigatório): Chave do projeto
- `pullRequest` (string, opcional): Número da PR

**Exemplo:**
```json
{
  "projectKey": "openclaw-panel",
  "pullRequest": "5"
}
```

## Configuração

O skill usa as seguintes configurações do ambiente:

```bash
SONAR_HOST_URL=http://127.0.0.1:9000  # URL do SonarQube
SONAR_TOKEN=admin                      # Token de autenticação
```

## Uso

### Analisar uma PR específica:
```bash
node scripts/analyze.js --project=my-project --pr=5
```

### Gerar relatório de issues:
```bash
node scripts/report.js --project=my-project --format=markdown
```

### Verificar Quality Gate:
```bash
node scripts/quality-gate.js --project=my-project --pr=5
```

## Estrutura de Resposta

### sonar_get...
README
# OpenClaw SonarQube Analyzer

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Node.js Version](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen)](https://nodejs.org/)
[![OpenClaw Plugin](https://img.shields.io/badge/OpenClaw-Plugin-blue)](https://docs.openclaw.ai)

An **OpenClaw Plugin + CLI Skill** for automated SonarQube code quality analysis with intelligent issue detection and suggested solutions.

## 🎯 Dual Mode

This package works in **two modes**:

| Mode | Use Case | Installation |
|------|----------|--------------|
| **OpenClaw Plugin** | AI agents, automation, cron jobs | Add to `openclaw.json` |
| **CLI Tool** | Manual analysis, CI/CD scripts | `npm install -g` or `npx` |

## 🎯 Overview

This skill integrates with SonarQube self-hosted instances to:
- Fetch and analyze code quality issues
- Provide intelligent solutions based on SonarQube rules
- Generate actionable reports in JSON or Markdown
- Check Quality Gate status
- Distinguish between auto-fixable and manual-fix issues

## 🚀 Quick Start

### Mode 1: OpenClaw Plugin (Recommended for AI Agents)

Install as an OpenClaw plugin to use native tools (`sonar_get_issues`, `sonar_analyze_and_suggest`, `sonar_quality_gate`):

```bash
# Clone to your OpenClaw workspace
git clone https://github.com/FelipeOFF/sonarqube-analyzer.git \
  ~/.openclaw/workspace/skills/sonarqube-analyzer

# Install dependencies
cd ~/.openclaw/workspace/skills/sonarqube-analyzer
npm install
```

Add to your `~/.openclaw/openclaw.json`:

```json
{
  "plugins": {
    "load": {
      "paths": [
        "/home/YOUR_USER/.openclaw/workspace/skills/sonarqube-analyzer"
      ]
    },
    "entries": {
      "sonarqube-analyzer": {
        "enabled": true,
        "config": {
          "sonarHostUrl": "http://127.0.0.1:9000",
          "sonarToken": "your-token-here",
          "defaultProject": "my-project"
        }
      }
    }
  }
}
```

Then reload OpenClaw:
``...

Related skills

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

dojo.md

edholofy

University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning req...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

wps-macos-helper

lethehades

macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance