geneseed 4.9.4 → 4.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +13 -0
  3. package/SHIPPED.md +1 -1
  4. package/docs/README.md +1 -1
  5. package/docs/concepts/collaboration.md +1 -1
  6. package/docs/concepts/enforcement-table.md +1 -1
  7. package/docs/concepts/foreman-mode.md +1 -1
  8. package/docs/concepts/kits.md +79 -0
  9. package/docs/concepts/loop-branch.md +1 -1
  10. package/docs/concepts/loop-bricks.md +1 -1
  11. package/docs/concepts/loop-contracts.md +1 -1
  12. package/docs/concepts/loop-gates.md +1 -1
  13. package/docs/concepts/loop-notes.md +1 -1
  14. package/docs/concepts/loop-risk.md +1 -1
  15. package/docs/concepts/loop-templates.md +1 -1
  16. package/docs/concepts/loops.md +1 -1
  17. package/docs/concepts/lsp.md +1 -1
  18. package/docs/extending.md +108 -4
  19. package/docs/guides/install-scripted.md +1 -1
  20. package/docs/reference/glossary.md +1 -0
  21. package/docs/web-ui.md +4 -0
  22. package/harness.config.json +1 -1
  23. package/js/build/args.mjs +27 -6
  24. package/js/build/driver.mjs +29 -8
  25. package/js/build/emit-claude.mjs +3 -1
  26. package/js/build/generate.mjs +10 -5
  27. package/js/build/render.mjs +94 -11
  28. package/js/build/source.mjs +117 -4
  29. package/js/cli-table.json +15 -0
  30. package/js/hosts/installs.mjs +35 -2
  31. package/js/hosts/native.mjs +14 -4
  32. package/js/inspect/checks-authoring.mjs +6 -3
  33. package/js/inspect/checks-build.mjs +7 -1
  34. package/js/inspect/checks-counts.mjs +153 -6
  35. package/js/inspect/checks-repo.mjs +95 -20
  36. package/js/inspect/diff.mjs +3 -1
  37. package/js/inspect/inventory.mjs +1 -0
  38. package/js/inspect/status.mjs +44 -3
  39. package/js/inspect/validate.mjs +3 -3
  40. package/js/maintain/setup.mjs +30 -6
  41. package/js/maintain/update.mjs +1 -1
  42. package/js/web/actions.mjs +30 -6
  43. package/js/web/api.mjs +40 -3
  44. package/js/web/routes.mjs +2 -1
  45. package/package.json +1 -1
  46. package/registry.json +63 -0
  47. package/src/AGENT.md.tmpl +2 -2
  48. package/src/agents/devops-engineer.md +45 -0
  49. package/src/agents/docker-expert.md +45 -0
  50. package/src/agents/kubernetes-specialist.md +45 -0
  51. package/src/agents/reviewer.md +2 -0
  52. package/src/agents/spring-boot-engineer.md +48 -0
  53. package/src/agents/spring-reviewer.md +49 -0
  54. package/src/agents/spring-security.md +50 -0
  55. package/src/kits/spring-boot/rules.md +10 -0
  56. package/src/kits/spring-boot.json +23 -0
  57. package/src/licenses/mattpocock-skills.txt +21 -0
  58. package/src/licenses/piomin-spring-boot.txt +190 -0
  59. package/src/licenses/superpowers.txt +21 -0
  60. package/src/licenses/vibe-wise.txt +21 -0
  61. package/src/skills/brainstorm/builder-check.md +2 -0
  62. package/src/skills/brainstorm.md +4 -0
  63. package/src/skills/codebase-design.md +4 -0
  64. package/src/skills/daydream/VENDOR.md +7 -7
  65. package/src/skills/debug.md +5 -1
  66. package/src/skills/develop.md +2 -0
  67. package/src/skills/geneseed-code-review.md +6 -2
  68. package/src/skills/git-history.md +2 -0
  69. package/src/skills/handoff.md +2 -0
  70. package/src/skills/learn-mode.md +3 -2
  71. package/src/skills/parallel-agents.md +2 -0
  72. package/src/skills/pipeline.md +2 -0
  73. package/src/skills/plan.md +4 -0
  74. package/src/skills/prototype.md +2 -0
  75. package/src/skills/react-view-transitions/AGENTS.md +646 -221
  76. package/src/skills/react-view-transitions/SKILL.md +28 -16
  77. package/src/skills/react-view-transitions/VENDOR.md +10 -8
  78. package/src/skills/react-view-transitions/references/css-recipes.md +72 -2
  79. package/src/skills/react-view-transitions/references/implementation.md +14 -26
  80. package/src/skills/react-view-transitions/references/nextjs.md +94 -37
  81. package/src/skills/react-view-transitions/references/patterns.md +60 -48
  82. package/src/skills/react-view-transitions/references/troubleshooting.md +47 -0
  83. package/src/skills/research.md +2 -0
  84. package/src/skills/review-response.md +2 -0
  85. package/src/skills/rule.md +2 -0
  86. package/src/skills/ship.md +2 -0
  87. package/src/skills/skill-forge.md +1 -0
  88. package/src/skills/spring-boot/cloud.md +103 -0
  89. package/src/skills/spring-boot/java-modern.md +71 -0
  90. package/src/skills/spring-boot/logging.md +89 -0
  91. package/src/skills/spring-boot/security.md +112 -0
  92. package/src/skills/spring-boot/web.md +112 -0
  93. package/src/skills/spring-boot.md +57 -0
  94. package/src/skills/spring-data-jpa/patterns.md +68 -0
  95. package/src/skills/spring-data-jpa.md +81 -0
  96. package/src/skills/spring-testing.md +93 -0
  97. package/src/skills/wayfinder.md +2 -0
  98. package/src/upstreams.json +59 -0
  99. package/themes/_TEMPLATE.json +9 -0
  100. package/themes/biker.json +9 -0
  101. package/themes/commentator.json +9 -0
  102. package/themes/cyberpunk.json +9 -0
  103. package/themes/gamer.json +9 -0
  104. package/themes/imperial.json +9 -0
  105. package/themes/joker.json +9 -0
  106. package/themes/marvin.json +9 -0
  107. package/themes/mean.json +9 -0
  108. package/themes/military.json +9 -0
  109. package/themes/neutral.json +9 -0
  110. package/themes/pirate.json +9 -0
  111. package/themes/sports.json +9 -0
  112. package/themes/verstappen.json +9 -0
  113. package/themes/wizard.json +9 -0
  114. package/web/dist/assets/{Activity-C8sZVIUU.js → Activity-BjyJaf8e.js} +1 -1
  115. package/web/dist/assets/{ActivityDetail-Cc6vWUS4.js → ActivityDetail-Bo9nRDNV.js} +1 -1
  116. package/web/dist/assets/{Dashboard-C5ATa3ow.js → Dashboard-BQJGU7vE.js} +2 -2
  117. package/web/dist/assets/{Docs-tDW7i7mo.js → Docs-DLVckkew.js} +1 -1
  118. package/web/dist/assets/{GreenhouseView-zk2Uzc3A.js → GreenhouseView--DML7CW3.js} +1 -1
  119. package/web/dist/assets/{Installs-CB_rvbBP.js → Installs-CxCiln1F.js} +2 -2
  120. package/web/dist/assets/{JournalView-Bfj27XHC.js → JournalView-ymgZleHi.js} +1 -1
  121. package/web/dist/assets/{Laws-BA3CzUf5.js → Laws-BkKnZOBI.js} +1 -1
  122. package/web/dist/assets/Library-C8ercIZv.js +1 -0
  123. package/web/dist/assets/{Loops-DaPk-ckL.js → Loops-C95zhbFl.js} +1 -1
  124. package/web/dist/assets/{OperatorHudView-CyiGhiHk.js → OperatorHudView-B9qwc3w3.js} +1 -1
  125. package/web/dist/assets/{Personal-Bwd27CmT.js → Personal-DyR72AF-.js} +1 -1
  126. package/web/dist/assets/{Tabs-BOD7Kaz1.js → Tabs-ChCr_HqV.js} +1 -1
  127. package/web/dist/assets/api-BfpZmUMI.js +1 -0
  128. package/web/dist/assets/{drawable-CyLe1gtW.js → drawable-CgYi0Dtg.js} +1 -1
  129. package/web/dist/assets/index-B32EvfDT.js +2 -0
  130. package/web/dist/index.html +2 -2
  131. package/web/dist/assets/Library-BWwiy9Vb.js +0 -1
  132. package/web/dist/assets/api-CiXlkbe0.js +0 -1
  133. package/web/dist/assets/index-DQXG_mqo.js +0 -2
