ccheney/robust-skills/feature-slicing
Claude Code and agent skill by ccheney/robust-skills
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install ccheney/robust-skills/feature-slicingSKILL.md
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
@xAPIs are the documented cross-entity exception. appandsharedhave 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 | |
Public APIs, barrels, cycles, @x | PUBLIC-API.md | |
| Concrete entity/feature/widget/page examples | IMPLEMENTATION.md | |
| Next.js route directories and server/client exports | NEXTJS.md | |
| Requested migration of existing code | MIGRATION.md | |
| Import matrix or compact structure lookup | CHEATSHEET.md |
Use the official FSD documentation for specification questions. Adapt example libraries and aliases to the installed stack.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/feature-slicing/SKILL.md
Popularity
- Repository stars
- 22
- 7-day trend score
- 16
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ccheney/robust-skills/feature-slicing)