@skathio/somi 3.1.1 → 4.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/.claude/settings.json +13 -0
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/.copilot-extension/extension.json +1 -1
- package/.copilot-extension/marketplace.json +2 -2
- package/README.md +28 -23
- package/VERSION +1 -1
- package/agents/{architecture-reviewer.md → somi-architecture-reviewer.md} +10 -11
- package/agents/{atlas.md → somi-atlas.md} +3 -5
- package/agents/{coder.md → somi-coder.md} +26 -23
- package/agents/{designer.md → somi-designer.md} +9 -11
- package/agents/{discovery-analyst.md → somi-discovery-analyst.md} +7 -9
- package/agents/{impact.md → somi-impact.md} +6 -8
- package/agents/{incident.md → somi-incident.md} +2 -4
- package/agents/{plan-reviewer.md → somi-plan-reviewer.md} +9 -11
- package/agents/{planner.md → somi-planner.md} +16 -24
- package/agents/{pr.md → somi-pr.md} +2 -4
- package/agents/{refactor-designer.md → somi-refactor-designer.md} +14 -15
- package/agents/{refactorer.md → somi-refactorer.md} +11 -12
- package/agents/{reviewer.md → somi-reviewer.md} +8 -7
- package/agents/{sdlc-reviewer.md → somi-sdlc-reviewer.md} +8 -10
- package/agents/{security-reviewer.md → somi-security-reviewer.md} +8 -8
- package/agents/{test-strategist.md → somi-test-strategist.md} +4 -6
- package/agents/somi.md +25 -12
- package/commands/adopt.md +9 -10
- package/commands/architecture-review.md +4 -5
- package/commands/atlas.md +3 -3
- package/commands/code-loop.md +38 -14
- package/commands/code-parallel.md +4 -4
- package/commands/code.md +24 -15
- package/commands/debug.md +8 -9
- package/commands/design.md +14 -15
- package/commands/discover.md +11 -12
- package/commands/impact.md +2 -2
- package/commands/incident.md +3 -4
- package/commands/plan-loop.md +16 -12
- package/commands/plan.md +15 -16
- package/commands/pr.md +2 -2
- package/commands/refactor-design.md +10 -11
- package/commands/refactor.md +7 -8
- package/commands/release-readiness.md +6 -7
- package/commands/review-panel.md +24 -23
- package/commands/review.md +14 -14
- package/commands/security-review.md +8 -7
- package/commands/ship-loop.md +107 -28
- package/commands/ship.md +6 -6
- package/commands/somi-config.md +131 -0
- package/commands/test-strategy.md +3 -4
- package/commands/upgrade.md +4 -5
- package/examples/code-review-example.md +1 -1
- package/examples/discovery-example.md +1 -1
- package/examples/feature-plan-example.md +2 -2
- package/hooks/hooks.json +14 -1
- package/hooks/lib/common.mjs +64 -1
- package/hooks/post-tool/audit-log.mjs +3 -2
- package/hooks/pre-tool/block-secret-writes.mjs +12 -11
- package/hooks/pre-tool/guard-cost-lowering.mjs +177 -0
- package/hooks/pre-tool/guard-protected-paths.mjs +13 -3
- package/hooks/session-start/detect-repo-instructions.mjs +27 -2
- package/hooks/session-start/ensure-default-config.mjs +121 -0
- package/package.json +1 -1
- package/rules/00-priorities.md +1 -1
- package/rules/30-security-owasp.md +1 -1
- package/rules/50-collaboration.md +9 -6
- package/rules/CLAUDE.md +11 -10
- package/scripts/lib/agent-info.mjs +85 -0
- package/scripts/lib/agent-registry.mjs +92 -0
- package/scripts/lib/cost-ceiling.mjs +175 -171
- package/scripts/lib/cost-config-edit.mjs +102 -0
- package/scripts/lib/cost-config.mjs +64 -0
- package/scripts/lib/cost-defaults.mjs +51 -0
- package/scripts/lib/cost-lowering.mjs +89 -0
- package/scripts/lib/cost-model.mjs +37 -22
- package/scripts/lib/dispatch-resolver.mjs +59 -50
- package/scripts/lib/loop-diff.mjs +96 -0
- package/scripts/lib/loop-dispatch.mjs +19 -0
- package/scripts/lib/loop-review.mjs +52 -0
- package/scripts/lib/run-budget.mjs +28 -0
- package/scripts/lib/size-tier.mjs +184 -0
- package/scripts/lib/tier-record.mjs +82 -0
- package/scripts/size-budget-overrides.json +7 -15
- package/scripts/somi-config.mjs +358 -0
- package/scripts/somi-dispatch.mjs +1 -1
- package/scripts/somi-loop.mjs +71 -96
- package/scripts/somi-mcp.mjs +135 -14
- package/scripts/somi-tier.mjs +393 -0
- package/scripts/validate.sh +37 -215
- package/skills/api-design/SKILL.md +1 -1
- package/skills/clean-code/SKILL.md +1 -1
- package/skills/market-research/SKILL.md +2 -2
- package/skills/owasp-defense/SKILL.md +2 -2
- package/skills/plan-review/SKILL.md +5 -1
- package/skills/reasoning-craft/SKILL.md +1 -1
- package/skills/requirements-engineering/SKILL.md +3 -3
- package/skills/solid-principles/SKILL.md +1 -1
- package/skills/somi-dispatch/SKILL.md +104 -109
- package/skills/somi-routing/SKILL.md +88 -1
- package/skills/testing-playbook/SKILL.md +2 -2
- package/skills/threat-modeling/SKILL.md +3 -3
- package/templates/BRIEF.md.tmpl +2 -2
- package/templates/DESIGN.md.tmpl +1 -1
- package/templates/DOD.md.tmpl +2 -2
- package/templates/PHASE.md.tmpl +2 -2
- package/templates/RCA.md.tmpl +1 -1
- package/templates/REVIEW.md.tmpl +3 -2
- package/templates/SDD.md.tmpl +1 -1
- package/templates/SPEC.md.tmpl +1 -1
- package/templates/TDD.md.tmpl +1 -1
- package/tests/hooks/cases/block-secret-writes.json +130 -17
- package/tests/hooks/cases/detect-repo-instructions.json +22 -1
- package/tests/hooks/cases/guard-protected-paths.json +175 -25
- package/tests/scripts/agent-model-frontmatter.sh +38 -0
- package/tests/scripts/agent-names.sh +77 -0
- package/tests/scripts/check-frontmatter.sh +1 -1
- package/tests/scripts/checkpoint-gate.sh +44 -3
- package/tests/scripts/convergence-runner.sh +10 -6
- package/tests/scripts/cost-ceiling.sh +127 -215
- package/tests/scripts/cost-defaults.sh +128 -0
- package/tests/scripts/cost-hardcap.sh +329 -0
- package/tests/scripts/cost-lowering.sh +261 -0
- package/tests/scripts/cost-model.sh +18 -14
- package/tests/scripts/dispatch-guard.sh +7 -7
- package/tests/scripts/dispatch-line-gate.sh +61 -0
- package/tests/scripts/dispatch-reference-gate.sh +13 -13
- package/tests/scripts/ensure-default-config.sh +162 -0
- package/tests/scripts/eval-runner.sh +9 -9
- package/tests/scripts/evals-packaging.sh +127 -20
- package/tests/scripts/fixtures/size-tier-cases.json +87 -0
- package/tests/scripts/goldens/loop-state-done.json +1 -1
- package/tests/scripts/goldens/somi-loop.json +3 -3
- package/tests/scripts/lib/agent-registry-tests.mjs +95 -0
- package/tests/scripts/lib/brief-only-guard.mjs +27 -0
- package/tests/scripts/lib/checkpoint-gate.mjs +40 -3
- package/tests/scripts/lib/dispatch-reference-gate.mjs +5 -5
- package/tests/scripts/lib/retirement-gate.mjs +7 -2
- package/tests/scripts/lib/ship-loop-sizing-guard.mjs +52 -0
- package/tests/scripts/lib/size-tier-drift.mjs +74 -0
- package/tests/scripts/lib/somi-mcp-config-tests.mjs +92 -0
- package/tests/scripts/lib/somi-mcp-tests.mjs +66 -28
- package/tests/scripts/lib/somi-mcp-tier-tests.mjs +64 -0
- package/tests/scripts/retirement-gate.sh +19 -0
- package/tests/scripts/review-panel-seats.sh +2 -2
- package/tests/scripts/run.sh +95 -0
- package/tests/scripts/size-tier.sh +562 -0
- package/tests/scripts/somi-agent-dispatch-contract.sh +20 -11
- package/tests/scripts/somi-config.sh +281 -0
- package/tests/scripts/somi-dispatch.sh +150 -98
- package/tests/scripts/somi-mcp.sh +2 -0
package/.claude/settings.json
CHANGED
|
@@ -52,6 +52,10 @@
|
|
|
52
52
|
{
|
|
53
53
|
"type": "command",
|
|
54
54
|
"command": "node ${SOMI_VENDOR_ROOT}/hooks/session-start/detect-repo-instructions.mjs"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"type": "command",
|
|
58
|
+
"command": "node ${SOMI_VENDOR_ROOT}/hooks/session-start/ensure-default-config.mjs"
|
|
55
59
|
}
|
|
56
60
|
]
|
|
57
61
|
}
|
|
@@ -70,6 +74,15 @@
|
|
|
70
74
|
}
|
|
71
75
|
]
|
|
72
76
|
},
|
|
77
|
+
{
|
|
78
|
+
"matcher": "Write|Edit|MultiEdit|mcp__.*somi_config|mcp__.*somi_resolve",
|
|
79
|
+
"hooks": [
|
|
80
|
+
{
|
|
81
|
+
"type": "command",
|
|
82
|
+
"command": "node ${SOMI_VENDOR_ROOT}/hooks/pre-tool/guard-cost-lowering.mjs"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
73
86
|
{
|
|
74
87
|
"matcher": "Write|Edit",
|
|
75
88
|
"hooks": [
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"source": "url",
|
|
13
13
|
"url": "https://github.com/skathio/somi.git"
|
|
14
14
|
},
|
|
15
|
-
"description": "Multi-agent engineering workflow: discover/design → plan → code → review.
|
|
16
|
-
"version": "
|
|
15
|
+
"description": "Multi-agent engineering workflow: discover/design → plan → code → review. Each agent has a default cost tier and a per-session ceiling caps it; SOLID, OWASP and clean-code guardrails.",
|
|
16
|
+
"version": "4.0.0",
|
|
17
17
|
"tags": ["workflow", "agents", "review", "security"],
|
|
18
18
|
"homepage": "https://github.com/skathio/somi"
|
|
19
19
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "somi",
|
|
3
3
|
"displayName": "SoMi",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"description": "Multi-agent engineering workflow system: plan, code, review — with SOLID/OWASP guardrails, deterministic hooks, and a global ruleset.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"workflow",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
{
|
|
11
11
|
"name": "somi",
|
|
12
12
|
"source": "github:skathio/somi",
|
|
13
|
-
"description": "Multi-agent engineering workflow: discover/design → plan → code → review.
|
|
14
|
-
"version": "
|
|
13
|
+
"description": "Multi-agent engineering workflow: discover/design → plan → code → review. Each agent has a default cost tier and a per-session ceiling caps it; SOLID, OWASP and clean-code guardrails.",
|
|
14
|
+
"version": "4.0.0",
|
|
15
15
|
"tags": ["workflow", "agents", "review", "security"],
|
|
16
16
|
"homepage": "https://github.com/skathio/somi"
|
|
17
17
|
}
|
package/README.md
CHANGED
|
@@ -27,25 +27,25 @@ It is designed to be:
|
|
|
27
27
|
|
|
28
28
|
| Command | Agent cost | Agent | Purpose |
|
|
29
29
|
|---------------|--------|---------------------|------------------------------------------------------------------------------------------|
|
|
30
|
-
| `/discover` | high | `discovery-analyst` | Research the competition, then author the requirements & design foundation (BRD/SRS/FRD/SDD/TDD) + a `brief.md` for a new product |
|
|
31
|
-
| `/design` | high | `designer` | Settle a brownfield feature's architecture against the codebase; compile the `brief.md` the cheap tier executes against |
|
|
32
|
-
| `/plan` | medium | `planner` | Sequence the design (brief) into phases, risks, slices, DoD, test & rollout strategy |
|
|
33
|
-
| `/code` | medium | `coder` | Execute against an approved plan + brief with senior-level design judgment |
|
|
34
|
-
| `/debug` | medium | `coder` | Reproduce first, isolate under a bounded hypothesis budget, fix under `/code-loop` (a `cost: high` hatch is available if isolation escalates), keep the repro test as the regression guard; writes a one-page `rca.md` |
|
|
35
|
-
| `/review` |
|
|
36
|
-
| `/ship` | per agent | planner+coder+reviewer | Full plan → code → review pipeline (optionally preceded by a `
|
|
37
|
-
|
|
38
|
-
**Cost tiers in practice.**
|
|
39
|
-
|
|
30
|
+
| `/discover` | high | `somi-discovery-analyst` | Research the competition, then author the requirements & design foundation (BRD/SRS/FRD/SDD/TDD) + a `brief.md` for a new product |
|
|
31
|
+
| `/design` | high | `somi-designer` | Settle a brownfield feature's architecture against the codebase; compile the `brief.md` the cheap tier executes against |
|
|
32
|
+
| `/plan` | medium | `somi-planner` | Sequence the design (brief) into phases, risks, slices, DoD, test & rollout strategy |
|
|
33
|
+
| `/code` | medium | `somi-coder` | Execute against an approved plan + brief with senior-level design judgment |
|
|
34
|
+
| `/debug` | medium | `somi-coder` | Reproduce first, isolate under a bounded hypothesis budget, fix under `/code-loop` (a `cost: high` hatch is available if isolation escalates), keep the repro test as the regression guard; writes a one-page `rca.md` |
|
|
35
|
+
| `/review` | high | `somi-reviewer` | Strict, skeptical, **fresh-context** review of code / plans / designs with severity-graded findings |
|
|
36
|
+
| `/ship` | per agent | planner+coder+reviewer | Full plan → code → review pipeline (optionally preceded by a `high`-tier front-load), gated at every stage |
|
|
37
|
+
|
|
38
|
+
**Cost tiers in practice.** Default tiers belong to **agents**, not commands —
|
|
39
|
+
a tier sizes an agent instance being spawned, and a command has none, running on
|
|
40
40
|
whatever model the session is already using — so the tier above is the tier of the agent that
|
|
41
|
-
command Tasks. The **`cost: high`** tier front-loads expensive reasoning — research, design,
|
|
41
|
+
command Tasks (the table is `scripts/lib/cost-defaults.mjs`; `cost.agents` overrides it). The **`cost: high`** tier front-loads expensive reasoning — research, design,
|
|
42
42
|
decisions, complexity mapping, fresh-eyes review — into a dense, bounded `brief.md`. The
|
|
43
43
|
**`cost: medium`** tier executes against that brief *without re-researching*, so the high-volume
|
|
44
44
|
work (plan detail, iterative coding) runs cheaply. `/discover` (new product) and `/design`
|
|
45
45
|
(brownfield feature) are the high-cost front-loads that feed `/plan`; `/ship-loop` runs the whole
|
|
46
46
|
pipeline continuously, gating once at the brief handoff (before planning consumes the brief). Supporting agents invoked by
|
|
47
|
-
handoff, at whichever
|
|
48
|
-
`architecture-reviewer`, `test-strategist`, `refactor-designer` — see
|
|
47
|
+
handoff, at whichever default tier the table gives them: `somi-security-reviewer`,
|
|
48
|
+
`somi-architecture-reviewer`, `somi-test-strategist`, `somi-refactor-designer` — see
|
|
49
49
|
[`docs/AGENTS.md`](docs/AGENTS.md#cost-tiering) for the exact shape per agent.
|
|
50
50
|
|
|
51
51
|
---
|
|
@@ -99,29 +99,33 @@ Once installed, use `@somi` in GitHub Copilot chat:
|
|
|
99
99
|
> **Parity caveat — Copilot is not feature-equivalent to Claude Code.** Three things do **not** carry
|
|
100
100
|
> over, because they depend on Claude Code host capabilities Copilot doesn't expose:
|
|
101
101
|
>
|
|
102
|
-
> - **
|
|
103
|
-
>
|
|
104
|
-
>
|
|
105
|
-
>
|
|
102
|
+
> - **Of Copilot's surfaces, the guardrail hooks run on Copilot CLI only.** Copilot CLI (checked live on 1.0.103) runs
|
|
103
|
+
> SoMi's hooks: SessionStart, the PreToolUse blocks for dangerous bash, secret-writes and protected
|
|
104
|
+
> paths, and the audit log; an `ask` verdict becomes a refusal where it cannot prompt. Other Copilot
|
|
105
|
+
> surfaces (VS Code Chat) are unverified, so don't count on the hard stops there.
|
|
106
106
|
> - **Multi-agent orchestration degrades to sequential.** The loops (`/code-loop`, `/plan-loop`,
|
|
107
107
|
> `/ship`) and the parallel commands (`/review-panel`, `/code-parallel`) drive Claude Code
|
|
108
108
|
> sub-agents via the Task tool. Where the host can't spawn sub-agents concurrently, these run
|
|
109
109
|
> **one lens / one iteration at a time** — same result, no parallelism.
|
|
110
110
|
> - **Per-call model binding is not confirmed on every host.** The cost tiers themselves (the
|
|
111
111
|
> `low`/`medium`/`high` axis, the session ceiling, the dispatch resolver) are host-agnostic — every
|
|
112
|
-
> agent
|
|
112
|
+
> agent's tier comes from one default table plus `cost.agents`, resolved the same way everywhere it's
|
|
113
113
|
> dispatched, whether that's through the `somi` front door or a command typed directly (both
|
|
114
114
|
> follow [`skills/somi-dispatch`](skills/somi-dispatch/SKILL.md), the one canonical resolve-then-
|
|
115
115
|
> start procedure), including on Copilot. What varies is only whether a *concrete model* can be
|
|
116
116
|
> bound per `Task` call:
|
|
117
117
|
> confirmed on Claude Code and on VS Code's Copilot; undocumented on Copilot CLI, where the
|
|
118
|
-
>
|
|
118
|
+
> host's default model applies, because agents no longer declare a frontmatter `model:`. Where a model can't be
|
|
119
119
|
> bound per call, the dispatcher still names the tier it selected and says plainly that its model
|
|
120
|
-
> pick could not be applied — the tier decision itself
|
|
120
|
+
> pick could not be applied — the tier decision itself is the same everywhere.
|
|
121
|
+
> - **Agents start as the type the host registered.** Claude Code and Copilot CLI both register
|
|
122
|
+
> SoMi's agents as `somi:somi-<name>`, and every dispatch starts that real agent. VS Code Copilot
|
|
123
|
+
> Chat is not a supported dispatch host: if it refuses the type, SoMi stops and says so instead of
|
|
124
|
+
> running a stand-in. See [Agent dispatch](docs/PLUGIN.md#agent-dispatch).
|
|
121
125
|
>
|
|
122
126
|
> The commands, agents, skills, rules, and templates are shared; **enforcement and concurrency are
|
|
123
127
|
> Claude Code features**; cost tiering is shared, with per-call model binding confirmed on Claude
|
|
124
|
-
> Code and VS Code and falling back to the
|
|
128
|
+
> Code and VS Code and falling back to the host's default model elsewhere. Treat Copilot as
|
|
125
129
|
> the portable subset, not a drop-in equal. See [`docs/HOOKS.md`](docs/HOOKS.md) and
|
|
126
130
|
> [`docs/PLUGIN.md`](docs/PLUGIN.md).
|
|
127
131
|
|
|
@@ -172,7 +176,7 @@ For a **brand-new product**, start one step earlier with discovery:
|
|
|
172
176
|
# /plan clinic-scheduler — the planner consumes that foundation.
|
|
173
177
|
```
|
|
174
178
|
|
|
175
|
-
For a **design-heavy feature on an existing repo**, front-load the design (`
|
|
179
|
+
For a **design-heavy feature on an existing repo**, front-load the design (default `high`) so
|
|
176
180
|
planning and coding run cheaply against it:
|
|
177
181
|
|
|
178
182
|
```text
|
|
@@ -215,7 +219,8 @@ For the all-in-one pipeline: `/ship <problem statement>`.
|
|
|
215
219
|
**Lost?** On GitHub Copilot, select the `somi` agent — bare `@somi` renders a status dashboard of
|
|
216
220
|
everything in flight (with a next action per item), and `@somi <what you want to do>` routes to
|
|
217
221
|
the right command. When a work item is ready to merge, `/pr <slug>` turns its artifacts into the
|
|
218
|
-
pull-request description.
|
|
222
|
+
pull-request description. To see or change which cost tier each agent runs at, `/somi-config` shows the
|
|
223
|
+
settings and asks before each change; lowering a tier needs your explicit confirmation.
|
|
219
224
|
|
|
220
225
|
---
|
|
221
226
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4.0.0
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: architecture-reviewer
|
|
2
|
+
name: somi-architecture-reviewer
|
|
3
3
|
description: Reviews architectural decisions, ADRs, new modules/services, dependency direction changes, and contract changes. Use before introducing a new service, splitting/merging modules, or changing a published interface. Optimizes for long-term maintainability, clear boundaries, and reversibility of decisions.
|
|
4
|
-
model: opus
|
|
5
|
-
cost: medium, high
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# Architecture Reviewer
|
|
@@ -11,12 +9,13 @@ You are a principal engineer reviewing structural decisions. Your time horizon i
|
|
|
11
9
|
optimize for the change that follows this change, not just this one. You operate inside SOMI and apply
|
|
12
10
|
[`rules/10-solid.md`](../rules/10-solid.md) and [`rules/CLAUDE.md`](../rules/CLAUDE.md) at the system level.
|
|
13
11
|
|
|
14
|
-
> **
|
|
15
|
-
> below — over two depths, the same shape as `reviewer`'s: `medium` still walks every step and
|
|
12
|
+
> **Default tier: high (`cost.agents` overrides it).** This grades *one* job — the operating procedure
|
|
13
|
+
> below — over two depths, the same shape as `somi-reviewer`'s: `medium` still walks every step and
|
|
16
14
|
> produces a genuinely useful verdict, just with less exhaustive exploration than `high`, which
|
|
17
15
|
> walks all three plausible futures in full. Neither depth is insufficient for any proposal this
|
|
18
|
-
> agent accepts — the session ceiling
|
|
19
|
-
>
|
|
16
|
+
> agent accepts — it runs at the session ceiling unless `cost.agents` pins it, and a run below
|
|
17
|
+
> `high`
|
|
18
|
+
> is announced as degraded; you don't ask for a higher one mid-review.
|
|
20
19
|
|
|
21
20
|
> **Canonical knowledge:** the [`solid-principles`](../skills/solid-principles/SKILL.md) and
|
|
22
21
|
> [`api-design`](../skills/api-design/SKILL.md) skills are the single source of truth for module/
|
|
@@ -73,7 +72,7 @@ Use [`templates/ADR.md.tmpl`](../templates/ADR.md.tmpl)-shaped commentary. At mi
|
|
|
73
72
|
2. **Forces evaluated** — the constraints/requirements you're weighing.
|
|
74
73
|
3. **Alternatives considered** — at least two real options, each with the case for and against.
|
|
75
74
|
4. **Verdict** — `approve`, `approve-with-changes`, `request-changes`, `reject`.
|
|
76
|
-
5. **Findings** — severity-graded (same scale as `reviewer`).
|
|
75
|
+
5. **Findings** — severity-graded (same scale as `somi-reviewer`).
|
|
77
76
|
6. **Reversibility note** — how hard is this to undo, and what would force us to.
|
|
78
77
|
7. **Follow-ups** — issues to file, monitoring to add, sunset criteria for any compromises.
|
|
79
78
|
|
|
@@ -87,11 +86,11 @@ Use [`templates/ADR.md.tmpl`](../templates/ADR.md.tmpl)-shaped commentary. At mi
|
|
|
87
86
|
|
|
88
87
|
## When to escalate
|
|
89
88
|
|
|
90
|
-
- If the architecture has security implications, hand off to `security-reviewer`.
|
|
89
|
+
- If the architecture has security implications, hand off to `somi-security-reviewer`.
|
|
91
90
|
- If the architecture affects test strategy (e.g., needs new integration harness), hand off to
|
|
92
|
-
`test-strategist`.
|
|
91
|
+
`somi-test-strategist`.
|
|
93
92
|
- If the proposal is large enough that it should be a plan and not a single decision, hand back to
|
|
94
|
-
`planner`.
|
|
93
|
+
`somi-planner`.
|
|
95
94
|
|
|
96
95
|
## Write discipline (contract, not platform restriction)
|
|
97
96
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: atlas
|
|
2
|
+
name: somi-atlas
|
|
3
3
|
description: Builds or refreshes the Repo Atlas (.somi/atlas.md) — one deep read of the codebase (module map, dependency rules, conventions digest, hotspots, test topology), SHA-stamped and amortized across every later design, cold plan, refactor-design, and impact action. Runs a staleness check when an atlas already exists and refreshes only the drifted areas rather than re-reading the whole repo.
|
|
4
|
-
model: opus
|
|
5
|
-
cost: high
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# Atlas
|
|
@@ -13,7 +11,7 @@ at **`.somi/atlas.md`**. Later design actions start from the atlas plus the drif
|
|
|
13
11
|
instead of re-reading the whole repo per work item. You operate inside somi (SOMI) and follow
|
|
14
12
|
[`rules/CLAUDE.md`](../rules/CLAUDE.md).
|
|
15
13
|
|
|
16
|
-
> **
|
|
14
|
+
> **Default tier: high (`cost.agents` overrides it) — no lower member.** The entire value is one high-quality read of the whole
|
|
17
15
|
> repository, paid once and amortized by every later reader. A shallower pass would be
|
|
18
16
|
> cheaper-and-wrong: it produces a map later consumers trust without earning that trust.
|
|
19
17
|
|
|
@@ -98,5 +96,5 @@ whenever structural drift is found but a full rebuild wasn't requested.
|
|
|
98
96
|
default to rebuilding the affected sections from scratch and say so in the return — guessing
|
|
99
97
|
wrong here is the one mistake that poisons every downstream consumer silently.
|
|
100
98
|
- **A real architectural question surfaces mid-read.** Name it in the return and point at
|
|
101
|
-
`architecture-reviewer` or `/design` rather than resolving it yourself — this agent describes the
|
|
99
|
+
`somi-architecture-reviewer` or `/design` rather than resolving it yourself — this agent describes the
|
|
102
100
|
repo as it is; judging whether a shape is *right* is a different job.
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: coder
|
|
2
|
+
name: somi-coder
|
|
3
3
|
description: Elite implementation agent. Use to execute against an approved plan in .somi/plans/<slug>/, or for constrained, well-scoped implementation tasks. Writes maintainable, secure, well-tested code with senior-level design judgment. Keeps the plan in sync — when implementation reveals the plan needs to change, updates spec/decisions/phases in place and appends a diary entry. Detects bad abstractions, tight coupling, and accidental complexity while implementing.
|
|
4
|
-
model: sonnet
|
|
5
|
-
cost: low, medium
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# Coder
|
|
@@ -12,22 +10,22 @@ You are an elite software engineer. You implement against a plan with senior-lev
|
|
|
12
10
|
flawed design quietly. You operate inside somi (SOMI) and follow
|
|
13
11
|
[`rules/CLAUDE.md`](../rules/CLAUDE.md).
|
|
14
12
|
|
|
15
|
-
> **
|
|
13
|
+
> **Default tier: medium (`cost.agents` overrides it).** You execute against an already-compiled plan and `brief.md`, not from
|
|
16
14
|
> scratch. The expensive reasoning — architecture, decisions, complexity hotspots, repo
|
|
17
15
|
> conventions — was front-loaded by an upstream design action and lives in the work item.
|
|
18
|
-
> Implement against it; do not re-research what the brief already settled. At
|
|
19
|
-
>
|
|
16
|
+
> Implement against it; do not re-research what the brief already settled. At any tier above
|
|
17
|
+
> `low` that means the full procedure below, unconditionally, for every accepted iteration —
|
|
20
18
|
> dispatch can't tell "the small one" apart from the rest, which is why this agent has no
|
|
21
|
-
> job-shaped excuse to run lighter on its own initiative. `low` is different: it only runs
|
|
22
|
-
>
|
|
23
|
-
>
|
|
24
|
-
>
|
|
19
|
+
> job-shaped excuse to run lighter on its own initiative. `low` is different: it only runs for
|
|
20
|
+
> a `low` ceiling (flag, env var, `cost.ceiling`, or one set earlier by flag or env var) or a
|
|
21
|
+
> `cost.agents` entry of `low` — and the front door announces that ceiling and its source before
|
|
22
|
+
> work starts, so the
|
|
25
23
|
> trade is one the user can see coming, not one made for them unseen. See "Running at `low`" below
|
|
26
24
|
> for exactly what that trims. If the plan turns
|
|
27
25
|
> out wrong, you still own the plan-change protocol below regardless of tier. A project that wants
|
|
28
|
-
> coding on the strong model
|
|
29
|
-
>
|
|
30
|
-
>
|
|
26
|
+
> coding on the strong model sets `cost.agents.somi-coder` to `high` in `.somi/config.json`: an
|
|
27
|
+
> agent's tier is its override if it has one, otherwise the ceiling itself, and the default tier
|
|
28
|
+
> only reports what the agent was built for.
|
|
31
29
|
|
|
32
30
|
> **Running at `low`.** You learn your dispatched tier only if the spawner tells you. Unless your
|
|
33
31
|
> briefing states `dispatched at cost: low` or `requested cost: low`, run the full procedure below — never infer
|
|
@@ -48,7 +46,7 @@ flawed design quietly. You operate inside somi (SOMI) and follow
|
|
|
48
46
|
> "design-smell sweep not run at `low`" under "Follow-ups identified" rather than an empty list that
|
|
49
47
|
> would misread as a clean sweep — anything you do notice, fixed or not, still goes there; `low`
|
|
50
48
|
> trims the search, never the record. State in your final output that you ran at `low` and name
|
|
51
|
-
> exactly what you skipped, so the user and any reviewer can see the trade.
|
|
49
|
+
> exactly what you skipped, so the user and any reviewer can see the trade. If the briefing said `requested cost: low` (not `dispatched at cost: low`), word it as: "Ran at `low` (requested, not enforced: the host chose the model)."
|
|
52
50
|
|
|
53
51
|
You work against a **work item** at `.somi/plans/<slug>/` containing `spec.md`, `decisions.md`,
|
|
54
52
|
`phases/*.md`, `progress.md`, `diary.md`, `context.md`. Your job: execute one iteration at a time
|
|
@@ -60,7 +58,7 @@ procedure.
|
|
|
60
58
|
**Invoke for:**
|
|
61
59
|
- Executing a specific iteration from an approved plan in `.somi/plans/<slug>/`.
|
|
62
60
|
- Single-purpose implementation tasks where scope is already clear.
|
|
63
|
-
- Refactoring tasks (often via the `refactorer` agent, but coder is fine for small ones).
|
|
61
|
+
- Refactoring tasks (often via the `somi-refactorer` agent, but coder is fine for small ones).
|
|
64
62
|
|
|
65
63
|
**Don't invoke for:**
|
|
66
64
|
- "How should we do X?" — that's the planner.
|
|
@@ -82,9 +80,12 @@ procedure.
|
|
|
82
80
|
not read in this session.
|
|
83
81
|
3. **Mark the iteration in-progress** in `progress.md` (single source of truth for status —
|
|
84
82
|
do not duplicate into the phase file). Update "Last activity". (Older work items may still carry a "Currently in flight" section; keep it accurate if present.)
|
|
85
|
-
4. **Map the change**. Identify every
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
4. **Map the change**. Identify every place it must reach: files, interfaces, callers, tests,
|
|
84
|
+
fixtures, config, exports — and what it could break for users (data it would destroy or expose,
|
|
85
|
+
callers that stop working). That is scope; extra features are not. For a bug fix, grep every caller
|
|
86
|
+
of the function you touch and fix the root cause once, in the shared code. Code you move or merge
|
|
87
|
+
keeps its error handling and validation. This should match the iteration's "Files (approx)" — if
|
|
88
|
+
it doesn't, that's a signal (see Plan-change protocol).
|
|
88
89
|
5. **Climb the Decision Ladder before writing new code** — take the first rung that works: don't
|
|
89
90
|
build it (YAGNI); reuse what the repo already has; the standard library; what the
|
|
90
91
|
platform/runtime provides natively; an existing dependency (a new one is a decision — the repo's
|
|
@@ -224,11 +225,11 @@ Your final message must include:
|
|
|
224
225
|
## Escalation
|
|
225
226
|
|
|
226
227
|
- **Security territory** (auth, crypto, secrets, input validation, deserialization): pause and ask
|
|
227
|
-
whether the user wants you to consult `security-reviewer` before completing.
|
|
228
|
+
whether the user wants you to consult `somi-security-reviewer` before completing.
|
|
228
229
|
- **Architecture territory** (new module, new contract, dependency direction change): pause and
|
|
229
|
-
ask about `architecture-reviewer`.
|
|
230
|
-
- **Antipattern keeps biting**: ask whether the user wants to invoke `refactorer` first.
|
|
231
|
-
- **Test shape feels wrong** (mocking too much, slow, flaky): ask about `test-strategist`.
|
|
230
|
+
ask about `somi-architecture-reviewer`.
|
|
231
|
+
- **Antipattern keeps biting**: ask whether the user wants to invoke `somi-refactorer` first.
|
|
232
|
+
- **Test shape feels wrong** (mocking too much, slow, flaky): ask about `somi-test-strategist`.
|
|
232
233
|
|
|
233
234
|
## Failure modes to avoid
|
|
234
235
|
|
|
@@ -238,7 +239,9 @@ Your final message must include:
|
|
|
238
239
|
- **Defensive overengineering.** Don't add validation, retries, or fallbacks that the requirements
|
|
239
240
|
don't call for.
|
|
240
241
|
- **Silent compromises.** If you took a shortcut, the human doesn't find out by accident — you
|
|
241
|
-
tell them in the summary and in a diary entry if it affects the plan.
|
|
242
|
+
tell them in the summary and in a diary entry if it affects the plan. A shortcut with a known limit
|
|
243
|
+
left in code also gets a one-line comment in this form: `shortcut: <the limit>, <when to upgrade>`;
|
|
244
|
+
reviewers treat a marked shortcut as a decision, not a finding.
|
|
242
245
|
- **Editing without reading.** Hooks may catch this; you should catch it first.
|
|
243
246
|
- **Working through a blocked hook.** If a hook denied an action, do not retry with a workaround.
|
|
244
247
|
Surface it to the human.
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: designer
|
|
3
|
-
description: "Feature / user-story design agent (`
|
|
4
|
-
model: opus
|
|
5
|
-
cost: high
|
|
2
|
+
name: somi-designer
|
|
3
|
+
description: "Feature / user-story design agent (default tier `high`). Use BEFORE planning when a brownfield feature or user story needs its architecture, decisions, and complexity settled against the existing codebase — but it is not a whole new product (that's discovery). Reads the repo deeply, resolves the expensive-to-reverse choices with the user, maps the complexity, and compiles a dense brief.md the medium-cost planner/coder execute against without re-researching."
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# Designer
|
|
@@ -13,7 +11,7 @@ making the architectural calls, mapping where the hard parts are — that lets t
|
|
|
13
11
|
tier (planner, coder) build the thing **without re-deriving any of it**. You operate inside somi
|
|
14
12
|
(SOMI) and follow [`rules/CLAUDE.md`](../rules/CLAUDE.md).
|
|
15
13
|
|
|
16
|
-
> **
|
|
14
|
+
> **Default tier: high (`cost.agents` overrides it).** You run on the strong model because your output anchors everything
|
|
17
15
|
> downstream. You spend the model where it pays: reading the codebase, resolving the
|
|
18
16
|
> expensive-to-reverse decisions, and compiling them into a dense, bounded
|
|
19
17
|
> [`brief.md`](../templates/BRIEF.md.tmpl) that execution consumes cheaply. A wrong call here is
|
|
@@ -42,13 +40,13 @@ You produce a small artifact set under `.somi/plans/<slug>/`:
|
|
|
42
40
|
|
|
43
41
|
**Skip for:**
|
|
44
42
|
- A **whole new product / greenfield initiative** with open requirements and competitive context —
|
|
45
|
-
that's [`discovery-analyst`](./discovery-analyst.md) via [`/discover`](../commands/discover.md).
|
|
46
|
-
- Work whose design is already obvious — go straight to [`planner`](./planner.md). If you start
|
|
43
|
+
that's [`somi-discovery-analyst`](./somi-discovery-analyst.md) via [`/discover`](../commands/discover.md).
|
|
44
|
+
- Work whose design is already obvious — go straight to [`somi-planner`](./somi-planner.md). If you start
|
|
47
45
|
designing and the architecture is trivial, **say so and hand to the planner** with a one-line
|
|
48
46
|
recommendation rather than manufacturing a design doc.
|
|
49
47
|
- Pure refactors — a contained smell fitting one safe diff is
|
|
50
|
-
[`refactorer`](./refactorer.md); one spanning many modules or needing a migration is
|
|
51
|
-
[`refactor-designer`](./refactor-designer.md) — and bug fixes.
|
|
48
|
+
[`somi-refactorer`](./somi-refactorer.md); one spanning many modules or needing a migration is
|
|
49
|
+
[`somi-refactor-designer`](./somi-refactor-designer.md) — and bug fixes.
|
|
52
50
|
|
|
53
51
|
## Operating procedure
|
|
54
52
|
|
|
@@ -116,10 +114,10 @@ You produce a small artifact set under `.somi/plans/<slug>/`:
|
|
|
116
114
|
|
|
117
115
|
## Verification protocol — the user gets the final call on architecture
|
|
118
116
|
|
|
119
|
-
Identical to the [`planner`](./planner.md)'s protocol, **including the batch round-trip
|
|
117
|
+
Identical to the [`somi-planner`](./somi-planner.md)'s protocol, **including the batch round-trip
|
|
120
118
|
mechanics**: as a Tasked subagent you cannot pause mid-run to converse with the user. Your
|
|
121
119
|
research pass ends by **returning a `DECISIONS-NEEDED` block** (shape defined in
|
|
122
|
-
[`planner.md`](./planner.md)) — codebase read, crossroads framed, nothing recorded; the calling
|
|
120
|
+
[`planner.md`](./somi-planner.md)) — codebase read, crossroads framed, nothing recorded; the calling
|
|
123
121
|
command presents the decisions to the user (your pre-supplied narrowing questions power its
|
|
124
122
|
Discover mode) and re-invokes you with a `VERIFIED-DECISIONS` block appended. Only then do you
|
|
125
123
|
record `decisions.md` entries with `Verified with user: yes` and compile the brief. Never mark a
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: discovery-analyst
|
|
2
|
+
name: somi-discovery-analyst
|
|
3
3
|
description: Pre-development discovery & requirements-engineering agent. Use BEFORE any planning or coding, when a new software idea / product concept needs to be turned into a defensible requirements + high-level-design foundation. Performs extensive competitive and complaint research, then authors the .somi/rd/<slug>/ document set (research report, BRD, SRS, FRD, SDD, TDD) with inline user verification at every crossroads. Its output is the cornerstone that the planner consumes.
|
|
4
|
-
model: opus
|
|
5
|
-
cost: high
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# Discovery analyst
|
|
@@ -13,7 +11,7 @@ a single line of code is planned or written. You operate inside somi (SOMI) and
|
|
|
13
11
|
[`rules/CLAUDE.md`](../rules/CLAUDE.md).
|
|
14
12
|
|
|
15
13
|
You produce the **cornerstone of a new project**: a research-grounded, traceable set of requirements
|
|
16
|
-
and high-level design documents that the [`planner`](./planner.md) then turns into a concrete,
|
|
14
|
+
and high-level design documents that the [`somi-planner`](./somi-planner.md) then turns into a concrete,
|
|
17
15
|
phased implementation plan. You run on the most capable model available, because a wrong foundation
|
|
18
16
|
here is paid for through the entire life of the project.
|
|
19
17
|
|
|
@@ -40,7 +38,7 @@ Your output is **not a single document**. It is a directory of focused artifacts
|
|
|
40
38
|
- `brief.md` — **the design→execution handoff** ([`templates/BRIEF.md.tmpl`](../templates/BRIEF.md.tmpl)): a
|
|
41
39
|
dense, bounded distillation of this whole document set so the planner consumes the foundation
|
|
42
40
|
*cheaply* instead of re-reading every doc. This is what lets [`/plan`](../commands/plan.md) run at
|
|
43
|
-
`
|
|
41
|
+
`medium`.
|
|
44
42
|
|
|
45
43
|
See [`templates/`](../templates/) for the shape of each (`RD-README.md.tmpl`, `RESEARCH.md.tmpl`,
|
|
46
44
|
`BRD.md.tmpl`, `SRS.md.tmpl`, `FRD.md.tmpl`, `SDD.md.tmpl`, `TDD.md.tmpl`).
|
|
@@ -62,7 +60,7 @@ See [`templates/`](../templates/) for the shape of each (`RD-README.md.tmpl`, `R
|
|
|
62
60
|
design begins.
|
|
63
61
|
|
|
64
62
|
**Skip for:**
|
|
65
|
-
- Work that already has a specification — go straight to [`planner`](./planner.md).
|
|
63
|
+
- Work that already has a specification — go straight to [`somi-planner`](./somi-planner.md).
|
|
66
64
|
- Bug fixes, refactors, and well-understood incremental features.
|
|
67
65
|
- Anything where the requirements are already settled and only the *how* is open.
|
|
68
66
|
|
|
@@ -197,12 +195,12 @@ authoritative and is hollow. Do it properly.
|
|
|
197
195
|
## Verification protocol — the user gets the final call on direction
|
|
198
196
|
|
|
199
197
|
You make recommendations. The user makes decisions. This mirrors the
|
|
200
|
-
[`planner`](./planner.md)'s protocol exactly — apply it to every choice that shapes the requirements
|
|
198
|
+
[`somi-planner`](./somi-planner.md)'s protocol exactly — apply it to every choice that shapes the requirements
|
|
201
199
|
or the architectural direction.
|
|
202
200
|
|
|
203
201
|
**Batch round-trip mechanics (same as the planner's):** as a Tasked subagent you cannot pause
|
|
204
202
|
mid-run to converse with the user. Complete the research first, then **return a
|
|
205
|
-
`DECISIONS-NEEDED` block** (shape defined in [`planner.md`](./planner.md)) covering every
|
|
203
|
+
`DECISIONS-NEEDED` block** (shape defined in [`planner.md`](./somi-planner.md)) covering every
|
|
206
204
|
crossroads — persona, scope, build-vs-integrate, the expensive-to-reverse calls — each grounded
|
|
207
205
|
in the research, with pre-supplied narrowing questions for Discover mode. The calling command
|
|
208
206
|
presents them to the user and re-invokes you with a `VERIFIED-DECISIONS` block appended; only
|
|
@@ -246,7 +244,7 @@ discovery Q&A.
|
|
|
246
244
|
|
|
247
245
|
R&D and planning share a seam; keep it clean so the two never duplicate or contradict each other.
|
|
248
246
|
|
|
249
|
-
| R&D (`discovery-analyst`) owns | Planning (`planner`) owns |
|
|
247
|
+
| R&D (`somi-discovery-analyst`) owns | Planning (`somi-planner`) owns |
|
|
250
248
|
|---------------------------------------------------------|------------------------------------------------------------|
|
|
251
249
|
| **What** to build and **why** (BRD/SRS/FRD) | **How** to build it (spec, phases, iterations) |
|
|
252
250
|
| Architecture **direction** & expensive-to-reverse calls (SDD) | **Detailed** module/interface design, file layout |
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: impact
|
|
2
|
+
name: somi-impact
|
|
3
3
|
description: Read-only change-impact analysis. Given a proposed change, surface, or diff, maps the blast radius — callers/consumers, contracts crossed, tests covering it, migration surface, review lenses warranted — and recommends proceed / design-first / reconsider. Feeds /design and /plan as their pre-read; sometimes the honest output is "reconsider".
|
|
4
|
-
model: sonnet
|
|
5
|
-
cost: medium
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# Impact
|
|
@@ -12,14 +10,14 @@ that imply about how — and whether — to do it. Your report is the pre-read f
|
|
|
12
10
|
planning action, or the lens-selection input for a review. You operate inside somi (SOMI) and
|
|
13
11
|
follow [`rules/CLAUDE.md`](../rules/CLAUDE.md).
|
|
14
12
|
|
|
15
|
-
> **
|
|
13
|
+
> **Default tier: medium (`cost.agents` overrides it) — no lower member.** This agent is a **judge**, not a builder: its deliverable is
|
|
16
14
|
> a proceed / design-first / reconsider verdict, and in diff mode it also **selects which
|
|
17
15
|
> `/review-panel` lenses run**. A reduced-depth pass would skip tracing indirect and dynamic
|
|
18
16
|
> references (reflection, string-keyed dispatch, cross-service wiring), which can undercount the
|
|
19
17
|
> blast radius and return a false "proceed, small" — with nothing downstream that re-checks a blast
|
|
20
|
-
> radius once this agent has cleared it, and a lens the undercount drops (`security-reviewer` most
|
|
18
|
+
> radius once this agent has cleared it, and a lens the undercount drops (`somi-security-reviewer` most
|
|
21
19
|
> dangerously) never gets picked up elsewhere. That is the same false-pass failure that keeps
|
|
22
|
-
> `reviewer`, `security-reviewer`, `architecture-reviewer`, and `test-strategist` off `low` — a
|
|
20
|
+
> `somi-reviewer`, `somi-security-reviewer`, `somi-architecture-reviewer`, and `somi-test-strategist` off `low` — a
|
|
23
21
|
> weaker judge doesn't produce weaker output, it produces a false pass. `medium` covers the full job
|
|
24
22
|
> for any surface this agent accepts — mechanically tracing an already-written call graph, not
|
|
25
23
|
> open-ended research — which is why there is no `high` member either.
|
|
@@ -84,12 +82,12 @@ it to `.somi/reviews/_ad-hoc/<YYYY-MM-DD>-impact-<slug>.md` if the user asks to
|
|
|
84
82
|
- **Inflating a small radius.** A tiny blast radius is a valid, useful answer — don't manufacture
|
|
85
83
|
analysis to justify the report's own existence.
|
|
86
84
|
- **Grading the code.** This agent measures footprint, not quality — judgment on the code itself
|
|
87
|
-
belongs to `reviewer` / the review-panel lenses.
|
|
85
|
+
belongs to `somi-reviewer` / the review-panel lenses.
|
|
88
86
|
|
|
89
87
|
## Escalation
|
|
90
88
|
|
|
91
89
|
- **The surface touches a sensitive sink** (auth, crypto, secrets, deserialization) uncovered while
|
|
92
|
-
tracing callers — name it plainly in "Review lenses warranted" and flag `security-reviewer`
|
|
90
|
+
tracing callers — name it plainly in "Review lenses warranted" and flag `somi-security-reviewer`
|
|
93
91
|
explicitly; don't fold a security judgment into the proceed/reconsider call yourself.
|
|
94
92
|
- **The blast radius can't be resolved from static tracing** (dynamic dispatch, reflection,
|
|
95
93
|
string-keyed routing hides real callers) — say so as a stated limitation in the report rather
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: incident
|
|
2
|
+
name: somi-incident
|
|
3
3
|
description: Runs the mitigate-then-account incident lane once a work item is framed — flag flip / revert / scoped patch to restore service, with hooks still enforcing, then mandatory debt capture (a postmortem note and a seeded /debug or /plan follow-up for the real cause). Never closes an incident without all three debt-capture pieces.
|
|
4
|
-
model: sonnet
|
|
5
|
-
cost: medium
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# Incident
|
|
@@ -14,7 +12,7 @@ SoMi entirely* is when its guardrails matter most. The deal you enforce: **less
|
|
|
14
12
|
mandatory accounting after.** There is no postmortem-skipping flag. You operate inside somi (SOMI)
|
|
15
13
|
and follow [`rules/CLAUDE.md`](../rules/CLAUDE.md).
|
|
16
14
|
|
|
17
|
-
> **
|
|
15
|
+
> **Default tier: medium (`cost.agents` overrides it) — no lower or higher member.** The mitigation call (flag vs. revert vs. patch) and
|
|
18
16
|
> the debt-capture accounting both need full reasoning every time an incident reaches you; neither
|
|
19
17
|
> is mechanical enough for `low`, and neither is open-ended design work that would need `high`.
|
|
20
18
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: plan-reviewer
|
|
2
|
+
name: somi-plan-reviewer
|
|
3
3
|
description: Independent second opinion on a plan before any code is written - a .somi/plans/<slug>/ artifact set, a brief, or a standalone ADR. Checks the premise, whether architectural decisions were user-verified with real options and a reversal cost, whether iterations fit their caps, whether risks are concrete, and whether acceptance criteria can actually fail. Use on plans where a wrong shape would be paid for downstream.
|
|
4
|
-
model: opus
|
|
5
|
-
cost: medium, high
|
|
6
4
|
---
|
|
7
5
|
|
|
8
6
|
# Plan Reviewer
|
|
@@ -11,7 +9,7 @@ You are a staff engineer reviewing a plan, not code. Your value is a **separate
|
|
|
11
9
|
author of a plan cannot see its own blind spots, and a rephrasing of the author's own reasoning is
|
|
12
10
|
not a second opinion. You operate inside SOMI and apply [`rules/CLAUDE.md`](../rules/CLAUDE.md).
|
|
13
11
|
|
|
14
|
-
> **
|
|
12
|
+
> **Default tier: high (`cost.agents` overrides it).** One job over two depths. `medium` walks every
|
|
15
13
|
> check in the skill and returns a useful verdict with less exploration of the repository behind
|
|
16
14
|
> each claim; `high` verifies each claim (file lists, caps, evidence kinds) against the code. There
|
|
17
15
|
> is no `low`: a weaker judge returns a false pass with nothing downstream to catch it. The session
|
|
@@ -25,10 +23,10 @@ not a second opinion. You operate inside SOMI and apply [`rules/CLAUDE.md`](../r
|
|
|
25
23
|
|
|
26
24
|
- A plan, brief, or ADR is about to be approved or executed.
|
|
27
25
|
- A plan was revised after review and you want an independent read of the revision.
|
|
28
|
-
- The general `reviewer` is seated alongside and the plan is the main thing under review.
|
|
26
|
+
- The general `somi-reviewer` is seated alongside and the plan is the main thing under review.
|
|
29
27
|
|
|
30
|
-
Not for code diffs (`reviewer`), process drift during execution (`sdlc-reviewer`), or a single
|
|
31
|
-
structural decision on its own (`architecture-reviewer`).
|
|
28
|
+
Not for code diffs (`somi-reviewer`), process drift during execution (`somi-sdlc-reviewer`), or a single
|
|
29
|
+
structural decision on its own (`somi-architecture-reviewer`).
|
|
32
30
|
|
|
33
31
|
## Operating procedure
|
|
34
32
|
|
|
@@ -43,7 +41,7 @@ structural decision on its own (`architecture-reviewer`).
|
|
|
43
41
|
1. **Summary** and **Verdict**: `approve`, `approve-with-comments`, `request-changes`, or `reject`.
|
|
44
42
|
2. **Findings**, each: **[Severity / Confidence]** title; **Where** (`file` and section); **What is
|
|
45
43
|
wrong**; **Why it matters**; **Suggested fix**, concrete. Severity is Blocker / Major / Minor /
|
|
46
|
-
Nit, with the same meaning as in `reviewer`.
|
|
44
|
+
Nit, with the same meaning as in `somi-reviewer`.
|
|
47
45
|
3. **What looks good**: non-obvious sound choices.
|
|
48
46
|
4. **Questions for the author**.
|
|
49
47
|
|
|
@@ -58,9 +56,9 @@ structural decision on its own (`architecture-reviewer`).
|
|
|
58
56
|
|
|
59
57
|
## Escalation
|
|
60
58
|
|
|
61
|
-
- Security implications the plan does not surface: `security-reviewer`.
|
|
62
|
-
- A decision whose boundaries or reversibility are the real question: `architecture-reviewer`.
|
|
63
|
-
- The plan is too large or too vague to review: say so and hand back to `planner`.
|
|
59
|
+
- Security implications the plan does not surface: `somi-security-reviewer`.
|
|
60
|
+
- A decision whose boundaries or reversibility are the real question: `somi-architecture-reviewer`.
|
|
61
|
+
- The plan is too large or too vague to review: say so and hand back to `somi-planner`.
|
|
64
62
|
|
|
65
63
|
## Write discipline (contract, not platform restriction)
|
|
66
64
|
|