fsd-check — community fsd-check, article-space, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Code Analysis Agents needing Feature-Sliced Design compliance validation for React and TypeScript projects. Modern blogging platform built with React, TypeScript and Mantine

riedel28 riedel28
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The fsd-check skill by riedel28 is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Code Analysis Agents needing Feature-Sliced Design compliance validation for React and TypeScript projects.

Core Value

Empowers agents to enforce strict FSD methodology, ensuring layers only import from layers below them, with no cross-imports within the same layer, using absolute imports with @/* alias, and validating compliance through public API (index.ts).

Capabilities Granted for fsd-check

Validating FSD layer hierarchy
Enforcing import rules for layers
Checking compliance with Feature-Sliced Design methodology

! Prerequisites & Limits

  • Requires React and TypeScript project setup
  • Limited to validating FSD compliance, not enforcing it
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

fsd-check

Install fsd-check, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

FSD Architecture Checker

Validates Feature-Sliced Design compliance for this codebase.

FSD Layer Hierarchy

The project follows strict FSD methodology:

app → pages → widgets → features → entities → shared

Rules:

  • Layers can ONLY import from layers below them
  • No cross-imports within the same layer (features cannot import other features)
  • All imports must go through public API (index.ts)
  • Use absolute imports with @/* alias

Checks Performed

1. Layer Import Violations

Check that imports respect the hierarchy:

  • app can import: pages, widgets, features, entities, shared
  • pages can import: widgets, features, entities, shared
  • widgets can import: features, entities, shared
  • features can import: entities, shared
  • entities can import: shared, other entities (same layer allowed)
  • shared can only import: shared

2. Public API Violations

All imports from entities, features, pages, widgets must go through index.ts

typescript
1// CORRECT 2import { Article } from '@/entities/Article'; 3 4// WRONG - bypasses public API 5import { Article } from '@/entities/Article/model/types';

3. Cross-Slice Violations

Within the same layer, slices should not import each other directly:

typescript
1// In features/AuthByUsername - WRONG 2import { something } from '@/features/AnotherFeature';

4. Missing Public API

Check if slices have proper index.ts exports.

How to Run Checks

Option A: Run ESLint FSD Rules

bash
1npx eslint "src/**/*.{ts,tsx}" --rule 'ulbi-tv-plugin/layer-imports: error' --rule 'ulbi-tv-plugin/public-api-imports: error' --rule 'ulbi-tv-plugin/path-checker: error'

Option B: Manual Analysis

  1. Use Grep to find problematic import patterns
  2. Check specific layers or slices

Analysis Workflow

When user invokes /fsd-check:

  1. If argument provided (e.g., /fsd-check features):

    • Focus analysis on that specific layer or path
    • Run targeted checks
  2. If no argument:

    • Ask user what to check: full codebase, specific layer, or specific slice
    • Or run quick overview of all layers
  3. For each check:

    • Search for violation patterns using Grep
    • Report findings in format: file:line - violation description
  4. Output summary:

    • Total violations by category
    • Most problematic files/slices
    • Suggested fixes

Layer violations (Grep patterns)

# Features importing from pages/widgets
path: src/features/
pattern: from ['"]@/(pages|widgets)/

# Entities importing from features/pages/widgets
path: src/entities/
pattern: from ['"]@/(features|pages|widgets)/

# Shared importing from any other layer
path: src/shared/
pattern: from ['"]@/(entities|features|pages|widgets|app)/

Public API violations

# Deep imports into slices (more than 2 segments after @/)
pattern: from ['"]@/(entities|features|pages|widgets)/[^'"]+/[^'"]+

Cross-slice violations

# Feature importing another feature (check current file path vs import)
# This requires analyzing file location context

Output Format

Report findings as:

## FSD Violations Found

### Layer Import Violations (X found)
- `src/features/Auth/ui/LoginForm.tsx:15` - features cannot import from widgets
- `src/entities/User/model/slice.ts:3` - entities cannot import from features

### Public API Violations (X found)
- `src/widgets/Sidebar/ui/Sidebar.tsx:8` - import should be `@/entities/User` not `@/entities/User/model/types`

### Cross-Slice Violations (X found)
- `src/features/Auth/ui/Form.tsx:12` - feature should not import from another feature

### Summary
- Total: X violations
- Critical: X (layer violations)
- Fixable: X (public API - has autofix via ESLint)

Quick Commands

For the user's reference:

bash
1# Run all FSD ESLint rules 2npm run lint:ts -- --rule 'ulbi-tv-plugin/layer-imports: error' 3 4# Check specific layer 5npx eslint "src/features/**/*.{ts,tsx}" --rule 'ulbi-tv-plugin/layer-imports: error' 6 7# Auto-fix public API imports 8npx eslint "src/**/*.{ts,tsx}" --rule 'ulbi-tv-plugin/public-api-imports: error' --fix

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is fsd-check?

Perfect for Code Analysis Agents needing Feature-Sliced Design compliance validation for React and TypeScript projects. Modern blogging platform built with React, TypeScript and Mantine

How do I install fsd-check?

Run the command: npx killer-skills add riedel28/article-space/fsd-check. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for fsd-check?

Key use cases include: Validating FSD layer hierarchy, Enforcing import rules for layers, Checking compliance with Feature-Sliced Design methodology.

Which IDEs are compatible with fsd-check?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for fsd-check?

Requires React and TypeScript project setup. Limited to validating FSD compliance, not enforcing it.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add riedel28/article-space/fsd-check. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use fsd-check immediately in the current project.

Related Skills

Looking for an alternative to fsd-check or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI