nextjs-app/ai-src/skills/component-placement/SKILL.md
Use when deciding where new components belong, when splitting large components, or when choosing between feature components, shared helpers, and primitive UI layers in this repo.
npx skillsauth add Adrienenjalbert/flex-carrer-hub component-placementInstall 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.
Choose a layer in this order:
src/features/<feature>/...src/features/career-hub/shared/...src/components/common/...src/components/ui/...src/shared/...src/features/<feature>Default for:
src/features/career-hub/sharedUse for domain-shared Career Hub UI:
src/components/commonUse only for truly generic cross-feature helpers:
src/components/uiUse for primitive UI controls only.
src/sharedUse for cross-feature infrastructure, not normal display components.
SomethingShell.tsxSomethingSections.tsxSomethingClient.tsx@/components/career-hub/...src/components/common by defaultsrc/components/ui already has oneBefore creating a component, search in this order:
src/features/career-hub/sharedsrc/components/commonsrc/components/uidevelopment
Use when finishing a code change, validating generated code, or deciding which repo checks must run before presenting work in this repo.
tools
Use when creating or editing Career Hub tool pages, calculator pages, tool metadata, tool registry entries, or tool-specific support sections in this repo.
data-ai
Use when editing public pages, metadata, canonical URLs, structured data, sitemaps, robots rules, or any SEO-sensitive behavior in this repo.
development
Use when refactoring existing code, moving files, normalizing structure, or improving architecture without changing user-visible behavior in this repo.