geneseed 5.5.1 → 6.0.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.
- package/CHANGELOG.md +27 -0
- package/README.md +2 -2
- package/SHIPPED.md +2 -2
- package/adapters/opencode/README.md +7 -4
- package/docs/concepts/agents.md +8 -0
- package/docs/concepts/enforcement-table.md +1 -1
- package/docs/concepts/exclusions.md +1 -1
- package/docs/concepts/foreman-mode.md +5 -3
- package/docs/concepts/hooks.md +1 -1
- package/docs/concepts/kits.md +20 -2
- package/docs/concepts/loops.md +5 -0
- package/docs/concepts/skills.md +1 -1
- package/docs/concepts/superpowers-kit.md +79 -0
- package/docs/extending.md +11 -4
- package/docs/guides/install-scripted.md +1 -1
- package/docs/reference/cli.md +2 -0
- package/docs/reference/profiles.md +10 -5
- package/harness.config.json +1 -1
- package/js/README.md +2 -0
- package/js/build/args.mjs +4 -2
- package/js/build/driver.mjs +8 -8
- package/js/build/emit-claude.mjs +5 -3
- package/js/build/emit-opencode.mjs +2 -2
- package/js/build/generate.mjs +1 -1
- package/js/build/profile.mjs +15 -7
- package/js/build/render.mjs +81 -10
- package/js/build/source.mjs +75 -1
- package/js/cli-table.json +17 -2
- package/js/hosts/hooks.mjs +16 -5
- package/js/hosts/installs.mjs +50 -4
- package/js/hosts/native.mjs +104 -3
- package/js/hosts/opencode.mjs +13 -15
- package/js/inspect/checks-authoring.mjs +24 -1
- package/js/inspect/checks-build.mjs +43 -2
- package/js/inspect/checks-counts.mjs +72 -1
- package/js/inspect/diff.mjs +17 -3
- package/js/inspect/doctor.mjs +23 -2
- package/js/inspect/status.mjs +5 -1
- package/js/inspect/validate.mjs +1 -1
- package/js/loop/catalog.mjs +10 -0
- package/js/maintain/kit-migration.mjs +109 -0
- package/js/maintain/plugin-detect.mjs +150 -0
- package/js/maintain/profiles.mjs +46 -5
- package/js/maintain/setup.mjs +45 -11
- package/js/maintain/update.mjs +1 -1
- package/js/web/actions.mjs +28 -7
- package/js/web/api.mjs +3 -1
- package/js/web/profiles-api.mjs +11 -7
- package/package.json +1 -1
- package/profiles/autonomous.json +1 -0
- package/profiles/corporate.json +1 -1
- package/profiles/mentor.json +1 -0
- package/profiles/minimal.json +2 -1
- package/profiles/starter.json +1 -1
- package/src/AGENT.md.tmpl +1 -6
- package/src/agents/_template.md +4 -0
- package/src/agents/advocate.md +1 -0
- package/src/agents/architect.md +1 -0
- package/src/agents/developer.md +12 -4
- package/src/agents/empiricist.md +1 -0
- package/src/agents/explorer.md +1 -0
- package/src/agents/framer.md +1 -0
- package/src/agents/historian.md +1 -0
- package/src/agents/operator.md +1 -0
- package/src/agents/performance.md +2 -1
- package/src/agents/pragmatist.md +1 -0
- package/src/agents/react-reviewer.md +1 -0
- package/src/agents/researcher.md +1 -0
- package/src/agents/reviewer.md +1 -0
- package/src/agents/security.md +1 -0
- package/src/agents/skeptic.md +1 -0
- package/src/agents/spring-reviewer.md +1 -0
- package/src/agents/spring-security.md +1 -0
- package/src/agents/steward.md +1 -0
- package/src/agents/user-advocate.md +1 -0
- package/src/agents/visionary.md +1 -0
- package/src/bricks/ci-fix.md +12 -2
- package/src/kits/superpowers/missing.md +3 -0
- package/src/kits/superpowers/provider.md +7 -0
- package/src/kits/superpowers/rules.md +6 -0
- package/src/kits/superpowers.json +45 -0
- package/src/modes/foreman.md +18 -12
- package/src/skills/commit.md +4 -0
- package/src/skills/parallel-agents.md +2 -2
- package/src/skills/spring-boot/cloud.md +8 -2
- package/src/skills/spring-boot.md +3 -1
- package/src/skills/spring-testing.md +3 -3
- package/src/upstreams.json +1 -1
package/js/web/actions.mjs
CHANGED
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
*/
|
|
28
28
|
import { spawn } from 'node:child_process';
|
|
29
29
|
import {
|
|
30
|
-
copyFileSync, existsSync, mkdirSync, mkdtempSync, realpathSync, renameSync, rmSync,
|
|
30
|
+
copyFileSync, existsSync, mkdirSync, mkdtempSync, readFileSync, realpathSync, renameSync, rmSync, writeFileSync,
|
|
31
31
|
} from 'node:fs';
|
|
32
32
|
import os from 'node:os';
|
|
33
33
|
import path from 'node:path';
|
|
34
34
|
|
|
35
35
|
import { emitGlobalInto } from '../build/driver.mjs';
|
|
36
36
|
import {
|
|
37
|
-
CONTEXT_WINDOWS, ROOT, discoverNames, knownRuleIds, loadKits, PACK_ORDER,
|
|
37
|
+
CONTEXT_WINDOWS, ROOT, TIERS_CHOICES, discoverNames, knownRuleIds, loadKits, PACK_ORDER,
|
|
38
38
|
} from '../build/source.mjs';
|
|
39
39
|
import { diffCollect, drifted, renderMemo, withStdoutSwallowed } from '../inspect/diff.mjs';
|
|
40
40
|
import { SESSION_FILES } from '../hosts/hooks-context.mjs';
|
|
@@ -44,7 +44,7 @@ import { DEFAULT_PRESET, PRESETS } from '../loop/score.mjs';
|
|
|
44
44
|
import { activeLoops, setLoopPreset } from '../loop/registry.mjs';
|
|
45
45
|
import { HOSTS, resolvePath } from '../hosts/hosts.mjs';
|
|
46
46
|
import {
|
|
47
|
-
EMIT_FOR, EMIT_HOST_SCOPE, doctrinesForBuild, excludedRulesOfDir, excludedSkillsOfDir,
|
|
47
|
+
EMIT_FOR, EMIT_HOST_SCOPE, doctrinesForBuild, excludedRulesOfDir, excludedSkillsOfDir, sharedTierOfDir, contextWindowOfDir, tiersOfDir, renderedTier,
|
|
48
48
|
footprintOfDir, gatesOfDir,
|
|
49
49
|
installedDefaults, installState, installTargets, modeOfDir, postureOfDir, themeOfDir,
|
|
50
50
|
trustOfDir,
|
|
@@ -58,6 +58,7 @@ import { NO_WINDOW } from '../lib/proc.mjs';
|
|
|
58
58
|
import { normcase, which, within } from '../lib/paths.mjs';
|
|
59
59
|
import { stripWhitespace } from '../lib/text.mjs';
|
|
60
60
|
import { memoryDelete } from '../maintain/memory.mjs';
|
|
61
|
+
import { migratedKitsOfDir } from '../maintain/kit-migration.mjs';
|
|
61
62
|
import { autostartInstall, autostartRemove } from '../hosts/shim.mjs';
|
|
62
63
|
import { installDeactivate, installReactivate, installUninstall } from '../maintain/uninstall.mjs';
|
|
63
64
|
import { checkProjectFolder } from '../maintain/profile-scope.mjs';
|
|
@@ -152,6 +153,15 @@ function bodySharedTier(body, root, host) {
|
|
|
152
153
|
return typeof said === 'boolean' ? said : sharedTierOfDir(root, host);
|
|
153
154
|
}
|
|
154
155
|
|
|
156
|
+
/**
|
|
157
|
+
* A request body's `tiers` (`--tiers`): `auto` or `off` only; anything else keeps the install's own
|
|
158
|
+
* answer, so a deploy or an apply that never heard of the option cannot turn the routing off.
|
|
159
|
+
*/
|
|
160
|
+
function bodyTiers(body, root, host) {
|
|
161
|
+
const said = bget(body, 'tiers');
|
|
162
|
+
return typeof said === 'string' && TIERS_CHOICES.includes(said) ? said : tiersOfDir(root, host);
|
|
163
|
+
}
|
|
164
|
+
|
|
155
165
|
/**
|
|
156
166
|
* A request body's `contextWindow` (`--context-window`): only a value `CONTEXT_WINDOWS` names
|
|
157
167
|
* counts; anything else keeps the install's own answer, so a malformed body changes nothing. An
|
|
@@ -653,6 +663,13 @@ export function apiRestore(state, files) {
|
|
|
653
663
|
const tmp = mkdtempSync(path.join(os.tmpdir(), 'geneseed-restore-'));
|
|
654
664
|
try {
|
|
655
665
|
const expected = resolvePath(path.join(tmp, 'expected'));
|
|
666
|
+
// The user's own overrides (pins and the tiers map), seeded before the emit that reads them
|
|
667
|
+
// (`diff.mjs` `renderExpected`): or a restore writes the default model over a chosen one.
|
|
668
|
+
try {
|
|
669
|
+
const own = readFileSync(path.join(target, 'agent-overrides.json'));
|
|
670
|
+
mkdirSync(expected, { recursive: true });
|
|
671
|
+
writeFileSync(path.join(expected, 'agent-overrides.json'), own);
|
|
672
|
+
} catch { /* none: the emit seeds its stub */ }
|
|
656
673
|
withStdoutSwallowed(() => emitGlobalInto(globalEmitHostFor(state.emit), {
|
|
657
674
|
theme: state.theme,
|
|
658
675
|
out: path.join(tmp, 'bundle'),
|
|
@@ -675,9 +692,11 @@ export function apiRestore(state, files) {
|
|
|
675
692
|
excludeRules: excludedRulesOfDir(target),
|
|
676
693
|
excludeSkills: excludedSkillsOfDir(target),
|
|
677
694
|
// The kits: a restored AGENT.md keeps its Kits block and `Active kits:` line.
|
|
678
|
-
kits:
|
|
695
|
+
kits: migratedKitsOfDir(target),
|
|
679
696
|
sharedTier: sharedTierOfDir(target),
|
|
680
697
|
contextWindow: contextWindowOfDir(target),
|
|
698
|
+
// The tier routing, or a restored AGENT.md drops its `Model tiers: auto` line and the agents their model lines.
|
|
699
|
+
tiers: tiersOfDir(target),
|
|
681
700
|
// The gate switches: a restored AGENT.md must keep the install's `<gate>: off` lines.
|
|
682
701
|
...gatesOfDir(target),
|
|
683
702
|
}));
|
|
@@ -792,7 +811,8 @@ export function apiInstallCmd(state, body) {
|
|
|
792
811
|
const out = scope === 'global' ? null : String(root);
|
|
793
812
|
const argv = setupBuildArgs(theme || 'neutral', emit, out, out, fp, pos, mode, doctrines,
|
|
794
813
|
PACK_ORDER, excludeRules, trust, excludedSkillsOfDir(root, host), gates,
|
|
795
|
-
kits ??
|
|
814
|
+
kits ?? migratedKitsOfDir(root, host), sharedTier, bodyContextWindow(body, root, host, scope),
|
|
815
|
+
bodyTiers(body, root, host));
|
|
796
816
|
// `--reset`: this argv is a WHOLE selection — every axis is the body's or the install's own —
|
|
797
817
|
// and `setupBuildArgs` elides an axis at its default, so returning one to it (a mode back to
|
|
798
818
|
// direct, a gate re-armed) would otherwise trip the preserve guard (js/build/profile.mjs).
|
|
@@ -915,8 +935,9 @@ export function apiDeployCmd(state, body) {
|
|
|
915
935
|
const gates = bodyGates(body, root, host);
|
|
916
936
|
// project-scope emit name == host name (opencode / claude / bob / openclaude)
|
|
917
937
|
const argv = setupBuildArgs(theme || 'neutral', host, root, root, fp, pos, mode, doctrines,
|
|
918
|
-
PACK_ORDER, excludeRules, trust, excludedSkillsOfDir(root, host), gates,
|
|
919
|
-
bodySharedTier(body, root, host), bodyContextWindow(body, root, host, 'project')
|
|
938
|
+
PACK_ORDER, excludeRules, trust, excludedSkillsOfDir(root, host), gates, migratedKitsOfDir(root, host),
|
|
939
|
+
bodySharedTier(body, root, host), bodyContextWindow(body, root, host, 'project'),
|
|
940
|
+
bodyTiers(body, root, host));
|
|
920
941
|
// `--reset`, as in `apiInstallCmd`: the form's answers plus the folder's own are a whole selection.
|
|
921
942
|
argv.push('--reset');
|
|
922
943
|
return { cmd: [process.execPath, path.join(ROOT, 'bin', 'build-driver.mjs'), ...argv] };
|
package/js/web/api.mjs
CHANGED
|
@@ -24,7 +24,7 @@ import { factCount } from '../hosts/memory-files.mjs';
|
|
|
24
24
|
import { autostartState } from '../hosts/shim.mjs';
|
|
25
25
|
import {
|
|
26
26
|
footprintOfDir, gatesOfDir, installedDefaults, installState, installTargets, leftoversOf, modeOfDir,
|
|
27
|
-
trustOfDir, sharedTierOfDir, contextWindowOfDir, strandedGatesOf,
|
|
27
|
+
trustOfDir, sharedTierOfDir, contextWindowOfDir, tiersOfDir, strandedGatesOf,
|
|
28
28
|
postureOfDir, readJsonMaybe, readMaybe, themeOfDir,
|
|
29
29
|
} from '../hosts/installs.mjs';
|
|
30
30
|
import { PRESETS } from '../loop/score.mjs';
|
|
@@ -247,6 +247,8 @@ export function apiInstalls(state) {
|
|
|
247
247
|
// The context window the install is built for (`--context-window`); it writes settings on
|
|
248
248
|
// Claude Code only. A row not installed yet offers the machine's, as a new install takes it.
|
|
249
249
|
contextWindow: installState(root, host, scope) === 'absent' ? machineWindow() : contextWindowOfDir(root, host),
|
|
250
|
+
// The tier routing the install was built with (`--tiers`); off for a row not installed yet.
|
|
251
|
+
tiers: installState(root, host, scope) === 'absent' ? 'off' : tiersOfDir(root, host),
|
|
250
252
|
// Files here that are the user's where Geneseed ships one, and retired leftovers: what a
|
|
251
253
|
// forced rebuild would replace or remove (`leftoversOf`). Read off the emit's own record.
|
|
252
254
|
leftovers: leftoversOf(root, host, scope),
|
package/js/web/profiles-api.mjs
CHANGED
|
@@ -15,10 +15,10 @@ import path from 'node:path';
|
|
|
15
15
|
import { ROOT } from '../build/source.mjs';
|
|
16
16
|
import { installProfile } from '../build/profile.mjs';
|
|
17
17
|
import { HOSTS, expanduser } from '../hosts/hosts.mjs';
|
|
18
|
-
import { installState, installTargets } from '../hosts/installs.mjs';
|
|
18
|
+
import { installState, installTargets, tiersOfDir } from '../hosts/installs.mjs';
|
|
19
19
|
import {
|
|
20
20
|
BASE_PROFILE, isGitClone, listProfiles, loadProfile, profileBuildArgs, profileDiff, profileDirs,
|
|
21
|
-
profileFromInstall, profileHosts,
|
|
21
|
+
profileFromInstall, profileHosts, profileKits,
|
|
22
22
|
} from '../maintain/profiles.mjs';
|
|
23
23
|
import { checkProjectFolder, globalLayering, markerCollision } from '../maintain/profile-scope.mjs';
|
|
24
24
|
import { hostTools, profileChanges } from '../maintain/setup.mjs';
|
|
@@ -50,9 +50,13 @@ function activeTargets() {
|
|
|
50
50
|
* `starter`, which lists four hosts, could match no install). `sharedTier` counts only on a
|
|
51
51
|
* project install: a global apply ignores it (D37), so a global install cannot differ on it.
|
|
52
52
|
*/
|
|
53
|
-
export function followsProfile(installP, scope, p) {
|
|
53
|
+
export function followsProfile(installP, scope, p, root = null) {
|
|
54
54
|
const skip = new Set(['hosts', 'login', ...(scope === 'global' ? ['sharedTier'] : [])]);
|
|
55
|
-
|
|
55
|
+
// A kit chosen by detection is the kit an apply would have built for the install's own host: an
|
|
56
|
+
// install has the kits it has, never a kit "by detection", so compare the resolved list.
|
|
57
|
+
const resolved = p.kitsByDetection?.length
|
|
58
|
+
? { ...p, kits: profileKits(p, installP.hosts?.[0] ?? '', scope === 'project' ? root : null), kitsByDetection: [] } : p;
|
|
59
|
+
return profileDiff(installP, resolved).every((d) => skip.has(d.key));
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
/** The hosts row of the tab: `{ host, label, present }` in HOSTS order. */
|
|
@@ -79,7 +83,7 @@ function previewRows(p, project, hosts) {
|
|
|
79
83
|
// (`markerCollision`): the row says so and the panel does not offer it.
|
|
80
84
|
const refused = project ? markerCollision(project, h.host) : null;
|
|
81
85
|
const changes = h.present && !refused && state === 'active'
|
|
82
|
-
? profileChanges(profileBuildArgs(p, h.host, project)) : [];
|
|
86
|
+
? profileChanges(profileBuildArgs(p, h.host, project, root ? tiersOfDir(root, h.host) : null)) : [];
|
|
83
87
|
return {
|
|
84
88
|
host: h.host, label: h.label, present: h.present, state, root: root ? String(root) : null,
|
|
85
89
|
changes, layering: project && !refused ? globalLayering(h.host) : null, refused,
|
|
@@ -114,14 +118,14 @@ export function apiProfiles(state, url, { src = {}, tools = hostTools } = {}) {
|
|
|
114
118
|
...head, description: p.description ?? '', profile: p,
|
|
115
119
|
gatesOff: Object.keys(p.gates ?? {}),
|
|
116
120
|
diff: base.ok ? profileDiff(p, base.profile) : [],
|
|
117
|
-
matches: readBacks.filter((rb) => followsProfile(rb.profile, rb.scope, p))
|
|
121
|
+
matches: readBacks.filter((rb) => followsProfile(rb.profile, rb.scope, p, rb.path))
|
|
118
122
|
.map(({ host, scope, path: at }) => ({ host, scope, path: at })),
|
|
119
123
|
};
|
|
120
124
|
});
|
|
121
125
|
const loaded = profiles.filter((x) => x.profile);
|
|
122
126
|
const installs = readBacks.map((rb) => ({
|
|
123
127
|
host: rb.host, scope: rb.scope, path: rb.path,
|
|
124
|
-
matches: loaded.filter((x) => followsProfile(rb.profile, rb.scope, x.profile)).map((x) => x.name),
|
|
128
|
+
matches: loaded.filter((x) => followsProfile(rb.profile, rb.scope, x.profile, rb.path)).map((x) => x.name),
|
|
125
129
|
diff: base.ok ? profileDiff(rb.profile, base.profile) : [],
|
|
126
130
|
}));
|
|
127
131
|
const hosts = hostRows(tools);
|
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`, `exports` 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
|
+
"version": "6.0.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/profiles/autonomous.json
CHANGED
package/profiles/corporate.json
CHANGED
package/profiles/mentor.json
CHANGED
package/profiles/minimal.json
CHANGED
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
"mode": "direct",
|
|
8
8
|
"trust": "balanced",
|
|
9
9
|
"doctrines": ["craft", "rigor"],
|
|
10
|
-
"excludeSkills": ["brick-forge", "bruno", "daydream", "factory", "factory-forge", "forge-mcp", "
|
|
10
|
+
"excludeSkills": ["brick-forge", "bruno", "daydream", "factory", "factory-forge", "forge-mcp", "react-view-transitions"],
|
|
11
11
|
"kits": [],
|
|
12
|
+
"kitsByDetection": ["superpowers"],
|
|
12
13
|
"contextWindow": "200k",
|
|
13
14
|
"gates": { "ownershipGate": false },
|
|
14
15
|
"login": true
|
package/profiles/starter.json
CHANGED
package/src/AGENT.md.tmpl
CHANGED
|
@@ -232,14 +232,11 @@ the ten council seats are convened by the [council {{SKILL}}]({{DIR_SKILLS}}/cou
|
|
|
232
232
|
<!-- CATALOG:begin skills -->
|
|
233
233
|
| {{SKILL}} | Trigger |
|
|
234
234
|
| --- | --- |
|
|
235
|
-
| [brainstorm]({{DIR_SKILLS}}/brainstorm.md) | a new feature or project with no design yet, or whose goal, scope, or success criteria need pinning down first |
|
|
236
|
-
| [plan]({{DIR_SKILLS}}/plan.md) | a task has more than a couple of steps |
|
|
237
235
|
| [codebase-design]({{DIR_SKILLS}}/codebase-design.md) | designing a module's interface, placing a seam, or needing the deep-module vocabulary; pinning domain terms in GLOSSARY.md or recording a hard-to-reverse decision as an ADR |
|
|
238
236
|
| [wayfinder]({{DIR_SKILLS}}/wayfinder.md) | a chunk of work too big for one session, still in the fog — chart decision tickets before building |
|
|
239
237
|
| [parallel-agents]({{DIR_SKILLS}}/parallel-agents.md) | several independent subtasks and a tool that runs subagents |
|
|
240
238
|
| [develop]({{DIR_SKILLS}}/develop.md) | implementing a feature, fixing a bug, or changing behaviour — failing test first, affected suite green, one committed slice at a time |
|
|
241
239
|
| [worktree]({{DIR_SKILLS}}/worktree.md) | work must not share a tree with what is in flight — a crew, a second task, another session in this checkout |
|
|
242
|
-
| [debug]({{DIR_SKILLS}}/debug.md) | a bug or failure to diagnose before fixing — a red CI run or pre-merge check included, reproduced under CI's conditions |
|
|
243
240
|
| [prototype]({{DIR_SKILLS}}/prototype.md) | a design question needs a runnable answer before real implementation |
|
|
244
241
|
| [document-project]({{DIR_SKILLS}}/document-project.md) | missing/drifted docs, or a PRD, design system, architecture doc or AGENTS.md; orienting to the repo, or refreshing its map after the structure changed |
|
|
245
242
|
| [ingest]({{DIR_SKILLS}}/ingest.md) | a task needs content from a PDF, Office doc, or URL |
|
|
@@ -248,8 +245,6 @@ the ten council seats are convened by the [council {{SKILL}}]({{DIR_SKILLS}}/cou
|
|
|
248
245
|
| [learn-mode]({{DIR_SKILLS}}/learn-mode.md) | the user wants to learn while building — they design, you code what they approve |
|
|
249
246
|
| [ownership]({{DIR_SKILLS}}/ownership.md) | the developer must own production code — they decide each part at a granularity the team sets, from the root AGENTS.md |
|
|
250
247
|
| [commit]({{DIR_SKILLS}}/commit.md) | staging and writing a commit |
|
|
251
|
-
| [geneseed-code-review]({{DIR_SKILLS}}/geneseed-code-review.md) | reviewing a diff or PR |
|
|
252
|
-
| [review-response]({{DIR_SKILLS}}/review-response.md) | acting on review feedback you have received |
|
|
253
248
|
| [fresh-eyes]({{DIR_SKILLS}}/fresh-eyes.md) | a finished artifact needs an independent verdict on whether it meets the original spec, from an agent with none of the solving session's context |
|
|
254
249
|
| [security-audit]({{DIR_SKILLS}}/security-audit.md) | a change touches the security surface — auth, untrusted input, secrets, shell or file access, a new dependency — or "is this safe" |
|
|
255
250
|
| [dependencies]({{DIR_SKILLS}}/dependencies.md) | auditing dependencies — outdated, vulnerable, abandoned, unused — or upgrading a dependency, framework, or language version one change at a time |
|
|
@@ -298,7 +293,7 @@ inventory — that list is the catalogue and it is authoritative, as is its
|
|
|
298
293
|
procedure is in [`{{DIR_SKILLS}}/`]({{DIR_SKILLS}}/) and the host loads it on
|
|
299
294
|
demand.
|
|
300
295
|
<!-- CATALOG:end -->
|
|
301
|
-
{{EXCLUDED_SKILLS_LINE}}{{KITS_LINE}}{{SHARED_TIER_LINE}}{{CONTEXT_WINDOW_LINE}}
|
|
296
|
+
{{EXCLUDED_SKILLS_LINE}}{{KITS_LINE}}{{SHARED_TIER_LINE}}{{CONTEXT_WINDOW_LINE}}{{TIERS_LINE}}
|
|
302
297
|
When a task repeats and no {{SKILL}} covers it, forge one through the
|
|
303
298
|
[skill-forge]({{DIR_SKILLS}}/skill-forge.md) {{SKILL}}: copy
|
|
304
299
|
[`{{DIR_SKILLS}}/_template.md`]({{DIR_SKILLS}}/_template.md), keep it to one coherent
|
package/src/agents/_template.md
CHANGED
|
@@ -38,6 +38,10 @@
|
|
|
38
38
|
edit, webfetch, and bash. If it must run read-only commands (tests, linters,
|
|
39
39
|
scanners), add the marker `<!-- bash: allow -->` in this section to gate bash to
|
|
40
40
|
"ask" instead of denying it outright.
|
|
41
|
+
- Model tier: an unmarked agent is `standard`. For `light` (read-only, read-and-summarise
|
|
42
|
+
seats) or `strong` (judgement seats that must run on the session model), put the marker
|
|
43
|
+
`<!-- tier: light -->` on a line of its own directly above `## When to dispatch`; the build
|
|
44
|
+
strips it from every output. A seat that writes code is never `light`.
|
|
41
45
|
- Caution: the build detects the phrase "Read-only" anywhere in the file — a
|
|
42
46
|
write-capable {{AGENT}}'s spec must not contain it, or its emit is locked down.
|
|
43
47
|
|
package/src/agents/advocate.md
CHANGED
package/src/agents/architect.md
CHANGED
package/src/agents/developer.md
CHANGED
|
@@ -48,9 +48,10 @@
|
|
|
48
48
|
actually close — report the blocker instead ({{ONTOLOGY}}: {{ONT_EVIDENCE}}).
|
|
49
49
|
|
|
50
50
|
## Output contract
|
|
51
|
-
- The report starts with one line, `STATUS: OK|BLOCKED|OUT_OF_SCOPE|ERROR`: `OK` the contract is met;
|
|
51
|
+
- The report starts with one line, `STATUS: OK|BLOCKED|OUT_OF_SCOPE|ERROR|RELAY`: `OK` the contract is met;
|
|
52
52
|
`BLOCKED` an input or a decision is missing; `OUT_OF_SCOPE` not this task; `ERROR` a step failed,
|
|
53
|
-
red tests included
|
|
53
|
+
red tests included; `RELAY` a task worker hands off at its ceiling: work in progress committed,
|
|
54
|
+
handoff note follows.
|
|
54
55
|
- The files changed in the worktree and a one-line summary of what changed and
|
|
55
56
|
why, ready for the tester's pass.
|
|
56
57
|
- If the scoped task cannot be implemented as given (missing input, contradictory
|
|
@@ -61,8 +62,15 @@
|
|
|
61
62
|
### Task worker (Foreman)
|
|
62
63
|
|
|
63
64
|
Dispatched as Foreman's task worker, there is no tester seat: explore, implement and test
|
|
64
|
-
in your own context
|
|
65
|
-
|
|
65
|
+
in your own context. While you iterate, run the targeted test file, not the full suite.
|
|
66
|
+
Send its output to a file, and read only the count line and the failing test names. Wait
|
|
67
|
+
for a background run's completion notice; never poll it with a monitor or a sleep loop.
|
|
68
|
+
Count your proof runs (one run of a check command); these bounds are starting values
|
|
69
|
+
({{DOCTRINE:bound-the-loop}}). After the 3rd run in a row that leaves the same test red,
|
|
70
|
+
return `STATUS: ERROR` with the findings. At about 150k tokens of context, or after about
|
|
71
|
+
20 proof runs, hand off: commit your work in progress, and return `STATUS: RELAY` with a
|
|
72
|
+
handoff note (the failing tests, what you tried, the next step). A hand-off is no failure.
|
|
73
|
+
As a lead, hold every member's result before you end. Report `T<n> · <task> · files: <write set> · <state>`
|
|
66
74
|
at start and on each change, as the mode says. Return the branch, its commit list, any
|
|
67
75
|
uncommitted work, and the raw test + lint output — the parent re-runs it before any merge.
|
|
68
76
|
That output is a full run to completion, with the runner's own count line, never a
|
package/src/agents/empiricist.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> {{DESC_EMPIRICIST}}
|
|
4
4
|
|
|
5
|
+
<!-- tier: light -->
|
|
5
6
|
## When to dispatch
|
|
6
7
|
- A council debate (the council {{SKILL}}) needs every claim, for and against, held to evidence.
|
|
7
8
|
- The debate is running on assertion and intuition; the user wants it anchored to data, tests, or precedent.
|
package/src/agents/explorer.md
CHANGED
package/src/agents/framer.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> {{DESC_FRAMER}}
|
|
4
4
|
|
|
5
|
+
<!-- tier: light -->
|
|
5
6
|
## When to dispatch
|
|
6
7
|
- A council debate (the council {{SKILL}}) needs a test of the framing — is this the right problem.
|
|
7
8
|
- The motion may be a solution in search of a problem, or the real need sits upstream of what's proposed.
|
package/src/agents/historian.md
CHANGED
package/src/agents/operator.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> {{DESC_OPERATOR}}
|
|
4
4
|
|
|
5
|
+
<!-- tier: light -->
|
|
5
6
|
## When to dispatch
|
|
6
7
|
- A council debate (the council {{SKILL}}) needs a voice for running it in production.
|
|
7
8
|
- The motion ships to a live system: its behaviour under load, its observability, and the on-call burden all matter.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> {{DESC_PERFORMANCE}}
|
|
4
4
|
|
|
5
|
+
<!-- tier: strong -->
|
|
5
6
|
## When to dispatch
|
|
6
7
|
- The user reports something slow, heavy or timing out — a latency, throughput,
|
|
7
8
|
memory or startup complaint, or a regression against an earlier version.
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
## When NOT to dispatch
|
|
14
15
|
- No one has measured anything and nothing is slow — speculative tuning is the
|
|
15
16
|
waste this {{AGENT}} exists to refuse.
|
|
16
|
-
- The code is wrong, not slow — that is the debug {{SKILL}}.
|
|
17
|
+
- The code is wrong, not slow — that is the [debug {{SKILL}}](../{{DIR_SKILLS}}/debug.md).
|
|
17
18
|
|
|
18
19
|
## Inputs
|
|
19
20
|
- The symptom or the diff, the workload it runs under (data size, call rate,
|
package/src/agents/pragmatist.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> {{DESC_PRAGMATIST}}
|
|
4
4
|
|
|
5
|
+
<!-- tier: light -->
|
|
5
6
|
## When to dispatch
|
|
6
7
|
- A council debate (the council {{SKILL}}) needs a judgement of whether the motion is worth its cost.
|
|
7
8
|
- The user wants the real cost, effort, and complexity of a change surfaced against its payoff.
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
React-specific review only. Generic correctness, naming and structure belong to [reviewer](reviewer.md); defer to it and do not repeat its checks.
|
|
8
8
|
|
|
9
|
+
<!-- tier: strong -->
|
|
9
10
|
## When to dispatch
|
|
10
11
|
- A change touches `.tsx` / `.jsx` files, hooks or React tests and needs a framework-aware pass.
|
|
11
12
|
|
package/src/agents/researcher.md
CHANGED
package/src/agents/reviewer.md
CHANGED
package/src/agents/security.md
CHANGED
package/src/agents/skeptic.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
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
8
|
|
|
9
|
+
<!-- tier: strong -->
|
|
9
10
|
## When to dispatch
|
|
10
11
|
- A change touches Spring Boot code (controllers, services, repositories, configuration, tests) and needs a framework-aware pass.
|
|
11
12
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Spring Security 7 audit only. The generic audit (injection, secrets, dependencies beyond Spring) belongs to [security](security.md); defer to it.
|
|
8
8
|
|
|
9
|
+
<!-- tier: strong -->
|
|
9
10
|
## When to dispatch
|
|
10
11
|
- A Spring change touches authentication, authorization, CORS, CSRF, headers, TLS or secrets handling.
|
|
11
12
|
|
package/src/agents/steward.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> {{DESC_STEWARD}}
|
|
4
4
|
|
|
5
|
+
<!-- tier: light -->
|
|
5
6
|
## When to dispatch
|
|
6
7
|
- A council debate (the council {{SKILL}}) needs a defence of the long term against short-term wins.
|
|
7
8
|
- The user wants the architectural and maintenance consequences of a change weighed before committing.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> {{DESC_USER_ADVOCATE}}
|
|
4
4
|
|
|
5
|
+
<!-- tier: light -->
|
|
5
6
|
## When to dispatch
|
|
6
7
|
- A council debate (the council {{SKILL}}) needs a voice for whoever consumes the outcome.
|
|
7
8
|
- The motion touches a user-facing surface: UX, an API's ergonomics, docs, error messages, or a downstream developer's workflow.
|
package/src/agents/visionary.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> {{DESC_VISIONARY}}
|
|
4
4
|
|
|
5
|
+
<!-- tier: light -->
|
|
5
6
|
## When to dispatch
|
|
6
7
|
- A council debate (the council {{SKILL}}) needs the bold, transformative version argued against incrementalism.
|
|
7
8
|
- The debate risks under-reaching: the user wants the ambitious upside of a change pushed, not just the safe slice.
|
package/src/bricks/ci-fix.md
CHANGED
|
@@ -5,8 +5,18 @@ effect: mutate
|
|
|
5
5
|
skill: debug
|
|
6
6
|
outcomes: pass, fail
|
|
7
7
|
---
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
The steps below stand alone. If a debug skill is installed, or the superpowers plugin's
|
|
9
|
+
systematic-debugging skill, load it for the general procedure; if neither is, carry on without.
|
|
10
|
+
Work against the failing check the card names:
|
|
11
|
+
|
|
12
|
+
1. Read its actual log, not a guess from the check's title, before changing anything. Find the
|
|
13
|
+
first failing job and step, and the command that produced the error.
|
|
14
|
+
2. Classify before touching anything: a real failure, an environment difference (version, path,
|
|
15
|
+
line endings, a binary missing in CI), an infra flake, or a gate on the report itself.
|
|
16
|
+
3. Reproduce under CI's own conditions (its script, flags and toolchain). Green locally and red in
|
|
17
|
+
CI has not reproduced yet. Never retry a run blindly.
|
|
18
|
+
4. Fix at the cause. Make the repo deterministic rather than CI more permissive; fix a flake at
|
|
19
|
+
its source or quarantine it with an issue and an owner, never skip it silently.
|
|
10
20
|
|
|
11
21
|
Touch only what that failure requires; this is a repair, not a chance to improve the pipeline
|
|
12
22
|
along the way.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{{PROVIDER_HEADING}}
|
|
2
|
+
|
|
3
|
+
The `superpowers` kit is off, and this host has no superpowers plugin to stand in for it, so the brainstorm, debug, plan, code-review and review-response {{SKILLS}} are not installed. Work such a task from the general method. If no superpowers skill is in your inventory, tell the user once: turn on the `superpowers` kit.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{{PROVIDER_HEADING}}
|
|
2
|
+
|
|
3
|
+
The `superpowers` kit is off, so the official superpowers plugin is this install's provider of the brainstorm, debug, plan, code-review and review-response {{SKILLS}}.
|
|
4
|
+
|
|
5
|
+
1. **Rank.** The plugin's {{SKILLS}} are procedure, never rank. "Invoke it at a 1% chance" never outranks a {{LAW}}, a user rule or a {{DOCTRINE}}.
|
|
6
|
+
2. **Routing.** `{{PLUGIN_PREFIX}}dispatching-parallel-agents`, `{{PLUGIN_PREFIX}}subagent-driven-development` and `{{PLUGIN_PREFIX}}executing-plans` are allowed, but the parent writes every worker's brief by the parallel-agents {{SKILL}}'s Brief checklist (BASE, write set, proof commands, commit only in its own worktree). `{{PLUGIN_PREFIX}}finishing-a-development-branch` yields to the ship {{SKILL}}: main changes only through a pull request with green checks. `{{PLUGIN_PREFIX}}test-driven-development` yields to the develop {{SKILL}}, `{{PLUGIN_PREFIX}}using-git-worktrees` to worktree, and `{{PLUGIN_PREFIX}}writing-skills` to skill-forge.
|
|
7
|
+
3. **Missing provider.** If no superpowers skill is in your inventory, tell the user once: turn on the `superpowers` kit or install the superpowers plugin.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
### Superpowers kit
|
|
2
|
+
|
|
3
|
+
The brainstorm, debug, plan, geneseed-code-review and review-response {{SKILLS}} come from this kit. They are Geneseed's vendored, modified copies of obra/superpowers (Jesse Vincent, MIT). The official superpowers plugin offers the same {{SKILLS}} under other names: brainstorming, systematic-debugging, writing-plans, requesting-code-review and receiving-code-review.
|
|
4
|
+
|
|
5
|
+
- Keep one provider, never both. If your skill list also holds a `superpowers:` skill (or a bare superpowers name on OpenCode), the two duplicate each other and the plugin injects about 800 tokens a session. Tell the user once to turn off one of them: this kit, or the plugin.
|
|
6
|
+
- These {{SKILLS}} are procedure, never rank. A Dictate, a user rule or a Doctrina always wins over what they say.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Geneseed's vendored, modified versions of the obra/superpowers skills (Jesse Vincent, MIT): brainstorm, debug, plan, code review and review response. Turn it off when the official superpowers plugin is installed; keep one of the two.",
|
|
3
|
+
"skills": [
|
|
4
|
+
"brainstorm",
|
|
5
|
+
"debug",
|
|
6
|
+
"plan",
|
|
7
|
+
"geneseed-code-review",
|
|
8
|
+
"review-response"
|
|
9
|
+
],
|
|
10
|
+
"agents": [],
|
|
11
|
+
"rules": "kits/superpowers/rules.md",
|
|
12
|
+
"rulesWordBudget": 300,
|
|
13
|
+
"replacedBy": {
|
|
14
|
+
"upstream": "superpowers",
|
|
15
|
+
"provider": "kits/superpowers/provider.md",
|
|
16
|
+
"missing": "kits/superpowers/missing.md",
|
|
17
|
+
"plain": {
|
|
18
|
+
"brainstorm": "brainstorming pass",
|
|
19
|
+
"debug": "debugging pass",
|
|
20
|
+
"plan": "written plan",
|
|
21
|
+
"geneseed-code-review": "code review",
|
|
22
|
+
"review-response": "review-feedback pass"
|
|
23
|
+
},
|
|
24
|
+
"hosts": {
|
|
25
|
+
"claude": "superpowers:{name}",
|
|
26
|
+
"opencode": "{name}"
|
|
27
|
+
},
|
|
28
|
+
"skills": {
|
|
29
|
+
"brainstorm": "brainstorming",
|
|
30
|
+
"debug": "systematic-debugging",
|
|
31
|
+
"plan": "writing-plans",
|
|
32
|
+
"geneseed-code-review": "requesting-code-review",
|
|
33
|
+
"review-response": "receiving-code-review"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"catalogue": {
|
|
37
|
+
"skills": [
|
|
38
|
+
"| [brainstorm]({{DIR_SKILLS}}/brainstorm.md) | a new feature or project with no design yet, or whose goal, scope, or success criteria need pinning down first |",
|
|
39
|
+
"| [debug]({{DIR_SKILLS}}/debug.md) | a bug or failure to diagnose before fixing — a red CI run or pre-merge check included, reproduced under CI's conditions |",
|
|
40
|
+
"| [plan]({{DIR_SKILLS}}/plan.md) | a task has more than a couple of steps |",
|
|
41
|
+
"| [geneseed-code-review]({{DIR_SKILLS}}/geneseed-code-review.md) | reviewing a diff or PR |",
|
|
42
|
+
"| [review-response]({{DIR_SKILLS}}/review-response.md) | acting on review feedback you have received |"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|