Patch a spec-loop feature
patchApply RFC 6902 JSON operations to a spec-loop feature.json, validate the result, and write it only when no invalid errors remain before re-rendering the Markdown documents.
Instructions
Apply an RFC 6902 JSON Patch to a spec-loop feature.json, validate, write only when no invalid error remains, then re-render. id, name, phase and lifecycle are not patchable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ||
| root | No | Absolute path of the project holding spec/. Pass it on every call; otherwise SPEC_LOOP_ROOT, then CLAUDE_PROJECT_DIR, then the server working directory. | |
| feature | Yes | spec-loop feature: its id (FEAT-001), its name (maket-http-connector) or its folder |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| next | Yes | What the agent does next: every result about a feature carries it; follow it | |
| errors | Yes | ||
| render | Yes | ||
| feature | Yes | ||
| validation | Yes |