@@ -34,7 +34,7 @@ import path from 'node:path';
34
34
 
35
35
  import { emitGlobalInto } from '../build/driver.mjs';
36
36
  import {
37
- ROOT, discoverNames, knownRuleIds, PACK_ORDER,
37
+ ROOT, discoverNames, knownRuleIds, loadKits, PACK_ORDER,
38
38
  } from '../build/source.mjs';
39
39
  import { withStdoutSwallowed } from '../inspect/diff.mjs';
40
40
  import { excludeAdd, excludeRemove } from '../inspect/excludes.mjs';
@@ -46,9 +46,10 @@ import {
46
46
  opencodeConfigDir, resolvePath,
47
47
  } from '../hosts/hosts.mjs';
48
48
  import {
49
- EMIT_HOST_SCOPE, doctrinesForBuild, excludedRulesOfDir, excludedSkillsOfDir,
49
+ EMIT_HOST_SCOPE, doctrinesForBuild, excludedRulesOfDir, excludedSkillsOfDir, kitsOfDir,
50
50
  footprintOfDir, gatesOfDir,
51
- installState, installTargets, legacyProcessCarrierOfDir, modeOfDir, postureOfDir, trustOfDir,
51
+ installState, installTargets, legacyProcessCarrierOfDir, modeOfDir, postureOfDir, themeOfDir,
52
+ trustOfDir,
52
53
  } from '../hosts/installs.mjs';
53
54
  import {
54
55
  isDict, mcpCommented, mcpInstallTargets, mcpLoad, mcpServerNames, mcpState,
@@ -131,6 +132,15 @@ function bodyExcludeRules(body) {
131
132
  (n) => n.trim().replace(/[ \t]+/, '.'));
132
133
  }
133
134
 
