跳到正文
cccskills
免费在 GitHub 公开

slice

Turn a feature into well-defined, independently shippable slices — whether it's an epic that needs breaking apart or a single story that needs sharpening into a job story

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(5)

  • SKILL.md9.3 KB
  • example.md4.6 KB
  • examples/full-stack-slices.md7.0 KB
  • examples/job-stories.md772 B
  • references/slice-explorer.md2.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Phase 1: Understand the Work

If no feature is specified, open with:

"What are you building? Describe the feature or capability — big or small."

Wait for their answer before proceeding.

Once the feature is known, ask three things — conversationally, not as a form:

"Before we slice this, I need to understand it. Three things:

Who is this for — specifically? Not 'users', but which person, in which moment, with which need.

What does done look like? When this ships, what can that person do that they can't do today?

What's the part you're least sure about — technically, or in terms of what the user actually needs?"

Wait for their answers. Listen for: vagueness about the user (a sign the scope isn't understood), vagueness about done (a sign it will expand), and what they flag as uncertain (that's where the risk lives).

If their answers are vague, ask one follow-up before moving on. Do not proceed to slicing on work you don't understand.

Ground it in the codebase — when there is one

Slices invented in the abstract ignore reality. In an existing app, the right cut depends on what's already there: half of it may exist already, the layers it touches may already have the abstractions it needs, and the edge cases worth putting in acceptance criteria are the ones this domain actually has, not the ones you can imagine.

Skip this step entirely when it doesn't apply:

  • The conversation already carries a codebase map. If you arrived here from /feature-dev, its Phase 2 has already done this work — use what it found and move on. Never explore the same ground twice.
  • There's nothing to explore. Greenfield work, a brand-new app, or a feature that touches no existing behavior. Same for a product-shaped conversation where no repo is in play.

Otherwise, match the effort to the feature. For a small change in familiar territory, a few targeted reads inline are enough. For anything spanning layers or touching code you don't know, launch 2–3 general-purpose subagents in parallel (via the Agent tool) — give each the brief in references/slice-explorer.md plus a different angle to cover:

  • Find out whether this already exists, in whole or in part — the feature itself, an earlier attempt, or adjacent behavior that covers some of it.
  • Map the layers and models this would touch, and what abstractions are already available to reuse.
  • Find the closest comparable feature and report how it's tested — including the specific edge cases and error states those tests cover.

Ask each subagent to return the files most worth reading. When they return, read those files yourself before opening Phase 2.

What you do with this matters more than finding it. These facts are here to sharpen your questions, not to answer them. You now know things the developer may not, and the temptation is to hand it over as a plan — don't. Keep asking; let the grounding make the questions specific. "There's already a Subscription#cancel that soft-deletes — does your slice extend that or replace it?" is the same Socratic move as before, just aimed somewhere real. Do not present findings as a report, do not propose the slices yourself, and do not slide into designing the implementation. The developer still does the seeing.


Phase 2: Shape the Slices — Socratically

Based on the size and complexity of the feature, take one of two paths. Do not announce which path you're taking — just follow the one that fits.

Path A: The feature is already small

If the feature is a single, focused piece of work, help them sharpen it into a well-defined job story. Read examples/job-stories.md for the job story format. Guide them with:

  • "What's the specific situation the user is in when they need this? Not just 'using the app' — what moment triggers the need?"
  • "What do they want to do in that moment — and why does it matter to them?"
  • "How would you know this is done? What can the user do that they couldn't before — something you could demonstrate in 30 seconds?"

Push on scope:

  • "Is this actually one thing, or are you sneaking two things in? Could any part of this ship on its own?"
  • "Is there a simpler version that still solves the user's problem in that moment?"

Push on acceptance criteria:

  • "How would you verify this actually works? What are the specific things you'd check — the happy path, the edge cases, the error states?"
  • "If you handed this to someone who's never seen the feature, what checklist would they need to confirm it's done?"

If pushing reveals that the feature is actually multiple slices, switch to Path B.

Path B: The feature is large

Guide them to find the slices themselves, one question at a time.

Start here:

"What's the absolute minimum a user would need to get any value from this at all — the smallest thing that's real, not a prototype?"

This is the walking skeleton (thoughtbot / XP). It's almost always smaller than they think. Read examples/full-stack-slices.md to understand the principle: cut vertically through the stack, not horizontally. Push on it:

  • "Could a user actually do something with that, or is it just plumbing?"
  • "Is that one slice, or are you combining two things that could ship separately?"
  • "If you shipped only that, what feedback could you get from a real user?"

