skills/atomic-design-pattern/SKILL.md
Atomic Design Pattern — Enforces the Atomic Design methodology for UI components: Atoms, Molecules, Organisms, Templates, and Pages.
npx skillsauth add ngmthaq/my-copilot atomic-design-patternInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use when creating, organizing, or refactoring UI components. Enforces Atomic Design methodology: Atoms, Molecules, Organisms, Templates, and Pages. Applies to React, Vue, Angular, Flutter, and any component-based UI framework.
All UI components must follow the Atomic Design methodology. This applies to any component-based framework (React, Vue, Angular, Flutter, etc.). Organize components into five distinct levels based on their complexity and composition.
The smallest, indivisible UI elements. They cannot be broken down further without losing functionality.
Button, Input, Label, Icon, Avatar, Badge, Checkbox// Atom — does one thing, accepts props, no business logic
function Button({ label, variant, onClick, disabled }) {
return <button className={variant} onClick={onClick} disabled={disabled}>{label}</button>;
}
Small groups of atoms that function together as a unit.
SearchField (Input + Button), FormField (Label + Input + ErrorText), NavItem (Icon + Label)// Molecule — composes atoms into a functional group
function SearchField({ onSearch }) {
const [query, setQuery] = useState("");
return (
<div className="search-field">
<Input value={query} onChange={setQuery} placeholder="Search..." />
<Button label="Search" onClick={() => onSearch(query)} />
</div>
);
}
Complex UI sections composed of molecules and/or atoms that form a distinct section of an interface.
Header (Logo + NavItems + SearchField + UserMenu), ProductCard (Image + Title + Price + AddToCartButton), CommentSection// Organism — a complete UI section with structure and potential business logic
function Header({ user, onSearch, onLogout }) {
return (
<header>
<Logo />
<NavBar items={mainNavItems} />
<SearchField onSearch={onSearch} />
<UserMenu user={user} onLogout={onLogout} />
</header>
);
}
Page-level layout structures that define the arrangement of organisms without real content.
DashboardTemplate, AuthTemplate, ProductListTemplate// Template — layout structure, no real data
function DashboardTemplate({ sidebar, header, mainContent, footer }) {
return (
<div className="dashboard-layout">
<div className="sidebar">{sidebar}</div>
<div className="main">
<div className="header">{header}</div>
<div className="content">{mainContent}</div>
<div className="footer">{footer}</div>
</div>
</div>
);
}
Specific instances of templates populated with real data and connected to application state.
HomePage, UserProfilePage, ProductDetailPage// Page — real data + template
function DashboardPage() {
const user = useCurrentUser();
const stats = useDashboardStats();
return (
<DashboardTemplate
sidebar={<Sidebar user={user} />}
header={<Header user={user} onSearch={handleSearch} />}
mainContent={<StatsGrid stats={stats} />}
footer={<Footer />}
/>
);
}
Organize components to mirror the atomic hierarchy:
components/
├── atoms/
│ ├── Button/
│ ├── Input/
│ └── Icon/
├── molecules/
│ ├── SearchField/
│ ├── FormField/
│ └── NavItem/
├── organisms/
│ ├── Header/
│ ├── ProductCard/
│ └── CommentSection/
├── templates/
│ ├── DashboardTemplate/
│ └── AuthTemplate/
└── pages/
├── HomePage/
└── UserProfilePage/
Each component folder should contain its implementation file, styles, tests, and any co-located assets.
documentation
Guidelines and protocols for Technical Leaders to manage and oversee technical projects effectively while adhering to the core mandate of being the central orchestration layer for all engineering work.
data-ai
Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Provides execution plan analysis, pagination optimization, batch operations, and performance monitoring guidance.
development
SOLID — Enforces the SOLID principle of object-oriented design (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion) for maintainable and scalable code.
development
Separation of Concerns (SoC) — Enforces the Separation of Concerns principle by ensuring each module, layer, and component addresses exactly one well-defined concern. Use when writing, reviewing, or refactoring code that mixes UI with business logic, business logic with data access, presentation with formatting, or cross-cutting concerns (auth, logging, validation) with core logic.