Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion skills/rig/references/claude-workflow-conversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,19 @@ Dynamic workflows pass OpenAI-strict JSON Schema literals. rig schemas are
| `{ type: "number" }` | `s.number` |
| `{ type: "number", description: "d" }` | `s.number("d")` |
| `{ type: "integer" }` | `s.int` |
| `{ type: "integer", description: "d" }` | `s.int("d")` |
| `{ type: "boolean" }` | `s.boolean` |
| `{ type: "string", enum: [...] }` | `s.enum("a", "b")` |
| `{ type: "string", const: "done" }` | `s.literal("done")` |
| `{ type: "array", items: X }` | `s.array(X)` |
| `{ type: "object", properties, required, additionalProperties: false }` | `s.object({ ... })` |
| `{ type: "object", additionalProperties: X }` | `s.record(X)` — string-keyed maps, e.g. `s.record(s.int)` for count maps |
| `{ anyOf: [X, { type: "null" }] }` | `s.nullable(X)` |
| omitted from `required` | `s.optional(X)` |

`additionalProperties: false` and a full `required` list are implicit in
`s.object`, so drop them. Use `s.path` for file paths and `s.url` for URIs.
`s.object`, so drop them. Use `s.record(X)` for open-ended string-keyed maps
(e.g. extension→count, label→value). Use `s.path` for file paths and `s.url` for URIs.

## Worked conversion

Expand Down
Loading