vertical-slices

Divide TypeScript projects into vertical slices owning contracts, rules, persistence, and tests.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/izadoesdev/toolbase --skill vertical-slices-izadoesdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vertical-slices
Source: https://github.com/izadoesdev/toolbase/tree/main/.agents/skills/vertical-slices
Command: npx skills add https://github.com/izadoesdev/toolbase --skill vertical-slices-izadoesdev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The vertical-slices approach enables building features as independent slices that own contract, business rules, persistence logic, and tests, reducing cross-module coupling and improving testability across backend or fullstack TypeScript projects.

Core Features & Use Cases

  • A slice owns its contract, rules, persistence, and tests.
  • Prefer feature-first folders and thin entrypoints; keep business behavior inside the slice, not in transport or framework code.
  • Enforce stricter repository rules when present (for example AGENTS.md).

Quick Start

Document one clear slice boundary and create a compact design spec before implementation to begin.

Frequently Asked Questions about vertical-slices

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

FAQPage Schema
How do I reduce cross-module coupling in a TypeScript project?

Reduce cross-module coupling by dividing your TypeScript project into vertical slices, where each feature independently owns its contract, business rules, persistence logic, and tests.

What is the vertical slices architecture pattern for feature-first development?

The vertical slices pattern structures software projects as independent feature slices that own their contract, business rules, persistence, and tests, keeping business behavior out of transport or framework code.

How do I refactor a TypeScript backend to use vertical slices?

Refactor to vertical slices by documenting a clear slice boundary and creating a compact design spec before implementation, ensuring each slice owns its business behavior and co-located persistence.

Can I use vertical slices for fullstack TypeScript projects?

Yes, the vertical slices approach scales across both backend and fullstack TypeScript projects, enforcing explicit boundary contracts and dedicated test maturity gates for new features or refactoring.

When should I not use vertical slices for my TypeScript architecture?

Avoid vertical slices if your project cannot enforce explicit boundary contracts or co-located persistence, as the pattern relies on strict repository rules and feature-first folder structures to reduce coupling.

What's the best way to structure feature-first folders in TypeScript?

Structure feature-first folders with thin entrypoints that keep business behavior inside the vertical slice, enforcing explicit boundary contracts and co-located persistence rather than placing logic in transport code.