Agent skills/Component catalog

Component catalog

The catalog lists every component with what it's for, where to import it from, its key props and what not to use it for. The agent searches it before building anything, so add your own components to it as you go.

What's in it

.agents/skills/accordee/references/components.md lists all 116 components in 14 groups, from buttons and drawers to charts and setup flows, plus every design token. It's generated, so don't edit it by hand.

Add your own components

Add an @catalog comment above a component you write, then rebuild the catalog, so the agent finds it next time:

A component the agent can find
/**
 * @catalog Use for: a contact's social links | Don't use for: website links | Group: Records
 */
export function SocialLinks({ person }: { person: Person }) {
npm run skills:catalog

The agent adds this comment itself when it builds something new, as the task skills ask it to.

Keep it up to date

  • Run npm run skills:catalog after adding components or changing tokens in src/app/globals.css. npm run check:ui fails when it's out of date.
  • Edit the skills in .agents/skills/ only. npm run skills:catalog and npm run skills:sync copy them to .claude/skills/ for Claude Code.
  • Deleted components drop out of the catalog on their own.