component-design-atomic-principles
Installation
SKILL.md
Summary
Design components based on the Atomic Design methodology (Atoms -> Molecules -> Organisms), but organize them by feature or domain rather than strict "atoms/molecules" directories.
Guidance
- Granularity:
- Atom: Basic UI elements (Button, Input). No logic.
- Molecule: Groups of atoms (SearchBox). UI logic only.
- Organism: Complex sections (Header, ProductList). Business logic allowed (via props/containers).
- Organization:
- Use a flat
components/directory or group by featurefeatures/<feature>/components. - Do NOT create deep
components/atoms,components/moleculesnesting unless necessary.
- Use a flat
Rationale
Atomic Design helps in deciding component size and responsibility. However, strict directory separation often leads to "where do I put this?" classification hell.