feature-slicing
/feature-slicing
Organize frontend code with Feature-Sliced Design (FSD). Use when adopting FSD, placing code in an existing FSD project, or fixing slice imports and public APIs; not for every new component or page.
- Author
- ccheney ↗
- Repository
- robust-skills ↗
- Licence
- MIT
- Last repository change
- 12.09.2026
Assessment and security
- Files in this package
- 7
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 12.09.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Organize frontend code with Feature-Sliced Design (FSD). Use when adopting FSD, placing code in an existing FSD project, or fixing slice imports and public APIs; not for every new component or page.
Original author description
Organize frontend code with Feature-Sliced Design (FSD). Use when adopting FSD, placing code in an existing FSD project, or fixing slice imports and public APIs; not for every new component or page.
How it works
- Work within the project
- Maintain the import contract
- References
SKILL.md preview
--- name: feature-slicing description: Organize frontend code with Feature-Sliced Design (FSD). Use when adopting FSD, placing code in an existing FSD project, or fixing slice imports and public APIs; not for every new component or page. --- # 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: | Layer | Responsibility | |---|---| | `app` | Initialization, providers, routing | | `pages` | Screens and their local UI, data, and logic | | `widgets` | Self-contained UI blocks | | `features` | Reusable user interactions | | `entities` | Shared business concepts | | `shared` | Infrastructure 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 - A slice imports other slices from lower layers, not sideways or upward. Explicit `@x` APIs are the documented cross-entity exception. - `app` and `shared` have segments rather than slices; their segments can import one another. - Expose deliberate public APIs. Use internal relative imports to avoid importing a slice's own barrel; keep server-only exports out of client entrypoints. - Name FSD segments by purpose (`ui`, `api`, `model`, `lib`, `config`). Do not rename unrelated folders merely to match an example. Deliver the requested placement, refactor, or review with the resulting import paths. For code changes, verify affected imports and use existing architecture checks when available. Install Steiger or rewrite path aliases only when the task calls for tooling setup. ## References Choose the reference that resolves the current decision. | Task | Reference | |---|---| | Layer ownership and extraction | [LAYERS.md](references/LAYERS.md) | | Public APIs, barrels, cycles, `@x` | [PUBLIC-API.md](references/PUBLIC-API.md) | | Concrete entity/feature/widget/page examples | [IMPLEMENTATION.md](references/IMPLEMENTATION.md) | | Next.js route directories and server/client exports | [NEXTJS.md](references/NEXTJS.md) | | Requested migration of existing code | [MIGRATION.md](references/MIGRATION.md) | | Import matrix or compact structure lookup | [CHEATSHEET.md](references/CHEATSHEET.md) | Use the [official FSD documentation](https://feature-sliced.design/docs/reference) for specification questions. Adapt example libraries and aliases to the installed stack.
Files in this package (7)
- SKILL.md 3 KB
- references/CHEATSHEET.md 6 KB
- references/IMPLEMENTATION.md 16 KB
- references/LAYERS.md 11 KB
- references/MIGRATION.md 11 KB
- references/NEXTJS.md 11 KB
- references/PUBLIC-API.md 7 KB
Versions
The database has no other skills named feature-slicing.
Database snapshot: 13.11.2026 · package version 26def2a28ec8 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100nextjs-architecture
Structure Next.js projects with Feature-Sliced Design layers, domain-grouped slices, and strict import hierarchy. Use when organizing features into FSD layers, enforcing slice boundaries, or keeping page.tsx thin. - 100create-feature-slice
Scaffold a new Feature-Sliced Design slice under frontend/src honoring the layer rules — a public index.ts, purpose-named segments (ui/model/api), downward-only imports, the generated-import restriction, and the processes ban. Use when the user asks to "add a feature", "create… - 100figma-pencil-fsd-tailwind4
Convert Figma or Pencil designs into production-ready frontend code using Feature-Sliced Design and Tailwind CSS v4. Use when translating designs into code, extracting tokens, mapping UI to FSD layers (shared / entities / features / widgets / pages / app-shell / app), enforcing… - 100oma-frontend
Frontend specialist for React, Next.js, TypeScript with FSD-lite architecture, shadcn/ui, and design system alignment. Use for UI, component, page, layout, CSS, Tailwind, and shadcn work. - 100vertically-sliced-feature-modules
Feature-first module architecture for cohesive ownership, recursive import closures, operational entries, and promotion boundaries. Use when designing, moving, or reviewing feature and package structure. - 100vertical-slice-architecture
Enforce Vertical Slice Architecture (VSA) when building applications in any language (Go, .NET/C#, Java, Kotlin, TypeScript, Python, etc.) and any type (web API, mobile backend, CLI, event-driven). Organize code by feature/use-case instead of technical layers. Each feature is a…