From security-sonarqube
Use when analyzing SonarQube quality gate results — interpret gate conditions, identify security-relevant failures, and remediate blockers
How this skill is triggered — by the user, by Claude, or both
Slash command
/security-sonarqube:sonarqube-quality-gateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A quality gate is a set of conditions that a project must pass to be considered ready. When a quality gate fails, the project status is ERROR and cannot be merged/deployed. This skill guides interpretation and remediation of quality gate failures.
A quality gate is a set of conditions that a project must pass to be considered ready. When a quality gate fails, the project status is ERROR and cannot be merged/deployed. This skill guides interpretation and remediation of quality gate failures.
Security Rating
sonarqube-remediation skillBlocker Issues
Code Coverage
Duplicated Lines
Maintainability Rating
Reliability Rating
curl -H "Authorization: Bearer $SONARQUBE_TOKEN" \
"https://sonar.example.com/api/qualitygates/project_status?projectKey=my-project"
Response structure:
{
"projectStatus": {
"status": "ERROR",
"conditions": [
{
"status": "ERROR",
"metricKey": "security_rating",
"operator": "GREATER_THAN",
"errorThreshold": "1",
"actualValue": "3"
}
]
}
}
Prioritize conditions in this order:
For Security Rating failures:
sonarqube-remediation skill to fix vulnerabilitiesPOST /api/issues/do_transitionFor Coverage failures:
For Complexity failures:
For Duplication failures:
After fixes:
# Trigger a new SonarQube analysis
sonar-scanner \
-Dsonar.projectKey=my-project \
-Dsonar.host.url=https://sonar.example.com \
-Dsonar.login=$SONARQUBE_TOKEN
# Verify gate status
curl -H "Authorization: Bearer $SONARQUBE_TOKEN" \
"https://sonar.example.com/api/qualitygates/project_status?projectKey=my-project"
Expected result: "status": "OK"
| Condition | Cause | Solution |
|---|---|---|
| Security Rating fails | Known vulnerabilities | Remediate using sonarqube-remediation skill |
| Coverage drops | Missing tests | Write unit tests for new code |
| Complexity spike | Large refactor | Break into smaller PRs or functions |
| Duplication increases | Code copy-paste | Extract into shared utilities |
| Intermittent failures | Test flakiness | Fix non-deterministic tests |
npx claudepluginhub gagandeepp/software-agent-teams --plugin security-sonarqubeGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.