Skip to main content

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

  1. Determine the category using the decision questions (components) or type+concern (scripts)
  2. Check the target folder exists
  3. If unsure, state: “This component does [X]. That makes it a [category] because [reasoning]. Placing at [path]. Confirm?”
  4. Never place files based on name pattern-matching. Always reason from what the component/script DOES

Canonical sources

Last modified on May 22, 2026