Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

sonar

Skill by ffroliva

Checks the SonarCloud quality gate for a pull request or the current branch. It reports GREEN, or lists the exact new issues, hotspots and coverage gaps to fix. Aimed at developers using the gflow workflow.

  • Score 76
  • 1.1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install sonar

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ffroliva/gflow-cli /tmp/gflow-cli && mkdir -p ~/.claude/skills && cp -r /tmp/gflow-cli/skills/sonar ~/.claude/skills/sonar

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install sonar in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill checks whether the SonarCloud quality gate passes for a pull request, or for the current branch when no PR number is given. It first reads the GitHub SonarCloud check. If that check passed, the gate is reported GREEN. If it failed, the skill queries the SonarCloud API for the new issues, unreviewed security hotspots and failing gate conditions, all scoped to the PR.

The skill also gives guidance for each failing condition. Coverage gaps should be fixed with real unit tests, and the coverage exclusions should not be widened. Security hotspots should only be marked reviewed when they are genuine false positives. After fixes are pushed, the skill re-checks the gate. It is written for developers who use the gflow workflow and a SonarCloud project.

Written from the project's SKILL.md and checked against it.

What it can do

  • Gate status checkReads the GitHub SonarCloud analysis check and reports GREEN when it passes.
  • Failing condition lookupQueries SonarCloud for which quality gate conditions are in error, scoped to the PR.
  • New issue listingLists new bugs and code smells with file, line, rule and creation date.
  • Hotspot listingLists security hotspots that are still waiting for review.
  • Fix guidance by conditionGives fix steps for coverage gaps, code smells and hotspots, without gaming the gate.
  • Hotspot reviewCan mark a genuine false positive as reviewed through the SonarCloud API and rerun the job.
  • Verdict outputReturns GREEN, or RED with a file:line, rule and fix list for each failing condition.
  • Pipeline handoffSuggests the next step after a green gate, such as the release pipeline or merging the PR.

What you need

  • GitHub CLI (gh) to read PR checks
  • A SonarCloud token stored as SONAR_TOKEN in .env.local
  • A SonarCloud project with a CI scan that waits for the quality gate

Try asking

  • Check the SonarCloud quality gate for PR 42
  • What SonarCloud issues are blocking my current branch PR?
  • Re-run the SonarCloud gate check after I pushed the fixes

Good to know

  • Cannot see SonarCloud from local checks, because the gate runs server-side after a push.
  • The gate API can return stale results until the SonarCloud GitHub check finishes.
  • Security hotspots should only be marked safe when they are genuine false positives.
  • Written for the gflow workflow and the project key ffroliva_gflow-cli.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/sonar/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB

Alternatives to sonar

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

sonar: common questions

Does this skill tell me if my SonarCloud quality gate passed?

Yes. It first reads the GitHub SonarCloud analysis check, and a pass means the gate passed with zero new issues. If the check failed, it lists the failing conditions.

Can it fix coverage gaps by excluding files from coverage?

No. The skill says to add real unit tests for uncovered new lines and never to widen sonar.coverage.exclusions to avoid the gate.

Why does the skill check the GitHub check before the SonarCloud API?

The source says the gate API is stale until the GitHub check finishes, so the API can return the previous commit's verdict if read too early.

How do I install sonar?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is sonar free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is sonar safe to use?

It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to sonar?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

Add to stack

Loading.