AddThisFeature

Duplicate Record

Start from something that already works instead of rebuilding it.

moderate Data & Content

What it adds

A duplicate action on records that copies the content worth keeping and deliberately drops everything that must not be shared.

What your agent is told to do

6
  1. 1

    Define the copy rules per record type explicitly. A blanket field copy will carry over ids, timestamps, audit trails, ownership, and secrets — all of which must be reset or excluded.

  2. 2

    Never copy API keys, tokens, credentials, or anything encrypted at rest. A copy is a new secret or no secret; it is never the same secret.

  3. 3

    Generate a non-conflicting name and slug, and show the user what it will be before they confirm.

  4. 4

    State clearly in the confirmation what is and is not included — child records, attachments, comments, permissions, schedules. Ambiguity here produces support tickets.

  5. 5

    Run the duplication in a single transaction. A half-copied record is worse than a failed copy.

  6. 6

    Do not silently re-activate anything: a copy of a live, scheduled, or published record must start inactive and draft.

Edge cases it handles

6
  • Deep hierarchies must have a documented depth limit, or one duplicate can clone half the database.
  • Copying counters, view counts, analytics, and history is almost never wanted — reset them.
  • Attachments should be referenced or re-uploaded by an explicit rule; deleting the original must not break the copy.
  • The duplicate must respect quotas — if the plan limit is reached, refuse before writing anything.
  • Cross-workspace duplication must re-map or drop references to users and objects that do not exist in the destination.
  • A record the user may view but not create in that container must not be duplicable.

Definition of done

8
  • Ids, audit fields, ownership, and secrets are never carried into the copy.
  • The generated name and slug do not collide with an existing record.
  • The confirmation states exactly what is included and excluded.
  • Duplication is atomic — a failure leaves nothing behind.
  • Copies start in a draft or inactive state.
  • Plan and permission limits are enforced before any write.
  • The feature matches the existing design system.
  • No existing functionality is broken.

Related features

How it works

  1. 1

    Copy the link

    Grab the Markdown instruction URL for this feature.

  2. 2

    Give it to your AI

    Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.

  3. 3

    It inspects, then implements

    Your agent reads your existing app first, then adds the feature to fit it.

Works with your stack

These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.

Need it tighter than that? Customize the feature and tell it exactly what you're running.