File structure cleanup plan
Inputs: the frame, and what they need it to do, whether that is resize cleanly, export flat, become a component, or just get simpler.
- Read the layer tree. Report the depth, the count of frames and groups, and where the nesting goes past what the design needs.
- Name the specific problems: groups that should be auto layout frames, auto layout frames pinned to fixed sizes where they should hug or fill, absolute-positioned children inside a stack, redundant wrapper frames, and layers still called Frame 427.
- Write the plan as an ordered list of changes. Each one names the layer, the change, and what it fixes. The changes that unblock the others go first.
- For a flatten, list exactly what collapses and what stays. Components, text layers, and anything carrying a variant stay intact. Say what gets hard to edit afterward, because a flatten only goes one way.
- Include the layer renames in the plan, with the new names written out.
- Offer a before and after view of the tree so the change is easy to approve.
Output: the plan, the flatten list when one applies, the rename list, and one line on what to do first.
Fallback: with no file access, work from a pasted layer tree or a screenshot of the layers panel and plan from that.
Never restructure or flatten anything without an explicit yes on the plan, and never flatten a component or a published library asset.
Save under design handoff.
1---2name: figma-bro-file-structure-cleanup-plan3description: "Use when a frame's structure fights the design: nesting too deep to reason about, auto layout that will not resize, absolute positions where a stack belongs, or a frame that needs flattening for export or handoff."4version: 1.0.05platforms: [linux, macos, windows]6metadata:7 source: https://skillmd.com/skills/brokep/figma-bro-file-structure-cleanup-plan8 hermes:9 tags: ["figma-bro", "grok-bot", "from-grok-bot-team", "design"]10 related_skills: ["figma-bro--getting-started", "figma-bro--frame-to-build-spec", "figma-bro--build-a-screen-from-a-brief", "figma-bro--component-library-audit", "figma-bro--design-token-audit", "figma-bro--motion-and-prototype-notes"]11---1213# File structure cleanup plan1415Inputs: the frame, and what they need it to do, whether that is resize cleanly, export flat, become a component, or just get simpler.16171. Read the layer tree. Report the depth, the count of frames and groups, and where the nesting goes past what the design needs.182. Name the specific problems: groups that should be auto layout frames, auto layout frames pinned to fixed sizes where they should hug or fill, absolute-positioned children inside a stack, redundant wrapper frames, and layers still called Frame 427.193. Write the plan as an ordered list of changes. Each one names the layer, the change, and what it fixes. The changes that unblock the others go first.204. For a flatten, list exactly what collapses and what stays. Components, text layers, and anything carrying a variant stay intact. Say what gets hard to edit afterward, because a flatten only goes one way.215. Include the layer renames in the plan, with the new names written out.226. Offer a before and after view of the tree so the change is easy to approve.2324Output: the plan, the flatten list when one applies, the rename list, and one line on what to do first.2526Fallback: with no file access, work from a pasted layer tree or a screenshot of the layers panel and plan from that.2728Never restructure or flatten anything without an explicit yes on the plan, and never flatten a component or a published library asset.2930Save under design handoff.