sonarcloud

Installation
SKILL.md

SonarCloud API Integration

Overview

SonarCloud analyzes code for bugs, vulnerabilities, and code smells. When a PR fails the quality gate, SonarCloud posts a comment but doesn't show the exact issues—those are hidden in the SonarCloud UI. This skill enables fetching the exact issues programmatically via the SonarCloud REST API.

Prerequisites

SONAR_TOKEN Environment Variable

Before making API calls, verify the SONAR_TOKEN environment variable is set without printing its value:

printenv SONAR_TOKEN > /dev/null && echo "Token is set" || echo "Token is missing"

If missing, inform the user they need to create a SonarCloud token:

Installs
1
First Seen
May 15, 2026