Source-required inputs
- plan/steps.json from rewrite-plan.
- The current value of iterations (the daemon's per-stage counter).
- code/index.json for the file's known imports + neighbours.
nexu-io/open-design
Apply one rewrite-plan step at a time as small reviewable file edits, never rewriting whole files when a localised change suffices.
npx skills add https://github.com/nexu-io/open-design --skill "plugins/_official/atoms/patch-edit"Source checked Jul 28, 2026·Refresh due Oct 26, 2026
Reorganized from the pinned upstream SKILL.md
Spec §20.3 / §21.3.2: code-migration / tune-collab cannot ship a trustworthy diff when the agent rewrites whole files in one pass — the reviewer can't audit the change. This atom enforces "one step per turn, smallest possible localised edit".
npx skills add https://github.com/nexu-io/open-design --skill "plugins/_official/atoms/patch-edit"The pinned source supports a structured brief, but not an expanded tutorial. Only detected inputs, outputs, and sections are shown.
221 source words · 5 usable sections
Source-required inputs
Source-declared outputs
Source workflow
Sections are extracted automatically from the pinned SKILL.md and link back to the source.
plan/steps.json from rewrite-plan.
The atom mutates files inside the project cwd via the file-edit tool. After every iteration, it writes a per-step receipt:
The atom completes when every step in plan/steps.json is in a terminal state (completed / skipped) OR iterations = ODMAXDEVLOOPITERATIONS. Use:
Rewriting an entire file when the rewrite-plan step is localised.
Source checklist
The source section “Inputs” has been checked.
The source section “Output” has been checked.
The source section “Convergence” has been checked.
The source section “Anti-patterns the prompt fragment forbids” has been checked.
Source output checked: The atom mutates files inside the project cwd via the file-edit tool. After every iteration, it writes a per-step receipt:
FAQ
Spec §20.3 / §21.3.2: code-migration / tune-collab cannot ship a trustworthy diff when the agent rewrites whole files in one pass — the reviewer can't audit the change. This atom enforces "one step per turn, smallest possible localised edit".
The source record exposes this install command: npx skills add https://github.com/nexu-io/open-design --skill "plugins/_official/atoms/patch-edit". Inspect the command and pinned source before running it.
Quality breakdown
Based on traceable docs and repository signals; stars are not treated as quality.
Spec §20.3 / §21.3.2: code-migration / tune-collab cannot ship a trustworthy diff when the agent rewrites whole files in one pass — the reviewer can't audit the change. This atom enforces "one step per turn, smallest possible localised edit".
plan/steps.json from rewrite-plan.iterations (the daemon's per-stage counter).code/index.json for the file's known imports + neighbours.The atom mutates files inside the project cwd via the file-edit tool.
After every iteration, it writes a per-step receipt:
project-cwd/
└── plan/
├── steps.json (status updated: 'pending' → 'completed' | 'skipped')
└── receipts/
└── step-<id>.json # { files: ['...'], diffSummary, rationale, completedAt }
The atom completes when every step in plan/steps.json is in a
terminal state (completed / skipped) OR iterations >= OD_MAX_DEVLOOP_ITERATIONS. Use:
{
"id": "patch-edit-loop",
"atoms": ["patch-edit"],
"repeat": true,
"until": "plan.steps.terminal === plan.steps.total || iterations >= 8"
}
files[].shell-tier file when the step's risk is not
'high' or the user hasn't confirmed.Implemented by the daemon runner in
apps/daemon/src/plugins/atoms/patch-edit.ts. It validates step ownership and
risk, applies unified diffs with atomic writes, and records receipts and
progress.