sonarsource/sonarqube-agent-plugins/sonar-list-projects
- community
Checking that the SKILL.md file is still in the repository.
List SonarQube projects accessible to the current user
Install
npx vskill@latest install sonarsource/sonarqube-agent-plugins/sonar-list-projectsSKILL.md
SonarQube — List Projects
List SonarQube projects accessible to the authenticated user. Useful for discovering project keys before running other skills.
Usage
Prerequisites
This skill uses the sonarqube-cli command. The CLI must be installed and authenticated before proceeding.
Before proceeding, verify that sonar is available on your PATH and authenticated. If it is not, do not attempt to call any alternative commands or invent alternatives, and show the user:
Unable to list projects.Possible causes:-sonarqube-clinot installed or not authenticated — invoke the sonar-integrate skill
Then ask the user (yes/no) whether to run the sonar-integrate skill now. Briefly explain what it does: it checks the SonarQube setup on their machine — installing or updating sonarqube-cli and verifying authentication — and re-configures the integration for this agent, including the SonarQube MCP server and secrets-scanning hooks. If they confirm, invoke the sonar-integrate skill yourself and follow it end-to-end in this session, then re-check and continue; if they decline, stop.
Instructions
Step 1: Parse optional search term from the user-provided arguments
- If the user provided a search term (not a flag), pass it as
--query.
Step 2: Validate arguments
If a --query search term was provided, validate it matches ^[a-zA-Z0-9_\-\. ]+$. If it does not, stop and tell the user what was rejected — do not run the command.
Step 3: Run sonar list projects
Build and run the command using a shell command:
Only include --query if a search term was provided.
Step 4: Format the results
If projects are found:
If no projects are found:
If the result is paginated (500 projects returned), note: "Showing first 500 projects. Use a search term to narrow results."
Step 5: Next steps
- To list issues: "Invoke the sonar-list-issues skill with the project key, or ensure `sonar.projectKey` is in `sonar-project.properties` — the CLI always requires `-p`."
- To check the quality gate: "Invoke the sonar-quality-gate skill — add a project key only if you are not using the MCP integration default."
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sonar-list-projects/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sonarsource/sonarqube-agent-plugins/sonar-list-projects)