agentleFS
AgentiveStackAgentiveStack/skills/slice/SKILL.md

slice

Skill72 starsChanged 7 months agoMITView on GitHub

Break a spec, plan, or feature into independently-implementable vertical slices (tracer bullets). Each slice cuts through all layers end-to-end. Outputs a task list or GitHub issues. Use after /spec to plan implementation order.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use domain-model, rubber-duck and 3 more.

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.
  • thoughtbotSkill

    domain-model

    Turn a described business process into a domain model.

    Also in 3 projects that use this

  • thoughtbotSkill

    rubber-duck

    Start a rubber duck session.

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 4 projects that use this

  • AWSSkill

    retro

    Conduct a retrospective on a coding session.

    Also in 4 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the user passes a file path → read the spec

    line 18
  2. Very specific:

    If the user passes a GitHub issue number → fetch with gh issue view <number>

    line 19
  3. Distinctive:

    If neither → work from conversation context

    line 20
  4. Distinctive:

    Test infrastructure and conventions

    line 31
  5. Distinctive:

    Prefer many thin slices over few thick ones

    line 42
  6. Distinctive:

    Should any slices be merged or split?

    line 81
  7. Very specific:

    Create with gh issue create in dependency order (blockers first).

    line 95
  8. Distinctive:

    Use this template per slice:

    line 97
  9. Distinctive:

    Too-thick slices: If a slice takes more than a day, it's probably too thick.

    line 123
  10. Distinctive:

    "Setup" slices: Avoid slices that are just "set up the infrastructure." The first slice should include the minimal infrastructure needed to …

    line 125

“Common” is measured: kept by at least 6 in 10 of the 20 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 Slicing

Break a plan into thin, vertical slices that each deliver a complete path through all layers (schema, API/backend, UI, tests). Each slice is independently demoable and verifiable.

Process

1. Gather context

Work from whatever is already available:

  • If the user passes a file path → read the spec
  • If the user passes a GitHub issue number → fetch with gh issue view <number>
  • If neither → work from conversation context

Also read relevant domain documentation:

  • docs/CONTEXT_MAP.md for cross-context awareness
  • docs/contexts/<name>/CONTEXT.md for the relevant context's invariants and contracts

2. Explore the codebase (if not already done)

Understand the current state of the areas this work will touch. Focus on:

  • Existing interfaces and patterns to follow
  • Test infrastructure and conventions
  • Which parts of the feature already exist (partial implementations, related code)

3. Draft vertical slices

Break the plan into tracer bullet slices. Each slice is a thin vertical cut through ALL layers.

Rules:

  • Each slice delivers a narrow but COMPLETE path through every layer (schema → backend → API → UI → tests)
  • A completed slice is demoable or verifiable on its own
  • Prefer many thin slices over few thick ones
  • First slice should be the simplest possible end-to-end path (the tracer bullet)
  • Subsequent slices add breadth, edge cases, polish

Slice types:

  • AFK — can be implemented by an AI agent without human input. Prefer these.
  • HITL — requires human decision, design review, or external action (API keys, env setup, etc.)

Pragmatic TDD integration:

For each slice, note which parts need tests:

  • Core logic and domain rules → always test
  • Context boundary contracts → always test
  • API endpoints → test when non-trivial
  • UI/glue code → skip tests unless complex state management

4. Present and quiz the user

Present the proposed breakdown as a numbered list:

1. [Title] (AFK)
   Blocked by: None — can start immediately
   Tests: [what to test in this slice]

2. [Title] (AFK)
   Blocked by: #1
   Tests: [what to test]

3. [Title] (HITL — needs design decision on X)
   Blocked by: #1
   Tests: none (UI only)

Ask the user:

  • Does the granularity feel right? (too coarse / too fine)
  • Are the dependency relationships correct?
  • Should any slices be merged or split?
  • Are the correct slices marked AFK vs HITL?
  • Which slices should have tests?

Iterate until the user approves.

5. Output the slices

Based on user preference, either:

Option A: Local task list (default) Save to docs/contexts/<name>/specs/<feature>-slices.md

Option B: GitHub issues Create with gh issue create in dependency order (blockers first).

Use this template per slice:

## What to build

A concise description of this vertical slice. Describe the end-to-end behavior, not layer-by-layer implementation.

## Acceptance criteria

- [ ] Criterion 1 (behavioral — what the user/system can do after this)
- [ ] Criterion 2
- [ ] Tests pass for [specific behaviors]

## Testing scope

- [What to test in this slice — domain logic, boundary contracts, etc.]
- [What NOT to test — UI glue, trivial wiring]

## Blocked by

- #<issue-number> or "None — can start immediately"

Anti-patterns to avoid

  • Horizontal slices: "First do all the schema, then all the API, then all the UI" — NO. Each slice goes through all layers.
  • Too-thick slices: If a slice takes more than a day, it's probably too thick. Split it.
  • Testing as a separate slice: Tests are part of each slice, not a separate task.
  • "Setup" slices: Avoid slices that are just "set up the infrastructure." The first slice should include the minimal infrastructure needed to make one thing work end-to-end.

Related skills

  • /spec — create the spec that this skill breaks down
  • /tdd — implement each slice with tracer-bullet TDD
  • /domain — stress-test the slices against the domain model

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.