AddThisFeature

Saved Blocks Library

Save a section once and reuse it anywhere, with copies that stay linked if you want.

moderate Editors & Builders

What it adds

A workspace library of reusable saved sections, each insertable as a linked instance or a detached copy.

What your agent is told to do

5
  1. 1

    Let an author save any section they have built into the library with a name, and insert it into another page from a picker. Reuse the app's existing Template Picker rather than building a second chooser.

  2. 2

    Ask at insert time whether the copy stays linked to the original or detaches immediately, and mark which it is on the canvas. An author who cannot tell will eventually edit a linked block and change six live pages by accident.

  3. 3

    When a linked original changes, merge the update into its instances field by field and leave locally overridden fields alone. Define which fields an instance may override at all.

  4. 4

    Scope the library to the workspace that owns it, and check that scope on insert and on render, not only when listing the picker.

  5. 5

    Do not build a general component system with parameters and slots. A named saved section with a small set of overridable fields covers the real use; anything beyond that is a programming language nobody asked for.

Edge cases it handles

8
  • Linked and detached copies behave completely differently and look identical on the page. Mark every instance and state plainly what editing it will affect.
  • Publishing a change to a linked original must not wipe the text an instance overrode locally. Merge per field rather than replacing the instance wholesale.
  • Deleting a saved block still used on live pages breaks all of them. Show the usage list, refuse the deletion, and offer to detach every instance instead.
  • A saved block containing an instance of itself, directly or through another block, renders forever. Refuse the save that would create the cycle rather than catching it at render time.
  • One workspace must never see another's library. A picker filtered correctly but a render path that is not will leak content across tenants.
  • Renaming or reorganising the library must not change what a published page renders. Identity lives in a stable identifier, never in the name.
  • Editing a linked block changes pages the author may not have open. Report how many places will change and treat the action as a publish rather than an ordinary save.
  • A saved block referencing a deleted image or a removed section type must degrade to something renderable rather than blanking the page it sits on.

Definition of done

9
  • Any built section can be saved to the library and inserted elsewhere.
  • Each insert is explicitly linked or detached, and its state is visible on the canvas.
  • Updating a linked original updates its instances without discarding local overrides.
  • Deleting a saved block that is in use is blocked, with a usage list and a detach-all option.
  • A saved block cannot be made to contain itself.
  • The library is scoped to its workspace on listing, insert, and render.
  • Editing a linked block reports how many published places will change before it is applied.
  • 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.