Skip to content

Commit 7698469

Browse files
aksOpsclaude
andcommitted
refactor(plugin): rename agent variants for symmetric clarity
Rename `sonar-scanner` -> `sonar-scanner-claude` so neither variant is implicitly the default. Selection is by agent name -- `sonar-scanner-claude` on Claude Code (model: haiku), `sonar-scanner-copilot` on Copilot CLI (model: gpt-5-mini) -- and both names are now equally explicit. Add a Variants pointer in two places so callers know which agent name to invoke per platform: - plugin.json description now names both agents and notes neither is the default. - SKILL.md ends with a short "Plugin-bundled agent variants" paragraph. Update dist/src/assembly/plugin.xml and plugin-zip.xml to copy the renamed Claude variant file (sonar-scanner-claude.md) into the bundle's agents/. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 4489c5e commit 7698469

5 files changed

Lines changed: 7 additions & 5 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
name: sonar-scanner
3-
description: Mechanical offline code-quality scanner — invokes the sonar-predictor skill over an assigned directory, repository, file list, or git changeset and returns a concise findings summary. Scan-only; never edits code. Built to be fanned out as parallel instances (one per module or repo) on a cheap model, keeping raw analyzer output out of the orchestrator's context.
2+
name: sonar-scanner-claude
3+
description: Claude-Code variant of the sonar-scanner agent. Mechanical offline code-quality scanner — invokes the sonar-predictor skill over an assigned directory, repository, file list, or git changeset and returns a concise findings summary. Scan-only; never edits code. Built to be fanned out as parallel instances (one per module or repo) on a cheap model, keeping raw analyzer output out of the orchestrator's context.
44
model: haiku
55
tools: Bash, Read, Glob, Skill
66
---

dist/src/assembly/plugin-zip.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<directory>${project.basedir}/../.claude/agents</directory>
2929
<outputDirectory>agents</outputDirectory>
3030
<includes>
31-
<include>sonar-scanner.md</include>
31+
<include>sonar-scanner-claude.md</include>
3232
</includes>
3333
</fileSet>
3434
<fileSet>

dist/src/assembly/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<directory>${project.basedir}/../.claude/agents</directory>
4646
<outputDirectory>agents</outputDirectory>
4747
<includes>
48-
<include>sonar-scanner.md</include>
48+
<include>sonar-scanner-claude.md</include>
4949
</includes>
5050
</fileSet>
5151
<fileSet>

dist/src/main/plugin/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sonar-predictor",
33
"version": "0.1.1",
4-
"description": "Offline SonarSource quality gate — runs the genuine SonarSource analyzers locally (no network, no server) to catch bugs, code smells, vulnerabilities and security hotspots. Bundles the sonar-predictor scanner skill and the sonar-scanner parallel-scan subagent (with a GPT-5-mini Copilot variant).",
4+
"description": "Offline SonarSource quality gate — runs the genuine SonarSource analyzers locally (no network, no server) to catch bugs, code smells, vulnerabilities and security hotspots. Bundles the sonar-predictor scanner skill and two named agent variants — invoke `sonar-scanner-claude` on Claude Code (model: haiku) and `sonar-scanner-copilot` on GitHub Copilot CLI (model: gpt-5-mini). Selection is by agent name; neither is implicitly default.",
55
"author": {
66
"name": "Amit Kumar",
77
"url": "https://github.com/RandomCodeSpace"

dist/src/main/skill/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ Run `./bin/sonar` from this skill's base directory (the folder with this `SKILL.
1414
Exit codes: `0` clean, `1` issues found, `2` tool error.
1515

1616
Acting on findings: fix `BUG`/`VULNERABILITY`/`SECURITY_HOTSPOT` and `CRITICAL`/`MAJOR` first. This is a fast first-pass gate, not the release gate — fix the real issues and move on.
17+
18+
**Plugin-bundled agent variants.** When this skill ships inside the `sonar-predictor` plugin, two named scanner subagents come with it: invoke `sonar-scanner-claude` on Claude Code (model: haiku) or `sonar-scanner-copilot` on GitHub Copilot CLI (model: gpt-5-mini). Selection is by agent name — pick the one matching your platform.

0 commit comments

Comments
 (0)