Frontend components

From aexol-studio/axolotl · View interactive version

Frontend components is an AI agent skill from the GitHub repository aexol-studio/axolotl. Frontend component architecture - atomic design, file splitting (~300 line target, hard max 400 lines), reusability principles, route-scoped components, and co-located partitions

How to use this skill

Skill file

Atomic Design Placement

File Splitting

| Partition | File name |

| ------------------ | -------------------------------------------------------- |

| Logic hook | {Name}.hook.ts — exports ONE hook, returns flat object |

| Static/config data | {Name}.data.ts |

| Zod/RHF schemas | {Name}.schema.ts |

| TypeScript types | {Name}.types.ts |

| Sub-components | {name}/components/Child.tsx |

Folder Rule

When a component has any co-located partition (hook, schema, data, types), it moves into a kebab-case folder with a barrel index.ts. The main .tsx lives inside the folder. Sub-components go in a components/ subfolder — never directly beside the parent.

Route-Scoped Components

Key Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.