Commit a770e87
refactor(plugin): install via marketplace; skill bundle fetched lazily from Maven Central (#1)
The plugin is now installed from git via Claude Code's / GitHub Copilot
CLI's marketplace, not as a Maven-built zip. Its source lives under
/plugin/ in the repo and ships only what is small and immutable per
release: the manifest, two named agent variants, and a thin sonar-predictor
skill whose launcher fetches the heavy analyzer bundle (~150 MB) from
Maven Central on first invocation.
Install
/plugin marketplace add RandomCodeSpace/sonar-predict
/plugin install sonar-predictor@sonar-predict
Layout
/.claude-plugin/marketplace.json marketplace manifest at repo root
/plugin/.claude-plugin/plugin.json plugin manifest
/plugin/agents/ two named scanner variants
/plugin/skills/sonar-predictor/SKILL.md
/plugin/skills/sonar-predictor/bin/sonar bootstrap (bash)
/plugin/skills/sonar-predictor/bin/sonar.bat bootstrap (Windows)
The bootstrap downloads sonar-predictor-dist-<VERSION>.zip from Maven
Central into ${XDG_CACHE_HOME:-~/.cache}/sonar-predictor/<VERSION>/,
verifies its SHA-1 sidecar, unpacks it, and exec's the cached launcher.
Every subsequent call runs from cache with no network. Air-gapped or
pre-staged installs override the cache location with SONAR_PREDICTOR_HOME.
The pinned VERSION is bumped in lockstep with each plugin release.
Removed: the dist module's plugin assembly (dist/src/assembly/plugin*.xml
and the build-plugin-{dir,zip} executions) plus the publish workflow's
plugin-bundle attach step. The skill bundle assembly stays; it is what
Maven Central serves to the bootstrap.
Currently the bootstrap pins VERSION=0.1.1, the last bundle on Maven
Central that was actually shaped as a skill. v0.1.2's dist artifact on
Central is the (now-removed) plugin-bundle shape because the assembly's
appendAssemblyId=false collision made the plugin-zip become the attached
artifact in that release. v0.1.3 onward will be skill-shaped again.
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 5ff5db8 commit a770e87
11 files changed
Lines changed: 220 additions & 246 deletions
File tree
- .claude-plugin
- .github/workflows
- dist
- src/assembly
- plugin
- .claude-plugin
- agents
- skills/sonar-predictor
- bin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | 131 | | |
144 | 132 | | |
145 | 133 | | |
| |||
148 | 136 | | |
149 | 137 | | |
150 | 138 | | |
151 | | - | |
152 | 139 | | |
153 | 140 | | |
154 | 141 | | |
| |||
158 | 145 | | |
159 | 146 | | |
160 | 147 | | |
161 | | - | |
162 | | - | |
| 148 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | 174 | | |
206 | 175 | | |
207 | 176 | | |
| |||
This file was deleted.
This file was deleted.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
File renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments