Skip to content

Commit aa2ef04

Browse files
Copilotpelikhan
andauthored
Clarify p.glob and addon composition guidance (#248)
* Initial plan * Clarify prompt glob and addon guidance Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent cd7edee commit aa2ef04

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

skills/rig/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Defaults: `name: "agent"`, `model: "small"`, `maxTurns: 4`, string input/output,
4747
| Several known files | `p.readAll(paths)` |
4848
| Static shell command | `p.bash(command)`; use ``p.bashRaw`...` `` for literal backslashes |
4949
| Caller-supplied path(s) | `p.readInput(field)` / `p.readAllInput(field)` with `s.path` schemas |
50-
| Discover workspace paths | `p.glob(pattern)` (prefer over `p.bash("find ...")` for static discovery) |
50+
| Discover workspace paths | `p.glob(pattern)` returns paths only; follow with a read intent for contents (prefer over `p.bash("find ...")` for static discovery) |
5151
| Persist generated output | `p.writeOutput(field, path)` or `p.writeInput(pathField, outputField)` |
5252
| String-keyed map | `s.record(value)`; keys are always `string` — do not wrap in `s.object`; use `s.record(s.int)` for count maps |
5353
| Numeric schema choice | `s.int` for counts/line numbers; `s.number` for measurements and ratios |

skills/rig/references/composition.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ When a task asks for runnable markdown:
140140

141141
Rig starts with no addons. `maxTurns` is only the total budget; automatic parse/schema correction requires `repair()`:
142142

143+
| Scenario | Addons | What happens |
144+
|----------|--------|--------------|
145+
| Invalid parsed or schema-validated output | `repair()` | Retries with the validation error |
146+
| The same failure needs stronger final guidance | `[steering(), repair()]` | Adds a last-chance warning to repair's final retry |
147+
143148
```ts
144149
import { agent, repair } from "rig";
145150

0 commit comments

Comments
 (0)