vertically-sliced-feature-modules

Installation
SKILL.md

Vertically Sliced Feature Modules

Organize systems around capabilities that own their implementation end to end. Reconstruct the production import graph and the build + runtime boundaries before proposing folders. Treat example names as adaptable ownership shapes, not prescribed filenames.

Recursive Ownership

A feature or subsystem owns the complete private import closure required to provide its operation. Apply this rule recursively:

  1. Place each private dependency beneath its narrowest production consumer.
  2. Place a dependency used by several children at their lowest common owning ancestor.
  3. Let external consumers import only an operational entry.
  4. Do not import ancestor-private or sibling-private implementation files.
  5. Repeat the placement analysis inside every child until no dependency can move closer to its consumer.

An entry implements or composes the operation its consumer needs. A file that only re-exports private leaves is a barrel, not an entry. Familiar entry filenames such as index.ts, mod.rs, __init__.py, page.tsx, and +page.svelte can make a boundary visible, but the filename does not create the boundary.

Name operation-owning subsystems with verbs such as filter, edit, review, or publish. Use nouns for owned domain concepts, records, and infrastructure such as policy, repository, or schema. Follow an established repository convention when it communicates the same ownership clearly.

Features are isolated siblings and do not import one another. Callers and orchestrators compose feature entries. Promote stable behavior only when its real consumer set requires a broader owner.

Installs
18
GitHub Stars
14
First Seen
Sep 14, 2026