feature-slicing

Implements Feature-Sliced Design architecture for frontend projects.

58|3|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/ccheney/robust-skills --skill feature-slicing-ccheney
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-slicing
Source: https://github.com/ccheney/robust-skills/tree/main/skills/feature-slicing
Command: npx skills add https://github.com/ccheney/robust-skills --skill feature-slicing-ccheney

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of maintaining large, complex frontend codebases by providing a structured approach to organization, improving maintainability, scalability, and developer collaboration.

Core Features & Use Cases

  • Layered Architecture: Organizes code into distinct layers (app, pages, widgets, features, entities, shared) with strict import rules.
  • Slice-Based Organization: Encourages modularity by grouping code by business domain or feature.
  • Public API Pattern: Enforces clear boundaries and controlled access between code modules.
  • Use Case: When starting a new React/Next.js project or refactoring an existing one, use this Skill to establish a robust and scalable frontend architecture that prevents common pitfalls like tangled dependencies and unclear ownership.

Quick Start

Apply Feature-Sliced Design architecture to your frontend project by organizing your code into layers and slices.

Frequently Asked Questions about feature-slicing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a React project for scalability?

Feature-Sliced Design structures frontend code for scalability by organizing your project into distinct layers—app, pages, widgets, features, entities, and shared—using strict import rules to manage complexity and maintainability.

What is the best way to organize Next.js code as the app grows?

Using Feature-Sliced Design is an effective way to organize Next.js code, grouping modules by business domain into slices and implementing a public API pattern to enforce clear boundaries and controlled access across your codebase.

Can I use feature slicing with Vue and Remix applications?

Yes, you can apply feature slicing to Vue and Remix applications. Feature-Sliced Design is a frontend architecture methodology that establishes modular boundaries and prevents tangled dependencies across various frameworks including Vue and Remix.

How does Feature-Sliced Design prevent tangled dependencies in frontend architecture?

Feature-Sliced Design prevents tangled dependencies by enforcing strict import rules across distinct architectural layers and utilizing a public API pattern to control access between code modules.

When should I refactor my frontend codebase into layers and slices?

You should refactor into layers and slices when your frontend codebase faces maintainability challenges, using Feature-Sliced Design to establish a robust architecture that promotes modularity, clear ownership, and developer collaboration.