sonar-login
БесплатноБез исполняемых скриптовНе проверенLogs sonarqube-cli in to SonarQube Cloud or SonarQube Server: checks the current login, asks for the connection type, and builds the `sonar auth login`…
от SonarSource★ 118 звёзд на GitHubОб этом скилле
SonarQube — Login
Make sure sonarqube-cli is logged in, and report the connected server, plus the organization for SonarQube Cloud (a SonarQube Server login has none). The login opens a browser, so the user runs it: never run sonar auth login yourself, and never ask the user to paste a token into the chat.
This skill authenticates the SonarQube CLI only. A hosted MCP connection signs in through OAuth in the agent's own connection settings and does not use this skill: for that, follow the sonar-integrate skill.
Interaction rule: for every finite decision, always present predefined selector options (single-choice or multi-choice as appropriate) instead of asking for free-form text. If the user gives an invalid answer, re-show the same selector.
When another skill invoked this one, return to it once the user is logged in, or once they stop.
Instructions
Step 1 — Check the current login
Run sonar auth status yourself. If sonar is not found, invoke the sonar-install-cli skill, then run sonar auth status again. If it reports not installed, stop.
- Logged in: note the connected server, and the organization for SonarQube Cloud, tell the user, and stop. Login again (Step 2) only when the user asked to re-authenticate or to use another server or organization.
- Not logged in: go to Step 2.
Step 2 — Build the login command
Ask for the connection type with a single-choice selector:
- SonarQube Cloud - EU (default)
- SonarQube Cloud - US
- SonarQube Cloud - AU
- Self-hosted SonarQube Server
Collect what the scenario needs, and validate it before putting it into the command. If a value fails, tell the user what was rejected and ask again.
| Scenario | Information needed | Allowed pattern |
|---|---|---|
| SonarQube Cloud — EU (default) | organization key (e.g. my-org) |
^[a-zA-Z0-9_\-]+$ |
| SonarQube Cloud — US | organization key + confirm US region (https://sonarqube.us) |
^[a-zA-Z0-9_\-]+$ |
| SonarQube Cloud — AU | organization key + confirm AU region (https://sonarqube.au) |
^[a-zA-Z0-9_\-]+$ |
| SonarQube Server | server URL (e.g. https://sonarqube.yourcompany.com) |
http:// or https:// URL, no spaces, quotes or `;& |
Build the login command and show it to the user:
| Scenario | Command |
|---|---|
| SonarQube Cloud — EU | sonar auth login -o <org-key> |
| SonarQube Cloud — US | sonar auth login -o <org-key> -s https://sonarqube.us |
| SonarQube Cloud — AU | sonar auth login -o <org-key> -s https://sonarqube.au |
| SonarQube Server | sonar auth login -s <server-url> |
Tell the user:
"Run the command below — it will open your browser to login. The token is stored securely in your system keychain and never appears in this chat."
Step 3 — Verify
Wait for the user to confirm they logged in, then run sonar auth status yourself. If it reports the login, note the connected server, and the organization for SonarQube Cloud, and stop. If it does not, show its output and go back to Step 2.
Установить sonar-login в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(sonar:*)FAQ
Что делает скилл sonar-login?
Logs sonarqube-cli in to SonarQube Cloud or SonarQube Server: checks the current login, asks for the connection type, and builds the `sonar auth login` command for the user to run. Use when the user asks to login, login or re-authenticate to SonarQube, when a `sonar` command reports that it is not logged in, or when another skill needs a CLI login. Not for hosted MCP connections, which sign in through OAuth in the agent's connection settings (use sonar-integrate).
Как установить скилл sonar-login?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sonar-login запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic