# imports-design-system-folder

imports-design-system-folder is a Claude Code rule that forbids importing UI packages directly into application code. All components must pass through a local design system directory.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 88 repo stars
- Author: alexj11324
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/alexj11324/Mikka/tree/HEAD/.claude/skills/react-native-skills/rules/imports-design-system-folder.md
- Updated: 2026-11-17
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/imports-design-system-folder

## What it does

The rule requires UI components to be re-exported from a designated design system folder instead of being pulled straight from packages like `react-native`. Application screens import strictly from internal paths.

Components start as plain re-exports or thin wrappers where `Pick` limits exposed props. Later adjustments happen inside that central folder without touching call sites across the codebase.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/imports-design-system-folder.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/imports-design-system-folder.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/imports-design-system-folder.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/imports-design-system-folder.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/imports-design-system-folder.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/alexj11324/Mikka/tree/HEAD/.claude/skills/react-native-skills/rules/imports-design-system-folder.md

## When to use it
- block direct external UI library imports across application screens
- isolate UI package dependencies inside a design system directory
- narrow component props down with `Pick` utility types
- swap UI component packages without altering screen imports

## Example prompts
- Create a button wrapper in the design system folder re-exporting from `@ui/button`
- Check the profile screen for direct `react-native` imports and redirect them to `@/components`

## Similar
- [expo-design-system](https://affpapa.org/en/nevibecode/skills/expo-design-system.md) — skill · 22700 installs
- [bundle-barrel-imports](https://affpapa.org/en/nevibecode/rules/bundle-barrel-imports.md) — rule · ★ 7191 repo stars
- [design-system](https://affpapa.org/en/nevibecode/skills/microsoft-design-system.md) — skill · ★ 1167 repo stars
- [tailwind-design-system](https://affpapa.org/en/nevibecode/skills/giuseppe-trisciuoglio-tailwind-design-system.md) — skill · 4800 installs
- [generic-react-design-system](https://affpapa.org/en/nevibecode/skills/generic-react-design-system.md) — skill · 191 installs
- [configuring-imports](https://affpapa.org/en/nevibecode/skills/configuring-imports.md) — skill · 4100 installs

From the same set: [alexj11324/mikka](https://affpapa.org/en/nevibecode/by/alexj11324/mikka.md) — 47 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