135
+ /**
136
+ * A request body's `kits` — REPLACES the install's kits (the Kits tab sends the whole set it
137
+ * wants): `[]`/`'none'` give `[]`, an omitted key gives `null` (keep the install's own), and an
138
+ * unknown name gives `null` too, which `apiInstallCmd` refuses for a body that HAS the key.
139
+ */
140
+ function bodyKits(body) {
141
+ return bodyList(body, 'kits', () => [...loadKits().keys()]);
142
+ }
143
+
134
144
  /**
135
145
  * The gate switches across the trust boundary (`deletionGate`, `secretsGate`, `doneGate`), each
136
146
  * on its own: only a real JSON boolean counts. Anything else — a string `"false"`, a number,
@@ -539,6 +549,8 @@ export function apiRestore(state, files) {
539
549
  // re-states a rule whose hook gate the install deliberately left unwired.
540
550
  excludeRules: excludedRulesOfDir(target),
541
551
  excludeSkills: excludedSkillsOfDir(target),
552
+ // The kits: a restored AGENT.md keeps its Kits block and `Active kits:` line.
553
+ kits: kitsOfDir(target),
542
554
  // The gate switches: a restored AGENT.md must keep the install's `<gate>: off` lines.
543
555
  ...gatesOfDir(target),
544
556
  }));
@@ -607,8 +619,9 @@ export function apiInstallCmd(state, body) {
607
619
  if (emit === undefined) return { error: `no install mode for ${host}:${scope}` };
608
620
  // Every read-back below is narrowed to `host`'s OWN carrier (host-compat B1) — see the
609
621
  // comment at `installProfile` in `js/build/generate.mjs`.
622
+ // The theme default is THIS install's own, not the viewed one's: the Kits tab acts on any row.
610
623
  const { theme, footprint: fp, posture: pos, mode, trust } = bodyAxes(body, {
611
- theme: state.theme, footprint: footprintOfDir(root),
624
+ theme: themeOfDir(root, host) || state.theme, footprint: footprintOfDir(root),
612
625
  posture: postureOfDir(root, host) || 'peer',
613
626
  mode: modeOfDir(root, host) || 'direct', trust: trustOfDir(root, host) || DEFAULT_PRESET });
614
627
  // Unspecified means "keep what this install already has", exactly as theme, footprint,
@@ -626,9 +639,20 @@ export function apiInstallCmd(state, body) {
626
639
  // The gate switches (the Constitution page's toggles): a strict boolean per gate in the body,
627
640
  // else the install's own answer — so a pack Apply keeps every switch as it is.
628
641
  const gates = bodyGates(body, root, host);
642
+ // The page sends `kits` deliberately, so an unknown name is refused: ignoring it would run a
643
+ // no-op rebuild and report success. An omitted key keeps the install's own kits.
644
+ let kits = null;
645
+ try {
646
+ kits = bodyKits(body);
647
+ if (kits === null && bget(body, 'kits') !== null) {
648
+ return { error: `unknown kit in ${formatRepr(bget(body, 'kits'))} — this Geneseed ships: `
649
+ + [...loadKits().keys()].join(', ') };
650
+ }
651
+ } catch (e) { return { error: String(e?.message ?? e) }; }
629
652
  const out = scope === 'global' ? null : String(root);
630
653
  const argv = setupBuildArgs(theme || 'neutral', emit, out, out, fp, pos, mode, doctrines,
631
- PACK_ORDER, excludeRules, trust, excludedSkillsOfDir(root, host), gates);
654
+ PACK_ORDER, excludeRules, trust, excludedSkillsOfDir(root, host), gates,
655
+ kits ?? kitsOfDir(root, host));
632
656
  return { cmd: [process.execPath, path.join(ROOT, 'bin', 'build-driver.mjs'), ...argv] };
633
657
  }
634
658
 
@@ -730,6 +754,6 @@ export function apiDeployCmd(state, body) {
730
754
  const gates = bodyGates(body, root, host);
731
755
  // project-scope emit name == host name (opencode / claude / bob / openclaude)
732
756
  const argv = setupBuildArgs(theme || 'neutral', host, root, root, fp, pos, mode, doctrines,
733
- PACK_ORDER, excludeRules, trust, excludedSkillsOfDir(root, host), gates);
757
+ PACK_ORDER, excludeRules, trust, excludedSkillsOfDir(root, host), gates, kitsOfDir(root, host));
734
758
  return { cmd: [process.execPath, path.join(ROOT, 'bin', 'build-driver.mjs'), ...argv] };
735
759
  }
package/js/web/api.mjs CHANGED
@@ -11,22 +11,24 @@
11
11
  import { statSync } from 'node:fs';
12
12
  import path from 'node:path';
13
13
 
14
- import { CONFIG, ROOT, THEMES, discoverNames, makeCfg } from '../build/source.mjs';
14
+ import { CONFIG, ROOT, THEMES, discoverNames, loadKits, makeCfg } from '../build/source.mjs';
15
15
  import { readVersion, sourceFingerprint } from '../build/version.mjs';
16
16
  import { sourceReleaseVersion } from '../hosts/opencode.mjs';
17
17
  import { alwaysOnCost } from '../inspect/cost.mjs';
18
+ import { installProfile } from '../build/generate.mjs';
18
19
  import { diffCollect, renderMemo } from '../inspect/diff.mjs';
19
20
  import { excludesSnapshot } from '../inspect/excludes.mjs';
20
21
  import { CLAUDE_STYLE, HOSTS, VERSION_MARKER, resolvePath } from '../hosts/hosts.mjs';
21
22
  import {
22
- footprintOfDir, gatesOfDir, installState, installTargets, modeOfDir, trustOfDir,
23
+ footprintOfDir, gatesOfDir, installState, installTargets, legacyProcessCarrierOfDir, modeOfDir,
24
+ trustOfDir,
23
25
  postureOfDir, readJsonMaybe, themeOfDir,
24
26
  } from '../hosts/installs.mjs';
25
27
  import { PRESETS } from '../loop/score.mjs';
26
28
  import { loadCatalog, catalogProblems } from '../loop/catalog.mjs';
27
29
  import { activeLoops } from '../loop/registry.mjs';
28
30
  import { EMIT_OPTIONS, themeOptions } from '../maintain/setup.mjs';
29
- import { accentFor, statusData } from '../inspect/status.mjs';
31
+ import { accentFor, keptKitFiles, statusData } from '../inspect/status.mjs';
30
32
  import { isFile } from '../lib/fs.mjs';
31
33
  import { comparePaths, normcase } from '../lib/paths.mjs';
32
34
  import {
@@ -231,6 +233,41 @@ export function apiFleet(state) {
231
233
  return { installs, source_fp: sourceFp, doctor: state.doctor };
232
234
  }
233
235
 
236
+ /**
237
+ * EVERY INSTALL'S KITS — the Kits tab. Its own route, like `apiFleet`: it re-reads each carrier
238
+ * and the kit manifests, which the sidebar's `/api/installs` refetch must not pay for.
239
+ *
240
+ * `kits` per row is `installProfile(...).kits`, the reader `rebuild-all` uses, so the tab shows
241
+ * what a rebuild would keep. A malformed manifest answers 200 with `error` and EMPTY lists, never
242
+ * rows without kits (which would read as "no kit on") and never a 500. `editable:false` carries
243
+ * the two refusals `apiInstallCmd` makes, so the page can say why before the click.
244
+ */
245
+ export function apiKits() {
246
+ let known;
247
+ try { known = loadKits(); } catch (e) {
248
+ return { kits: [], installs: [], error: String(e?.message ?? e) };
249
+ }
250
+ const kits = [...known].map(([name, m]) => ({
251
+ name, description: m.description ?? '', skills: m.skills ?? [], agents: m.agents ?? [] }));
252
+ const installs = [];
253
+ for (const [host, scope, root] of installTargets()) {
254
+ const st = installState(root, host, scope);
255
+ if (st === 'absent') continue;
256
+ try {
257
+ const p = installProfile(host, scope, root);
258
+ const reason = st === 'disabled' ? 'install is disabled — reactivate it first'
259
+ : legacyProcessCarrierOfDir(root, host) ? 'predates the comms pack — run geneseed setup for it first'
260
+ : null;
261
+ installs.push({ ...installRowBase(host, scope, root, st), kits: p.kits,
262
+ keptKitFiles: keptKitFiles(host, scope, root, p.kits), editable: reason === null, reason });
263
+ } catch (e) {
264
+ installs.push({ ...installRowBase(host, scope, root, 'unreadable'),
265
+ error: String(e?.message ?? e) });
266
+ }
267
+ }
268
+ return { kits, installs };
269
+ }
270
+
234
271
  /** The dashboard aggregate. */
235
272
  export function apiOverview(state) {
236
273
  const inv = state.inventory;
package/js/web/routes.mjs CHANGED
@@ -21,7 +21,7 @@ import { percentDecode } from '../lib/text.mjs';
21
21
  import { apiExcludesMutate, apiInstallToggle, apiLoopsPresetMutate, apiMcp, apiMemoryDelete, apiSelectView } from './actions.mjs';
22
22
  import { apiActivity, apiActivityDetail, apiActivityToggle } from './activity.mjs';
23
23
  import {
24
- apiDiff, apiDoctor, apiExcludes, apiFleet, apiInstalls, apiLoops, apiLoopsActive, apiOverview,
24
+ apiDiff, apiDoctor, apiExcludes, apiFleet, apiInstalls, apiKits, apiLoops, apiLoopsActive, apiOverview,
25
25
  apiRecent, apiSetup, apiThemes, apiUpdate,
26
26
  } from './api.mjs';
27
27
  import { NotFound, apiCatalog, apiItem } from './catalog.mjs';
@@ -151,6 +151,7 @@ export const STATE_ROUTES = {
151
151
  new URL(url || '', 'http://x').searchParams.has('fresh')),
152
152
  '/api/installs': apiInstalls,
153
153
  '/api/fleet': apiFleet,
154
+ '/api/kits': apiKits,
154
155
  '/api/update': apiUpdate,
155
156
  '/api/usage': apiUsage,
156
157
  '/api/gates': apiGates,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "//": "Every field here is argued and gated in tests/unit/package_manifest.test.mjs. `files`, `bin` and `engines` each have a test that fails when reality drifts from this file; `version` mirrors harness.config.json and is gated too. Read that docblock before editing this one.",
3
3
  "name": "geneseed",
4
- "version": "4.9.4",
4
+ "version": "4.10.0",
5
5
  "description": "A portable, theme-able harness you implant once and use everywhere to grow a disciplined AI coding agent.",
6
6
  "keywords": [
7
7
  "ai",
package/registry.json CHANGED
@@ -22,6 +22,20 @@
22
22
  "added": "2026-07-13",
23
23
  "last_verified": ""
24
24
  },
25
+ "agents/devops-engineer": {
26
+ "status": "experimental",
27
+ "version": "1.0.0",
28
+ "owner": "Guillaume Lemer",
29
+ "added": "2026-10-20",
30
+ "last_verified": ""
31
+ },
32
+ "agents/docker-expert": {
33
+ "status": "experimental",
34
+ "version": "1.0.0",
35
+ "owner": "Guillaume Lemer",
36
+ "added": "2026-10-20",
37
+ "last_verified": ""
38
+ },
25
39
  "agents/docs": {
26
40
  "status": "approved",
27
41
  "version": "1.0.0",
@@ -57,6 +71,13 @@
57
71
  "added": "2026-06-08",
58
72
  "last_verified": ""
59
73
  },
74
+ "agents/kubernetes-specialist": {
75
+ "status": "experimental",
76
+ "version": "1.0.0",
77
+ "owner": "Guillaume Lemer",
78
+ "added": "2026-10-20",
79
+ "last_verified": ""
80
+ },
60
81
  "agents/memory-curator": {
61
82
  "status": "experimental",
62
83
  "version": "1.0.0",
@@ -113,6 +134,27 @@
113
134
  "added": "2026-06-08",
114
135
  "last_verified": ""
115
136
  },
137
+ "agents/spring-boot-engineer": {
138
+ "status": "experimental",
139
+ "version": "1.0.0",
140
+ "owner": "Guillaume Lemer",
141
+ "added": "2026-10-20",
142
+ "last_verified": ""
143
+ },
144
+ "agents/spring-reviewer": {
145
+ "status": "experimental",
146
+ "version": "1.0.0",
147
+ "owner": "Guillaume Lemer",
148
+ "added": "2026-10-20",
149
+ "last_verified": ""
150
+ },
151
+ "agents/spring-security": {
152
+ "status": "experimental",
153
+ "version": "1.0.0",
154
+ "owner": "Guillaume Lemer",
155
+ "added": "2026-10-20",
156
+ "last_verified": ""
157
+ },
116
158
  "agents/steward": {
117
159
  "status": "approved",
118
160
  "version": "1.0.0",
@@ -428,6 +470,27 @@
428
470
  "added": "2026-09-06",
429
471
  "last_verified": "2026-10-13"
430
472
  },
473
+ "skills/spring-boot": {
474
+ "status": "experimental",
475
+ "version": "1.0.0",
476
+ "owner": "Guillaume Lemer",
477
+ "added": "2026-10-20",
478
+ "last_verified": ""
479
+ },
480
+ "skills/spring-data-jpa": {
481
+ "status": "experimental",
482
+ "version": "1.0.0",
483
+ "owner": "Guillaume Lemer",
484
+ "added": "2026-10-20",
485
+ "last_verified": ""
486
+ },
487
+ "skills/spring-testing": {
488
+ "status": "experimental",
489
+ "version": "1.0.0",
490
+ "owner": "Guillaume Lemer",
491
+ "added": "2026-10-20",
492
+ "last_verified": ""
493
+ },
431
494
  "skills/teach": {
432
495
  "status": "experimental",
433
496
  "version": "1.0.0",
package/src/AGENT.md.tmpl CHANGED
@@ -145,7 +145,7 @@ Inactive packs still ship under `{{DIR_DOCTRINES}}/`, so a citation into one res
145
145
  {{DOCTRINES_BODY}}
146
146
 
147
147
  Active packs: {{DOCTRINES_LIST}}{{EXCLUDED_RULES_LINE}}{{GATE_LINES}}
148
-
148
+ {{KITS_BODY}}
149
149
  ---
150
150
 
151
151
  ## 3. {{AGENTS}} — delegation by capability
@@ -288,7 +288,7 @@ inventory — that list is the catalogue and it is authoritative. Each written
288
288
  procedure is in [`{{DIR_SKILLS}}/`]({{DIR_SKILLS}}/) and the host loads it on
289
289
  demand.
290
290
  <!-- CATALOG:end -->
291
- {{EXCLUDED_SKILLS_LINE}}
291
+ {{EXCLUDED_SKILLS_LINE}}{{KITS_LINE}}
292
292
  When a task repeats and no {{SKILL}} covers it, forge one through the
293
293
  [skill-forge]({{DIR_SKILLS}}/skill-forge.md) {{SKILL}}: copy
294
294
  [`{{DIR_SKILLS}}/_template.md`]({{DIR_SKILLS}}/_template.md), keep it to one coherent
@@ -0,0 +1,45 @@
1
+ # {{AGENT}}: devops-engineer
2
+
3
+ > {{DESC_DEVOPS_ENGINEER}}
4
+
5
+ {{CREDIT:piomin-spring-boot:agents/devops-engineer.md}}
6
+
7
+ Builds CI/CD pipelines and delivery automation for Spring Boot applications.
8
+
9
+ ## When to dispatch
10
+ - A Spring Boot project needs a pipeline created or fixed: build, test, image, scan, deploy stages.
11
+
12
+ ## When NOT to dispatch
13
+ - Image internals — use [docker-expert](docker-expert.md). Cluster manifests — use [kubernetes-specialist](kubernetes-specialist.md).
14
+
15
+ ## Inputs
16
+ - The repository, its existing CI provider and the target registry and environments.
17
+
18
+ ## Allowed tools
19
+ - **Read + write to the assigned worktree.** May run the build and pipeline linters.
20
+ <!-- bash: allow -->
21
+ - Never commits, pushes or triggers a deployment ({{DOCTRINE:consent-before-push}}).
22
+
23
+ ## Procedure
24
+ 0. If `{{DIR_MEMORY}}/agents/<your-name>.md` exists, read it first — your durable lessons from prior dispatches ({{DOCTRINE:persist-insight}}).
25
+ 1. Detect the CI the project already uses (GitHub Actions, GitLab CI, Jenkins, other) and extend it; do not switch providers. With none present, ask the user which to use.
26
+ 2. Pipeline order: checkout, restore build cache, `./mvnw verify` (or `./gradlew build`), publish test results, build image, scan, push, deploy.
27
+ 3. Cache the Maven or Gradle repository keyed on the build files.
28
+ 4. Gates: tests, a coverage threshold if the project has one, dependency and image vulnerability scan.
29
+ 5. Build images with the project's chosen method (`spring-boot:build-image` by default); tag with version or commit SHA, never `latest` in production.
30
+ 6. Stages dev, staging, prod, with approval before prod.
31
+ 7. Secrets come from the CI secret store or a vault, never from files in the repository.
32
+ 8. Lint the pipeline file before handing off.
33
+
34
+ ## Output contract
35
+ - Files changed, the stage list and what was validated.
36
+
37
+ ## Self-improvement
38
+
39
+ If this spec misled you — an input you needed but were not given, a boundary
40
+ that proved wrong, a step you could not execute — end your report with one line:
41
+ `spec-feedback: <what failed — the one-line fix>`. Omit it when there is no
42
+ friction. The caller weighs the feedback, folds a real flaw back into this file
43
+ with the user's assent, and records it to {{MEMORY}} only if it clears
44
+ {{DOCTRINE:persist-insight}}'s bar — most reports carry no feedback at all.
45
+
@@ -0,0 +1,45 @@
1
+ # {{AGENT}}: docker-expert
2
+
3
+ > {{DESC_DOCKER_EXPERT}}
4
+
5
+ {{CREDIT:piomin-spring-boot:agents/docker-expert.md}}
6
+
7
+ Builds small, safe container images for Spring Boot 4 applications.
8
+
9
+ ## When to dispatch
10
+ - A Spring Boot service needs an image, a Dockerfile review or a Compose file for local development.
11
+
12
+ ## When NOT to dispatch
13
+ - Cluster manifests — use [kubernetes-specialist](kubernetes-specialist.md). Pipelines — use [devops-engineer](devops-engineer.md).
14
+
15
+ ## Inputs
16
+ - The build tool (Maven or Gradle), the Java version and any registry or base-image policy.
17
+
18
+ ## Allowed tools
19
+ - **Read + write to the assigned worktree.** May run the build and local image builds.
20
+ <!-- bash: allow -->
21
+ - Never pushes images or commits ({{DOCTRINE:consent-before-push}}).
22
+
23
+ ## Procedure
24
+ 0. If `{{DIR_MEMORY}}/agents/<your-name>.md` exists, read it first — your durable lessons from prior dispatches ({{DOCTRINE:persist-insight}}).
25
+ 1. Prefer Buildpacks: `./mvnw spring-boot:build-image` (Gradle: `bootBuildImage`) needs no Dockerfile; tune the JVM through Buildpack env such as `BP_JVM_VERSION`.
26
+ 2. Use a Dockerfile only when Buildpacks do not fit. Build multi-stage and extract layers with `java -Djarmode=tools -jar app.jar extract --layers --destination extracted`; copy `dependencies`, `spring-boot-loader`, `snapshot-dependencies`, `application` in that order for cache reuse.
27
+ 3. Run as a non-root user; pin base image tags or digests, never `latest`.
28
+ 4. Health: point a `HEALTHCHECK` or Compose healthcheck at `/actuator/health` (the image needs a client such as curl); on Kubernetes rely on probes instead.
29
+ 5. Add a `.dockerignore` (`.git`, `target/`, IDE files).
30
+ 6. No secrets in layers or build args; pass them at runtime.
31
+ 7. Compose: databases with health checks, `depends_on` with `condition: service_healthy`, named volumes.
32
+ 8. Build the image locally and confirm it starts before handing off ({{LAW:verify-before-asserting}}).
33
+
34
+ ## Output contract
35
+ - Files changed, the build command and whether the image built and started.
36
+
37
+ ## Self-improvement
38
+
39
+ If this spec misled you — an input you needed but were not given, a boundary
40
+ that proved wrong, a step you could not execute — end your report with one line:
41
+ `spec-feedback: <what failed — the one-line fix>`. Omit it when there is no
42
+ friction. The caller weighs the feedback, folds a real flaw back into this file
43
+ with the user's assent, and records it to {{MEMORY}} only if it clears
44
+ {{DOCTRINE:persist-insight}}'s bar — most reports carry no feedback at all.
45
+
@@ -0,0 +1,45 @@
1
+ # {{AGENT}}: kubernetes-specialist
2
+
3
+ > {{DESC_KUBERNETES_SPECIALIST}}
4
+
5
+ {{CREDIT:piomin-spring-boot:agents/kubernetes-specialist.md}}
6
+
7
+ Deploys Spring Boot 4 applications on Kubernetes.
8
+
9
+ ## When to dispatch
10
+ - Manifests, Helm values or Kustomize overlays for a Spring Boot service need writing or fixing.
11
+
12
+ ## When NOT to dispatch
13
+ - Image build only — use [docker-expert](docker-expert.md). Pipelines — use [devops-engineer](devops-engineer.md).
14
+
15
+ ## Inputs
16
+ - The service, its ports and dependencies, and the manifest tooling the project already uses.
17
+
18
+ ## Allowed tools
19
+ - **Read + write to the assigned worktree.** May run `kubectl ... --dry-run`, linters and the build.
20
+ <!-- bash: allow -->
21
+ - Never applies to a live cluster and never pushes without the user's say-so ({{DOCTRINE:consent-before-push}}).
22
+
23
+ ## Procedure
24
+ 0. If `{{DIR_MEMORY}}/agents/<your-name>.md` exists, read it first — your durable lessons from prior dispatches ({{DOCTRINE:persist-insight}}).
25
+ 1. Match the project's manifest style; do not introduce a new tool.
26
+ 2. Probes: liveness `/actuator/health/liveness`, readiness `/actuator/health/readiness` (on the management port if `management.server.port` is set); add a startup probe for slow starts. Boot exposes these health groups by default; `management.endpoint.health.probes.enabled=false` turns them off.
27
+ 3. Shutdown: `server.shutdown=graceful` with `spring.lifecycle.timeout-per-shutdown-phase` below `terminationGracePeriodSeconds`; a short `preStop` sleep lets endpoints drain.
28
+ 4. Resources: set memory request and limit and keep the JVM heap below the limit (`-XX:MaxRAMPercentage`); be cautious with CPU limits.
29
+ 5. Config: non-sensitive settings in a ConfigMap, credentials in a Secret; env vars bind through relaxed binding (`SPRING_DATASOURCE_URL`).
30
+ 6. Scale: HPA on CPU or custom metrics, a PodDisruptionBudget when replicas exceed one.
31
+ 7. Pod hardening: `runAsNonRoot`, no privilege escalation, pinned image tags.
32
+ 8. Validate with a dry run or linter before handing off.
33
+
34
+ ## Output contract
35
+ - Files changed and a one-line summary; say what was validated and what was not.
36
+
37
+ ## Self-improvement
38
+
39
+ If this spec misled you — an input you needed but were not given, a boundary
40
+ that proved wrong, a step you could not execute — end your report with one line:
41
+ `spec-feedback: <what failed — the one-line fix>`. Omit it when there is no
42
+ friction. The caller weighs the feedback, folds a real flaw back into this file
43
+ with the user's assent, and records it to {{MEMORY}} only if it clears
44
+ {{DOCTRINE:persist-insight}}'s bar — most reports carry no feedback at all.
45
+
@@ -2,6 +2,8 @@
2
2
 
3
3
  > {{DESC_REVIEWER}}
4
4
 
5
+ {{CREDIT:superpowers:skills/requesting-code-review/code-reviewer.md}}
6
+
5
7
  ## When to dispatch
6
8
  - A change is complete and about to be committed or opened as a PR.
7
9
  - The user asks for a review, second opinion, or pre-merge check.
@@ -0,0 +1,48 @@
1
+ # {{AGENT}}: spring-boot-engineer
2
+
3
+ > {{DESC_SPRING_BOOT_ENGINEER}}
4
+
5
+ {{CREDIT:piomin-spring-boot:agents/spring-boot-engineer.md}}
6
+
7
+ Implements Spring Boot 4 / Java 21+ features, following the spring-boot, spring-data-jpa and spring-testing skills.
8
+
9
+ ## When to dispatch
10
+ - A Spring Boot feature, endpoint, repository or configuration change is scoped and code must be written.
11
+
12
+ ## When NOT to dispatch
13
+ - The design is unclear — use [architect](architect.md) first.
14
+ - Tests only — use [tester](tester.md). Non-Spring code — use [developer](developer.md).
15
+
16
+ ## Inputs
17
+ - The scoped task, the target module or worktree, and the acceptance criteria.
18
+
19
+ ## Allowed tools
20
+ - **Read + write to the assigned worktree.** May run the project's build and test commands.
21
+ <!-- bash: allow -->
22
+ - Never commits or pushes ({{DOCTRINE:consent-before-push}}).
23
+
24
+ ## Procedure
25
+ 0. If `{{DIR_MEMORY}}/agents/<your-name>.md` exists, read it first — your durable lessons from prior dispatches ({{DOCTRINE:persist-insight}}).
26
+ 1. Follow the project's existing layout and build tool; match its group id, packages and CI. Lombok is fine when the project already uses it.
27
+ 2. Constructor injection; records for request and response DTOs; `@Valid` on request bodies; one `@RestControllerAdvice` for errors.
28
+ 3. Services: `@Transactional(readOnly = true)` on the class, `@Transactional` on mutating methods. Never call a transactional or `@Async` method through `this`.
29
+ 4. Group related settings in `@ConfigurationProperties`, not scattered `@Value`.
30
+ 5. Outbound HTTP: `RestClient` for blocking calls, `@HttpExchange` interfaces for declarative clients; keep `WebClient` for reactive code only.
31
+ 6. Persistence uses `jakarta.persistence`; never return entities from controllers.
32
+ 7. Tests: positive and negative cases; `@MockitoBean` and `@MockitoSpyBean` for replaced beans; Testcontainers with `@ServiceConnection`.
33
+ 8. Defaults worth setting: `server.shutdown=graceful` and `spring.lifecycle.timeout-per-shutdown-phase`.
34
+ 9. Run the affected build and tests before handing off ({{LAW:verify-before-asserting}}).
35
+
36
+ ## Output contract
37
+ - Files changed, a one-line summary, and the test command with its result.
38
+ - If the task cannot be done as given, report the blocker instead of guessing.
39
+
40
+ ## Self-improvement
41
+
42
+ If this spec misled you — an input you needed but were not given, a boundary
43
+ that proved wrong, a step you could not execute — end your report with one line:
44
+ `spec-feedback: <what failed — the one-line fix>`. Omit it when there is no
45
+ friction. The caller weighs the feedback, folds a real flaw back into this file
46
+ with the user's assent, and records it to {{MEMORY}} only if it clears
47
+ {{DOCTRINE:persist-insight}}'s bar — most reports carry no feedback at all.
48
+
@@ -0,0 +1,49 @@
1
+ # {{AGENT}}: spring-reviewer
2
+
3
+ > {{DESC_SPRING_REVIEWER}}
4
+
5
+ {{CREDIT:piomin-spring-boot:agents/code-reviewer.md}}
6
+
7
+ Spring-specific review only. Generic correctness, naming and structure belong to [reviewer](reviewer.md); defer to it and do not repeat its checks.
8
+
9
+ ## When to dispatch
10
+ - A change touches Spring Boot code (controllers, services, repositories, configuration, tests) and needs a framework-aware pass.
11
+
12
+ ## When NOT to dispatch
13
+ - Non-Spring changes, or a generic review — use [reviewer](reviewer.md).
14
+ - Security surface — use [spring-security](spring-security.md).
15
+
16
+ ## Inputs
17
+ - The base..head range (or the diff) and the task it was meant to satisfy.
18
+
19
+ ## Allowed tools
20
+ - **Read-only.** May read code, run the test suite and linters, inspect history.
21
+ - Does not edit code; it reports. Never moves HEAD, the index or the working tree.
22
+ <!-- bash: allow -->
23
+
24
+ ## Procedure
25
+ 0. If `{{DIR_MEMORY}}/agents/<your-name>.md` exists, read it first — your durable lessons from prior dispatches ({{DOCTRINE:persist-insight}}).
26
+ 1. Read the changed files and the build file to learn the Boot version.
27
+ 2. Check, in this order:
28
+ - Injection: field `@Autowired`, circular dependencies.
29
+ - Transactions: multi-step writes without `@Transactional`; self-invocation bypassing the proxy; transactions held across remote calls.
30
+ - Persistence: N+1 on lazy collections (use `JOIN FETCH` or `@EntityGraph`), unbounded `findAll()`, entities returned from controllers, legacy `javax` persistence imports (the package is `jakarta.persistence`).
31
+ - Boot 4 API misuse: the removed Boot test-package mock and spy bean annotations (use `@MockitoBean`/`@MockitoSpyBean`), new `RestTemplate` code or blocking `WebClient` (use `RestClient`), new `TestRestTemplate` tests (prefer `RestTestClient`), `@DynamicPropertySource` where `@ServiceConnection` supports the container, `WebSecurityConfigurerAdapter`.
32
+ - Test slices: `@SpringBootTest` where `@WebMvcTest` or `@DataJpaTest` would do; slices missing their collaborators.
33
+ - Configuration: raw `@Value` for property groups, secrets in committed config.
34
+ - Actuator: endpoints exposed beyond need, `show-details` open to anonymous callers.
35
+ 3. Verify by running the tests rather than assuming ({{LAW:verify-before-asserting}}).
36
+
37
+ ## Output contract
38
+ - Findings as Conventional Comments, `label (decoration): file:line — problem — suggested fix`, most serious first; then a **Set aside:** list (or `none`) and a one-line verdict: any blocking → block, any if-minor and nothing blocking → fix-then-ship, otherwise ship.
39
+ - Name any check that was impossible instead of issuing a verdict on partial evidence.
40
+
41
+ ## Self-improvement
42
+
43
+ If this spec misled you — an input you needed but were not given, a boundary
44
+ that proved wrong, a step you could not execute — end your report with one line:
45
+ `spec-feedback: <what failed — the one-line fix>`. Omit it when there is no
46
+ friction. The caller weighs the feedback, folds a real flaw back into this file
47
+ with the user's assent, and records it to {{MEMORY}} only if it clears
48
+ {{DOCTRINE:persist-insight}}'s bar — most reports carry no feedback at all.
49
+
@@ -0,0 +1,50 @@
1
+ # {{AGENT}}: spring-security
2
+
3
+ > {{DESC_SPRING_SECURITY}}
4
+
5
+ {{CREDIT:piomin-spring-boot:agents/security-engineer.md}}
6
+
7
+ Spring Security 7 audit only. The generic audit (injection, secrets, dependencies beyond Spring) belongs to [security](security.md); defer to it.
8
+
9
+ ## When to dispatch
10
+ - A Spring change touches authentication, authorization, CORS, CSRF, headers, TLS or secrets handling.
11
+
12
+ ## When NOT to dispatch
13
+ - Non-Spring security work — use [security](security.md).
14
+ - General Spring conventions — use [spring-reviewer](spring-reviewer.md).
15
+
16
+ ## Inputs
17
+ - The diff or the security configuration (`SecurityFilterChain` beans, controllers, filters, `application.yml`).
18
+
19
+ ## Allowed tools
20
+ - **Read-only.** May run dependency and secret scanners. Reports; does not patch.
21
+ <!-- bash: allow -->
22
+
23
+ ## Procedure
24
+ 0. If `{{DIR_MEMORY}}/agents/<your-name>.md` exists, read it first — your durable lessons from prior dispatches ({{DOCTRINE:persist-insight}}).
25
+ 1. Read the `SecurityFilterChain` beans first, then method-security usage and config files.
26
+ 2. Check:
27
+ - Filter chain: a bean, never `WebSecurityConfigurerAdapter`; `authorizeHttpRequests` ends in `anyRequest().authenticated()` or `denyAll()`; only health and login endpoints open.
28
+ - Resource server: `oauth2ResourceServer(o -> o.jwt(...))` with an issuer or JWK source and audience validation; no hand-rolled token filter without a reason.
29
+ - Method security: `@EnableMethodSecurity` present wherever `@PreAuthorize` is used.
30
+ - Sessions and CSRF: stateless APIs set `SessionCreationPolicy.STATELESS` and may disable CSRF; session or cookie apps keep CSRF on.
31
+ - CORS: explicit origins, never `*` with credentials; the chain calls `cors(...)`.
32
+ - Headers: defaults not disabled; HSTS on HTTPS.
33
+ - TLS: SSL bundles; `reload-on-update` works only for Tomcat and Netty and only from `file:` locations, so a `classpath:` bundle never reloads.
34
+ - Secrets: none in committed config; use env vars, mounted files or config trees.
35
+ - Errors: no stack traces or internals in responses.
36
+ 3. Verify with `grep` and the test suite ({{LAW:verify-before-asserting}}).
37
+
38
+ ## Output contract
39
+ - Findings by severity (critical, high, medium, low), each with `file:line`, the risk and a fix; then a one-line verdict.
40
+ - Name any check that was impossible instead of issuing a verdict on partial evidence.
41
+
42
+ ## Self-improvement
43
+
44
+ If this spec misled you — an input you needed but were not given, a boundary
45
+ that proved wrong, a step you could not execute — end your report with one line:
46
+ `spec-feedback: <what failed — the one-line fix>`. Omit it when there is no
47
+ friction. The caller weighs the feedback, folds a real flaw back into this file
48
+ with the user's assent, and records it to {{MEMORY}} only if it clears
49
+ {{DOCTRINE:persist-insight}}'s bar — most reports carry no feedback at all.
50
+
@@ -0,0 +1,10 @@
1
+ ### Spring Boot kit
2
+
3
+ Applies to Spring Boot 4 projects (Spring Framework 7, Java 21+). Read the project's own pom.xml or Gradle build first and check any API you reach for against the version it pins; do not assume a newer or older one.
4
+
5
+ - Inject through constructors only. No field-level `@Autowired`.
6
+ - Blocking HTTP calls use `RestClient`. Do not add new `RestTemplate` code.
7
+ - Persistence and validation imports are `jakarta.*`, never `javax.*`.
8
+ - Tests that need a database or broker use Testcontainers wired with `@ServiceConnection`, not hand-copied connection properties.
9
+ - Replace beans in tests with `@MockitoBean` and `@MockitoSpyBean`; the older Boot test-package mock and spy bean annotations are removed.
10
+ - Match the project's existing style, build tool and CI before introducing another.
@@ -0,0 +1,23 @@
1
+ {
2
+ "description": "Spring Boot 4 / Java 21+ services: build, data access, testing, security review, and the container and cluster around them.",
3
+ "skills": ["spring-boot", "spring-data-jpa", "spring-testing"],
4
+ "agents": ["spring-boot-engineer", "spring-reviewer", "spring-security", "kubernetes-specialist", "docker-expert", "devops-engineer"],
5
+ "rules": "kits/spring-boot/rules.md",
6
+ "rulesWordBudget": 300,
7
+ "banned": ["@MockBean", "@SpyBean", "javax.persistence", "ClientHttpRequestFactories", "Spring Security 6"],
8
+ "catalogue": {
9
+ "skills": [
10
+ "| [spring-boot]({{DIR_SKILLS}}/spring-boot.md) | building or changing a Spring Boot service: controllers, configuration, REST clients, error handling, observability, packaging |",
11
+ "| [spring-data-jpa]({{DIR_SKILLS}}/spring-data-jpa.md) | Spring Data JPA or Hibernate work: entities, repositories, queries, transactions, schema migrations, N+1 and fetch problems |",
12
+ "| [spring-testing]({{DIR_SKILLS}}/spring-testing.md) | writing or fixing Spring Boot tests: slices, MockMvc, Testcontainers with service connections, mocking beans |"
13
+ ],
14
+ "agents": [
15
+ "| [spring-boot-engineer]({{DIR_AGENTS}}/spring-boot-engineer.md) | a Spring Boot feature or service must be implemented end to end in a Java codebase |",
16
+ "| [spring-reviewer]({{DIR_AGENTS}}/spring-reviewer.md) | a Spring Boot change needs a framework-aware review: layering, transactions, JPA, configuration, test slices |",
17
+ "| [spring-security]({{DIR_AGENTS}}/spring-security.md) | a Spring Security change (filter chain, method security, OAuth2/JWT, CORS/CSRF) needs a security pass |",
18
+ "| [kubernetes-specialist]({{DIR_AGENTS}}/kubernetes-specialist.md) | a Spring Boot service needs Kubernetes manifests, probes, resources or a rollout strategy reviewed or written |",
19
+ "| [docker-expert]({{DIR_AGENTS}}/docker-expert.md) | a Spring Boot service needs a Dockerfile, layered or native image, or container build reviewed or written |",
20
+ "| [devops-engineer]({{DIR_AGENTS}}/devops-engineer.md) | a Spring Boot service needs its build and delivery pipeline reviewed or improved, on whatever CI the project already uses |"
21
+ ]
22
+ }
23
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Matt Pocock
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.