claude-code-power-config: Skill for Claude Code

.claude/skills/fix-sonar/SKILL.md

fix-sonar is a skill for Claude Code from AlexisBalayre/claude-code-power-config. It costs 24 tokens per session (925 once invoked), scanned A, original, MIT.

A workflow for finding and resolving open SonarQube issues, which are code-quality findings reported by a static analysis tool. It groups related issues and can coordinate fixes across separate parts of a project.

In plain words
What is it for?
Use it to check SonarQube status or coordinate fixes, linting, type checks, tests, commits, and pull requests for selected issue groups.
Why use it?
It turns a large list of code-quality warnings into organized batches with defined verification steps. This makes it easier to address related issues without mixing unrelated changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

This is AlexisBalayre/claude-code-power-config's own configuration. It tells Claude Code how to work on claude-code-power-config itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-power-config configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AlexisBalayre/claude-code-power-config. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AlexisBalayre/claude-code-power-config/main/.claude/skills/fix-sonar/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/AlexisBalayre/claude-code-power-config

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-sonar

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexisbalayre/claude-code-power-config/fix-sonar/github.svg)](https://agentmods.dev/skills/alexisbalayre/claude-code-power-config/fix-sonar)
Your own site
<a href="https://agentmods.dev/skills/alexisbalayre/claude-code-power-config/fix-sonar"><img src="https://agentmods.dev/badge/skills/alexisbalayre/claude-code-power-config/fix-sonar/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix-sonar

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexisbalayre/claude-code-power-config/fix-sonar"><img src="https://agentmods.dev/badge/skills/alexisbalayre/claude-code-power-config/fix-sonar.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 925 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00925
Opus 5 $0.00012 $0.00463
Sonnet 5 $0.00005 $0.00185
Haiku 4.5 $0.00002 $0.00093

Measured 10d ago against content hash dac77a014206, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

fix-sonar scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/fix-sonar/SKILL.md · 63 lines

How it starts

The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SonarQube Issue Fixer

This agent automates the identification and resolution of SonarQube issues. It prioritizes high-signal mechanical fixes and structured refactoring for complex rules.

Setup: this skill talks to a SonarQube MCP server. Set SONAR_PROJECT_KEY in .env (see .env.example) to your project's key and enable the server in .claude/settings.local.json. The fix-strategy table below encodes rule-by-rule experience from this repo — adjust the false-positive rows to match your own findings.

Operation Modes

1. Status Check (--status)

  • Action: Retrieve all OPEN issues for project ${SONAR_PROJECT_KEY}.
  • Grouping: Aggregate by Rule ID and Codebase Area (API, Frontend, Engine, Gateway, Packages).
  • Display: Present a summary table showing severity, count, and affected files.

2. Parallel Resolution (--parallel)

  • Batching: Group issues by Rule + Area. Create up to 3 independent batches targeting different files.
  • Isolation: Dispatch 3 parallel agents with isolation: "worktree".
  • Workflow: Fix -> pnpm lint:fix -> pnpm typecheck -> pnpm test -> Commit -> Push -> PR.
  • Constraint: Never mix rules or areas within a single batch to prevent merge conflicts and context bleeding.

3. Targeted Fix (<rule> or <rule> <area>)

  • Action: Resolve all instances of a specific rule, optionally restricted to a sub-directory/area.

Fix Strategy & Batching Reference

Rule Category Strategy Batch Size
S3776 Complexity Extract helpers, early returns, flatten nesting. 1-2 files
S107 Refactor Group parameters into a single options object. 1 file
S7763 Export Systematic false positive here (locally-used barrel re-exports): mark falsepositive via change_sonar_issue_status, do NOT code-fix. n/a
S6819 React/ARIA Systematic false positive here (custom-viz ARIA roles): mark falsepositive, do NOT code-fix. n/a
S7781 Modern JS Replace .replace(/x/g, y) with .replaceAll('x', y). 5 files
S6606 Nullish Use ?? or ??= instead of || or manual checks. 3-5 files
S3735 Promises Remove void, handle promises with .catch(). 3-5 files
S6759 React Ensure props use the Readonly<Props> wrapper. 3-5 files
S2933 TypeScript Add readonly modifier to class properties/members. 5 files

Read the full file on GitHub · 63 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 63 lines · 24 tokens per session scan A dac77a014206

Subscribe to this mod's changes

fix-sonar is a skill published in the GitHub repository AlexisBalayre/claude-code-power-config (2 stars, last pushed 29d ago), licensed MIT. It adds 24 tokens to every session and 925 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

review-loop

Run the adversarial verification loop — implement, then hand the change to a fresh checker that did not write it, fix what it finds, and re-dispatch until APPROVE. Use before claiming any behavioural change is done, and on requests like "review loop", "adversarial review", "independent review", "get this verified"…

sangrokjung/claude-forge · 100 tokens

oracle

Oracle second-model review: bundle prompts/files, debug, refactor, design.

steipete/oracle · 18 tokens

manage-skills

A maintenance workflow for checking whether project verification skills still cover the code and rules that changed during a session.

sangrokjung/claude-forge · 54 tokens

verify-implementation

A workflow that runs a project’s verification skills to produce a report on coding patterns, architecture rules, and project conventions. It is intended for work after implementation, before a pull request, or during code review.

sangrokjung/claude-forge · 37 tokens

systematic-debugging

Structured debugging methodology — use before proposing fixes for any error or failure. Covers: code bugs, build errors, deploy failures, config conflicts, dependency issues, infra problems. Also use when previous fix attempts failed or root cause is unclear.

sangrokjung/claude-forge · 53 tokens

frontend-code-review

Trigger when the user requests a review of frontend files (e.g., .tsx, .ts, .js). Support both pending-change reviews and focused file reviews while applying the checklist rules.

sangrokjung/claude-forge · 42 tokens