sonar

Retrieve and analyze SonarQube code quality metrics and quality gate statuses.

7|4|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/koderover/devops-skills --skill sonar-koderover
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sonar
Source: https://github.com/koderover/devops-skills/tree/main/sonar
Command: npx skills add https://github.com/koderover/devops-skills --skill sonar-koderover

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually checking SonarQube for code quality metrics, quality gate statuses, bugs, and security hotspots is time-consuming and prone to oversight for engineering and DevOps teams, leading to low-quality code being deployed without proper validation.

Core Features & Use Cases

  • Quality Gate Enforcement: Check if projects pass pre-defined quality standards to block non-compliant code from progressing through CI/CD pipelines.
  • Issue & Vulnerability Tracking: Retrieve open bugs, code smells, and security hotspots to prioritize remediation efforts for development teams.
  • Code Quality Trend Analysis: Pull key metrics like test coverage, duplicated line density, and bug counts to track code health over time.
  • Use Case: Integrate this Skill into your deployment pipeline to automatically fail builds if the SonarQube quality gate is not passed, or generate weekly code quality reports for engineering leadership.

Quick Start

Use the sonar skill to check the quality gate status of the project with key 'my-app' and list any failing quality conditions.

Frequently Asked Questions about sonar

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

FAQPage Schema
How do I automate SonarQube quality gate checks in a CI/CD pipeline?

SonarQube quality gate checks can be automated by integrating this skill into your CI/CD pipeline to automatically retrieve gate statuses and fail builds if pre-defined quality standards are not met.

What is the best way to retrieve open bugs and security hotspots from SonarQube?

Retrieving open bugs, code smells, and security hotspots is done by querying the SonarQube API through this skill, allowing development teams to prioritize code remediation efforts without manual API interaction.

Can I track code quality trends like test coverage and duplicated lines over time?

Yes, you can track code quality trends by pulling key SonarQube metrics such as test coverage, duplicated line density, and bug counts to monitor code health and generate weekly reports for engineering leadership.

Does this work with existing DevOps and SRE workflows for code review prioritization?

This skill applies directly to DevOps, SRE, and engineering workflows by validating quality gates and listing failing conditions, which helps prioritize code reviews and block non-compliant code from deploying.

Why do I need to automate SonarQube API calls for project metrics?

Automating SonarQube API calls prevents manual checking errors and oversight, ensuring engineering teams validate code quality metrics, hotspot analysis, and issue queries efficiently before deployment.