Skill Detail

SonarQube Quality Gate Enforcer

Enforces SonarQube quality gates in pull request workflows using the SonarQube Web API and ce/task endpoint. Blocks merges when code coverage drops, duplications exceed thresholds, or security hotspots are unreviewed.

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

The SonarQube Quality Gate Enforcer skill integrates SonarQube quality gate enforcement into pull request workflows. It queries the SonarQube Web API measures/component endpoint to fetch real-time quality metrics including code coverage, duplicated lines percentage, cognitive complexity, and security hotspot counts. The skill monitors the ce/task endpoint for analysis completion and evaluates results against configurable quality gate profiles. When violations are detected, it posts detailed PR comments breaking down each failed condition with specific file-level metrics and remediation guidance. Supports multi-language projects with per-language threshold overrides. Can enforce differential quality gates that apply stricter standards to new code versus legacy code. Integrates with GitHub Check Runs API to create blocking status checks. Generates trend reports showing quality metric trajectories across releases. Works with SonarQube Community, Developer, and Enterprise editions.