@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 +1 -1
- package/agents/orchestrator.md +32 -20
- package/package.json +1 -1
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'
|
|
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** —
|
package/agents/orchestrator.md
CHANGED
|
@@ -177,26 +177,38 @@ Examples:
|
|
|
177
177
|
|
|
178
178
|
## Skills for Subagents
|
|
179
179
|
|
|
180
|
-
Subagents
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
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
|
|