@iceinvein/agent-skills 0.26.0 → 0.27.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/README.md +12 -3
- package/dist/cli/index.js +175 -40
- package/package.json +1 -1
- package/skills/index.json +4 -4
- package/skills/magpie/README.md +24 -6
- package/skills/magpie/package.json +1 -1
- package/skills/magpie/skill.json +21 -3
- package/skills/sluice/SKILL.md +3 -1
- package/skills/sluice/evals/README.md +4 -3
- package/skills/sluice/evals/deep-run-mirrors-the-task-list/case.yaml +4 -0
- package/skills/sluice/evals/deep-run-mirrors-the-task-list/fixture.sh +304 -0
- package/skills/sluice/evals/deep-run-mirrors-the-task-list/graders/every-task-done.md +7 -0
- package/skills/sluice/evals/deep-run-mirrors-the-task-list/graders/sluice-fired.md +5 -0
- package/skills/sluice/evals/deep-run-mirrors-the-task-list/graders/task-list-completed.md +7 -0
- package/skills/sluice/evals/deep-run-mirrors-the-task-list/graders/task-list-created.md +8 -0
- package/skills/sluice/evals/deep-run-mirrors-the-task-list/prompt.md +13 -0
- package/skills/sluice/evals/rules.json +9 -0
- package/skills/sluice/references/deep-channel.md +17 -0
- package/skills/sluice/references/status.md +8 -3
- package/skills/sluice/scripts/postinstall.sh +3 -3
- package/skills/sluice/skill.json +28 -4
package/README.md
CHANGED
|
@@ -22,6 +22,14 @@ bunx @iceinvein/agent-skills install # no args: opens pi
|
|
|
22
22
|
|
|
23
23
|
Auto-detects Claude Code, Cursor, Codex, or Gemini CLI. Antigravity is not auto-detected; install for it with `--tool antigravity`. Use `--tool claude` to target one, `-g` to install globally.
|
|
24
24
|
|
|
25
|
+
sluice runs on Claude Code, Codex and Antigravity. The installer wires its hooks on each when activation is `global` (the default); a `session` install wires none. Host notes:
|
|
26
|
+
|
|
27
|
+
- Codex runs the hooks only after you trust them once: open `/hooks` in Codex after installing.
|
|
28
|
+
- Codex loads a project install's `.codex/hooks.json` only in a project you have trusted. A `-g` install writes `~/.codex/hooks.json`, which Codex always loads.
|
|
29
|
+
- Codex draws no status line. sluice's statusline segment shows on Claude Code, and on Antigravity for a `-g` install (wired there, not yet confirmed in an interactive session).
|
|
30
|
+
- The statusline segment is opt-in: add `--statusline` to an install with global activation to put it in an empty `statusLine` slot (`bunx @iceinvein/agent-skills install sluice -g --statusline`). The choice survives `update`, and a slot an earlier install already claimed is kept. `--no-statusline` on a later install gives the slot back and clears the choice, so updates leave it empty.
|
|
31
|
+
- A Claude install with global activation also sets `CLAUDE_CODE_ENABLE_TODO_TOOLS=1` in `settings.json` unless the key is already set, because Claude Code withholds its task list tools on current models without it. Removing the skill takes the key back if it still holds the value it wrote.
|
|
32
|
+
|
|
25
33
|
### Claude Code plugin
|
|
26
34
|
|
|
27
35
|
Each skill is also a plugin in the `iceinvein-skills` marketplace:
|
|
@@ -35,6 +43,7 @@ Each skill is also a plugin in the `iceinvein-skills` marketplace:
|
|
|
35
43
|
- Third-party marketplaces do not auto-update by default. Update from `/plugin`.
|
|
36
44
|
- Activation modes do not apply: sluice's hooks always run while the plugin is enabled, and terse is never auto-activated.
|
|
37
45
|
- Do not install sluice through both routes, or its hooks run twice. Its statusline segment is bunx-only.
|
|
46
|
+
- For sluice's task list mirror under the plugin route, set `"CLAUDE_CODE_ENABLE_TODO_TOOLS": "1"` in the `env` block of your own `settings.json`; the plugin does not set it.
|
|
38
47
|
- magpie, migrate and scope-estimate need Bun on PATH.
|
|
39
48
|
- The magpie-panel mod shows a magpie PR review in a pane beside the chat. It needs the magpie plugin: `/plugin install magpie-panel@iceinvein-skills`.
|
|
40
49
|
- improve-my-codebase's plugin carries every audit, so under the plugin route its audits do not need installing separately.
|
|
@@ -130,7 +139,7 @@ Skills that shape how work gets done rather than analyzing code.
|
|
|
130
139
|
|
|
131
140
|
| Skill | What it does |
|
|
132
141
|
|-------|--------------|
|
|
133
|
-
| **sluice** | Routes work by change shape into four channels (`bypass`, `fast`, `main`, `deep`) and applies only the rules each channel needs, so a one-line fix does not pay the cost of a multi-subsystem build. Eight rules live as one-liners in the router; the full treatment sits in references read only on friction. Each run closes with a ledger read out of the session transcript: elapsed, tools, tokens, and what every dispatched agent cost. Claude Code
|
|
142
|
+
| **sluice** | Routes work by change shape into four channels (`bypass`, `fast`, `main`, `deep`) and applies only the rules each channel needs, so a one-line fix does not pay the cost of a multi-subsystem build. Eight rules live as one-liners in the router; the full treatment sits in references read only on friction. Each run closes with a ledger read out of the session transcript: elapsed, tools, tokens, and what every dispatched agent cost. Runs on Claude Code, Codex and Antigravity. Conflicts with the superpowers plugin, which requires its own fixed pipeline up front for anything that adds to or changes what the software does, not just code edits; disable superpowers before installing. |
|
|
134
143
|
|
|
135
144
|
### Orchestration
|
|
136
145
|
|
|
@@ -139,7 +148,7 @@ Skills that compose the other audit skills into higher-level workflows.
|
|
|
139
148
|
| Skill | What it does |
|
|
140
149
|
|-------|--------------|
|
|
141
150
|
| **improve-my-codebase** | Runs every applicable audit skill in parallel against your codebase, ranks findings by convergence (multiple audits agreeing) and per-file rollup, and writes a prioritized improvement report. Default sweeps everything; positional args switch modes (`quick`, `diff`, `interactive`) or narrow scope (`focus <area>`, `module <path>`). |
|
|
142
|
-
| **magpie** | Interactive PR review pipeline. Runs five parallel specialist subagents (security, bugs, performance, code-smells, architecture), dedupes findings, applies a critic rubric, peer-reviews
|
|
151
|
+
| **magpie** | Interactive PR review pipeline. Runs five parallel specialist subagents (security, bugs, performance, code-smells, architecture), dedupes findings, applies a critic rubric, peer-reviews through a configured provider (`codex`, `claude` or `agy`), and serves an interactive HTML report for selecting findings to post via `gh`, mirrored in a pane beside the chat when the magpie-panel mod is installed. A local mode reviews the current branch diff before a PR exists and hands the findings back in the terminal. Claude Code, Codex and Antigravity. |
|
|
143
152
|
|
|
144
153
|
## Commands
|
|
145
154
|
|
|
@@ -197,7 +206,7 @@ If a skill declares activation support and you're installing for Claude Code int
|
|
|
197
206
|
|
|
198
207
|
## Supported Tools
|
|
199
208
|
|
|
200
|
-
Claude Code, Cursor, Codex
|
|
209
|
+
Claude Code, Cursor, Codex, Gemini CLI and Antigravity. Most skills install into each of them; bug-hunter, migrate, scope-estimate and test-redundancy-auditor are Claude Code only, magpie and sluice run on Claude Code, Codex and Antigravity, and the CLI skips the other tools for them.
|
|
201
210
|
|
|
202
211
|
## How It Works
|
|
203
212
|
|
package/dist/cli/index.js
CHANGED
|
@@ -340,6 +340,16 @@ function validateManifest(data) {
|
|
|
340
340
|
if (a.claudeStatuslineScript !== undefined && typeof a.claudeStatuslineScript !== "string") {
|
|
341
341
|
return { ok: false, error: "'activation.claudeStatuslineScript' must be a string" };
|
|
342
342
|
}
|
|
343
|
+
if (a.claudeEnv !== undefined) {
|
|
344
|
+
if (typeof a.claudeEnv !== "object" || a.claudeEnv === null || Array.isArray(a.claudeEnv)) {
|
|
345
|
+
return { ok: false, error: "'activation.claudeEnv' must be an object" };
|
|
346
|
+
}
|
|
347
|
+
for (const [key, value] of Object.entries(a.claudeEnv)) {
|
|
348
|
+
if (typeof value !== "string") {
|
|
349
|
+
return { ok: false, error: `'activation.claudeEnv.${key}' must be a string` };
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
343
353
|
const claudeBundleRoot = d.install.claude?.bundleRoot;
|
|
344
354
|
if (claudeBundleRoot === undefined) {
|
|
345
355
|
for (const field of ["claudeHookScript", "claudeStopScript", "claudeStatuslineScript"]) {
|
|
@@ -481,6 +491,9 @@ function resolveBundlePaths(entries, bundle) {
|
|
|
481
491
|
return [...result].sort();
|
|
482
492
|
}
|
|
483
493
|
|
|
494
|
+
// src/cli/commands/install.ts
|
|
495
|
+
import { join as join9 } from "node:path";
|
|
496
|
+
|
|
484
497
|
// src/cli/adapters/claude.ts
|
|
485
498
|
import { existsSync as existsSync3, mkdirSync as mkdirSync2 } from "node:fs";
|
|
486
499
|
import { homedir } from "node:os";
|
|
@@ -732,6 +745,62 @@ async function wireStatusLine(settingsPath, skillName, scriptPath) {
|
|
|
732
745
|
await Bun.write(settingsPath, JSON.stringify(settings, null, 2) + `
|
|
733
746
|
`);
|
|
734
747
|
}
|
|
748
|
+
async function holdsStatusLine(settingsPath, skillName) {
|
|
749
|
+
if (!existsSync3(settingsPath))
|
|
750
|
+
return false;
|
|
751
|
+
const settings = await Bun.file(settingsPath).json();
|
|
752
|
+
return ownsStatusLine(settings.statusLine?.command, skillName);
|
|
753
|
+
}
|
|
754
|
+
async function wireEnv(settingsPath, env) {
|
|
755
|
+
let settings = {};
|
|
756
|
+
if (existsSync3(settingsPath)) {
|
|
757
|
+
settings = await Bun.file(settingsPath).json();
|
|
758
|
+
}
|
|
759
|
+
const added = {};
|
|
760
|
+
for (const [key, value] of Object.entries(env)) {
|
|
761
|
+
if (settings.env !== undefined && key in settings.env)
|
|
762
|
+
continue;
|
|
763
|
+
settings.env = { ...settings.env, [key]: value };
|
|
764
|
+
added[key] = value;
|
|
765
|
+
}
|
|
766
|
+
if (Object.keys(added).length === 0)
|
|
767
|
+
return added;
|
|
768
|
+
mkdirSync2(dirname2(settingsPath), { recursive: true });
|
|
769
|
+
await Bun.write(settingsPath, JSON.stringify(settings, null, 2) + `
|
|
770
|
+
`);
|
|
771
|
+
return added;
|
|
772
|
+
}
|
|
773
|
+
async function heldEnv(settingsPath, recorded) {
|
|
774
|
+
if (!existsSync3(settingsPath))
|
|
775
|
+
return {};
|
|
776
|
+
const settings = await Bun.file(settingsPath).json();
|
|
777
|
+
const held = {};
|
|
778
|
+
for (const [key, value] of Object.entries(recorded)) {
|
|
779
|
+
if (settings.env?.[key] === value)
|
|
780
|
+
held[key] = value;
|
|
781
|
+
}
|
|
782
|
+
return held;
|
|
783
|
+
}
|
|
784
|
+
async function unwireEnv(settingsPath, added) {
|
|
785
|
+
if (!existsSync3(settingsPath))
|
|
786
|
+
return;
|
|
787
|
+
const settings = await Bun.file(settingsPath).json();
|
|
788
|
+
if (settings.env === undefined)
|
|
789
|
+
return;
|
|
790
|
+
let changed = false;
|
|
791
|
+
for (const [key, value] of Object.entries(added)) {
|
|
792
|
+
if (settings.env[key] !== value)
|
|
793
|
+
continue;
|
|
794
|
+
delete settings.env[key];
|
|
795
|
+
changed = true;
|
|
796
|
+
}
|
|
797
|
+
if (!changed)
|
|
798
|
+
return;
|
|
799
|
+
if (Object.keys(settings.env).length === 0)
|
|
800
|
+
delete settings.env;
|
|
801
|
+
await Bun.write(settingsPath, JSON.stringify(settings, null, 2) + `
|
|
802
|
+
`);
|
|
803
|
+
}
|
|
735
804
|
async function unwireStatusLine(settingsPath, skillName, scriptPath) {
|
|
736
805
|
if (!existsSync3(settingsPath))
|
|
737
806
|
return;
|
|
@@ -746,7 +815,7 @@ async function unwireStatusLine(settingsPath, skillName, scriptPath) {
|
|
|
746
815
|
}
|
|
747
816
|
var claudeAdapter = {
|
|
748
817
|
name: "claude",
|
|
749
|
-
async install(cwd, manifest, files, activation) {
|
|
818
|
+
async install(cwd, manifest, files, activation, _isGlobal, options) {
|
|
750
819
|
const installed = [];
|
|
751
820
|
const config = manifest.install.claude;
|
|
752
821
|
if (!config)
|
|
@@ -804,13 +873,16 @@ var claudeAdapter = {
|
|
|
804
873
|
installed.push(".claude/settings.json");
|
|
805
874
|
}
|
|
806
875
|
}
|
|
807
|
-
if (activation === "global" && manifest.activation?.claudeStatuslineScript && config.bundleRoot) {
|
|
876
|
+
if (activation === "global" && options?.statusline && manifest.activation?.claudeStatuslineScript && config.bundleRoot) {
|
|
808
877
|
const settingsPath = join3(cwd, ".claude/settings.json");
|
|
809
878
|
await wireStatusLine(settingsPath, manifest.name, join3(cwd, config.bundleRoot, manifest.activation.claudeStatuslineScript));
|
|
810
879
|
if (!installed.includes(".claude/settings.json")) {
|
|
811
880
|
installed.push(".claude/settings.json");
|
|
812
881
|
}
|
|
813
882
|
}
|
|
883
|
+
if (options?.statusline === false && manifest.activation?.claudeStatuslineScript && config.bundleRoot) {
|
|
884
|
+
await unwireStatusLine(join3(cwd, ".claude/settings.json"), manifest.name, join3(cwd, config.bundleRoot, manifest.activation.claudeStatuslineScript));
|
|
885
|
+
}
|
|
814
886
|
if (config.postinstall && config.bundleRoot) {
|
|
815
887
|
const scriptPath = join3(cwd, config.bundleRoot, config.postinstall);
|
|
816
888
|
const result = runScript(scriptPath, join3(cwd, config.bundleRoot));
|
|
@@ -1260,14 +1332,18 @@ async function wireAntigravityStatusLine(settingsPath, command) {
|
|
|
1260
1332
|
`);
|
|
1261
1333
|
return true;
|
|
1262
1334
|
}
|
|
1263
|
-
async function
|
|
1335
|
+
async function holdsAntigravityStatusLine(settingsPath, bundleDir) {
|
|
1264
1336
|
if (!existsSync7(settingsPath))
|
|
1265
|
-
return;
|
|
1337
|
+
return false;
|
|
1266
1338
|
const settings = await Bun.file(settingsPath).json();
|
|
1267
1339
|
const statusLine = settings.statusLine;
|
|
1268
1340
|
const command = typeof statusLine === "object" && statusLine !== null && "command" in statusLine ? statusLine.command : undefined;
|
|
1269
|
-
|
|
1341
|
+
return typeof command === "string" && command.includes(`${bundleDir}/`);
|
|
1342
|
+
}
|
|
1343
|
+
async function unwireAntigravityStatusLine(settingsPath, bundleDir) {
|
|
1344
|
+
if (!await holdsAntigravityStatusLine(settingsPath, bundleDir))
|
|
1270
1345
|
return;
|
|
1346
|
+
const settings = await Bun.file(settingsPath).json();
|
|
1271
1347
|
delete settings.statusLine;
|
|
1272
1348
|
await Bun.write(settingsPath, JSON.stringify(settings, null, 2) + `
|
|
1273
1349
|
`);
|
|
@@ -1281,7 +1357,7 @@ function hooksPathFor(cwd, bundleRoot) {
|
|
|
1281
1357
|
var SETTINGS_PATH = ".gemini/antigravity-cli/settings.json";
|
|
1282
1358
|
var antigravityAdapter = {
|
|
1283
1359
|
name: "antigravity",
|
|
1284
|
-
async install(cwd, manifest, files, activation) {
|
|
1360
|
+
async install(cwd, manifest, files, activation, _isGlobal, options) {
|
|
1285
1361
|
const installed = [];
|
|
1286
1362
|
const config = manifest.install.antigravity;
|
|
1287
1363
|
if (!config)
|
|
@@ -1313,12 +1389,15 @@ var antigravityAdapter = {
|
|
|
1313
1389
|
if (activation === "global" && hooks && config.bundleRoot) {
|
|
1314
1390
|
const bundleDir = join7(cwd, config.bundleRoot);
|
|
1315
1391
|
await wireAntigravityHooks(hooksPathFor(cwd, config.bundleRoot), manifest.name, bundleDir, manifest.activation?.claudeHookDirective, hooks);
|
|
1316
|
-
if (hooks.statusline && isGlobalInstall(config.bundleRoot)) {
|
|
1392
|
+
if (options?.statusline && hooks.statusline && isGlobalInstall(config.bundleRoot)) {
|
|
1317
1393
|
const script = shq3(join7(bundleDir, hooks.statusline));
|
|
1318
1394
|
const command = `if [ -f ${script} ]; then bash ${script}; fi`;
|
|
1319
1395
|
await wireAntigravityStatusLine(join7(cwd, SETTINGS_PATH), command);
|
|
1320
1396
|
}
|
|
1321
1397
|
}
|
|
1398
|
+
if (options?.statusline === false && config.bundleRoot && isGlobalInstall(config.bundleRoot)) {
|
|
1399
|
+
await unwireAntigravityStatusLine(join7(cwd, SETTINGS_PATH), join7(cwd, config.bundleRoot));
|
|
1400
|
+
}
|
|
1322
1401
|
return installed;
|
|
1323
1402
|
},
|
|
1324
1403
|
async remove(cwd, manifest, installedFiles) {
|
|
@@ -1421,7 +1500,7 @@ async function removeSkillFromLockfile(cwd, skillName) {
|
|
|
1421
1500
|
}
|
|
1422
1501
|
|
|
1423
1502
|
// src/cli/commands/install.ts
|
|
1424
|
-
async function installSkill(cwd, manifest, files, targetTools, activation, isGlobal) {
|
|
1503
|
+
async function installSkill(cwd, manifest, files, targetTools, activation, isGlobal, options = {}) {
|
|
1425
1504
|
const compatibleTools = targetTools.filter((t) => manifest.tools.includes(t));
|
|
1426
1505
|
const skipped = targetTools.filter((t) => !manifest.tools.includes(t));
|
|
1427
1506
|
if (compatibleTools.length === 0) {
|
|
@@ -1431,16 +1510,27 @@ async function installSkill(cwd, manifest, files, targetTools, activation, isGlo
|
|
|
1431
1510
|
};
|
|
1432
1511
|
}
|
|
1433
1512
|
const installed = {};
|
|
1513
|
+
const previous = (await readLockfile(cwd)).skills[manifest.name]?.tools ?? {};
|
|
1434
1514
|
for (const tool of compatibleTools) {
|
|
1435
1515
|
const adapter = getAdapter(tool);
|
|
1516
|
+
const statusline = options.statusline ?? previous[tool]?.statusline === true;
|
|
1436
1517
|
const config = manifest.install[tool];
|
|
1437
1518
|
const resolved = config ? { ...manifest, install: { ...manifest.install, [tool]: resolveInstallConfig(config, isGlobal) } } : manifest;
|
|
1438
|
-
const toolFiles = await adapter.install(cwd, resolved, files, activation, isGlobal);
|
|
1519
|
+
const toolFiles = await adapter.install(cwd, resolved, files, activation, isGlobal, { ...options, statusline });
|
|
1439
1520
|
installed[tool] = toolFiles;
|
|
1521
|
+
const claudeEnv = manifest.activation?.claudeEnv;
|
|
1522
|
+
const settingsPath = join9(cwd, ".claude/settings.json");
|
|
1523
|
+
const previousEnv = previous[tool]?.env;
|
|
1524
|
+
const envAdded = {
|
|
1525
|
+
...previousEnv ? await heldEnv(settingsPath, previousEnv) : {},
|
|
1526
|
+
...tool === "claude" && activation === "global" && claudeEnv ? await wireEnv(settingsPath, claudeEnv) : {}
|
|
1527
|
+
};
|
|
1440
1528
|
await addSkillToLockfile(cwd, manifest.name, tool, {
|
|
1441
1529
|
version: manifest.version,
|
|
1442
1530
|
files: toolFiles,
|
|
1443
|
-
...activation !== undefined ? { activation } : {}
|
|
1531
|
+
...activation !== undefined ? { activation } : {},
|
|
1532
|
+
...statusline ? { statusline: true } : {},
|
|
1533
|
+
...Object.keys(envAdded).length > 0 ? { env: envAdded } : {}
|
|
1444
1534
|
});
|
|
1445
1535
|
}
|
|
1446
1536
|
return { ok: true, installed, skipped };
|
|
@@ -1448,7 +1538,7 @@ async function installSkill(cwd, manifest, files, targetTools, activation, isGlo
|
|
|
1448
1538
|
|
|
1449
1539
|
// src/cli/commands/remove.ts
|
|
1450
1540
|
import { existsSync as existsSync8, statSync as statSync2, unlinkSync as unlinkSync4, rmSync as rmSync2 } from "node:fs";
|
|
1451
|
-
import { basename, dirname as dirname7, join as
|
|
1541
|
+
import { basename, dirname as dirname7, join as join10 } from "node:path";
|
|
1452
1542
|
|
|
1453
1543
|
// src/cli/github.ts
|
|
1454
1544
|
var REPO2 = "iceinvein/agent-skills";
|
|
@@ -1597,7 +1687,7 @@ async function cutAgentsSection(agentsPath, skillName) {
|
|
|
1597
1687
|
async function removeWithoutManifest(cwd, skillName, tools, reason, isGlobal) {
|
|
1598
1688
|
const removed = [];
|
|
1599
1689
|
const warnings = [];
|
|
1600
|
-
const skillDirs = (record) => record.files.filter((f) => f.endsWith("SKILL.md")).map((f) =>
|
|
1690
|
+
const skillDirs = (record) => record.files.filter((f) => f.endsWith("SKILL.md")).map((f) => join10(cwd, dirname7(f)));
|
|
1601
1691
|
if (tools.codex) {
|
|
1602
1692
|
for (const bundleDir of skillDirs(tools.codex)) {
|
|
1603
1693
|
for (const hooksPath of codexHooksPathsToUnwire(cwd, isGlobal)) {
|
|
@@ -1606,20 +1696,20 @@ async function removeWithoutManifest(cwd, skillName, tools, reason, isGlobal) {
|
|
|
1606
1696
|
}
|
|
1607
1697
|
}
|
|
1608
1698
|
if (tools.antigravity) {
|
|
1609
|
-
await unwireAntigravityHooks(
|
|
1610
|
-
await unwireAntigravityHooks(
|
|
1699
|
+
await unwireAntigravityHooks(join10(cwd, ".gemini/config/hooks.json"), skillName);
|
|
1700
|
+
await unwireAntigravityHooks(join10(cwd, ".agents/hooks.json"), skillName);
|
|
1611
1701
|
for (const bundleDir of skillDirs(tools.antigravity)) {
|
|
1612
|
-
await unwireAntigravityStatusLine(
|
|
1702
|
+
await unwireAntigravityStatusLine(join10(cwd, ".gemini/antigravity-cli/settings.json"), bundleDir);
|
|
1613
1703
|
}
|
|
1614
1704
|
}
|
|
1615
1705
|
const files = [...new Set(Object.values(tools).flatMap((record) => record.files))];
|
|
1616
1706
|
for (const file of files) {
|
|
1617
1707
|
if (file === "AGENTS.md") {
|
|
1618
|
-
await cutAgentsSection(
|
|
1708
|
+
await cutAgentsSection(join10(cwd, file), skillName);
|
|
1619
1709
|
continue;
|
|
1620
1710
|
}
|
|
1621
1711
|
if (isSharedConfigFile(file)) {
|
|
1622
|
-
const fullPath =
|
|
1712
|
+
const fullPath = join10(cwd, file);
|
|
1623
1713
|
if (existsSync8(fullPath)) {
|
|
1624
1714
|
await unwireSessionStartHook(fullPath, skillName);
|
|
1625
1715
|
await unwireStatusLine(fullPath, skillName);
|
|
@@ -1627,7 +1717,7 @@ async function removeWithoutManifest(cwd, skillName, tools, reason, isGlobal) {
|
|
|
1627
1717
|
warnings.push(`${reason}. Left '${file}' in place, removing '${skillName}'s SessionStart hook and status line from it; any MCP server entries it owns were not touched.`);
|
|
1628
1718
|
continue;
|
|
1629
1719
|
}
|
|
1630
|
-
const fullPath =
|
|
1720
|
+
const fullPath = join10(cwd, file);
|
|
1631
1721
|
if (!existsSync8(fullPath))
|
|
1632
1722
|
continue;
|
|
1633
1723
|
removeFileOrDir(fullPath);
|
|
@@ -1643,6 +1733,9 @@ async function removeSkill(cwd, skillName, isGlobal, manifest) {
|
|
|
1643
1733
|
}
|
|
1644
1734
|
const records = Object.entries(entry.tools);
|
|
1645
1735
|
const allFiles = [...new Set(records.flatMap(([, record]) => record.files))];
|
|
1736
|
+
const envAdded = entry.tools.claude?.env;
|
|
1737
|
+
if (envAdded)
|
|
1738
|
+
await unwireEnv(join10(cwd, ".claude/settings.json"), envAdded);
|
|
1646
1739
|
const manifestResult = manifest ? { ok: true, manifest } : await fetchSkillManifest2(skillName);
|
|
1647
1740
|
if (manifestResult.ok) {
|
|
1648
1741
|
const dropped = {};
|
|
@@ -1701,10 +1794,11 @@ async function infoSkill(skillName) {
|
|
|
1701
1794
|
|
|
1702
1795
|
// src/cli/commands/update.ts
|
|
1703
1796
|
import { homedir as homedir2 } from "node:os";
|
|
1797
|
+
import { join as join13 } from "node:path";
|
|
1704
1798
|
|
|
1705
1799
|
// src/cli/commands/remove.ts
|
|
1706
1800
|
import { existsSync as existsSync9, statSync as statSync3, unlinkSync as unlinkSync5, rmSync as rmSync3 } from "node:fs";
|
|
1707
|
-
import { basename as basename2, dirname as dirname8, join as
|
|
1801
|
+
import { basename as basename2, dirname as dirname8, join as join11 } from "node:path";
|
|
1708
1802
|
var SHARED_CONFIG_FILES2 = new Set([
|
|
1709
1803
|
".claude/settings.json",
|
|
1710
1804
|
".claude/settings.local.json",
|
|
@@ -1748,7 +1842,7 @@ async function cutAgentsSection2(agentsPath, skillName) {
|
|
|
1748
1842
|
async function removeWithoutManifest2(cwd, skillName, tools, reason, isGlobal) {
|
|
1749
1843
|
const removed = [];
|
|
1750
1844
|
const warnings = [];
|
|
1751
|
-
const skillDirs = (record) => record.files.filter((f) => f.endsWith("SKILL.md")).map((f) =>
|
|
1845
|
+
const skillDirs = (record) => record.files.filter((f) => f.endsWith("SKILL.md")).map((f) => join11(cwd, dirname8(f)));
|
|
1752
1846
|
if (tools.codex) {
|
|
1753
1847
|
for (const bundleDir of skillDirs(tools.codex)) {
|
|
1754
1848
|
for (const hooksPath of codexHooksPathsToUnwire(cwd, isGlobal)) {
|
|
@@ -1757,20 +1851,20 @@ async function removeWithoutManifest2(cwd, skillName, tools, reason, isGlobal) {
|
|
|
1757
1851
|
}
|
|
1758
1852
|
}
|
|
1759
1853
|
if (tools.antigravity) {
|
|
1760
|
-
await unwireAntigravityHooks(
|
|
1761
|
-
await unwireAntigravityHooks(
|
|
1854
|
+
await unwireAntigravityHooks(join11(cwd, ".gemini/config/hooks.json"), skillName);
|
|
1855
|
+
await unwireAntigravityHooks(join11(cwd, ".agents/hooks.json"), skillName);
|
|
1762
1856
|
for (const bundleDir of skillDirs(tools.antigravity)) {
|
|
1763
|
-
await unwireAntigravityStatusLine(
|
|
1857
|
+
await unwireAntigravityStatusLine(join11(cwd, ".gemini/antigravity-cli/settings.json"), bundleDir);
|
|
1764
1858
|
}
|
|
1765
1859
|
}
|
|
1766
1860
|
const files = [...new Set(Object.values(tools).flatMap((record) => record.files))];
|
|
1767
1861
|
for (const file of files) {
|
|
1768
1862
|
if (file === "AGENTS.md") {
|
|
1769
|
-
await cutAgentsSection2(
|
|
1863
|
+
await cutAgentsSection2(join11(cwd, file), skillName);
|
|
1770
1864
|
continue;
|
|
1771
1865
|
}
|
|
1772
1866
|
if (isSharedConfigFile2(file)) {
|
|
1773
|
-
const fullPath =
|
|
1867
|
+
const fullPath = join11(cwd, file);
|
|
1774
1868
|
if (existsSync9(fullPath)) {
|
|
1775
1869
|
await unwireSessionStartHook(fullPath, skillName);
|
|
1776
1870
|
await unwireStatusLine(fullPath, skillName);
|
|
@@ -1778,7 +1872,7 @@ async function removeWithoutManifest2(cwd, skillName, tools, reason, isGlobal) {
|
|
|
1778
1872
|
warnings.push(`${reason}. Left '${file}' in place, removing '${skillName}'s SessionStart hook and status line from it; any MCP server entries it owns were not touched.`);
|
|
1779
1873
|
continue;
|
|
1780
1874
|
}
|
|
1781
|
-
const fullPath =
|
|
1875
|
+
const fullPath = join11(cwd, file);
|
|
1782
1876
|
if (!existsSync9(fullPath))
|
|
1783
1877
|
continue;
|
|
1784
1878
|
removeFileOrDir2(fullPath);
|
|
@@ -1794,6 +1888,9 @@ async function removeSkill2(cwd, skillName, isGlobal, manifest) {
|
|
|
1794
1888
|
}
|
|
1795
1889
|
const records = Object.entries(entry.tools);
|
|
1796
1890
|
const allFiles = [...new Set(records.flatMap(([, record]) => record.files))];
|
|
1891
|
+
const envAdded = entry.tools.claude?.env;
|
|
1892
|
+
if (envAdded)
|
|
1893
|
+
await unwireEnv(join11(cwd, ".claude/settings.json"), envAdded);
|
|
1797
1894
|
const manifestResult = manifest ? { ok: true, manifest } : await fetchSkillManifest2(skillName);
|
|
1798
1895
|
if (manifestResult.ok) {
|
|
1799
1896
|
const dropped = {};
|
|
@@ -1833,7 +1930,8 @@ async function removeSkill2(cwd, skillName, isGlobal, manifest) {
|
|
|
1833
1930
|
}
|
|
1834
1931
|
|
|
1835
1932
|
// src/cli/commands/install.ts
|
|
1836
|
-
|
|
1933
|
+
import { join as join12 } from "node:path";
|
|
1934
|
+
async function installSkill2(cwd, manifest, files, targetTools, activation, isGlobal, options = {}) {
|
|
1837
1935
|
const compatibleTools = targetTools.filter((t) => manifest.tools.includes(t));
|
|
1838
1936
|
const skipped = targetTools.filter((t) => !manifest.tools.includes(t));
|
|
1839
1937
|
if (compatibleTools.length === 0) {
|
|
@@ -1843,22 +1941,45 @@ async function installSkill2(cwd, manifest, files, targetTools, activation, isGl
|
|
|
1843
1941
|
};
|
|
1844
1942
|
}
|
|
1845
1943
|
const installed = {};
|
|
1944
|
+
const previous = (await readLockfile(cwd)).skills[manifest.name]?.tools ?? {};
|
|
1846
1945
|
for (const tool of compatibleTools) {
|
|
1847
1946
|
const adapter = getAdapter(tool);
|
|
1947
|
+
const statusline = options.statusline ?? previous[tool]?.statusline === true;
|
|
1848
1948
|
const config = manifest.install[tool];
|
|
1849
1949
|
const resolved = config ? { ...manifest, install: { ...manifest.install, [tool]: resolveInstallConfig(config, isGlobal) } } : manifest;
|
|
1850
|
-
const toolFiles = await adapter.install(cwd, resolved, files, activation, isGlobal);
|
|
1950
|
+
const toolFiles = await adapter.install(cwd, resolved, files, activation, isGlobal, { ...options, statusline });
|
|
1851
1951
|
installed[tool] = toolFiles;
|
|
1952
|
+
const claudeEnv = manifest.activation?.claudeEnv;
|
|
1953
|
+
const settingsPath = join12(cwd, ".claude/settings.json");
|
|
1954
|
+
const previousEnv = previous[tool]?.env;
|
|
1955
|
+
const envAdded = {
|
|
1956
|
+
...previousEnv ? await heldEnv(settingsPath, previousEnv) : {},
|
|
1957
|
+
...tool === "claude" && activation === "global" && claudeEnv ? await wireEnv(settingsPath, claudeEnv) : {}
|
|
1958
|
+
};
|
|
1852
1959
|
await addSkillToLockfile(cwd, manifest.name, tool, {
|
|
1853
1960
|
version: manifest.version,
|
|
1854
1961
|
files: toolFiles,
|
|
1855
|
-
...activation !== undefined ? { activation } : {}
|
|
1962
|
+
...activation !== undefined ? { activation } : {},
|
|
1963
|
+
...statusline ? { statusline: true } : {},
|
|
1964
|
+
...Object.keys(envAdded).length > 0 ? { env: envAdded } : {}
|
|
1856
1965
|
});
|
|
1857
1966
|
}
|
|
1858
1967
|
return { ok: true, installed, skipped };
|
|
1859
1968
|
}
|
|
1860
1969
|
|
|
1861
1970
|
// src/cli/commands/update.ts
|
|
1971
|
+
async function holdsOwnStatusLine(cwd, tool, manifest, isGlobal) {
|
|
1972
|
+
if (tool === "claude")
|
|
1973
|
+
return holdsStatusLine(join13(cwd, ".claude/settings.json"), manifest.name);
|
|
1974
|
+
if (tool === "antigravity") {
|
|
1975
|
+
const config = manifest.install.antigravity;
|
|
1976
|
+
const bundleRoot = config ? resolveInstallConfig(config, isGlobal).bundleRoot : undefined;
|
|
1977
|
+
if (bundleRoot === undefined)
|
|
1978
|
+
return false;
|
|
1979
|
+
return holdsAntigravityStatusLine(join13(cwd, ".gemini/antigravity-cli/settings.json"), join13(cwd, bundleRoot));
|
|
1980
|
+
}
|
|
1981
|
+
return false;
|
|
1982
|
+
}
|
|
1862
1983
|
async function updateSkill(cwd, skillName) {
|
|
1863
1984
|
const lockfile = await readLockfile(cwd);
|
|
1864
1985
|
const entry = lockfile.skills[skillName];
|
|
@@ -1879,13 +2000,19 @@ async function updateSkill(cwd, skillName) {
|
|
|
1879
2000
|
const manifest = manifestResult.manifest;
|
|
1880
2001
|
const kept = records.filter(([tool]) => manifest.tools.includes(tool));
|
|
1881
2002
|
const skipped = records.filter(([tool]) => !manifest.tools.includes(tool)).map(([tool]) => tool);
|
|
2003
|
+
const statusline = new Map;
|
|
2004
|
+
for (const [tool, record] of kept) {
|
|
2005
|
+
statusline.set(tool, record.statusline === true || await holdsOwnStatusLine(cwd, tool, manifest, isGlobal));
|
|
2006
|
+
}
|
|
1882
2007
|
const removeResult = await removeSkill2(cwd, skillName, isGlobal, manifest);
|
|
1883
2008
|
if (!removeResult.ok) {
|
|
1884
2009
|
return { ok: false, error: removeResult.error };
|
|
1885
2010
|
}
|
|
1886
2011
|
const failures = [];
|
|
1887
2012
|
for (const [tool, record] of kept) {
|
|
1888
|
-
const installResult = await installSkill2(cwd, manifest, filesResult, [tool], record.activation, isGlobal
|
|
2013
|
+
const installResult = await installSkill2(cwd, manifest, filesResult, [tool], record.activation, isGlobal, {
|
|
2014
|
+
statusline: statusline.get(tool)
|
|
2015
|
+
});
|
|
1889
2016
|
if (!installResult.ok)
|
|
1890
2017
|
failures.push(installResult.error);
|
|
1891
2018
|
}
|
|
@@ -1908,7 +2035,7 @@ async function updateAllSkills(cwd) {
|
|
|
1908
2035
|
}
|
|
1909
2036
|
|
|
1910
2037
|
// src/cli/commands/bump.ts
|
|
1911
|
-
import { join as
|
|
2038
|
+
import { join as join14 } from "node:path";
|
|
1912
2039
|
|
|
1913
2040
|
// src/cli/semver.ts
|
|
1914
2041
|
function bumpVersion(current, level) {
|
|
@@ -1929,7 +2056,7 @@ function bumpVersion(current, level) {
|
|
|
1929
2056
|
|
|
1930
2057
|
// src/cli/commands/bump.ts
|
|
1931
2058
|
async function bumpSkill(repoRoot, skillName, level) {
|
|
1932
|
-
const manifestPath =
|
|
2059
|
+
const manifestPath = join14(repoRoot, "skills", skillName, "skill.json");
|
|
1933
2060
|
const file = Bun.file(manifestPath);
|
|
1934
2061
|
if (!await file.exists()) {
|
|
1935
2062
|
return { ok: false, error: `Skill '${skillName}' not found at skills/${skillName}/skill.json` };
|
|
@@ -2000,7 +2127,7 @@ async function bumpAllChanged(repoRoot, level, dryRun) {
|
|
|
2000
2127
|
if (skillVersionChanged(repoRoot, skillName, tag))
|
|
2001
2128
|
continue;
|
|
2002
2129
|
if (dryRun) {
|
|
2003
|
-
const manifestPath =
|
|
2130
|
+
const manifestPath = join14(repoRoot, "skills", skillName, "skill.json");
|
|
2004
2131
|
const file = Bun.file(manifestPath);
|
|
2005
2132
|
if (!await file.exists())
|
|
2006
2133
|
continue;
|
|
@@ -2057,7 +2184,7 @@ async function checkForUpdates(cwd) {
|
|
|
2057
2184
|
}
|
|
2058
2185
|
|
|
2059
2186
|
// src/cli/lockfile.ts
|
|
2060
|
-
import { join as
|
|
2187
|
+
import { join as join15 } from "node:path";
|
|
2061
2188
|
var LOCKFILE_NAME2 = ".agent-skills.lock";
|
|
2062
2189
|
function fromPreChangeEntry2(entry) {
|
|
2063
2190
|
const record = {
|
|
@@ -2071,7 +2198,7 @@ function fromPreChangeEntry2(entry) {
|
|
|
2071
2198
|
return { installedAt: entry.installedAt, tools };
|
|
2072
2199
|
}
|
|
2073
2200
|
async function readLockfile2(cwd) {
|
|
2074
|
-
const path =
|
|
2201
|
+
const path = join15(cwd, LOCKFILE_NAME2);
|
|
2075
2202
|
const file = Bun.file(path);
|
|
2076
2203
|
if (!await file.exists()) {
|
|
2077
2204
|
return { skills: {} };
|
|
@@ -3958,7 +4085,7 @@ async function pickActivation(skillName, modes) {
|
|
|
3958
4085
|
|
|
3959
4086
|
// src/cli/index.ts
|
|
3960
4087
|
import { mkdirSync as mkdirSync7 } from "fs";
|
|
3961
|
-
import { join as
|
|
4088
|
+
import { join as join16 } from "path";
|
|
3962
4089
|
import { homedir as homedir3 } from "os";
|
|
3963
4090
|
async function otherScopeSkillCount(currentDir) {
|
|
3964
4091
|
const home = homedir3();
|
|
@@ -3977,7 +4104,7 @@ function resolveInstallDir(flags) {
|
|
|
3977
4104
|
}
|
|
3978
4105
|
return process.cwd();
|
|
3979
4106
|
}
|
|
3980
|
-
var BOOLEAN_FLAGS = new Set(["global", "g", "all", "dry-run"]);
|
|
4107
|
+
var BOOLEAN_FLAGS = new Set(["global", "g", "all", "dry-run", "statusline", "no-statusline"]);
|
|
3981
4108
|
function parseArgs(argv) {
|
|
3982
4109
|
if (argv.length === 0)
|
|
3983
4110
|
return { command: "help", args: [], flags: {} };
|
|
@@ -4007,7 +4134,7 @@ function printHelp() {
|
|
|
4007
4134
|
@iceinvein/agent-skills \u2014 Install agent skills into AI coding tools
|
|
4008
4135
|
|
|
4009
4136
|
Usage:
|
|
4010
|
-
agent-skills install <skill> [<skill> ...] [--tool <tool>] [--activation <mode>] [-g] Install one or more skills
|
|
4137
|
+
agent-skills install <skill> [<skill> ...] [--tool <tool>] [--activation <mode>] [--statusline | --no-statusline] [-g] Install one or more skills
|
|
4011
4138
|
agent-skills install [--tool <tool>] [-g] No args: opens interactive picker
|
|
4012
4139
|
agent-skills browse [--tool <tool>] [-g] Alias for 'install' with picker
|
|
4013
4140
|
agent-skills remove <skill> [-g] Remove a skill
|
|
@@ -4023,6 +4150,8 @@ Flags:
|
|
|
4023
4150
|
-g, --global Install to home directory (available in all projects)
|
|
4024
4151
|
--dry-run With bump --all: check without writing (exit 1 if unbumped)
|
|
4025
4152
|
--activation <mode> Set activation mode for skills that support it (session or global)
|
|
4153
|
+
--statusline With a global activation: put the skill's status line in an empty statusLine slot
|
|
4154
|
+
--no-statusline Give back a statusLine slot the skill holds; later installs and updates leave it empty
|
|
4026
4155
|
`);
|
|
4027
4156
|
}
|
|
4028
4157
|
function printInstalled(result, skipped) {
|
|
@@ -4063,7 +4192,7 @@ async function resolveTargetTools(installDir, isGlobal, flags) {
|
|
|
4063
4192
|
for (const tool of picked) {
|
|
4064
4193
|
const dir = TOOL_DIRS[tool];
|
|
4065
4194
|
if (dir)
|
|
4066
|
-
mkdirSync7(
|
|
4195
|
+
mkdirSync7(join16(installDir, dir), { recursive: true });
|
|
4067
4196
|
}
|
|
4068
4197
|
return picked;
|
|
4069
4198
|
}
|
|
@@ -4095,7 +4224,9 @@ async function installOne(skillName, installDir, isGlobal, targetTools, flags) {
|
|
|
4095
4224
|
activation = manifest.activation.default;
|
|
4096
4225
|
}
|
|
4097
4226
|
}
|
|
4098
|
-
const result = await installSkill(installDir, manifest, filesResult, targetTools, activation, isGlobal
|
|
4227
|
+
const result = await installSkill(installDir, manifest, filesResult, targetTools, activation, isGlobal, {
|
|
4228
|
+
statusline: flags.statusline !== undefined ? true : flags["no-statusline"] !== undefined ? false : undefined
|
|
4229
|
+
});
|
|
4099
4230
|
if (!result.ok) {
|
|
4100
4231
|
console.error(`Error: ${result.error}`);
|
|
4101
4232
|
return false;
|
|
@@ -4110,6 +4241,10 @@ async function main() {
|
|
|
4110
4241
|
switch (command) {
|
|
4111
4242
|
case "install":
|
|
4112
4243
|
case "browse": {
|
|
4244
|
+
if (flags.statusline !== undefined && flags["no-statusline"] !== undefined) {
|
|
4245
|
+
console.error("Error: --statusline and --no-statusline cannot be given together");
|
|
4246
|
+
process.exit(1);
|
|
4247
|
+
}
|
|
4113
4248
|
const installDir = resolveInstallDir(flags);
|
|
4114
4249
|
const isGlobal = installDir === homedir3();
|
|
4115
4250
|
let names = args;
|
package/package.json
CHANGED
package/skills/index.json
CHANGED
|
@@ -225,9 +225,9 @@
|
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
"name": "magpie",
|
|
228
|
-
"description": "Interactive PR review pipeline. Runs five parallel specialist subagents (security, bugs, performance, code-smells, architecture) plus a once-per-PR checks pass that finds tests and controls able to pass without proving their purpose, drops findings whose quoted evidence is not in the code, dedupes, runs critic subagents that re-check each finding against the worktree and set its risk label, peer-reviews
|
|
228
|
+
"description": "Interactive PR review pipeline. Runs five parallel specialist subagents (security, bugs, performance, code-smells, architecture) plus a once-per-PR checks pass that finds tests and controls able to pass without proving their purpose, drops findings whose quoted evidence is not in the code, dedupes, runs critic subagents that re-check each finding against the worktree and set its risk label, peer-reviews through a configured provider (codex, claude or agy) with a subagent fallback when the provider is unavailable, and serves an interactive HTML report for selecting or dismissing findings to post via gh, recording the outcome per finding as labels. Bundles a Bun CLI put on PATH by the skill's postinstall step under a bunx install, or by the plugin's bin/ under a Claude Code plugin install. Use when the user asks to review a GitHub pull request. Local mode (setup --local) runs the same pipeline on the current branch's diff from its merge base, uncommitted and untracked work included, against the caller's live tree, with no server or posting, and hands the ranked findings back in the terminal for an implementing or orchestrating agent to address. Splits oversized diffs into budgeted shards and rebuilds the diff from the local clone when gh pr diff refuses it.",
|
|
229
229
|
"type": "prompt",
|
|
230
|
-
"version": "0.
|
|
230
|
+
"version": "0.19.0"
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
"name": "migrate",
|
|
@@ -293,9 +293,9 @@
|
|
|
293
293
|
},
|
|
294
294
|
{
|
|
295
295
|
"name": "sluice",
|
|
296
|
-
"description": "Routes work by change shape into four channels (bypass, fast, main, deep) and applies only the rules each channel needs, so a one-line fix does not pay the cost of a multi-subsystem build. Carries nine rules as one-liners in the router and the full treatment in references read only on friction. Deep runs read the repo before designing, map the spec's intent to its decisions, and check spec against intent and plan against spec with a fresh reader, with plan.sh validate enforcing that every decision is covered. Checks the finished plan with plan.sh validate rather than trusting it to memory, seeds the run state from it, keeps a deep run's task breakdown in .sluice/run.json so
|
|
296
|
+
"description": "Routes work by change shape into four channels (bypass, fast, main, deep) and applies only the rules each channel needs, so a one-line fix does not pay the cost of a multi-subsystem build. Carries nine rules as one-liners in the router and the full treatment in references read only on friction. Deep runs read the repo before designing, map the spec's intent to its decisions, and check spec against intent and plan against spec with a fresh reader, with plan.sh validate enforcing that every decision is covered. Checks the finished plan with plan.sh validate rather than trusting it to memory, seeds the run state from it, keeps a deep run's task breakdown in .sluice/run.json so an opt-in statusline segment, the harness task list where the session has one, one status command and a SessionStart hook can answer where the run is (the hook prints a live run at every session start, compaction included), lists every live deep run and routed fast or main session on the machine in one board.sh view (drawn once, watched, or as JSON), and closes each run with a ledger read out of the session transcript: elapsed, tools, tokens, and what each dispatched agent cost where the transcript recorded it. Two Stop hooks hold a handback: one refuses a tree that moved since its last recorded check, the other refuses a changed existing test not proven to fail on the session's starting code (or recorded with a reason). Runs on Claude Code, Codex and Antigravity; stands down where the superpowers pipeline governs the repo.",
|
|
297
297
|
"type": "prompt",
|
|
298
|
-
"version": "0.
|
|
298
|
+
"version": "0.32.0"
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
301
|
"name": "temporal-coupling-detector",
|
package/skills/magpie/README.md
CHANGED
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
# magpie
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Skill that runs a multi-stage PR review pipeline inside the user's agent conversation. It runs under Claude Code, Codex and Antigravity.
|
|
4
4
|
|
|
5
5
|
## What it does
|
|
6
6
|
|
|
7
|
-
Given a GitHub PR number, dispatches five specialist subagents in parallel (security, bugs, performance, code-smells, architecture), each quoting an evidence snippet for every anchored finding, plus one checks pass per PR that reviews the tests, harnesses and controls for ways they can pass without proving what they exist for. Dedupe drops findings whose snippet is not in the file and groups nearby findings from different domains as merge candidates. Critic subagents then re-check each surviving finding against the worktree, keep, drop or merge it, and set its risk label, from which the severity is derived. Peer review runs
|
|
7
|
+
Given a GitHub PR number, dispatches five specialist subagents in parallel (security, bugs, performance, code-smells, architecture), each quoting an evidence snippet for every anchored finding, plus one checks pass per PR that reviews the tests, harnesses and controls for ways they can pass without proving what they exist for. Dedupe drops findings whose snippet is not in the file and groups nearby findings from different domains as merge candidates. Critic subagents then re-check each surviving finding against the worktree, keep, drop or merge it, and set its risk label, from which the severity is derived. Peer review runs through the configured peer provider (`codex`, `claude` or `agy`), falling back to a second-opinion subagent when that provider is unavailable. The interactive HTML report puts the top recommended findings first, lets the user dismiss findings with a reason, and posts the ones they select via `gh`; cleanup records what was posted, dismissed or ignored in `labels.json`.
|
|
8
8
|
|
|
9
9
|
## Requirements
|
|
10
10
|
|
|
11
11
|
- `bun` on PATH (https://bun.sh)
|
|
12
12
|
- `gh` on PATH, authenticated (`gh auth status`)
|
|
13
13
|
- `git` on PATH
|
|
14
|
-
-
|
|
14
|
+
- the peer provider's binary on PATH, authenticated (optional; if absent the peer-review stage falls back to a second-opinion subagent). See [Peer review settings](#peer-review-settings) for which binary each preset needs.
|
|
15
15
|
|
|
16
16
|
## Install
|
|
17
17
|
|
|
18
18
|
```
|
|
19
|
-
bunx @iceinvein/agent-skills install magpie -g
|
|
19
|
+
bunx @iceinvein/agent-skills install magpie -g # Claude Code: ~/.claude/skills/magpie/
|
|
20
|
+
bunx @iceinvein/agent-skills install magpie --tool codex -g # Codex: ~/.agents/skills/magpie/
|
|
21
|
+
bunx @iceinvein/agent-skills install magpie --tool antigravity -g # Antigravity: ~/.gemini/config/skills/magpie/
|
|
20
22
|
```
|
|
21
23
|
|
|
24
|
+
Without `-g`, the skill lands in the current project instead: `.claude/skills/magpie/` for Claude Code, and `.agents/skills/magpie/` for both Codex and Antigravity.
|
|
25
|
+
|
|
22
26
|
As a Claude Code plugin, after `/plugin marketplace add iceinvein/agent-skills`:
|
|
23
27
|
|
|
24
28
|
```
|
|
25
29
|
/plugin install magpie@iceinvein-skills
|
|
26
30
|
```
|
|
27
31
|
|
|
28
|
-
This skill ships in two parts: the prompt (SKILL.md) and a companion Bun CLI (bin + scripts). The agent-skills installer writes both into
|
|
32
|
+
This skill ships in two parts: the prompt (SKILL.md) and a companion Bun CLI (bin + scripts). The agent-skills installer writes both into the host's skill directory (above) and then runs the bundled `install.sh` as a postinstall step, which symlinks `bin/magpie` onto your PATH (preferring `/usr/local/bin`, falling back to `~/.local/bin`). Set `MAGPIE_BIN_DIR` to link into that directory instead; it is created if missing, and install.sh fails rather than falling back when it cannot link there. Removing the skill with `agent-skills remove magpie -g` runs `uninstall.sh` first to undo the PATH symlink.
|
|
29
33
|
|
|
30
34
|
Under a Claude Code plugin install, the plugin's `bin/` puts `magpie` on your PATH, and `bin/magpie` installs its runtime dependencies on first run (Bun required). `install.sh` and `MAGPIE_BIN_DIR` apply only to the bunx install.
|
|
31
35
|
|
|
@@ -33,10 +37,24 @@ If you cloned this repo and want to run from source, you can also invoke `./inst
|
|
|
33
37
|
|
|
34
38
|
## Use
|
|
35
39
|
|
|
36
|
-
Inside Claude Code, ask: "Review PR 1234" (or paste a PR URL). The agent reads SKILL.md and walks the pipeline; the CLI runs as `magpie setup`, `magpie serve`, etc.
|
|
40
|
+
Inside Claude Code, Codex or Antigravity, ask: "Review PR 1234" (or paste a PR URL). The agent reads SKILL.md and walks the pipeline; the CLI runs as `magpie setup`, `magpie serve`, etc.
|
|
37
41
|
|
|
38
42
|
An implementing or orchestrating agent can also ask for a review of its own branch before a PR exists: local mode (`magpie setup <run-dir> --local [--base <ref>]`) reviews the merge base to working tree diff in place and hands the ranked findings back as terminal text via `magpie handoff`, with no server, report or posting. `/magpie` with no arguments runs local mode; pass a PR number or URL to review a PR.
|
|
39
43
|
|
|
44
|
+
### Peer review settings
|
|
45
|
+
|
|
46
|
+
Stage 7 sends the review to a second model through `magpie peer-run`. These environment variables pick it:
|
|
47
|
+
|
|
48
|
+
- `MAGPIE_PEER`: the provider preset, `codex` (default), `claude` or `agy`. `codex` runs `codex exec` and needs the `codex` binary; `claude` runs `claude -p` and needs the `claude` binary (Claude Code); `agy` runs `agy -p` and needs the `agy` binary (Antigravity). `MAGPIE_CODEX_BIN`, `MAGPIE_CLAUDE_BIN` and `MAGPIE_AGY_BIN` point a preset at a binary elsewhere than PATH.
|
|
49
|
+
- `MAGPIE_PEER_MODEL`: the model passed to the provider (`-m` for codex, `--model` for claude and agy). Unset, the provider's own default applies.
|
|
50
|
+
- `MAGPIE_PEER_TIMEOUT`: the provider's time limit in seconds (default 600).
|
|
51
|
+
|
|
52
|
+
An unknown `MAGPIE_PEER` or a non-positive `MAGPIE_PEER_TIMEOUT` fails setup. A missing provider binary only moves peer review to a subagent.
|
|
53
|
+
|
|
54
|
+
### Host sandbox
|
|
55
|
+
|
|
56
|
+
Whichever host runs it, its sandbox must allow network access for `gh` (and for the peer provider, which calls its own API), writes to `~/.magpie` (the run directories) and to the repository's `.git` (PR mode adds a worktree), and running the peer provider's binary. A Codex or Antigravity sandbox that blocks these makes setup or posting fail rather than degrade.
|
|
57
|
+
|
|
40
58
|
### Review panel
|
|
41
59
|
|
|
42
60
|
The [magpie-panel](../../mods/magpie-panel) mod shows a PR run's findings in a pane beside the chat, alongside the HTML report. With it installed, stage 8 opens the pane; without it nothing changes.
|
package/skills/magpie/skill.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magpie",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Interactive PR review pipeline. Runs five parallel specialist subagents (security, bugs, performance, code-smells, architecture) plus a once-per-PR checks pass that finds tests and controls able to pass without proving their purpose, drops findings whose quoted evidence is not in the code, dedupes, runs critic subagents that re-check each finding against the worktree and set its risk label, peer-reviews
|
|
3
|
+
"version": "0.19.0",
|
|
4
|
+
"description": "Interactive PR review pipeline. Runs five parallel specialist subagents (security, bugs, performance, code-smells, architecture) plus a once-per-PR checks pass that finds tests and controls able to pass without proving their purpose, drops findings whose quoted evidence is not in the code, dedupes, runs critic subagents that re-check each finding against the worktree and set its risk label, peer-reviews through a configured provider (codex, claude or agy) with a subagent fallback when the provider is unavailable, and serves an interactive HTML report for selecting or dismissing findings to post via gh, recording the outcome per finding as labels. Bundles a Bun CLI put on PATH by the skill's postinstall step under a bunx install, or by the plugin's bin/ under a Claude Code plugin install. Use when the user asks to review a GitHub pull request. Local mode (setup --local) runs the same pipeline on the current branch's diff from its merge base, uncommitted and untracked work included, against the caller's live tree, with no server or posting, and hands the ranked findings back in the terminal for an implementing or orchestrating agent to address. Splits oversized diffs into budgeted shards and rebuilds the diff from the local clone when gh pr diff refuses it.",
|
|
5
5
|
"author": "iceinvein",
|
|
6
6
|
"type": "prompt",
|
|
7
7
|
"tools": [
|
|
8
|
-
"claude"
|
|
8
|
+
"claude",
|
|
9
|
+
"codex",
|
|
10
|
+
"antigravity"
|
|
9
11
|
],
|
|
10
12
|
"files": {
|
|
11
13
|
"prompt": "SKILL.md"
|
|
@@ -34,6 +36,22 @@
|
|
|
34
36
|
"bundleRoot": ".claude/skills/magpie",
|
|
35
37
|
"postinstall": "install.sh",
|
|
36
38
|
"postremove": "uninstall.sh"
|
|
39
|
+
},
|
|
40
|
+
"codex": {
|
|
41
|
+
"prompt": ".agents/skills/magpie/SKILL.md",
|
|
42
|
+
"bundleRoot": ".agents/skills/magpie",
|
|
43
|
+
"postinstall": "install.sh",
|
|
44
|
+
"postremove": "uninstall.sh"
|
|
45
|
+
},
|
|
46
|
+
"antigravity": {
|
|
47
|
+
"prompt": ".agents/skills/magpie/SKILL.md",
|
|
48
|
+
"bundleRoot": ".agents/skills/magpie",
|
|
49
|
+
"postinstall": "install.sh",
|
|
50
|
+
"postremove": "uninstall.sh",
|
|
51
|
+
"global": {
|
|
52
|
+
"prompt": ".gemini/config/skills/magpie/SKILL.md",
|
|
53
|
+
"bundleRoot": ".gemini/config/skills/magpie"
|
|
54
|
+
}
|
|
37
55
|
}
|
|
38
56
|
}
|
|
39
57
|
}
|
package/skills/sluice/SKILL.md
CHANGED
|
@@ -163,7 +163,9 @@ approval is not one.
|
|
|
163
163
|
The run's state goes in `.sluice/run.json`, written a command at a time by
|
|
164
164
|
`scripts/status.sh`. That is what makes the breakdown readable from outside the
|
|
165
165
|
session running it: a statusline segment while it runs, `status.sh show` after a
|
|
166
|
-
compaction, and neither costing your partner a turn to ask.
|
|
166
|
+
compaction, and neither costing your partner a turn to ask. Where the session has
|
|
167
|
+
`TaskCreate` and `TaskUpdate`, the rows are mirrored into its task list as well, a view of
|
|
168
|
+
`run.json` rather than a second record. `references/status.md`
|
|
167
169
|
|
|
168
170
|
**Read `references/deep-channel.md` before you write the plan.** It carries the
|
|
169
171
|
plan format, the pre-flight questions, the run record, the dispatch rules and
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# sluice evals
|
|
2
2
|
|
|
3
|
-
Twenty-
|
|
3
|
+
Twenty-six cases for `claude plugin eval`. Eighteen pin the routing decision: which
|
|
4
4
|
channel the run names, and whether the behaviour that channel owes actually
|
|
5
|
-
happened.
|
|
5
|
+
happened. Eight pin what a deep run does after pre-flight, where the question is
|
|
6
6
|
no longer which channel but whether the run keeps going.
|
|
7
7
|
|
|
8
8
|
| Case | Signal under test | What it pins |
|
|
@@ -36,11 +36,12 @@ Execution, where the run is already past both stops:
|
|
|
36
36
|
| `deep-run-decides-a-non-blocking-choice` | A task leaves a choice open and says either is fine | Decided, written into the record, no task blocked, no decision list at the end |
|
|
37
37
|
| `deep-run-waits-for-a-running-agent` | Every task goes to an implementer agent | A `T2:` labelled dispatch; the handback comes after the last result |
|
|
38
38
|
| `deep-run-fans-out` | Three disjoint tasks under a worktree-per-implementer answer | Three dispatches in one message, then the flip; each task's files merged back into the run's own tree; also the baseline for a time-budget A/B |
|
|
39
|
+
| `deep-run-mirrors-the-task-list` | The same run, in a session with the task tools | One task-list entry per row; each remaining task completed in the list as its row reaches done |
|
|
39
40
|
| `deep-run-hunts-after-the-flip` | Every task done, the flip included | bug-hunter on the plan diff against the spec before the final review; the proven off-by-one fixed test-first; a Hunt section in the record |
|
|
40
41
|
|
|
41
42
|
## Running
|
|
42
43
|
|
|
43
|
-
Twenty-
|
|
44
|
+
Twenty-five cases scaffold a small Node repo and then change it, so they need the
|
|
44
45
|
scaffold flag and a tool grant. Pin the model, because the eval child does not
|
|
45
46
|
inherit it, and pin the judge, because `--model` does not reach it and the
|
|
46
47
|
`llm` graders otherwise run on Haiku. From the repo root:
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# A deep run stopped exactly where the two stops are already behind it: design
|
|
3
|
+
# signed off, plan validated, pre-flight answered, Task 1 landed. What is left
|
|
4
|
+
# is execution, which is the part that must not stop.
|
|
5
|
+
set -euo pipefail
|
|
6
|
+
|
|
7
|
+
mkdir -p src/cli tests docs/plans .sluice
|
|
8
|
+
|
|
9
|
+
cat > package.json <<'JSON'
|
|
10
|
+
{
|
|
11
|
+
"name": "shipit",
|
|
12
|
+
"version": "1.2.0",
|
|
13
|
+
"type": "module",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "node --test \"tests/*.test.js\""
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
JSON
|
|
19
|
+
|
|
20
|
+
# Task 1, already landed: the sink exists and nothing routes through it yet.
|
|
21
|
+
cat > src/cli/progress.js <<'JS'
|
|
22
|
+
export function createSink({ quiet }) {
|
|
23
|
+
return {
|
|
24
|
+
write(line) {
|
|
25
|
+
if (!quiet) {
|
|
26
|
+
console.log(line);
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
JS
|
|
32
|
+
|
|
33
|
+
cat > tests/progress.test.js <<'JS'
|
|
34
|
+
import assert from "node:assert/strict";
|
|
35
|
+
import { test } from "node:test";
|
|
36
|
+
import { createSink } from "../src/cli/progress.js";
|
|
37
|
+
|
|
38
|
+
test("a loud sink prints the line", () => {
|
|
39
|
+
const lines = [];
|
|
40
|
+
const sink = createSink({ quiet: false });
|
|
41
|
+
const restore = console.log;
|
|
42
|
+
console.log = (line) => lines.push(line);
|
|
43
|
+
try {
|
|
44
|
+
sink.write("-> build");
|
|
45
|
+
} finally {
|
|
46
|
+
console.log = restore;
|
|
47
|
+
}
|
|
48
|
+
assert.deepEqual(lines, ["-> build"]);
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
test("a quiet sink swallows the line", () => {
|
|
52
|
+
const lines = [];
|
|
53
|
+
const sink = createSink({ quiet: true });
|
|
54
|
+
const restore = console.log;
|
|
55
|
+
console.log = (line) => lines.push(line);
|
|
56
|
+
try {
|
|
57
|
+
sink.write("-> build");
|
|
58
|
+
} finally {
|
|
59
|
+
console.log = restore;
|
|
60
|
+
}
|
|
61
|
+
assert.deepEqual(lines, []);
|
|
62
|
+
});
|
|
63
|
+
JS
|
|
64
|
+
|
|
65
|
+
cat > src/cli/args.js <<'JS'
|
|
66
|
+
export function parseArgs(argv) {
|
|
67
|
+
return { dryRun: argv.includes("--dry-run") };
|
|
68
|
+
}
|
|
69
|
+
JS
|
|
70
|
+
|
|
71
|
+
cat > tests/args.test.js <<'JS'
|
|
72
|
+
import assert from "node:assert/strict";
|
|
73
|
+
import { test } from "node:test";
|
|
74
|
+
import { parseArgs } from "../src/cli/args.js";
|
|
75
|
+
|
|
76
|
+
test("dry run is read off the argv", () => {
|
|
77
|
+
assert.deepEqual(parseArgs(["--dry-run"]), { dryRun: true });
|
|
78
|
+
});
|
|
79
|
+
JS
|
|
80
|
+
|
|
81
|
+
cat > src/cli/deploy.js <<'JS'
|
|
82
|
+
const STEPS = ["build", "upload", "activate"];
|
|
83
|
+
|
|
84
|
+
export function deploy(args) {
|
|
85
|
+
const { dryRun } = args;
|
|
86
|
+
|
|
87
|
+
for (const step of STEPS) {
|
|
88
|
+
console.log(`-> ${step}`);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
console.log(dryRun ? "dry run: 3 steps skipped" : "deployed: 3 steps");
|
|
92
|
+
}
|
|
93
|
+
JS
|
|
94
|
+
|
|
95
|
+
cat > tests/deploy.test.js <<'JS'
|
|
96
|
+
import assert from "node:assert/strict";
|
|
97
|
+
import { test } from "node:test";
|
|
98
|
+
import { deploy } from "../src/cli/deploy.js";
|
|
99
|
+
|
|
100
|
+
function capture(run) {
|
|
101
|
+
const lines = [];
|
|
102
|
+
const restore = console.log;
|
|
103
|
+
console.log = (line) => lines.push(line);
|
|
104
|
+
try {
|
|
105
|
+
run();
|
|
106
|
+
} finally {
|
|
107
|
+
console.log = restore;
|
|
108
|
+
}
|
|
109
|
+
return lines;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
test("dry run skips the steps and says so", () => {
|
|
113
|
+
const lines = capture(() => deploy({ dryRun: true }));
|
|
114
|
+
assert.equal(lines.at(-1), "dry run: 3 steps skipped");
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
test("a full deploy reports every step", () => {
|
|
118
|
+
const lines = capture(() => deploy({ dryRun: false }));
|
|
119
|
+
assert.deepEqual(lines, ["-> build", "-> upload", "-> activate", "deployed: 3 steps"]);
|
|
120
|
+
});
|
|
121
|
+
JS
|
|
122
|
+
|
|
123
|
+
cat > docs/plans/2026-09-20-quiet-flag.md <<'MD'
|
|
124
|
+
# Plan: quiet-flag
|
|
125
|
+
|
|
126
|
+
## Goal
|
|
127
|
+
|
|
128
|
+
`deploy --quiet` suppresses the three per-step progress lines and leaves the
|
|
129
|
+
final summary line untouched. Every other deploy output is unchanged.
|
|
130
|
+
|
|
131
|
+
## Architecture
|
|
132
|
+
|
|
133
|
+
Progress lines go through a sink instead of `console.log`. The sink is built
|
|
134
|
+
from the parsed flags and handed to `deploy`, so `deploy` never asks whether it
|
|
135
|
+
is quiet. The summary line does not go through the sink.
|
|
136
|
+
|
|
137
|
+
## Ground Rules
|
|
138
|
+
|
|
139
|
+
- Commit message convention: `<type>(<scope>): <subject>`, subject lower case,
|
|
140
|
+
no trailing full stop, no attribution trailers and no tool footers.
|
|
141
|
+
- Test runner: `npm test`, which runs `node --test "tests/*.test.js"`.
|
|
142
|
+
- Node built-ins only. No dependency may be added to package.json.
|
|
143
|
+
- Every test asserts on captured output lines, never on internal state.
|
|
144
|
+
|
|
145
|
+
### Task 1: progress sink
|
|
146
|
+
|
|
147
|
+
**Contract:** Needs: none | Offers: `createSink({ quiet: boolean }) -> { write(line: string): void }`
|
|
148
|
+
**Touches:** src/cli/progress.js (new) | tests/progress.test.js (new)
|
|
149
|
+
|
|
150
|
+
- [x] Add a test asserting a sink built with `quiet: false` prints the line it is given -> the test fails because src/cli/progress.js does not exist
|
|
151
|
+
- [x] Add a test asserting a sink built with `quiet: true` prints nothing -> it fails for the same reason
|
|
152
|
+
- [x] Write `createSink` returning an object with a `write` method that prints unless `quiet` -> `npm test` green
|
|
153
|
+
|
|
154
|
+
### Task 2: quiet flag parsing
|
|
155
|
+
|
|
156
|
+
**Contract:** Needs: none | Offers: `parseArgs(argv: string[]) -> { dryRun: boolean, quiet: boolean }`
|
|
157
|
+
**Touches:** src/cli/args.js (edit) | tests/args.test.js (test)
|
|
158
|
+
|
|
159
|
+
- [ ] Add a test asserting `parseArgs(["--quiet"])` returns `{ dryRun: false, quiet: true }` -> the new test fails
|
|
160
|
+
- [ ] Add a test asserting `parseArgs([])` returns `{ dryRun: false, quiet: false }` -> it fails on the missing key
|
|
161
|
+
- [ ] Read `--quiet` off argv alongside `--dry-run`, and update the existing dry-run test to expect `{ dryRun: true, quiet: false }` now that the key exists -> `npm test` green
|
|
162
|
+
|
|
163
|
+
### Task 3: route progress through the sink
|
|
164
|
+
|
|
165
|
+
**Contract:** Needs: `createSink({ quiet: boolean }) -> { write(line: string): void }` | Offers: `deploy(args: { dryRun: boolean }, sink?: { write(line: string): void }) -> void`
|
|
166
|
+
**Touches:** src/cli/deploy.js (edit) | tests/deploy.test.js (test)
|
|
167
|
+
|
|
168
|
+
- [ ] Add a test passing a recording sink to `deploy` and asserting the three `-> <step>` lines arrive on the sink -> the new test fails because deploy takes no sink
|
|
169
|
+
- [ ] Give `deploy` an optional second parameter `sink`, defaulting to `createSink({ quiet: false })` so `deploy(args)` still prints, and send each `-> <step>` line to `sink.write` -> the new test passes
|
|
170
|
+
- [ ] Keep the summary line on `console.log` and keep both original deploy tests, which call `deploy(args)` with no sink, asserting the exact lines `dry run: 3 steps skipped` and `deployed: 3 steps` -> `npm test` green
|
|
171
|
+
|
|
172
|
+
### Task 4: turn quiet on
|
|
173
|
+
|
|
174
|
+
**Contract:** Needs: `parseArgs(argv: string[]) -> { dryRun: boolean, quiet: boolean }`, `createSink({ quiet: boolean }) -> { write(line: string): void }`, `deploy(args: { dryRun: boolean }, sink?: { write(line: string): void }) -> void` | Offers: `main(argv: string[]) -> void`
|
|
175
|
+
**Touches:** src/cli/main.js (new) | tests/main.test.js (test)
|
|
176
|
+
**Flips:** the three progress lines become suppressible; before this task `--quiet` parses and changes nothing
|
|
177
|
+
|
|
178
|
+
- [ ] Add a test asserting `main(["--quiet"])` prints only `deployed: 3 steps` -> it fails because src/cli/main.js does not exist
|
|
179
|
+
- [ ] Add a test asserting `main([])` prints the three step lines and then `deployed: 3 steps` -> it fails for the same reason
|
|
180
|
+
- [ ] Write `main` to call `parseArgs`, build the sink from `quiet`, and call `deploy` with both -> `npm test` green
|
|
181
|
+
MD
|
|
182
|
+
|
|
183
|
+
cat > docs/plans/2026-09-20-quiet-flag-record.md <<'MD'
|
|
184
|
+
# Run record: quiet-flag
|
|
185
|
+
|
|
186
|
+
## Pre-flight
|
|
187
|
+
|
|
188
|
+
- Review: tier 3 only. Task 4 is the flip and is the one task that gets a reviewer.
|
|
189
|
+
- Effort: this session's effort for every task. None of the three remaining tasks was marked mechanical.
|
|
190
|
+
- Workspace: shared tree. Tasks run serially, so no worktree was cut.
|
|
191
|
+
|
|
192
|
+
## Log
|
|
193
|
+
|
|
194
|
+
- Task 1, progress sink: landed. `createSink` written with both tests green.
|
|
195
|
+
Inert by design, nothing routes through it yet.
|
|
196
|
+
MD
|
|
197
|
+
|
|
198
|
+
cat > .sluice/run.json <<'JSON'
|
|
199
|
+
{
|
|
200
|
+
"schema": 1,
|
|
201
|
+
"topic": "quiet-flag",
|
|
202
|
+
"channel": "deep",
|
|
203
|
+
"started": "2026-09-23T06:14:07Z",
|
|
204
|
+
"plan": "docs/plans/2026-09-20-quiet-flag.md",
|
|
205
|
+
"record": "docs/plans/2026-09-20-quiet-flag-record.md",
|
|
206
|
+
"tasks": [
|
|
207
|
+
{
|
|
208
|
+
"id": 1,
|
|
209
|
+
"status": "done",
|
|
210
|
+
"name": "progress sink",
|
|
211
|
+
"tier": 2,
|
|
212
|
+
"offers": [
|
|
213
|
+
"boolean",
|
|
214
|
+
"createSink",
|
|
215
|
+
"line",
|
|
216
|
+
"quiet",
|
|
217
|
+
"string",
|
|
218
|
+
"void",
|
|
219
|
+
"write"
|
|
220
|
+
],
|
|
221
|
+
"touches": [
|
|
222
|
+
"src/cli/progress.js",
|
|
223
|
+
"tests/progress.test.js"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"id": 2,
|
|
228
|
+
"status": "todo",
|
|
229
|
+
"name": "quiet flag parsing",
|
|
230
|
+
"tier": 1,
|
|
231
|
+
"offers": [
|
|
232
|
+
"argv",
|
|
233
|
+
"boolean",
|
|
234
|
+
"dryRun",
|
|
235
|
+
"parseArgs",
|
|
236
|
+
"quiet",
|
|
237
|
+
"string"
|
|
238
|
+
],
|
|
239
|
+
"touches": [
|
|
240
|
+
"src/cli/args.js",
|
|
241
|
+
"tests/args.test.js"
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"id": 3,
|
|
246
|
+
"status": "todo",
|
|
247
|
+
"name": "route progress through the sink",
|
|
248
|
+
"tier": 1,
|
|
249
|
+
"needs": [
|
|
250
|
+
"createSink",
|
|
251
|
+
"write"
|
|
252
|
+
],
|
|
253
|
+
"offers": [
|
|
254
|
+
"args",
|
|
255
|
+
"boolean",
|
|
256
|
+
"deploy",
|
|
257
|
+
"dryRun",
|
|
258
|
+
"line",
|
|
259
|
+
"sink",
|
|
260
|
+
"string",
|
|
261
|
+
"void",
|
|
262
|
+
"write"
|
|
263
|
+
],
|
|
264
|
+
"touches": [
|
|
265
|
+
"src/cli/deploy.js",
|
|
266
|
+
"tests/deploy.test.js"
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"id": 4,
|
|
271
|
+
"status": "todo",
|
|
272
|
+
"name": "turn quiet on",
|
|
273
|
+
"tier": 3,
|
|
274
|
+
"flips": true,
|
|
275
|
+
"needs": [
|
|
276
|
+
"createSink",
|
|
277
|
+
"deploy",
|
|
278
|
+
"parseArgs",
|
|
279
|
+
"write"
|
|
280
|
+
],
|
|
281
|
+
"offers": [
|
|
282
|
+
"argv",
|
|
283
|
+
"main",
|
|
284
|
+
"string",
|
|
285
|
+
"void"
|
|
286
|
+
],
|
|
287
|
+
"touches": [
|
|
288
|
+
"src/cli/main.js",
|
|
289
|
+
"tests/main.test.js"
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
"updated": "2026-09-23T06:14:07Z",
|
|
294
|
+
"preflight": {
|
|
295
|
+
"review": "tier3",
|
|
296
|
+
"effort": "0 of 3 low",
|
|
297
|
+
"workspace": "shared"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
JSON
|
|
301
|
+
|
|
302
|
+
git init --quiet
|
|
303
|
+
git add -A
|
|
304
|
+
git -c user.email=fixture@example.com -c user.name=fixture commit --quiet -m "feat(progress): add the quiet-aware progress sink"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deep-run-mirrors-the-task-list
|
|
3
|
+
description: A deep run past pre-flight, in a session that has the task tools, mirrors its run.json rows into the harness task list and completes each task there as the row reaches done.
|
|
4
|
+
tags: [deep, execution, scaffold, write]
|
|
5
|
+
max_turns: 80
|
|
6
|
+
timeout_seconds: 2400
|
|
7
|
+
# Naming the task tools here is also what offers them: Claude Code withholds
|
|
8
|
+
# them on current models unless the session opts in.
|
|
9
|
+
allowed_tools: [Read, Glob, Grep, Skill, Write, Edit, Bash, TaskCreate, TaskUpdate, TaskList, TaskGet]
|
|
10
|
+
expected_outcome: One task-list entry per run.json row, each remaining task marked completed in the list as its row reaches done, and every row done in run.json.
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
Plan's signed off and pre-flight's answered, it's all in `.sluice/run.json`. Go.
|
|
@@ -382,6 +382,14 @@
|
|
|
382
382
|
"cases": [
|
|
383
383
|
"deep-run-waits-for-a-running-agent"
|
|
384
384
|
]
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"id": "deep-mirrors-rows-into-the-task-list",
|
|
388
|
+
"states": "references/deep-channel.md: The run record",
|
|
389
|
+
"origin": "README.md",
|
|
390
|
+
"cases": [
|
|
391
|
+
"deep-run-mirrors-the-task-list"
|
|
392
|
+
]
|
|
385
393
|
}
|
|
386
394
|
],
|
|
387
395
|
"sandboxSensitive": [
|
|
@@ -390,6 +398,7 @@
|
|
|
390
398
|
"deep-run-fans-out",
|
|
391
399
|
"deep-run-finishes-every-task",
|
|
392
400
|
"deep-run-hunts-after-the-flip",
|
|
401
|
+
"deep-run-mirrors-the-task-list",
|
|
393
402
|
"deep-run-survives-a-milestone",
|
|
394
403
|
"deep-run-waits-for-a-running-agent",
|
|
395
404
|
"fast-leaves-an-unrelated-red-test-alone",
|
|
@@ -127,6 +127,23 @@ review mark or a ratified effort already recorded is left alone and a tier is on
|
|
|
127
127
|
ever raised, so resuming after a compaction cannot rewind the run, and an
|
|
128
128
|
`active` row survives it whether or not its agent did.
|
|
129
129
|
|
|
130
|
+
Where the session has `TaskCreate` and `TaskUpdate`, mirror the rows into the
|
|
131
|
+
harness task list, which is the progress your partner sees in the session
|
|
132
|
+
without a statusline or a question. One `TaskCreate` per row right after the
|
|
133
|
+
import, and again for every row when a session picks up a run its own list has
|
|
134
|
+
never seen (a new session or a resume starts with an empty list), each named
|
|
135
|
+
`T<id>: <name>` and created in the status the row already holds. Then a
|
|
136
|
+
`TaskUpdate` in the same message as each flip: `active` and `review` are in progress, `done` is completed, `todo` is
|
|
137
|
+
pending, and `blocked` stays in progress with the reason put in its
|
|
138
|
+
description. The list is a view of `run.json`, not a second record: on any
|
|
139
|
+
disagreement `run.json` is right and the list is corrected to it, and nothing
|
|
140
|
+
outside this session can read the list, which is why the board, the hooks and
|
|
141
|
+
`show` never look at it. Where the tools are absent, skip this without
|
|
142
|
+
remark: Claude Code offers them on current models only with
|
|
143
|
+
`CLAUDE_CODE_ENABLE_TODO_TOOLS=1` set before the session starts, which installing
|
|
144
|
+
this skill with the bunx CLI under global activation (the default) sets unless
|
|
145
|
+
the key already has a value.
|
|
146
|
+
|
|
130
147
|
The record is the other file, and it holds what a status cannot: the reason
|
|
131
148
|
review went the way it did, the reason a task was downshifted, the reason the
|
|
132
149
|
workspace answer went that way, any finding belonging to a task other than the
|
|
@@ -462,10 +462,15 @@ case. `%s` rather than `%b`: the render already carries real escape bytes, and
|
|
|
462
462
|
2/9 done · !T6 model tiers rather than model names +1 · ⟲ 1 unreviewed
|
|
463
463
|
```
|
|
464
464
|
|
|
465
|
-
On a machine with no status line at all there is nothing to paste into, so
|
|
466
|
-
install claims the empty `statusLine` slot and points it at
|
|
465
|
+
On a machine with no status line at all there is nothing to paste into, so an
|
|
466
|
+
install given `--statusline` claims the empty `statusLine` slot and points it at
|
|
467
467
|
`scripts/statusline-command.sh`, a complete command that reads the harness JSON
|
|
468
|
-
on stdin and draws the run and nothing else.
|
|
468
|
+
on stdin and draws the run and nothing else. Without the flag the slot is never
|
|
469
|
+
touched: the bar is the one setting everyone sees on every keystroke, so it is
|
|
470
|
+
asked for rather than assumed. The choice is kept in the lockfile, so an update
|
|
471
|
+
re-wires it unasked, and a slot an install claimed before the flag existed counts
|
|
472
|
+
as asked for. An install given `--no-statusline` gives the slot back and
|
|
473
|
+
clears the choice, so later updates leave it empty. A slot already holding someone
|
|
469
474
|
else's command is never touched, on install or on removal, and the one the
|
|
470
475
|
install claimed is given back when the skill is removed, including on the
|
|
471
476
|
removal path that has no manifest to read.
|
|
@@ -24,9 +24,9 @@ RENDER="$BUNDLE/scripts/statusline.sh"
|
|
|
24
24
|
command -v jq >/dev/null 2>&1 || exit 0
|
|
25
25
|
|
|
26
26
|
# Nothing is said to someone with no statusline configured. Either the install
|
|
27
|
-
# claimed the empty slot, in which case the branch
|
|
28
|
-
#
|
|
29
|
-
#
|
|
27
|
+
# was given --statusline and claimed the empty slot, in which case the branch
|
|
28
|
+
# below reports it, or nobody asked for one, and an install that repeated the
|
|
29
|
+
# offer on every update would be the notice nobody can switch off.
|
|
30
30
|
CONFIGURED="$(jq -r '.statusLine.command // empty' "$SETTINGS" 2>/dev/null || true)"
|
|
31
31
|
[ -n "$CONFIGURED" ] || exit 0
|
|
32
32
|
|
package/skills/sluice/skill.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sluice",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Routes work by change shape into four channels (bypass, fast, main, deep) and applies only the rules each channel needs, so a one-line fix does not pay the cost of a multi-subsystem build. Carries nine rules as one-liners in the router and the full treatment in references read only on friction. Deep runs read the repo before designing, map the spec's intent to its decisions, and check spec against intent and plan against spec with a fresh reader, with plan.sh validate enforcing that every decision is covered. Checks the finished plan with plan.sh validate rather than trusting it to memory, seeds the run state from it, keeps a deep run's task breakdown in .sluice/run.json so
|
|
3
|
+
"version": "0.32.0",
|
|
4
|
+
"description": "Routes work by change shape into four channels (bypass, fast, main, deep) and applies only the rules each channel needs, so a one-line fix does not pay the cost of a multi-subsystem build. Carries nine rules as one-liners in the router and the full treatment in references read only on friction. Deep runs read the repo before designing, map the spec's intent to its decisions, and check spec against intent and plan against spec with a fresh reader, with plan.sh validate enforcing that every decision is covered. Checks the finished plan with plan.sh validate rather than trusting it to memory, seeds the run state from it, keeps a deep run's task breakdown in .sluice/run.json so an opt-in statusline segment, the harness task list where the session has one, one status command and a SessionStart hook can answer where the run is (the hook prints a live run at every session start, compaction included), lists every live deep run and routed fast or main session on the machine in one board.sh view (drawn once, watched, or as JSON), and closes each run with a ledger read out of the session transcript: elapsed, tools, tokens, and what each dispatched agent cost where the transcript recorded it. Two Stop hooks hold a handback: one refuses a tree that moved since its last recorded check, the other refuses a changed existing test not proven to fail on the session's starting code (or recorded with a reason). Runs on Claude Code, Codex and Antigravity; stands down where the superpowers pipeline governs the repo.",
|
|
5
5
|
"author": "iceinvein",
|
|
6
6
|
"type": "prompt",
|
|
7
7
|
"tools": [
|
|
8
|
-
"claude"
|
|
8
|
+
"claude",
|
|
9
|
+
"codex",
|
|
10
|
+
"antigravity"
|
|
9
11
|
],
|
|
10
12
|
"files": {
|
|
11
13
|
"prompt": "SKILL.md",
|
|
@@ -27,6 +29,20 @@
|
|
|
27
29
|
},
|
|
28
30
|
"bundleRoot": ".claude/skills/sluice",
|
|
29
31
|
"postinstall": "scripts/postinstall.sh"
|
|
32
|
+
},
|
|
33
|
+
"codex": {
|
|
34
|
+
"prompt": ".agents/skills/sluice/SKILL.md",
|
|
35
|
+
"bundleRoot": ".agents/skills/sluice",
|
|
36
|
+
"postinstall": "scripts/postinstall.sh"
|
|
37
|
+
},
|
|
38
|
+
"antigravity": {
|
|
39
|
+
"prompt": ".agents/skills/sluice/SKILL.md",
|
|
40
|
+
"bundleRoot": ".agents/skills/sluice",
|
|
41
|
+
"postinstall": "scripts/postinstall.sh",
|
|
42
|
+
"global": {
|
|
43
|
+
"prompt": ".gemini/config/skills/sluice/SKILL.md",
|
|
44
|
+
"bundleRoot": ".gemini/config/skills/sluice"
|
|
45
|
+
}
|
|
30
46
|
}
|
|
31
47
|
},
|
|
32
48
|
"activation": {
|
|
@@ -38,6 +54,14 @@
|
|
|
38
54
|
"claudeHookDirective": "Before acting on a request that changes code, pick a sluice channel and state which one.",
|
|
39
55
|
"claudeHookScript": "scripts/session-start.sh",
|
|
40
56
|
"claudeStopScript": "scripts/stop-guard.sh",
|
|
41
|
-
"claudeStatuslineScript": "scripts/statusline-command.sh"
|
|
57
|
+
"claudeStatuslineScript": "scripts/statusline-command.sh",
|
|
58
|
+
"hooks": {
|
|
59
|
+
"sessionStart": "scripts/session-start.sh",
|
|
60
|
+
"stop": "scripts/stop-guard.sh",
|
|
61
|
+
"statusline": "scripts/statusline-command.sh"
|
|
62
|
+
},
|
|
63
|
+
"claudeEnv": {
|
|
64
|
+
"CLAUDE_CODE_ENABLE_TODO_TOOLS": "1"
|
|
65
|
+
}
|
|
42
66
|
}
|
|
43
67
|
}
|