Skip to content
Back to skills

Architectures

ASecurity

Architecture pattern reference for Next.js & React projects. Covers Flat, Feature-Based, FSD, and Monorepo patterns with core principles, file placement, and import boundaries.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 27, 2026
data-aireactnextjsapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add ByeongminLee/nextjs-claude-code --skill architectures --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Architectures?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Architectures
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/byeongminlee-architectures/badge)](https://www.skillsdirectory.com/skills/byeongminlee-architectures)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: architectures
description: Architecture pattern reference for Next.js & React projects. Covers Flat, Feature-Based, FSD, and Monorepo patterns with core principles, file placement, and import boundaries.
---

# Architecture Patterns

Reference guide for choosing and applying architecture patterns. Used by the `/init` agent when generating `spec/ARCHITECTURE.md`.

## Pattern Summary

| Pattern | Team size | Core idea | When to use |
|---------|-----------|-----------|-------------|
| [Flat](arch-flat.md) | Solo | Root-level sharing, no feature grouping | Prototypes, simple apps, < 10 features |
| [Feature-Based](arch-feature-based.md) | Small (2-5) | Self-contained feature modules with public API | Clear feature boundaries, medium complexity |
| [FSD](arch-fsd.md) | Medium (5-15) | Strict unidirectional layer hierarchy | Complex domain logic, strict discipline needed |
| [Monorepo](arch-monorepo.md) | Large (15+) | apps/ + packages/ with Turborepo | Multiple apps, shared code, independent deploys |

## How to Choose

```
Is this a solo prototype or simple app?
├─ Yes → Flat
└─ No → Does the team need strict layer rules?
         ├─ Yes → Is the team 15+?
         │        ├─ Yes → Monorepo
         │        └─ No → FSD
         └─ No → Feature-Based
```

## Migration Path

```
Flat → Feature-Based → FSD → Monorepo
```

Each pattern is a superset of the previous. Migration is incremental — you don't need to rewrite everything at once.

## Agent Usage

- `/init` reads the detected pattern and applies the corresponding guide when writing `spec/ARCHITECTURE.md`
- Agents reference this skill for file placement and import boundary decisions
- The pattern guide is a reference — agents adapt to the actual project structure, not the other way around

Files in this skill

  • SKILL.md1.8 KB
  • arch-feature-based.md1.6 KB
  • arch-flat.md1.3 KB
  • arch-fsd.md1.9 KB
  • arch-monorepo.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.