Skip to content
Skills Library
Programming · Planning

system-design

/system-design

Architectural thinking for small-to-medium projects — scoping MVPs, the 3-layer pattern (UI/Service/Data), data flow design, modularity, and deciding how to structure new code. Use when the user is planning a new project or feature, asks "how should I structure this", wants to think through data flow, or is scaling a working MVP. Focused on pragmatic design, not large-scale distributed systems.

Licence
MIT
Last repository change
09.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 09.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Architectural thinking for small-to-medium projects — scoping MVPs, the 3-layer pattern (UI/Service/Data), data flow design, modularity, and deciding how to structure new code. Use when the user is planning a new project or feature, asks "how should I structure this", wants to think through data flow, or is scaling a working MVP. Focused on pragmatic design, not large-scale distributed systems.

Triggers from the description

how should I structure this
Original author description

Architectural thinking for small-to-medium projects — scoping MVPs, the 3-layer pattern (UI/Service/Data), data flow design, modularity, and deciding how to structure new code. Use when the user is planning a new project or feature, asks "how should I structure this", wants to think through data flow, or is scaling a working MVP. Focused on pragmatic design, not large-scale distributed systems.

How it works

  1. When to Use
  2. Architecture Thinking
  3. Data Flow
  4. Modular Design
  5. MVP-First Approach
  6. Design Decision Template
  7. Best Practices
  8. Common Mistakes
Original SKILL.md headings · 176 lines, 715 words
SKILL.md preview
---
name: system-design
description: Architectural thinking for small-to-medium projects — scoping MVPs, the 3-layer pattern (UI/Service/Data), data flow design, modularity, and deciding how to structure new code. Use when the user is planning a new project or feature, asks "how should I structure this", wants to think through data flow, or is scaling a working MVP. Focused on pragmatic design, not large-scale distributed systems.
---

# Skill: System Design

> **Purpose**: Think architecturally. Design systems that are modular, simple, and shippable.

## When to Use
- Planning a new project or feature
- Deciding how to structure code
- Thinking about data flow
- Scaling a working MVP

---

## Architecture Thinking

### Start with the Question
Before writing any code, answer:
1. **What problem does this solve?** (one sentence)
2. **Who uses it?** (user, API consumer, developer)
3. **What data goes in?** (inputs)
4. **What comes out?** (outputs)
5. **What's the simplest version that works?** (MVP scope)

### The 3-Layer Pattern
Most applications fit this structure:

```
┌─────────────┐
│   UI / CLI   │  ← Handles user interaction
├─────────────┤
│   Service    │  ← Business logic (the brain)
├─────────────┤
│   Data       │  ← Storage (file, DB, API)
└─────────────┘
```

**Rule**: Each layer only talks to the one below it. Never skip layers.

```java
// ✅ Correct: Controller → Service → Repository
class TaskController {
    private final TaskService service;
    void handleAdd(String title) { service.addTask(title); }
}

class TaskService {
    private final TaskRepository repo;
    void addTask(String title) {
        validate(title);
        repo.save(new Task(title));
    }
}

class TaskRepository {
    void save(Task task) { /* write to file or DB */ }
}
```

---

## Data Flow

### Map it Before Coding
```
User Input → Validate → Process → Store → Respond

Example: User registers
1. User submits form (name, email, password)
2. Validate: email format, password strength
3. Process: hash password, generate ID
4. Store: save to database
5. Respond: return success + user ID
```

### Identify Boundaries
Ask: "If I need to replace X, what else breaks?"

```
// ❌ Tightly coupled — replacing the DB breaks everything
function addUser(name) {
  db.query("INSERT INTO users VALUES (" + name + ")");
}

// ✅ Loosely coupled — replacing the DB only changes the repository
function addUser(name) {
  const user = createUser(name);    // Business logic
  repository.save(user);             // Storage abstraction
}
```

---

## Modular Design

### One Module = One Responsibility
```
project/
├── src/
│   ├── auth/          ← Authentication logic
│   │   ├── AuthService.java
│   │   └── PasswordHasher.java
│   ├── tasks/         ← Task management
│   │   ├── TaskService.java
│   │   ├── Task.java
│   │   └── TaskRepository.java
│   ├── users/         ← User management
│   │   ├── UserService.java
│   │   ├── User.java
│   │   └── UserRepository.java
│   └── Main.java      ← Entry point only
```

### Rules for Modules
1. **No circular dependencies** — if A needs B and B needs A, extract shared logic to C.
2. **Small interfaces** — expose only what other modules need.
3. **Package by feature**, not by type (don't create `/models`, `/services`, `/utils` folders).

---

## MVP-First Approach

### Phase 1: Make It Work
- Hardcode what you can
- Use files instead of databases
- No authentication yet
- Console output is fine

### Phase 2: Make It Right
- Extract repeated code into functions
- Add input validation
- Add error handling
- Write basic tests

### Phase 3: Make It Better
- Add persistence (DB if needed)
- Add user authentication
- Improve UX
- Optimize performance bottlenecks

**Critical rule**: Never start at Phase 3.

---

## Design Decision Template

When choosing between approaches:

```markdown
## Decision: [Topic]
### Options
| Option | Pros | Cons |
|--------|------|------|
| A      | ...  | ...  |
| B      | ...  | ...  |

### Recommendation: [Option] because [one-sentence reason]
```

---

## Best Practices
1. **Draw before you code** — a box diagram takes 5 minutes and saves hours
2. **Start with the data model** — if your data is right, the code follows
3. **Design for deletion** — can you remove a feature without rewriting everything?
4. **Name your boundaries** — if you can't name the module, it does too much
5. **Optimize last** — premature optimization is the root of all evil

## Common Mistakes
| Mistake | Fix |
|---------|-----|
| Building everything at once | Ship MVP, iterate |
| No clear data flow | Draw input → process → output before coding |
| Circular dependencies | Extract shared logic into a new module |
| Over-engineering for "future needs" | Build for today, refactor when needed |
| Skipping the design phase | Spend 20% of time planning, save 50% debugging |

Versions

RepositoryScoreLicence
This page · DaraBoth/skilljmskill100MIT
proyecto26/system-design-skills100MIT
nimadorostkar/Claude-Skills-collection100MIT
Marwan-G/pavedline100MIT
pinchen147/system-design-skill100MIT
reddygopalkrishna/developer-agent-skills100MIT
sudeeppatgar/fullstack-skills100MIT
rmsaitam/skill-system-design100MIT
wondelai/skills100MIT

Database snapshot: 13.11.2026 · package version c528de342f52 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90Lead Architect Agent
    Senior architectural decision-making, system design, and clean-architecture layer review for a feature or service. Use when designing a new feature's architecture before implementation, choosing a stack or database, reviewing layer boundaries (domain / application /…
  • 100mvp-design
    Use when designing new modules from scratch, creating minimal viable prototypes, or establishing architectural decisions before implementation
  • 96scaffold-mvp
    Use when starting a new .NET/Blazor/Angular MVP project in an empty repository.
  • 100flutter-architecture
    Current (2026) Flutter app architecture from the Flutter team's official guide, Very Good Ventures and LeanCode - UI layer (View + ViewModel/Cubit/Notifier) and data layer (Repository + Service), feature folders, dependency injection, Result/Command patterns, networking and JSON…
  • 100plan
    Systematic planning for medium-to-large tasks. Gathers context, identifies domain skills, writes phased plans to brain/plans/. Does NOT implement. Use for new features, multi-file refactors, or architectural changes — not small fixes. Triggers: "plan this", "break this down".
  • 100dev-new-tool
    End-to-end workflow for taking a new tool idea from research to working MVP. Use when the user has an idea for a CLI tool, library, or small project and wants to go from concept to initial implementation. Triggers on "I have an idea for a tool", "build a new CLI", "create a new…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.