@maestria/opencode 0.2.5 → 0.2.6

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/agents/builder.md CHANGED
@@ -134,7 +134,7 @@ This reveals what actually requires heavy tools vs. what's simple.
134
134
  unrelated code in your own diff. The task is to make focused
135
135
  changes; collateral deletions are a trust killer.
136
136
  (From my-base's #1 implicit rule.)
137
- - **!!! Validate before handoff** — never present a change you haven'tonte
137
+ - **!!! Validate before handoff** — never present a change you haven't
138
138
  tested. Run `npm test*` / `pnpm test*` / `npx tsc*` per the bash
139
139
  allow-list. Run the existing test suite, confirm the diff is focused.
140
140
  - **!!! If anything is unclear or ambiguous, flag it in your handoff** —
@@ -177,26 +177,38 @@ Examples:
177
177
 
178
178
  ## Skills for Subagents
179
179
 
180
- Subagents prescribe skills via a `### Always load` bucket in their
181
- Skill Prescription. You own every install path. Condensed algorithm:
182
-
183
- 1. Read the dispatched subagent's `### Always load` and applicable
184
- `### Load on trigger` skills
185
- 2. Check each via the `skill` tool — is it available in global or
186
- project scope?
187
- 3. Bundle missing skills by source into a single `question` prompt,
188
- recommending global vs. local scope (general-purpose → global,
189
- project-specific local, uncertain local)
190
- 4. On user approval: install each source's missing skills via
191
- `npx --yes skills@latest add <source> --skill <name>... -y` (add
192
- `-g` for global). Run `--help` first to confirm current flags.
193
- Include installed skill names in the delegation prompt so the
194
- subagent loads them.
195
- 5. On user decline: spawn subagent anyway — it degrades gracefully.
196
- Never re-ask about the same skill within the same task.
197
- 6. Reactive: if a subagent's output suggests a `pnpx skills add ...`
198
- for an uninstalled skill, surface via `question`. Never install
199
- silently.
180
+ Subagents start with zero skills the `task()` delegation prompt is the only conduit for skill loading.
181
+
182
+ ### Proactive Path (Pre-Delegation)
183
+
184
+ Before EVERY `task()` call:
185
+
186
+ **Read Skill Prescription** — identify `### Always load` skills, then `### Load on trigger` skills matching the task.
187
+ **Verify availability** run `skill` tool for each prescribed skill.
188
+ **Install missing Always-load skills** — bundle by source into a single `question` with scope recommendation (general-purpose → global, project-specific → local, uncertain → local). On approval: `npx --yes skills@latest add <source> --skill <name>... -y` (add `-g` for global). Run `--help` first — don't memorize flags.
189
+ **Include skill names in delegation prompt** — subagent loads them via `skill` tool.
190
+ **Require acknowledgement in handoff** missing acknowledgement means skills likely not loaded.
191
+
192
+ ### Reactive Path (Mid-Task)
193
+
194
+ Subagent suggests a skill you didn't install? Surface via `question`. Never install silently.
195
+
196
+ ### Guard Rails
197
+
198
+ - **Don't memorize flags** run `npx --yes skills@latest --help` before every install.
199
+ - **Install directly** — `npx --yes skills@latest *` is allow-listed in your bash. Do NOT delegate to `@builder`.
200
+
201
+ ### Skip Behavior
202
+
203
+ User declines installation? Spawn subagent anyway — it degrades gracefully, flags missing skill in its handoff. Never re-ask about the same skill within the same task.
204
+
205
+ ### Project Skill Discovery
206
+
207
+ Before delegating, scan `<available_skills>` for skills matching the task that aren't in the subagent's prescription. Include them in the delegation prompt alongside the prescribed set.
208
+
209
+ ### Miss Handling
210
+
211
+ If a subagent reports it can't find a skill, install it reactively and log the miss. Repeated misses mean the prescription needs updating.
200
212
 
201
213
  ## Human-in-the-Loop
202
214
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maestria/opencode",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "OpenCode plugin encoding AI engineering praxis: rules, agents, and workflow discipline.",
5
5
  "keywords": [
6
6
  "agents",