Repository navigation
Ground slice in the codebase before slicing - #51
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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