Write Script

Enforces one-shot Node ESM Mongo ops under `.scripts/<scriptName>/` — dry-run default, `--apply` writes, colocated `output/`, always-on action log, undo-ready rows. Use when writing or running a `.scripts` job, backfill, heal, migrate, CSV reconcile, import, or data-fix script; when the user says "write a script" or mentions `--apply`, `--undo`, `--verbose`, dry-run. Not for app MongoClient pools, schema design, or query-index work.

Ankit1598 Updated

File contents

Ankit1598/agent-skills/tree/main/skills/write-script commit 44c0140ba4

Frequently asked questions

npx skillmds@latest add ankit1598/write-script