Analyze a file for quality and security issues using SonarQube
Install
npx skills add SonarSource/sonarqube-agent-plugins --skill sonar-analyzenpx skills add SonarSource/sonarqube-agent-plugins --skill sonar-analyze -a claude-code -gnpx skills add SonarSource/sonarqube-agent-plugins --skill sonar-analyze -a codex -ggemini skills install https://github.com/SonarSource/sonarqube-agent-plugins.git --path skills/sonar-analyzegh skill install SonarSource/sonarqube-agent-plugins sonar-analyzegit clone --depth 1 https://github.com/SonarSource/sonarqube-agent-plugins /tmp/SonarSource__sonarqube-agent-plugins
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/SonarSource__sonarqube-agent-plugins/skills/sonar-analyze ~/.claude/skills/sonar-analyze # Claude Code
cp -R /tmp/SonarSource__sonarqube-agent-plugins/skills/sonar-analyze ~/.agents/skills/sonar-analyze # Codex, Cursor, Gemini CLI, Copilot, OpenCode