Repository navigation
docs: migrate CLAUDE.md command reference to lazy-loaded sc-cli-reference skill - #69
Merged
Merged
Conversation
…ence skill CLAUDE.md (49.3k chars) tripped the large-memory-file warning and loaded ~12k est. tokens into every session, over half of it the annotated command reference. Move that reference to .claude/skills/sc-cli-reference/SKILL.md so only its one-line description stays resident and the body loads on demand; keep the zero-residue proof commands and a pointer in the root. Also drop the crate-layout tree (derivable from ls + Cargo.toml; all dependency rules kept) and three manifest-standard commands. CLAUDE.md: 49,338 -> 19,193 chars (~7.5k est. tokens/session saved).
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.
Why
A
/doctoraudit flagged the rootCLAUDE.mdat 49,338 chars — over the ~40k large-memory-file warning threshold, costing ~12k est. tokens of context in every session. Over half of that was the 344-line annotated command reference.What
## Commandsblock to.claude/skills/sc-cli-reference/SKILL.md(content byte-preserved). Only the skill's one-line description stays resident; the full reference loads on demand when working withsccommands or demos.sc demo,demo/run_demo.sh— they guard the Phase 1 disk invariant), theCARGO_TARGET_DIRnote, and a pointer to the skill. All invariants, standing boundaries, and the capability map are untouched.ls crates/+Cargo.toml; every dependency-direction rule kept verbatim) and three manifest-standard commands (cargo test,npm ci,npm run typecheck && npm test).Result
CLAUDE.md: 49,338 → 19,193 chars (~7.5k est. tokens/session saved; warning cleared).Note for reviewers: if
sccommand semantics change from here on, update the skill file rather than re-adding command tables toCLAUDE.md.