backfills
/backfills
Apply when a change to a persisted shape — a content blob's schema, a save blob's, an item entity's — would make data already stored fail to parse, or when stored data turns out not to match the schema that reads it. Esposter's backfill — the session's own job, run unasked as a throwaway scratchpad script that rewrites the stored documents in place.
- Author
- Esposter ↗
- Repository
- Esposter ↗
- Licence
- Apache-2.0
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Apply when a change to a persisted shape — a content blob's schema, a save blob's, an item entity's — would make data already stored fail to parse, or when stored data turns out not to match the schema that reads it. Esposter's backfill — the session's own job, run unasked as a throwaway scratchpad script that rewrites the stored documents in place.
Triggers from the description
Original author description
Apply when a change to a persisted shape — a content blob's schema, a save blob's, an item entity's — would make data already stored fail to parse, or when stored data turns out not to match the schema that reads it. Esposter's backfill — the session's own job, run unasked as a throwaway scratchpad script that rewrites the stored documents in place.
How it works
- Settled — do not re-propose
- When one is owed
- Where persisted JSON lives
- The run
- Reference pages
SKILL.md preview
--- name: backfills description: Apply when a change to a persisted shape — a content blob's schema, a save blob's, an item entity's — would make data already stored fail to parse, or when stored data turns out not to match the schema that reads it. Esposter's backfill — the session's own job, run unasked as a throwaway scratchpad script that rewrites the stored documents in place. --- # Backfills A schema change that stored data no longer satisfies is finished only when the stored data satisfies it. The latest-shape-only standard (`openspec/specs/architecture/persisted-data-latest-shape-only/design.md`) keeps every read path to one shape, so the data is brought to that shape once, from outside the app, rather than tolerated inside it. ## Settled — do not re-propose - **A read-side transform, a union of old and new shapes, or a `.default()` papering over a missing field.** The backfill is the migration; the schema describes only what the code writes today. - **Leaving the stored data broken** because the standard "accepts" a reset. A user's content and saves are theirs; the reset is for state nothing can repair. - **Holding the backfill, or the schema, for compatibility with the code still deployed.** Prod is backfilled as soon as dev is, and the old code reads the new shape badly until the change ships — an accepted tradeoff for code that only ever describes one clean shape, never a reason for a transitional schema or a two-phase rollout. - **Asking first.** The backfill is part of the change that needs it. The session runs it on dev and on prod itself, with no approval step. - **Committing the backfill.** It is a scratchpad script, never a file in the repo, a Nitro plugin or a migration — so the tree carries no trace of it, and no dead code to delete later. ## When one is owed - A field goes from nullable to optional, or from optional to required, in a schema that parses stored JSON. - A field is renamed, re-typed or moved in such a schema. - Stored data is found failing its schema for any reason. A field _removed_ from a schema is not one: Zod's object parse drops the stale key, so the old documents still read. ## Where persisted JSON lives Which blob holds a schema's stored data, and the writer that keeps it, is `references/persisted-stores.md`. ## The run A backfill is a scratchpad script run dry then for real on dev, then prod straight after, re-run until it reports nothing, then deleted — `references/the-run.md`. ## Reference pages - `references/persisted-stores.md` — when locating which store, blob and writer hold a persisted document a schema change touches. - `references/the-run.md` — when running a backfill: the script, the dry run, the dev-then-prod order and the re-run.
Files in this package (3)
- SKILL.md 3 KB
- references/persisted-stores.md 2 KB
- references/the-run.md 1 KB
Versions
The database has no other skills named backfills.
Database snapshot: 13.11.2026 · package version bd92cab3f53e (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100change-data-safely
Change a database schema or stored data without breaking running code or losing data. Use this for any migration, new or changed column, backfill, bulk update, delete, index, or change to a stored format, including in small projects. Data mistakes are often impossible to undo. - 100reviewing-migration-and-data-safety
Reviews schema migrations and data changes for safety: backward compatibility with the running app (expand/migrate/contract), table locks from NOT NULL/index/FK on large tables, unbatched backfills, missing dual-write during transitions, irreversible or destructive DDL, and… - 90azure-table
Apply when reading or writing Azure Table Storage data (messages, moderation logs) in server code. Esposter's Azure Table Storage conventions, where the shared `@esposter/db` and `@esposter/azure` helpers own each table job and are never hand-rolled. - 90db-migration
Writes safe, zero-downtime schema and data migrations (Flyway, Mongo backfills, online index builds) using expand/contract, batched idempotent backfills and rollback plans. Use to add/rename/retype a field or column, backfill data, or \"migrate without downtime\". - 100reviewing-migration-and-data-safety
Reviews schema migrations and data changes for safety: backward compatibility with the running app (expand/migrate/contract), table locks from NOT NULL/index/FK on large tables, unbatched backfills, missing dual-write during transitions, irreversible or destructive DDL, and… - 90zod
Apply when writing Zod schemas. Esposter's Zod conventions for schema shape, boundary parsing and constraints. Schemas a schema form renders have extra rules — see the ui-library skill.