boundary-checker

Detect FSD import boundary violations in TypeScript/JavaScript codebases.

4|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/jhlee0409/claude-plugins --skill boundary-checker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: boundary-checker
Source: https://github.com/jhlee0409/claude-plugins/tree/main/plugins/fsd-architect/skills/boundary-checker
Command: npx skills add https://github.com/jhlee0409/claude-plugins --skill boundary-checker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces FSD import boundary rules by scanning a codebase and identifying violations such as higher-layer imports, cross-slice imports, and improper @x/ references.

Core Features & Use Cases

  • Detect higher-layer imports that breach the Layer Hierarchy.
  • Flag cross-slice imports within the same layer, with optional @x/ cross-reference validation.
  • Validate public API usage to prevent internal path imports.
  • Generate a structured report of violations to guide refactoring and cleanup.

Quick Start

Run boundary-checker with your project repository to analyze all source files and report violations. Provide the root path to the codebase and the current layer map to begin validation.

Frequently Asked Questions about boundary-checker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check for FSD import boundary violations in a TypeScript codebase?

To check FSD import boundary violations in a TypeScript codebase, analyze your source files against a layer map to detect cross-layer and cross-slice imports. This surfaces structural violations across your layered architecture.

What are FSD cross-slice imports and how do they break layered architecture?

FSD cross-slice imports occur when one slice within the same layer directly imports from another, breaking layered architecture isolation. Detecting these violations ensures slices remain independent and maintain proper public API boundaries.

How do I validate @x/ cross-references in Feature-Sliced Design?

To validate @x/ cross-references in Feature-Sliced Design, apply optional cross-reference rules during import analysis to ensure higher-layer slices only access lower-layer slices through designated public APIs, preventing improper internal path imports.

Can I enforce public API usage rules across app, pages, widgets, features, and entities layers?

Yes, you can enforce public API usage rules across app, pages, widgets, features, and entities layers by evaluating TypeScript imports against your defined layer map and flagging internal path accesses that bypass public APIs.

What do I need to provide to start analyzing FSD layer hierarchy violations?

To start analyzing FSD layer hierarchy violations, you need to provide the root path to your codebase for file content access and a defined layer map specifying your rules for extracting and evaluating TypeScript imports.

How do I generate a report of higher-layer import violations for refactoring?

Generate a report of higher-layer import violations by scanning all source files and extracting imports that breach the layer hierarchy. This structured output guides targeted refactoring and codebase cleanup efforts.