# Send Sonarqube Analyzer to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "sonarqube-analyzer",
    "name": "Sonarqube Analyzer",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/FelipeOFF/sonarqube-analyzer",
    "canonicalUrl": "https://clawhub.ai/FelipeOFF/sonarqube-analyzer",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/sonarqube-analyzer",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sonarqube-analyzer",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "CHANGELOG.md",
      "CONTRIBUTING.md",
      "README.md",
      "SKILL.md",
      "openclaw.plugin.json",
      "package.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "sonarqube-analyzer",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T04:51:27.466Z",
      "expiresAt": "2026-05-07T04:51:27.466Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sonarqube-analyzer",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sonarqube-analyzer",
        "contentDisposition": "attachment; filename=\"sonarqube-analyzer-0.1.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "sonarqube-analyzer"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/sonarqube-analyzer"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/sonarqube-analyzer",
    "downloadUrl": "https://openagent3.xyz/downloads/sonarqube-analyzer",
    "agentUrl": "https://openagent3.xyz/skills/sonarqube-analyzer/agent",
    "manifestUrl": "https://openagent3.xyz/skills/sonarqube-analyzer/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/sonarqube-analyzer/agent.md"
  }
}
```
## Documentation

### SonarQube Analyzer Skill

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

### 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

### 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

### sonar_get_issues

{
  "total": 12,
  "issues": [
    {
      "key": "...",
      "severity": "MAJOR",
      "component": "apps/web/src/ui/App.tsx",
      "line": 346,
      "message": "Extract this nested ternary...",
      "rule": "typescript:S3358",
      "status": "OPEN",
      "solution": "Extract nested ternary into a separate function..."
    }
  ],
  "summary": {
    "BLOCKER": 0,
    "CRITICAL": 0,
    "MAJOR": 2,
    "MINOR": 10,
    "INFO": 0
  }
}

### sonar_analyze_and_suggest

{
  "projectKey": "openclaw-panel",
  "analysis": {
    "totalIssues": 12,
    "fixableAutomatically": 8,
    "requiresManualFix": 4
  },
  "suggestions": [
    {
      "file": "apps/web/src/ui/App.tsx",
      "line": 346,
      "issue": "Nested ternary operation",
      "suggestion": "Extract into independent component",
      "codeExample": "...",
      "autoFixable": false
    }
  ],
  "nextSteps": [
    "Run lint:fix for auto-fixable issues",
    "Refactor nested ternaries in App.tsx",
    "Replace || with ?? operators"
  ]
}

### Soluções Automáticas Disponíveis

RegraProblemaSolução AutomáticaS6606Use || instead of ??✅ Substituir por ??S3358Nested ternary❌ Requer refatoração manualS6749Redundant fragment✅ Remover fragmentS6759Non-readonly props✅ Adicionar readonlyS3776Cognitive complexity❌ Requer extração de componentesS6571any in union type✅ Remover redundância

### Requisitos

Node.js 18+
Acesso ao SonarQube (localhost:9000)
Token de autenticação configurado

### Integração com Workflows

Exemplo de uso em GitHub Actions:

- name: Analyze with SonarQube Skill
  run: |
    npm install -g @felipeoff/sonarqube-analyzer
    sonarqube-analyzer \\
      --project=my-project \\
      --pr=${{ github.event.pull_request.number }} \\
      --suggest-fixes
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: FelipeOFF
- Version: 0.1.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T04:51:27.466Z
- Expires at: 2026-05-07T04:51:27.466Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/sonarqube-analyzer)
- [Send to Agent page](https://openagent3.xyz/skills/sonarqube-analyzer/agent)
- [JSON manifest](https://openagent3.xyz/skills/sonarqube-analyzer/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/sonarqube-analyzer/agent.md)
- [Download page](https://openagent3.xyz/downloads/sonarqube-analyzer)