feat(baseline): clear context and branch-first at spec boundaries#29
Merged
Conversation
Fold two spec-boundary discipline steps into the shipped baseline templates: - /clear at each feature/spec boundary — start a spec on a clean context and reset once its PR ships; the Stop hook nudges when a spec's tasks are all checked. - Branch-first before implementation — git switch -c <type>/<feature> (kebab case), enforced by the PreToolUse hook blocking commit/push on the default branch. Updates the CLAUDE.md workflow, the SDD guide loop, the wf-development agent, and the test-before-stop / block-destructive hooks. No spec — direct workflow adjustment requested by the user. Co-Authored-By: Claude Opus 4.8 (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.
Summary
Folds two spec-boundary workflow-discipline steps into the shipped baseline templates (
internal/templater/templates/), so downstreamcsdd init/updateusers get them:/clearat each feature/spec boundary — start a spec on a clean context and reset once its PR ships. The Stop hook (test-before-stop.sh) nudges the operator when a spec'stasks.mdis fully checked.git switch -c <type>/<feature>(kebab-case:feat/fix/chore/refactor/docs/test/perf/), enforced by the PreToolUse hook (block-destructive.sh), which now blocksgit commit/git pushon the default branch.Touches the CLAUDE.md workflow, the SDD guide loop (§9.2), the
wf-developmentagent, and thetest-before-stop/block-destructivehooks. No spec — a direct workflow adjustment requested by the maintainer. (Layer-3.claude//CLAUDE.mdcopies are gitignored; this PR carries the baseline.tmplsource, whichcsdd updatedogfoods locally.)Verification
🤖 Generated with Claude Code