Skip to content
Back to skills

Vertically Sliced Feature Modules

ASecurity

Feature-first module architecture for cohesive ownership, composition, and promotion boundaries. Use when designing, moving, or reviewing feature and package structure.

  • 14 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 6, 2026
code-qualitygit

Security analysis

A100/100

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

Scanned November 15, 2026

npx -y skills add Casper-Studios/casper-marketplace --skill vertically-sliced-feature-modules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vertically Sliced Feature Modules?

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

Security grade badge for Vertically Sliced Feature Modules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/casper-studios-vertically-sliced-feature-modules/badge)](https://www.skillsdirectory.com/skills/casper-studios-vertically-sliced-feature-modules)

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: vertically-sliced-feature-modules
description: Feature-first module architecture for cohesive ownership, composition, and promotion boundaries. Use when designing, moving, or reviewing feature and package structure.
license: MPL-2.0
metadata:
  author: 'Basti Ortiz <ortiz@bastidood.dev>'
  source: 'https://github.com/BastiDood/skills'
---

# 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.

## References

Read the reference that matches the ownership decision being changed.

1. Derive the directory tree from the production import graph.
   - [Recursively place every private dependency beneath its narrowest owning consumer.](./references/recursive-ownership.md)
   - [Give each public boundary an operational entry and keep private imports inside that boundary.](./references/entries-and-import-boundaries.md)
2. Broaden ownership only when the consumer set proves it is necessary.
   - [Place shared behavior at its lowest common owner before promoting it across features.](./references/ownership-promotion.md)
   - [Admit an independently buildable package only for a real dependency, runtime, build, or deployment closure.](./references/package-admission.md)
3. Preserve behavior and evidence while changing structure.
   - [Apply the ownership analysis to a fixed point and audit the resulting import graph.](./references/refactor-and-review.md)
   - [Collocate unit tests with their narrowest leaf and hoist cross-boundary scenarios to their composing owner.](./references/test-placement.md)

Files in this skill

  • LICENSE.txt16.3 KB
  • SKILL.md3.3 KB
  • agents/openai.yaml137 B
  • references/directory-structure.md1.5 KB
  • references/entry-points-and-composition.md2.4 KB
  • references/nested-subsystems.md1.5 KB
  • references/package-admission.md1.8 KB
  • references/public-contracts-and-import-direction.md1.5 KB
  • references/refactor-and-review.md1.8 KB
  • references/shared-code-promotion.md1.2 KB
  • references/test-placement.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 code-quality →

Comments

Loading comments…

Newsletter

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