File Placement Reference
Read this before writing any component or script file. Canonical placement rules derived from the component framework and script framework governance specifications.Components
Root:snippets/components/
Categories (ask these questions in order)
Sub-niches by category
- elements: a11y, buttons, callouts, icons, images, links, math, social, spacing, text
- wrappers: accordions, cards, containers, grids, lists, steps, tables
- displays: code, diagrams, quotes, response-fields, video
- scaffolding: frame-mode, heroes, portals
- integrators: blog, embeds, feeds, video-data
Placement path
Common mistakes
Required JSDoc header (7 tags)
Scripts
Root:operations/scripts/
Types (Layer 1)
Concerns (Layer 2)
Placement path
Required JSDoc header (11 tags, strict order)
Before writing ANY file
- Determine the category using the decision questions (components) or type+concern (scripts)
- Check the target folder exists
- If unsure, state: “This component does [X]. That makes it a [category] because [reasoning]. Placing at [path]. Confirm?”
- Never place files based on name pattern-matching. Always reason from what the component/script DOES
Canonical sources
- Components: Component Framework
- Scripts: Script Framework
- Repo structure: Repo Structure