docs(baseline): make CLAUDE.md enforce the SDD flow instead of suggesting it#31
Merged
Conversation
…aged agents and skills
…ting it The shipped CLAUDE.md treated "read csdd.md" as a soft suggestion and omitted the load-bearing guardrails, so an agent that skipped csdd.md lost every hard rule — hand-editing spec.json, skipping phase gates, authoring managed files directly. Move the guardrails into the always-loaded CLAUDE.md itself: - STOP gate that makes reading csdd.md a precondition for any artifact - Hard rules: csdd is the only author; never hand-edit spec.json / frontmatter / annotations / .mcp.json; never skip a phase gate; surface blocks instead of routing around them - Explicit ordered development cycle with generate -> human approve -> next phase, and that only csdd flips ready_for_implementation - Reinforced Non-negotiables with the spec.json / approve rules 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.
What
The shipped
CLAUDE.mdtemplate (internal/templater/templates/root/CLAUDE.md.tmpl) treated read csdd.md as a soft suggestion and omitted the load-bearing guardrails. An agent that skippedcsdd.mdlost every hard rule — and would hand-editspec.json, skip phase gates, and author managed files directly.This moves the guardrails into the always-loaded
CLAUDE.mditself:spec.json/ frontmatter / annotations /.mcp.json; never skip a phase gate; surface blocks instead of routing around them.ready_for_implementation.spec.json/csdd spec approverules at the top.Docs/template-only change (no Go code, no logic). The steering managed-block markers are preserved.
Verification
go test -race ./...(pre-push gate) ✅ all packages passgo test ./internal/templater/✅ template still renders, mentions csdd🤖 Generated with Claude Code