sonarqube

Fetch SonarQube quality metrics for pull requests and generate Markdown reports.

164|44|Updated Jun 30, 2023
One-click install
npx skills add https://github.com/hivemq/hivemq-edge --skill sonarqube-hivemq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sonarqube
Source: https://github.com/hivemq/hivemq-edge/tree/main/hivemq-edge-frontend/.claude/skills/sonarqube
Command: npx skills add https://github.com/hivemq/hivemq-edge --skill sonarqube-hivemq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

SonarQube quality assessment helps teams quickly determine if a PR meets code quality standards by automatically collecting metrics and reporting on quality gates, bugs, vulnerabilities, and coverage.

Core Features & Use Cases

  • Automatically verify PR exists and checks CI status
  • Fetch SonarQube metrics (coverage, bugs, vulnerabilities) and quality gate status
  • Generate comprehensive reports to inform merging decisions and track code quality over time
  • Use case: teams can run /sonarqube on a PR to surface risk and guide remediation

Quick Start

Invoke the skill to analyze the current PR with /sonarqube, or specify a PR number to target a single pull request.

Frequently Asked Questions about sonarqube

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check SonarQube quality metrics for a pull request?

You can check SonarQube quality metrics by invoking the analysis skill on a specific pull request. It fetches coverage, bugs, vulnerabilities, and quality gate status from SonarCloud endpoints, returning a formatted Markdown report with emoji-based status indicators to guide merging decisions.

Can I assess PR code quality automatically in a CI environment?

Yes, you can assess PR code quality automatically in CI environments. The skill verifies PR existence and CI status, then fetches SonarQube metrics to generate comprehensive reports that surface code quality risks and guide remediation across GitHub workflows.

What is the best way to generate a SonarQube code quality report for new code?

The best way to generate a SonarQube code quality report for new code is to run the analysis skill on your target pull request. It analyzes new code metrics against configurable thresholds and outputs a comprehensive Markdown report with detailed status indicators.

Does this SonarQube PR analysis work with GitHub pull requests?

Yes, this SonarQube PR analysis works with GitHub pull requests. It is applicable to PR workflows in CI environments across GitHub, allowing you to quickly verify PR existence and surface quality gate metrics for both frontend and backend projects.

How do I configure quality gate thresholds for SonarQube metrics?

You can configure quality gate thresholds for SonarQube metrics within the analysis skill before running it. It uses these configurable thresholds alongside API calls to SonarCloud endpoints to evaluate new code metrics and return formatted status indicators.