Once the first slice is clear, work outward:

  • "What's the next most important thing — not the next most obvious thing to build, but the next most valuable to the user?"
  • "What's the riskiest assumption — the thing that, if you're wrong, changes everything? Should that be a slice?"
  • "Is there anything in here that only exists to support another feature, not the user? That's probably not a slice."
  • "Which slices depend on each other, and which are actually independent?"

As each slice takes shape, push on acceptance criteria:

  • "How would you verify this slice works? What specific things would you check — happy path, edge cases, error states?"
  • "If you handed this to someone who's never seen the feature, what checklist would they need to confirm it's done?"

Keep pushing until they've named the full set. Validate each slice against two tests — ask them:

  1. "Can this ship independently — could it go to production on its own without the others?"
  2. "Can a user or stakeholder see the value — is this end-to-end, or is it a layer?"

If a slice fails either test, it's either too big or it's not a slice.


Phase 3: Deliverable

For a single slice

Produce a job story. Read examples/job-stories.md for the format:


[Short name] When [specific situation the user is in], I want [what they need to do] so [the outcome that matters to them]. Ships when: [The observable behavior that marks it done — what a user can do, not what the code does.] Acceptance criteria:

  • [Specific, verifiable condition — the happy path]
  • [Edge case or boundary condition]
  • [Error state or failure handling, if applicable] Risk / learning: [What this slice tests or de-risks, or "Low risk" if straightforward.]

Close with:

"Is this actually the smallest thing that delivers real value — or did you sneak scope into it?"

For multiple slices

Guide the sequencing:

"Now order them. First: what ships first, and why — not what's easiest to build, but what delivers the most learning or value earliest?"

Ask:

  • "Which slice would tell you the most about whether this is heading in the right direction?"
  • "Which slice has the most technical risk — is it early enough in the sequence?"
  • "If you ran out of budget after two slices, which two would you want to have shipped?"

When sequencing is agreed, produce the deliverable. Read example.md for a complete example of the expected format and quality. Format each slice as a job story:


Slice [N]: [Short name] When [specific situation the user is in], I want [what they need to do] so [the outcome that matters to them]. Ships when: [The observable behavior that marks it done — what a user can do, not what the code does.] Acceptance criteria:

  • [Specific, verifiable condition — the happy path]
  • [Edge case or boundary condition]
  • [Error state or failure handling, if applicable] Depends on: [Any prior slice it requires, or "none".] Risk / learning: [What this slice tests or de-risks.]

After the full list, give a one-paragraph sequencing rationale: why this order, what it de-risks early, and what it leaves for later.

Close with:

"Look at your first slice. Is it actually the smallest thing that delivers real value — or did you sneak scope into it?"

Wait for their answer. Respond with one short paragraph: what their answer reveals about how they naturally scope work, and whether they tend to start too big or too small.

Tone

Collaborative but rigorous. Slicing is a thinking tool, not a planning ceremony. Push back on slices that are too big, too vague, or not actually end-to-end. The test is always: could a real user touch this, and could a stakeholder see the value? If not, it's not a slice yet.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

challenge

免费

Pressure-test an assumption, decision, or inherited constraint — Socratic cross-examination that forces you to defend or abandon your position

中文简介正在准备中。当前显示原文说明。

thoughtbot/rails-consultant262026年9月19日 更新

explain

免费

Explain what a piece of code does — a specific file, class, or method in close detail, or a user-facing flow as a concise system overview. What it does and why, not whether it's good.

中文简介正在准备中。当前显示原文说明。

thoughtbot/rails-consultant262026年9月19日 更新

Take one new feature slice from idea to reviewed, committed code in a single guided pass — scope it into the smallest shippable slice, build it test-first with strict TDD, review and fix the diff, then commit it. Chains slice → test-driven-development → the built-in /code-review → git-commit. Not for reviewing an existing PR, upgrades, or open-ended design questions.

中文简介正在准备中。当前显示原文说明。

thoughtbot/rails-consultant262026年9月19日 更新

Turn the working changes into one or more atomic commits with well-written messages. Use whenever the user runs /git-commit or asks to commit their work, wrap up a feature, or "commit what I have."

中文简介正在准备中。当前显示原文说明。

thoughtbot/rails-consultant262026年9月19日 更新

hard-news

免费

Prepare to deliver difficult technical news to a client — a conversational prep session before the hard conversation happens

中文简介正在准备中。当前显示原文说明。

thoughtbot/rails-consultant262026年9月19日 更新

offboard

免费

Walk through the Designer/Developer wrap-up checklist for offboarding a client engagement — conversationally, one item at a time.

中文简介正在准备中。当前显示原文说明。

thoughtbot/rails-consultant262026年9月19日 更新

查看 thoughtbot 的全部技能

报告此技能的问题