Skill Detail

SonarQube PR Gate

Integrates SonarQube quality gates into pull request workflows via the SonarQube Web API /api/qualitygates/project_status. Blocks merges when code smells, duplications, or coverage thresholds fail and posts inline annotations using the GitHub Checks API.

Code Quality & ReviewCodex
Code Quality & Review Codex Security Reviewed
Tool match: sonarqube โญ 10.4k GitHub stars LGPL-3.0 license
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill sonarqube-pr-gate-skill Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Last updated
Mar 20, 2026
Quick brief

Integrates SonarQube quality gates into pull request workflows via the SonarQube Web API /api/qualitygates/project_status. Blocks merges when code smells, duplications, or coverage thresholds fail and posts inline annotations using the GitHub Checks API.

How it works

What this skill actually does

Overview

Key Features

  • Automated detection and reporting with structured output formats for downstream integrations
  • Configurable thresholds and rule sets that adapt to project-specific requirements and team conventions
  • Real-time feedback loops integrated into developer workflows for immediate actionable insights
  • Comprehensive logging and audit trails for compliance tracking and historical trend analysis

How It Works

SonarQube PR Gate connects directly to your existing infrastructure through well-documented API endpoints. It authenticates using standard token-based methods (API keys, OAuth tokens, or service account credentials) and operates within your existing permission boundaries. The skill processes incoming data streams, applies configurable analysis rules, and produces structured reports that integrate with notification systems, dashboards, and issue trackers.

Requirements

  • Valid API credentials with appropriate read/write scopes for the target service
  • Network access to the relevant API endpoints from the agent runtime environment
  • Compatible agent framework installed and configured with the necessary SDK dependencies