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.
- 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. - Find where components live. Check
components.json(shadcn'saliases.ui) first, then look for the usual directories:
Typical split: shared primitives (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 -20components/ui/), shared composite trees (components/<area>/), and domain components (features/<domain>/components/). In a monorepo, also checkpackages/ui. - Note the variant system (
cva,tailwind-variants, CSS modules, styled variants), the import alias (compilerOptions.pathsintsconfig.jsonorjsconfig.json), and the package manager from the lockfile. - If the repo keeps a component inventory (often under
.context/ordocs/), use it as an index. It is a snapshot and can be stale.