feature-slicing

feature-slicing is a skill for Claude Code, Codex from ccheney/robust-skills. It costs 115 tokens per session (2,766 once invoked), scanned A, original, MIT.

A frontend code-organization method called Feature-Sliced Design. It groups code by business domain and sets rules for how higher-level parts of an application may depend on lower-level parts.

In plain words
What is it for?
Use it when structuring frontend applications, pages, widgets, features, entities, and shared code, or when reviewing imports and public interfaces between them.
Why use it?
It makes module boundaries and dependencies easier to trace as a frontend grows, reducing hidden coupling between unrelated features.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is export type { ProductId } from '../model/types';.

Good fit Use it when structuring frontend applications, pages, widgets, features, entities, and shared code, or when reviewing imports and public interfaces between them.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ccheney/robust-skills
agentmods
npx agentmods add skills/ccheney/robust-skills/feature-slicing

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for feature-slicing

README.md
[![agentmods](https://agentmods.dev/badge/skills/ccheney/robust-skills/feature-slicing/github.svg)](https://agentmods.dev/skills/ccheney/robust-skills/feature-slicing)
Your own site
<a href="https://agentmods.dev/skills/ccheney/robust-skills/feature-slicing"><img src="https://agentmods.dev/badge/skills/ccheney/robust-skills/feature-slicing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for feature-slicing

Your own site · 80×15
<a href="https://agentmods.dev/skills/ccheney/robust-skills/feature-slicing"><img src="https://agentmods.dev/badge/skills/ccheney/robust-skills/feature-slicing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,766 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 211
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00115 $0.02766
Opus 5 $0.00057 $0.01383
Sonnet 5 $0.00023 $0.00553
Haiku 4.5 $0.00012 $0.00277

Measured 9d ago against content hash 72a555eedc77, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

feature-slicing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/feature-slicing/SKILL.md · 248 lines

How it starts

The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Feature-Sliced Design Architecture

Frontend architecture methodology (spec v2.1) with a strict layer hierarchy and one import rule. FSD organizes code by business domain rather than technical role.

Official Docs: feature-sliced.design | GitHub: feature-sliced


THE IMPORT RULE (Critical)

A module in a slice may only import slices from layers strictly below. Never sideways or upward. This is what keeps slices replaceable and dependencies traceable — every violation you allow becomes an invisible coupling someone else trips over.

app → pages → widgets → features → entities → shared
 ↓      ↓        ↓          ↓          ↓         ✓
 ✓      ✓        ✓          ✓          ✓      (external only)
Violation Example Fix
Cross-slice (same layer) features/authfeatures/user-profile Move shared code to a lower layer, or compose both in the page/widget above
Upward import entities/userfeatures/auth Move the needed code down
Shared importing up shared/entities/ Shared depends only on external packages
Cross-entity entities/orderentities/product internals Use @x notation (entities layer only)

Exception: app/ and shared/ are each "a layer and a slice at the same time" — they divide directly into segments, and their segments may freely import each other.


Layer Hierarchy

Layer Purpose Has Slices Required
app/ Initialization, routing, providers, global styles No (segments only) Yes
pages/ Route-based screens — the default home for most code Yes Yes
widgets/ Large self-sufficient UI blocks reused across pages; may own their data fetching and logic Yes No
features/ User interactions reused across pages (login, add-to-cart) Yes No
entities/ Business domain models reused across pages (user, product) Yes No
shared/ Reused infrastructure: UI kit, API client, route constants, utilities. No knowledge of domain slices — but it may be app-aware (your backend's client, your route paths) No (segments only) Yes

Read the full file on GitHub · 248 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 248 lines · 115 tokens per session scan A 72a555eedc77

Subscribe to this mod's changes

feature-slicing is a skill published in the GitHub repository ccheney/robust-skills (57 stars, last pushed 13d ago), licensed MIT. It adds 115 tokens to every session and 2,766 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

principle-product-design

UX and product design principles — Nielsen's 10 usability heuristics, visual hierarchy, interaction design patterns, design-system compliance, and responsive layout. Accessibility/WCAG conformance is delegated to swe-workbench:principle-accessibility. Auto-load when reviewing UX, evaluating usability, assessing visual…

lugassawan/swe-workbench · 81 tokens

principle-accessibility

Accessibility (a11y) principles — WCAG 2.2 AA conformance, semantic HTML, keyboard navigation, focus management, focus traps, color contrast, alt text, screen reader compatibility, reduced motion. Auto-load when reviewing frontend or UI code, evaluating ARIA usage, auditing color contrast, building modals or dialogs…

lugassawan/swe-workbench · 89 tokens

frontend-design

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

anthropics/claude-plugins-official · 40 tokens

ima-dai-sdk

Integrates the Google Interactive Media Ads (IMA) Dynamic Ad Insertion (DAI) SDK into websites, web apps, mobile apps, or TV apps. Use when: - A video player needs to load and play HLS or DASH streams in web apps, Android apps, iOS apps, tvOS apps, Cast (CAF) receivers, or Roku channels. - The app needs to make use of…

google/skills · 125 tokens

migrate-xml-views-to-jetpack-compose

Provides a structured workflow for migrating an Android XML View to Jetpack Compose. This skill details the step-by-step process, from planning and dependency setup, to theming and layout migration, validation and XML cleanup. Use this skill when you need to migrate an XML View to Jetpack Compose in an Android…

android/skills · 98 tokens

gpt-image-2

A skill for generating or editing images with GPT Image 2 across local, host-provided, or advisory setups.

ConardLi/garden-skills · 177 tokens