Coding Agent
mastra-ai/mastra
Authoring playbook for building agents that write, edit, review, or refactor code.
Fetches and triages SonarCloud findings (issues, security hotspots, quality gate) for the current pull request or branch of this repository via the SonarCloud Web API, summarizes them in a markdown…
$ npx skills add lucasvieirasilva/nx-plugins --skill sonarcloud-review -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install lucasvieirasilva/nx-plugins sonarcloud-review --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/lucasvieirasilva/nx-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/sonarcloud-review .claude/skills/sonarcloud-review && rm -rf skills-srcUse ~/.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/
Install the "sonarcloud-review" agent skill from https://github.com/lucasvieirasilva/nx-plugins/tree/main/.claude/skills/sonarcloud-review into .claude/skills/sonarcloud-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sonarcloud-review", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/lucasvieirasilva/nx-plugins/tree/main/.claude/skills/sonarcloud-reviewType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add lucasvieirasilva/nx-plugins --skill sonarcloud-review -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install lucasvieirasilva/nx-plugins sonarcloud-review --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lucasvieirasilva/nx-plugins.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/sonarcloud-review .agents/skills/sonarcloud-review && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sonarcloud-review" agent skill from https://github.com/lucasvieirasilva/nx-plugins/tree/main/.claude/skills/sonarcloud-review into .agents/skills/sonarcloud-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sonarcloud-review", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add lucasvieirasilva/nx-plugins --skill sonarcloud-review -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install lucasvieirasilva/nx-plugins sonarcloud-review --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lucasvieirasilva/nx-plugins.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/sonarcloud-review .cursor/skills/sonarcloud-review && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sonarcloud-review" agent skill from https://github.com/lucasvieirasilva/nx-plugins/tree/main/.claude/skills/sonarcloud-review into .cursor/skills/sonarcloud-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sonarcloud-review", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/lucasvieirasilva/nx-plugins.git --path .claude/skills/sonarcloud-review--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add lucasvieirasilva/nx-plugins --skill sonarcloud-review -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install lucasvieirasilva/nx-plugins sonarcloud-review --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lucasvieirasilva/nx-plugins.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/sonarcloud-review .gemini/skills/sonarcloud-review && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sonarcloud-review" agent skill from https://github.com/lucasvieirasilva/nx-plugins/tree/main/.claude/skills/sonarcloud-review into .gemini/skills/sonarcloud-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sonarcloud-review", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install lucasvieirasilva/nx-plugins sonarcloud-reviewInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add lucasvieirasilva/nx-plugins --skill sonarcloud-review -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/lucasvieirasilva/nx-plugins.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/sonarcloud-review .github/skills/sonarcloud-review && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sonarcloud-review" agent skill from https://github.com/lucasvieirasilva/nx-plugins/tree/main/.claude/skills/sonarcloud-review into .github/skills/sonarcloud-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sonarcloud-review", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add lucasvieirasilva/nx-plugins --skill sonarcloud-review -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install lucasvieirasilva/nx-plugins sonarcloud-review --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lucasvieirasilva/nx-plugins.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/sonarcloud-review .opencode/skills/sonarcloud-review && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sonarcloud-review" agent skill from https://github.com/lucasvieirasilva/nx-plugins/tree/main/.claude/skills/sonarcloud-review into .opencode/skills/sonarcloud-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sonarcloud-review", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sonarcloud-reviewFetches and triages SonarCloud findings (issues, security hotspots, quality gate) for the current pull request or branch of this repository via the SonarCloud Web API, summarizes them in a markdown…
Sonarcloud Review is an agent skill from lucasvieirasilva/nx-plugins. Fetches and triages SonarCloud findings (issues, security hotspots, quality gate) for the current pull request or branch of this repository via the SonarCloud Web API, summarizes them in a markdown table with legitimacy and priority, and can auto-fix them on request. Use whenever the user mentions SonarCloud / Sonar issues, a failing Sonar quality gate, code smells/bugs/vulnerabilities reported by Sonar, or wants to process Sonar feedback on a PR — even if they don't name the API.
Its SKILL.md is about 2.7k 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 Development, covering Quality gates, Refactoring and Pull requests. It works with Python and TypeScript. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 477650d. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
curljqgitpnpmghFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
sonarcloud.ioFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
SONAR_TOKENISSUE_KEYHOTSPOT_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sonarcloud Review loads about 2.7k tokens when it runs. Until then it costs about 126 tokens; SKILL.md has 1,030 words of instructions outside code blocks.
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.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
ONAR_TOKEN`. It lives in the gitignored `.env.local` at the repo root (not the shell env). Load it and verify:set -a; [ -f .env.local ] && . ./.env.local; set +ahe user to add `SONAR_TOKEN=<token>` to `.env.local` (create one at `https://sonarcloud.io/account/security`); it's a seset -a; . ./.env.local; set +aken** — don't echo `SONAR_TOKEN` or `cat .env.local`; only use it via `-u "$SONAR_TOKEN:"`.er the token loader prefix (`set -a; . ./.env.local; set +a`).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.
The full file from lucasvieirasilva/nx-plugins at commit 477650d, republished under its MIT licence (© lucasvieirasilva). 1,030 words, ~2,674 tokens.
.claude/skills/sonarcloud-review/SKILL.md (or your agent's skills folder).You are a senior engineer specializing in triaging and acting on SonarCloud analysis results for the nx-plugins repository. SonarCloud runs as automatic analysis on this repo (see .sonarcloud.properties), so findings live in SonarCloud, not in the git diff — you fetch them through the Web API.
SONAR_TOKEN. It lives in the gitignored .env.local at the repo root (not the shell env). Load it and verify:set -a; [ -f .env.local ] && . ./.env.local; set +a
[ -n "$SONAR_TOKEN" ] && echo "token loaded" || echo "missing"SONAR_TOKEN=<token> to .env.local (create one at https://sonarcloud.io/account/security); it's a secret, so keep it only in .env.local, which is gitignored. Stop until it's set.set -a; . ./.env.local; set +a
curl -s -u "$SONAR_TOKEN:" "https://sonarcloud.io/api/..."curl -s -u "$SONAR_TOKEN:" <url>.SONAR_TOKEN or cat .env.local; only use it via -u "$SONAR_TOKEN:".jq and gh are expected to be available (the repo already uses gh).This repo is imported into SonarCloud from GitHub, so the defaults are derived from the origin remote github.com/<owner>/<repo>:
<owner> → lucasvieirasilva<owner>_<repo> → lucasvieirasilva_nx-pluginsConfirm the key resolves before fetching (a wrong key returns an empty/error payload):
curl -s -u "$SONAR_TOKEN:" \
"https://sonarcloud.io/api/components/show?component=lucasvieirasilva_nx-plugins" | jq '.component.key // .errors'If it errors, ask the user for the correct projectKey/organization rather than guessing further.
SonarCloud analyzes pull requests and branches separately, and PR analysis is scoped to new/changed code — which is almost always what you want. Resolve the target in this order:
gh pr view "$(git branch --show-current)" --json number -q .numberpullRequest=<number> query parameter.branch=$(git branch --show-current).Define a shell variable for the scope param, e.g. SCOPE="pullRequest=353" or SCOPE="branch=issue-348", and reuse it below.
Fetch the three signal sources and trim each payload with jq so only relevant fields reach you.
Quality gate status (the headline pass/fail and which conditions failed):
curl -s -u "$SONAR_TOKEN:" \
"https://sonarcloud.io/api/qualitygates/project_status?projectKey=lucasvieirasilva_nx-plugins&$SCOPE" \
| jq '{status: .projectStatus.status, conditions: [.projectStatus.conditions[] | select(.status != "OK") | {metric: .metricKey, comparator: .comparator, threshold: .errorThreshold, actual: .actualValue}]}'Issues (bugs, vulnerabilities, code smells) — unresolved only:
curl -s -u "$SONAR_TOKEN:" \
"https://sonarcloud.io/api/issues/search?componentKeys=lucasvieirasilva_nx-plugins&$SCOPE&resolved=false&ps=500" \
| jq '[.issues[] | {key, rule, type, severity, file: (.component | sub("^[^:]+:"; "")), line, message, effort, tags}]'The component field is <projectKey>:<path>; the sub strips the <projectKey>: prefix to leave the repo-relative file path.
Security hotspots (reported separately from issues) — needing review:
curl -s -u "$SONAR_TOKEN:" \
"https://sonarcloud.io/api/hotspots/search?projectKey=lucasvieirasilva_nx-plugins&$SCOPE&status=TO_REVIEW&ps=500" \
| jq '[.hotspots[] | {key, file: (.component | sub("^[^:]+:"; "")), line, message, vulnerabilityProbability, securityCategory}]'If issues and hotspots are both empty and the quality gate is OK/NONE, report that the project is clean for this scope and stop.
For context while triaging, also look at the actual change:
git diff origin/main..HEADFor each finding, decide:
type → bug, vulnerability (or security for hotspots), code-smell; refine code smells into maintainability, complexity, duplication, style, type-safety where useful. Use false-positive when the finding doesn't hold.critical — BLOCKER/CRITICAL bugs, vulnerabilities, high-probability hotspots, or anything failing the quality gate.high — MAJOR bugs/error-handling/type-safety issues.medium — maintainability/complexity/duplication smells worth addressing.low — MINOR/INFO style or naming nits.Note which findings are the ones breaking the quality gate — those are the priority for getting the PR green.
Present a markdown table, sorted by priority (critical first):
| # | Priority | Type | File | Line(s) | Rule | Summary | Legitimate? | Action |
|---|----------|------|------|---------|------|---------|-------------|--------|
| 1 | critical | bug | packages/nx-python/src/foo.ts | 42 | typescript:S2259 | Possible null dereference | Yes | Fix |
| 2 | medium | complexity | packages/nx-python/src/bar.ts | 100 | typescript:S3776 | Cognitive complexity 21 > 15 | Debatable | Refactor |Then give a short executive summary: quality gate status (and which conditions failed), total findings, how many legitimate, how many to fix vs skip, and whether fixing the legitimate ones would turn the gate green.
If the user says "fix", "auto-fix", "apply", or similar, address the findings marked legitimate:
// NOSONAR / rule exclusion in .sonarcloud.properties) and explain why; let the user make that call.pnpm nx affected -t lint test buildpnpm nx <target> <project>). Report results honestly, including anything still failing.These are write operations against SonarCloud — only run them when the user explicitly says to (e.g. "mark the hotspots safe", "mark that as won't fix"). They need a token with the relevant project permission ("Administer Security Hotspots" for hotspots). Always include a comment justifying the decision. A 204 response means success; re-fetch afterward to confirm. Remember the token loader prefix (set -a; . ./.env.local; set +a).
Security hotspots — review a hotspot as SAFE (the regex/DoS case here is the common one) or FIXED/ACKNOWLEDGED:
curl -s -o /dev/null -w "status=%{http_code}\n" -u "$SONAR_TOKEN:" -X POST \
"https://sonarcloud.io/api/hotspots/change_status" \
--data-urlencode "hotspot=<HOTSPOT_KEY>" \
--data-urlencode "status=REVIEWED" \
--data-urlencode "resolution=SAFE" \
--data-urlencode "comment=<why this is not exploitable in context>"This is what flips the new_security_hotspots_reviewed quality-gate condition green once every new hotspot is reviewed. Hotspot keys come from the hotspots/search call in Phase 2.
Issues (bug / vulnerability / code smell) — transition to wontfix or falsepositive, optionally with a comment:
# optional explanatory comment
curl -s -u "$SONAR_TOKEN:" -X POST "https://sonarcloud.io/api/issues/add_comment" \
--data-urlencode "issue=<ISSUE_KEY>" --data-urlencode "text=<justification>"
# transition: falsepositive | wontfix | resolve | reopen
curl -s -u "$SONAR_TOKEN:" -X POST "https://sonarcloud.io/api/issues/do_transition" \
--data-urlencode "issue=<ISSUE_KEY>" --data-urlencode "transition=wontfix" | jq '.issue.resolution'Prefer fixing the code over suppressing a real finding; reserve these for genuine false positives or accepted risk, and state the justification in the comment so it's auditable.
SONAR_TOKEN. Use it only via -u "$SONAR_TOKEN:".© lucasvieirasilva, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/sonarcloud-review of lucasvieirasilva/nx-plugins.
Open the folder on GitHubat commit 477650d
Sonarcloud Review 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sonarcloud Review this skilllucasvieirasilva/nx-plugins | 153 | — | ~2.7k | Automated safety check: Notes | MIT | |
| Coding Agentmastra-ai/mastra | 29k | — | ~2.3k | Automated safety check: Pass | Custom licence | |
| Code ReviewerLeoYeAI/openclaw-master-skills | 2.2k | 1 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Skyvern Version BumpSkyvern-AI/skyvern | 23k | — | ~1k | Automated safety check: Notes | AGPL-3.0 | |
| Code Reviewerjewbetcha/opentrace | 116 | 2 repos | ~1.1k | Automated safety check: Notes | MIT | |
| Code SolvingHoangTheQuyen/think-better | 122 | — | ~3.7k | Automated safety check: Pass | MIT |
mastra-ai/mastra
Authoring playbook for building agents that write, edit, review, or refactor code.
LeoYeAI/openclaw-master-skills
Code review automation for TypeScript, JavaScript, Python, Go, Swift, Kotlin.
Skyvern-AI/skyvern
Walks through a Skyvern open-source release bump: update the version, rebuild the Python and TypeScript SDKs with Fern, commit, and open a pull request.
jewbetcha/opentrace
Comprehensive code review skill for TypeScript, JavaScript, Python, Swift, Kotlin, Go.
HoangTheQuyen/think-better
Structured coding workflow for non-trivial code work: debug, build features, refactor, optimize, migrate and review code through 7 steps with evidence-based quality gates.
SuFxGIT/scoutarr
Expert code reviewer for TypeScript + React 19 applications.
lucasvieirasilva/nx-plugins
Writes a Conventional Commits message for staged changes in this repository, matching its commitlint config (@commitlint/config-conventional) and package-name scopes like nx-python / data-migration…
lucasvieirasilva/nx-plugins
Generates a GitHub Pull Request description for this repository from the commits on the current branch, filling in .github/PULLREQUESTTEMPLATE.md (Current Behavior / Expected Behavior / Related…
Works with
Categories
Fetches and triages SonarCloud findings (issues, security hotspots, quality gate) for the current pull request or branch of this repository via the SonarCloud Web API, summarizes them in a markdown…. Sonarcloud Review is an agent skill from lucasvieirasilva/nx-plugins. Fetches and triages SonarCloud findings (issues, security hotspots, quality gate) for the current pull request or branch of this repository via the SonarCloud Web API, summarizes them in a markdown table with legitimacy and priority, and can auto-fix them on request.
Sonarcloud Review fits situations like: the user mentions SonarCloud / Sonar issues; A failing Sonar quality gate; code smells/bugs/vulnerabilities reported by Sonar; wants to process Sonar feedback on a PR — even if they dont name the API.
Run `npx skills add lucasvieirasilva/nx-plugins --skill sonarcloud-review -a claude-code`. Or copy the skill folder (.claude/skills/sonarcloud-review in lucasvieirasilva/nx-plugins) into .claude/skills/sonarcloud-review in your project. Claude Code loads it when a task matches its description.
Run `npx skills add lucasvieirasilva/nx-plugins --skill sonarcloud-review -a codex`. Or copy the skill folder (.claude/skills/sonarcloud-review in lucasvieirasilva/nx-plugins) into .agents/skills/sonarcloud-review in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lucasvieirasilva/nx-plugins --skill sonarcloud-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sonarcloud-review, .gemini/skills/sonarcloud-review, .github/skills/sonarcloud-review and .opencode/skills/sonarcloud-review in your project.
Going by SKILL.md and its folder, Sonarcloud Review needs the command-line tools its instructions call (curl, jq, git, pnpm and gh) and credentials named SONAR_TOKEN, ISSUE_KEY and HOTSPOT_KEY. Our summary lists: A credential in SONAR_TOKEN; A credential in HOTSPOT_KEY.
SKILL.md names 1 domain. In commands or code: sonarcloud.io; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Sonarcloud Review is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sonarcloud Review: Coding Agent (mastra-ai/mastra, 29k stars), Code Reviewer (LeoYeAI/openclaw-master-skills, 2.2k stars), Skyvern Version Bump (Skyvern-AI/skyvern, 23k stars) and Code Reviewer (jewbetcha/opentrace, 116 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
lucasvieirasilva (a GitHub user) maintains it in lucasvieirasilva/nx-plugins, which has 153 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on September 28, 2026.
Source: lucasvieirasilva/nx-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.