Add facts-only codebase scan to /sd:setup - #11
Merged
Conversation
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
Implements the Planned roadmap item
/sd:setupcodebase scan. Turns first-run setup from ablank
<<placeholder>>template into detected defaults - facts only, never constitution rules.Changes
commands/setup.md- new Phase 2.5 "Scan codebase (facts only)" (Claude-driven boundedsampling: stack,
paths.{src,tests,docs},commands.*from the project manifest, and an orderedinside-out
paths.layersmap). Adds a single batch confirmation gate (not a 4th question),wires detected facts into Phase 4 (CLAUDE.md) and Phase 6 (project-config.json), and adds a Rules
bullet pinning the facts-only boundary.
templates/project-config.template.json- addspaths.layers: []with a usage note.CHANGELOG.md-[Unreleased] -> Addedentry.docs/superpowers/- design doc + implementation plan for traceability.Design decisions
accidental patterns as enforced law.
setup.md, keeping the enginestack-agnostic with no cross-platform ps1/sh pair to maintain.
paths.layersis an ordered inside-out[{name, path}]array - order encodes dependencydirection, backing constitution 1.1.
Verification
scripts/validate.ps1- all 6 checks pass (command count unchanged at 10;[Unreleased]gatesatisfied).
xglyphs untouched;.mdnot subject to the.ps1-only ASCII gate).Constraints preserved:
<=3interactive questions, idempotent, stack-agnostic, no BOM, engine nevermodified.
🤖 Generated with Claude Code