Organize frontend code with Feature-Sliced Design (FSD). Helps adopt FSD, place code in an existing FSD project, or fix slice imports and public APIs.
Ships in ccheney-robust-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
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.
@x APIs are the documented cross-entity exception.app and shared have segments rather than slices; their segments can import one another.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.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ccheney-robust-skills:feature-slicingfrom ccheney-robust-skills
ccheney-robust-skills@cascade-code-general-misc-1 is listed by joshuarweaver/cascade-code-general-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-1 --plugin ccheney-robust-skills11 skills in this plugin
/bazelConfigure and troubleshoot Bazel builds. Use when editing BUILD or MODULE.bazel files, writing Starlark, diagnosing target, cache, or CI failures, or adopting or upgrading Bazel./clean-ddd-hexagonalDesign or review backend domain and dependency boundaries using DDD, Clean Architecture, and ports/adapters. Use for aggregate modeling, bounded contexts, use-case isolation, or architecture refactoring; not routine CRUD changes./mermaid-diagramsCreate or fix Mermaid diagrams in Markdown. Use for requested flowcharts, sequence diagrams, ER diagrams, state machines, or system diagrams when Mermaid is the output format; not every visualization or explanation./modern-cssImplement or debug CSS layouts, responsive styles, themes, and motion. Use when choosing native CSS features or replacing legacy styling with browser-compatible CSS; not for unrelated frontend logic./modern-javascriptImplement or debug JavaScript language behavior, including promise completion, async iteration, mutation, and runtime compatibility. Use for ECMAScript semantics or polyfill/transform choices; not unrelated framework or TypeScript type design./postgres-drizzleWrite or review PostgreSQL schemas, queries, migrations, and Drizzle ORM code. Use for Postgres/Drizzle relations, indexing, pooling, or query performance; not for unrelated databases or generic backend work.Other plugins' skills for the same job