Skip to content

Ground slice in the codebase before slicing - #51

Merged
stevepolitodesign merged 2 commits into
mainfrom
sp-slice-codebase-grounding
Jul 30, 2026
Merged

stevepolitodesign merged 2 commits into
mainfrom
sp-slice-codebase-grounding

Conversation

@stevepolitodesign

@stevepolitodesign stevepolitodesign commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Relates to #30

Slicing an existing app from an imagined version of it produces slices that don't survive contact with the code. Half the feature may already be built, or the layers it touches may already have the abstractions it needs.

Phase 1 now ends with a grounding step that fans out subagents to ask whether the feature already exists, what it would touch, and how the closest comparable feature is tested. That last one does the most work. Reading the existing tests is how you find out which columns are nullable and what happens when an external call fails, and that's the difference between a criterion that produces a real test and one that produces a vague one.

The risk is that grounding turns a Socratic skill into a briefing. The subagents are told not to propose slices, and the skill is told the facts exist to make its questions specific rather than to answer them.

Why feature-dev changes too

Its Phase 2 already does this exploration, so Phase 3 skips slice's version instead of paying for it twice. It keeps it as a checklist, though: Phase 2 asks about conventions and testing patterns, so it can miss what already exists or what the real edge cases are. This also fixes a stale reference in that phase, where the Task tool is now called Agent.

MINOR per CONTRIBUTING. Issue #50 covers a separate pre-existing bug in slice's example file paths, which this PR doesn't touch.

🤖 Generated with Claude Code

stevepolitodesign and others added 2 commits July 30, 2026 05:49
Slicing an existing app from an imagined version of it produces slices
that don't survive contact with the code. Half the feature may already
be built, the layers it touches may already have what it needs, and the
edge cases worth writing into acceptance criteria are the ones the domain
actually has — not the ones you can think of at the whiteboard.

Phase 1 now ends with a grounding step that fans out subagents to answer
three questions: does this already exist, what would it touch, and how is
the closest comparable feature tested. That third one does the most work.
Reading the existing tests is how you learn which columns are nullable
and what happens when the external call fails, which is the difference
between a criterion that produces a real test and one that produces a
vague one.

The risk is that grounding turns a Socratic skill into a briefing. The
new step and the bundled brief both guard against it: the subagents are
told not to propose slices, and the skill is told the facts exist to make
the questions specific, not to answer them.

`feature-dev` needed reworking to match, because its Phase 2 already does
this exploration. Phase 3 now skips slice's version rather than paying
for it twice, but keeps it as a checklist — Phase 2 asks about
conventions and testing patterns, and can miss what already exists or
what the real edge cases are. Also fixes a stale reference in that phase:
the Task tool is now called Agent.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A meaningful update to two existing skills, which CONTRIBUTING puts in
the MINOR bucket. `marketplace.json` carries the same version in two
places and both are kept in sync.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@stevepolitodesign
stevepolitodesign merged commit 4e2addb into main Jul 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant