Official agent skill

Sonar Analyze

by SonarSource in SonarSource/sonarqube-agent-plugins

Analyze a file for quality and security issues using SonarQube

OfficialCustom licenceAuto-check passedDevOps & Cloud

Install Sonar Analyze

skills CLI
$ npx skills add SonarSource/sonarqube-agent-plugins --skill sonar-analyze -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install SonarSource/sonarqube-agent-plugins sonar-analyze --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/SonarSource/sonarqube-agent-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/sonar-analyze .claude/skills/sonar-analyze && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sonar-analyze
GitHub stars
110
Token cost
~1.8k tokens
SKILL.md length
897 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
Custom licence

At a glance

Analyze a file for quality and security issues using SonarQube

  • Works in 5 steps: Resolve what to analyze → Read the file and determine its scope → Call the appropriate analysis tool → …
  • DevOps & Cloud work in your project
  • SKILL.md covers Usage, Prerequisites and Instructions
  • Calls docker, podman and git

What it does

Sonar Analyze is an agent skill from SonarSource/sonarqube-agent-plugins, published by the product's own GitHub organization. Analyze a file for quality and security issues using SonarQube

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud. It works with Model Context Protocol and Docker. The repository describes itself as: SonarQube Plugin for AI Agents.

When your agent uses it

  • DevOps & Cloud work in your project

Example prompts

  • “/sonar-analyze”

Requirements

  • Docker
  • Pre-approved tools (allowed-tools): Read, Glob, Bash(git branch:*), Bash(docker ps:*), Bash(podman ps:*), Bash(nerdctl ps:*), Bash(sonar:*)

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Resolve what to analyze
  2. Read the file and determine its scope
  3. Call the appropriate analysis tool
  4. Format the results
  5. Next steps

What it can do on your machine

Read from SKILL.md and the folder at commit 6142e57. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Bash(git branch:*)
    • Bash(docker ps:*)
    • Bash(podman ps:*)
    • Bash(nerdctl ps:*)
    • Bash(sonar:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • docker
    • podman
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use docker and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sonar Analyze loads about 1.8k tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 897 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~19
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 897 words (~1,829 tokens).

“Analyze code for quality and security issues using the SonarQube MCP Server.”

— opening of SKILL.md by SonarSource, Custom licence
name
sonar-analyze
allowed-tools
Read, Glob, Bash(git branch:*), Bash(docker ps:*), Bash(podman ps:*), Bash(nerdctl ps:*), Bash(sonar:*)
argument-hint
[file-path]

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/sonar-analyze of SonarSource/sonarqube-agent-plugins.

Open the folder on GitHubat commit 6142e57

Compare with similar skills

Sonar Analyze next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sonar Analyze compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sonar Analyze this skillSonarSource/sonarqube-agent-plugins110—~1.8kAutomated safety check: PassCustom licence
Youtubeeat-pray-ai/yutu696—~1.1kAutomated safety check: PassMIT
Unraiddinglebear-ai/unraid135—~5.4kAutomated safety check: NotesMIT
Oneclickvirtoneclickvirt/oneclickvirt372—~1.1kAutomated safety check: PassGPL-3.0
Devsydevsy-org/devsy109—~1.7kAutomated safety check: PassMPL-2.0
Deploy Observabilityaliyun/alibabacloud-observability-mcp-server166—~2.6kAutomated safety check: NotesNone

Similar skills

  • Youtube

    eat-pray-ai/yutu

    A skill your agent uses whenever the user mentions YouTube, video uploads, channel management, playlists, video SEO, or any YouTube Data API operation.

    696 GitHub stars~1.1k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Unraid

    dinglebear-ai/unraid

    This skill should be used when the user mentions Unraid, asks to check server health, monitor array or disk status, list or restart Docker containers, start or stop VMs, read system logs, check…

    135 GitHub stars~5.4k tokensUpdated 4 days ago
    DevOps & CloudAuto-check: notes
  • Oneclickvirt

    oneclickvirt/oneclickvirt

    OneClickVirt operations skill for managing containers, virtual machines, provider nodes, health checks, and metrics through MCP.

    372 GitHub stars~1.1k tokensUpdated 5 days ago
    DevOps & CloudAuto-check passed
  • Devsy

    devsy-org/devsy

    Operate Devsy workspaces and providers for end users. An agent skill from devsy-org/devsy.

    109 GitHub stars~1.7k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Deploy Observability

    aliyun/alibabacloud-observability-mcp-server

    Deploy, start, and update the Alibaba Cloud Observability MCP Server (阿里云可观测 MCP Server).

    166 GitHub stars~2.6k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check: notes
  • Deploy

    noskillish/bankmcp

    Deploy BankMCP™ to a small server so it works in claude.ai and on the phone: Railway or Fly.io, volume, domain, setup page, connector.

    276 GitHub stars~744 tokensUpdated 9 days ago
    DevOps & CloudAuto-check passed

More from SonarSource/sonarqube-agent-plugins

All 8 skills in this repo
  • Sonar Coverage

    SonarSource/sonarqube-agent-plugins

    Official

    Find files with low test coverage and inspect uncovered lines in a SonarQube project (project key optional when MCP integration already defines the default project)

    110 GitHub stars~2.1k tokensUpdated 8 days ago
    Auto-check passed
  • Sonar Dependency Risks

    SonarSource/sonarqube-agent-plugins

    Official

    Search for software composition analysis (SCA) dependency risks in a SonarQube project (project key optional when MCP integration already defines the default project)

    110 GitHub stars~1.9k tokensUpdated 8 days ago
    Auto-check passed
  • Sonar Duplication

    SonarSource/sonarqube-agent-plugins

    Official

    Find files with code duplications in a SonarQube project and inspect duplication blocks for a file (project key optional when MCP integration already defines the default project)

    110 GitHub stars~2.4k tokensUpdated 8 days ago
    Auto-check passed
  • Sonar Fix Issue

    SonarSource/sonarqube-agent-plugins

    Official

    Fix a specific SonarQube issue in code by rule key and location

    110 GitHub stars~551 tokensUpdated 8 days ago
    Auto-check passed
  • Sonar List Issues

    SonarSource/sonarqube-agent-plugins

    Official

    Search and filter SonarQube issues for a project, branch, or pull request via sonarqube-cli (-p is always required on the CLI; resolve the key from user arguments or sonar-project.properties)

    110 GitHub stars~1.6k tokensUpdated 8 days ago
    Auto-check passed
  • Sonar List Projects

    SonarSource/sonarqube-agent-plugins

    Official

    List SonarQube projects accessible to the current user. An agent skill from SonarSource/sonarqube-agent-plugins.

    110 GitHub stars~741 tokensUpdated 8 days ago
    Auto-check passed

Categories

Questions about Sonar Analyze

What does Sonar Analyze do?

Analyze a file for quality and security issues using SonarQube. Sonar Analyze is an agent skill from SonarSource/sonarqube-agent-plugins, published by the product's own GitHub organization.

When should I use Sonar Analyze?

Sonar Analyze fits situations like: devOps & Cloud work in your project.

How do I install Sonar Analyze in Claude Code?

Run `npx skills add SonarSource/sonarqube-agent-plugins --skill sonar-analyze -a claude-code`. Or copy the skill folder (skills/sonar-analyze in SonarSource/sonarqube-agent-plugins) into .claude/skills/sonar-analyze in your project. Claude Code loads it when a task matches its description.

How do I install Sonar Analyze in Codex?

Run `npx skills add SonarSource/sonarqube-agent-plugins --skill sonar-analyze -a codex`. Or copy the skill folder (skills/sonar-analyze in SonarSource/sonarqube-agent-plugins) into .agents/skills/sonar-analyze in your project. Codex loads it when a task matches its description.

Can I use Sonar Analyze in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SonarSource/sonarqube-agent-plugins --skill sonar-analyze -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sonar-analyze, .gemini/skills/sonar-analyze, .github/skills/sonar-analyze and .opencode/skills/sonar-analyze in your project.

What does Sonar Analyze need to run?

Going by SKILL.md and its folder, Sonar Analyze needs the command-line tools its instructions call (docker, podman and git). Our summary lists: Docker. Its frontmatter pre-approves these tools: Read, Glob, Bash(git branch:*), Bash(docker ps:*), Bash(podman ps:*), Bash(nerdctl ps:*), Bash(sonar:*).

Does Sonar Analyze access the network?

SKILL.md contains no URLs. Its commands use docker and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Sonar Analyze safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Sonar Analyze use?

Sonar Analyze has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Sonar Analyze use?

About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Sonar Analyze?

Skills that share tags, products or a category with Sonar Analyze: Youtube (eat-pray-ai/yutu, 696 stars), Unraid (dinglebear-ai/unraid, 135 stars), Oneclickvirt (oneclickvirt/oneclickvirt, 372 stars) and Devsy (devsy-org/devsy, 109 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sonar Analyze?

SonarSource (a GitHub organization, an official publisher) maintains it in SonarSource/sonarqube-agent-plugins, which has 110 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 29, 2026.

Source: SonarSource/sonarqube-agent-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.