sonar-analyze
Installation
SKILL.md
SonarQube — Code Analysis
Analyze code for quality and security issues using the SonarQube MCP Server.
Usage
sonar-analyze # analyze the file currently in context
sonar-analyze src/auth/login.py # analyze a specific file
Prerequisites
This skill requires the SonarQube MCP Server to be configured and at least one of the tools mcp__sonarqube__run_advanced_code_analysis or mcp__sonarqube__analyze_file_list to be available in your session.
Before proceeding, verify at least one of these tools is accessible. If none are, try the CLI fallback in Step 3 before giving up — don't invent other CLI commands (e.g. sonar mcp call does not exist).
If the CLI fallback also fails or doesn't apply, narrow down the cause — check whether the sonarqube MCP server is enabled in this agent's configuration.