# Instance audit: run after every Figma agent prompt

Frame audited: [FRAME_NAME]   Prompt #: [n]   Date: [date]

## Before the run
- [ ] Duplicated the original frame for comparison
- [ ] Library with the named components is enabled (Assets → Libraries)
- [ ] Credit reading noted (Admin → AI credits → View usage): [n]

## Right after the run
- [ ] The agent's reply lists every changed or added layer
- [ ] Every layer in the reply exists in the Layers panel
- [ ] No layer in the new frame is missing from the reply

## Layer types
- [ ] Cmd/Ctrl+F with the frame, text and shape filters: each result inside the state frame is either part of an instance or explained
- [ ] No layer has a component's name but shows the frame icon (sign of a detached instance)
- [ ] Detached instances counted: [n]
- [ ] Unexplained new primitives (frames, shapes, text, vectors) counted: [n]

## Instance source
- [ ] Each new or changed instance names a main component from the team library
- [ ] No new local components in the Assets panel

## Overrides
- [ ] Overrides are variant/property swaps only
- [ ] No hand-set opacity, fill, stroke or extra child layers inside instances
- [ ] Colors and spacing come from variables (variable chip visible), not raw values

## Gaps
- [ ] MISSING items reported by the agent: [n]
- [ ] MISSING items found by me that the agent didn't report: [n]

## After the run
- [ ] Credit reading noted: [n]  → used: [n]

## Verdict
Ship-ready only if detached = 0, unexplained primitives = 0, and unreported gaps = 0.
- [ ] PASS
- [ ] FAIL → re-run with tighter @mentions, or build the missing component yourself

---

## Run log (blank)

| Date | Prompt # | Frame | Credits before | Credits after | Detached | New primitives | MISSING reported / found | Verdict |
|---|---|---|---|---|---|---|---|---|
|  |  |  |  |  |  |  |  /  |  |
|  |  |  |  |  |  |  |  /  |  |
|  |  |  |  |  |  |  |  /  |  |
