1.4 KiB
1.4 KiB
name, description, license, triggers
| name | description | license | triggers | |||
|---|---|---|---|---|---|---|
| atomic-scaffolder | Generates the Atomic Design directory structure (atoms, molecules, organisms, templates, pages) and adds index barrels for clean exports. | MIT |
|
Atomic Scaffolder
When to use this skill
- Use when starting the UI layer or when reorganizing components into Atomic Design.
- Triggered by prompts that request a structured components tree or sample atoms/molecules.
Instructions
-
First Step: Create
src/components/{atoms,molecules,organisms,templates,pages}directories and ensuresrc/components/index.tsexists as a barrel. -
Second Step: Add
index.tsin each folder that re-exports components to simplify imports (e.g.,export * from './atoms/Button'). -
Third Step: Optionally scaffold a small set of example atoms (Button, Input, Badge) and a molecule (PaperCard) to demonstrate wiring and naming conventions.
Examples
- Generated tree: src/components/ atoms/ Button.tsx index.ts molecules/ PaperCard.tsx index.ts
Additional Resources
- Atomic Design: https://bradfrost.com/blog/post/atomic-web-design/
Notes
- Keep atoms minimal and focused; molecules compose atoms; organisms compose molecules.
- Use TypeScript interfaces for component props and default Tailwind utility patterns.