component-drilldown

Installation
SKILL.md

Component drilldown

The source file and its consumers are the ground truth. Docs, inventories, and component workbenches (Storybook and similar) are indexes: use them to find things fast, then confirm against source.

Step 0: learn the component system

Do this once per repo, before any workflow below.

  1. Read AGENTS.md, CLAUDE.md, and any design doc they link (design tokens, type scale, component rules). The conventions you enforce come from there first.
  2. Find where components live. Check components.json (shadcn's aliases.ui) first, then look for the usual directories:
    find . \( -name node_modules -o -name .git \) -prune -o -type d \( -name ui -o -name components -o -name primitives -o -name design-system \) -print | head -20
    
    Typical split: shared primitives (components/ui/), shared composite trees (components/<area>/), and domain components (features/<domain>/components/). In a monorepo, also check packages/ui.
  3. Note the variant system (cva, tailwind-variants, CSS modules, styled variants), the import alias (compilerOptions.paths in tsconfig.json or jsconfig.json), and the package manager from the lockfile.
  4. If the repo keeps a component inventory (often under .context/ or docs/), use it as an index. It is a snapshot and can be stale.

Workflow: explain a component

Installs
7
Repository
alon710/configs
GitHub Stars
2
First Seen
Oct 2, 2026