SonarQube Query

Query SonarQube projects, issues, and quality gate status via Web API.

2|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/jimweller/davit-dataops-dotfiles --skill sonarqube-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: SonarQube Query
Source: https://github.com/jimweller/davit-dataops-dotfiles/tree/main/dataops-plugin/skills/sonarqube-query
Command: npx skills add https://github.com/jimweller/davit-dataops-dotfiles --skill sonarqube-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of interacting with SonarQube, allowing users to quickly retrieve code quality metrics, identify issues, and manage their lifecycle without needing to navigate the SonarQube UI manually.

Core Features & Use Cases

  • Project Discovery: List and filter SonarQube projects.
  • Issue Management: Search for issues with various filters (severity, status, branch, PR), and transition issues through their lifecycle (accept, won't fix, false positive, etc.).
  • Quality Gate Status: Check the quality gate status for projects, branches, or pull requests.
  • Use Case: A developer can quickly find all critical, open bugs in a specific branch of a project and then mark a false positive issue as 'won't fix' directly from their terminal.

Quick Start

Use the SonarQube Query skill to list all projects containing the word "payment" in their name.

Frequently Asked Questions about SonarQube Query

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

FAQPage Schema
How do I query SonarQube for code quality issues from the command line?

You can query SonarQube for code quality issues using bash scripts that interact with the SonarQube Web API. This allows programmatic searching of issues by project key, severity, status, branch, and pull request ID without navigating the UI.

Can I check SonarQube quality gate status for a specific pull request via API?

Yes, you can check the quality gate status for projects, branches, or pull requests via the SonarQube Web API. The Skill queries the instance to retrieve and report the current quality gate state for the specified target.

Do I need an authentication token to access SonarQube project information?

Yes, accessing SonarQube project information requires a running SonarQube instance with a user token. You must also configure the necessary environment variables for API access before executing the bash scripts.

What's the best way to manage SonarQube issue lifecycle states like false positive?

The best way to manage SonarQube issue lifecycle states is using bash scripts to transition issues through states like accept, won't fix, and false positive. This enables direct lifecycle management from the terminal via the Web API.

Why does my bash script fail to retrieve SonarQube issues by branch?

Your bash script fails to retrieve SonarQube issues by branch likely because environment variables for API access are not configured correctly. The Skill requires a valid SonarQube user token and properly set environment variables to execute Web API requests successfully.