agentleFS
HM-IT-CODEHM-IT-CODE/forge-skills/skills/engineering/vertical-slice/SKILL.md

vertical-slice

Skill0 starsChanged 6 months agoMITView on GitHub

Breaks a feature into thin, end-to-end vertical slices that each ship independently. Use when the user describes a large feature, says "where do I start", "break this down", "plan this feature", or is tempted to build layer-by-layer (all the DB, then all the API, then all the UI). Produces an ordered list of shippable slices.

5 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ux-design.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MindrallySkill

    ux-design

    UX design principles for creating intuitive, accessible, and user-centered digital experiences

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Stop and present the plan: before writing code. Let the user approve or reorder.

    line 29

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Vertical Slice

Big features die in horizontal layers: you build the whole database, then the whole API, then the whole UI, and nothing works until the very end. Instead, cut vertical slices — each one goes through every layer and delivers a sliver of real, demonstrable value.

What a good slice is

A vertical slice is the thinnest possible change that is end-to-end and observable. It touches whatever layers it needs (storage → logic → interface) but does the minimum in each.

  • Thin: does one concrete thing a user or caller can see.
  • End-to-end: runs all the way through the system, even if hardcoded in places.
  • Shippable: could be merged and deployed on its own without breaking anything.
  • Ordered by value + risk: the first slice should retire the biggest unknown.

Method

  1. Restate the feature in one sentence as an outcome, not a component list.
  2. Find the walking skeleton — the smallest path that exercises every layer end-to-end, even with fake data. That's slice #1.
  3. Enumerate slices that each add one increment of real behavior on top. For each slice write:
    • Title (imperative, user-facing where possible)
    • Demo — the one sentence you'd say to show it works ("now an empty list returns [] over HTTP")
    • Layers touched
    • Explicitly out of scope for this slice
  4. Order them so the riskiest assumption is tested first and each slice leaves the system shippable.
  5. Stop and present the plan before writing code. Let the user approve or reorder.

Anti-patterns to refuse

  • "First I'll build all the models." → No. That's a horizontal layer with no demo.
  • A slice whose only demo is "the code compiles." → Not a slice; it's plumbing. Fold it into a slice that produces visible behavior.
  • A slice that can't ship without three other slices. → Too thick or wrongly ordered.

Output

Deliver a numbered list of slices, each with title / demo / layers / out-of-scope, plus a one-line note on which unknown slice #1 retires. Then ask which slice to build first — and hand off to tdd-loop to build it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.