write-persistence-representations

Installation
SKILL.md

Write Persistence Representations

Goal

Write or update the persistence representation that maps application data to the storage technology in use.

Keep business defaults out of the representation layer. Let callers, services, commands, factories, or explicit write flows provide values instead of database or ORM defaults. Enforce the rule that representation definitions must not declare default values, except for the creation-time audit field such as createdAt, created_at, inserted_at, or an equivalent project-specific name.

Detect the Representation Style

  1. Identify the persistence technology and the project convention before editing.

    • Inspect nearby model, entity, schema, mapping, or migration files.
    • Match the local style for file placement, naming, decorators, schema builders, relation declarations, enums, indexes, and timestamp fields.
    • Use official documentation when framework semantics are unclear or version-sensitive.
  2. Map the requested change to the representation type used by the stack.

    • Treat SQL table mappings, ORM entities, schema DSL files, document schemas, collection definitions, record types, and similar storage-facing definitions as the target artifact.
    • Prefer updating the existing representation pattern instead of introducing a new abstraction.
Related skills

More from code-sherpas/agent-skills

Installs
8
First Seen
Mar 18, 2026