agentleFS
patrick-xinpatrick-xin/tonex/.claude/skills/slice/SKILL.md

slice

Skill1 starsChanged 6 months agoApache-2.0View on GitHub

Apply tonex's build method — vertical slices with a one-sentence promise, two-adapters = real seam, Red-Green-Refactor, blueprint slices — when planning, decomposing, deciding "what should I build next?", or judging whether an abstraction is earned. Use at the start of any design/phasing task, especially file-free planning, or whenever invoked via /slice. The method docs are real but filed under session-flow's weak "read when relevant" gate that planning tasks (no files touched → no nested-AGENTS.md delivery) systematically miss; this injects them on demand.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use rubber-duck and standup.

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

    rubber-duck

    When a user is stuck, frustrated, or describing a problem vaguely, do NOT immediately suggest solutions. First, force structured problem articulation through targeted questions: What did you expect? What happened instead? What have you tried? Only after the problem is clearly defined, propose solutions.

    Also in 3 projects that use this

  • AnthropicSkill

    standup

    Generate a standup update from recent activity. Use when preparing for daily standup, summarizing yesterday's commits and PRs and ticket moves, formatting work into yesterday/today/blockers, or structuring a few rough notes into a shareable update.

    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, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When you lean on "two-adapters = real seam," cite both the rule (slice-strategy.md) and the ADR applying it — close the cross-link …

    line 29

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

Slice

The build method for turning a decision into shipped work: vertical slices, test-first, abstractions only when earned. Invoke before any planning, decomposition, "what next", or abstraction-design task — the kind that touches no files, so the nested-AGENTS.md "rules arrive with the code" delivery never fires and the method sits behind session-flow's weakest gate ("read when relevant").

This skill owns the operating procedure; the policy lives in docs. Don't restate the rules — read them:

  • Slice discipline + the "two-adapters = real seam" rule → docs/agents/slice-strategy.md.
  • The test-first contract — "the process" here is Red-Green-Refactor — → docs/agents/tdd.md, plus the per-layer testing shards it points to.

Gates — apply every time

  1. One-sentence promise, stated first. Can't say the slice in one sentence? Too big — split. The Red test captures the promise. (slice-strategy rule 1)
  2. No "while I'm here." Anything outside the Red test is a different slice. YAGNI inside the slice. (rule 2)
  3. Two adapters = real seam. One concrete consumer = no abstraction; two = candidate. A speculative second ("we might add X") does not count — a second concrete adapter being actually in scope is what flips it. The rule ADR-0001/ADR-0004 invoke but only slice-strategy.md defines.
  4. Red-Green-Refactor. Refactor (third R) only on green; never while red. (tdd)
  5. Blueprint slices are legitimate — no code, only ADRs / doc updates — when a decision spans multiple implementation slices and must land first. Name them as such; cite ADR-0019 / ADR-0020. Don't reinvent the concept unnamed.
  6. Depth before breadth in foundation slices. Smallest token set that exercises every seam (source → derive → DOM → export, light/dark, md + shadcn) before scaling coverage. Slice 1 verifies both layers — the "and" is load-bearing.

Output contract

  • Asked "what should I build next?" → name the one-sentence promise first, then refuse expansions.
  • Each proposed slice carries its Red test as the contract; don't describe code beyond what that test demands.
  • When you lean on "two-adapters = real seam," cite both the rule (slice-strategy.md) and the ADR applying it — close the cross-link session-flow leaves dangling.
  • Any phasing that bundles two seams into one step is a rule-1 violation — flag it and split.

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.