ccheney avatar

Feature Slicing

This is a comprehensive FSD (Feature-Sliced Design) implementation guide that enforces strict layer hierarchy and import rules for frontend projects. You'd use this when setting up React, Next.js, or Vue architectures that need to scale beyond the typical "components and utils" folders. The core rule is simple: layers can only import downward (app → pages → widgets → features → entities → shared), never sideways or up. It includes practical decision trees for choosing between features and entities, public API patterns via index.ts files, and specific fixes for common violations like cross-slice imports. The anti-patterns section is especially useful since it catches the mistakes most teams make when trying to organize large codebases.

skills.sh installs
242
GitHub stars
62
last updated
Aug 21, 2026

Install

$ npx -y skills add ccheney/robust-skills --skill feature-slicing --agent claude-code

Installs into .claude/skills of the current project.

Files

Feature-Sliced Design

Apply FSD v2.1 to the requested module-boundary decision. The user's explicit instructions take precedence over this skill's guidelines; an ordinary frontend edit is not permission to migrate its architecture.

Work within the project

Use the affected files, imports, framework/router, and requested behavior as input. Determine whether the repository already uses FSD or the user is asking to adopt it. If neither is true, preserve the existing structure.

Prefer page-local ownership until shared use or a distinct responsibility justifies extraction:

LayerResponsibility
appInitialization, providers, routing
pagesScreens and their local UI, data, and logic
widgetsSelf-contained UI blocks
featuresReusable user interactions
entitiesShared business concepts
sharedInfrastructure and domain-independent utilities/UI

Use only the layers needed. Preserve framework-reserved directories and server/client boundaries, particularly in Next.js.

Maintain the import contract

Sponsors

Details

Repository
github.com/ccheney/robust-skills
Categories
Frontend Development, Backend & APIs, Code Review & Quality, Design & UI/UX
First seen
Jun 3, 2026

More from ccheney/robust-skills

All 5
1coollabsio avatartailwindcss-developmentcoollabsio/coolifyAlways invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids240skills.sh installs
2nuxt-modules avatarmanage-mcpnuxt-modules/mcp-toolkitManage MCP servers in Nuxt with @nuxtjs/mcp-toolkit — setup, create tools/resources/prompts, organize with handlers, build interactive MCP Apps, add elicitation240skills.sh installs
3josiahsiegel avatartailwindcss-performancejosiahsiegel/claude-plugin-marketplaceTailwind CSS performance optimization including v4 improvements. PROACTIVELY activate for: (1) Tailwind v4 Oxide engine performance, (2) Lightning CSS minificat237skills.sh installs
4xiaodong-wu avatarweb-design-studioxiaodong-wu/web-design-studioCreate or redesign production-grade standalone websites in semantic HTML, CSS, and JavaScript with distinctive art direction and Codex-generated raster imagery.237skills.sh installs
5borghei avatarsenior-qaborghei/claude-skillsTesting for React/Next.js with Jest, React Testing Library, and Playwright. Use when generating tests, writing unit tests, analyzing coverage, scaffolding E2E t230skills.sh installs
6arco-design avatararco-designarco-design/arco-design-skillArco Design React UI component library reference (@arco-design/web-react). Use this skill whenever the user asks to build a page, create a UI, write frontend co229skills.sh installs