fix(setup): add missing gen:skill-docs:user script#1807
Merged
Conversation
setup (line 1297) and scripts/gen-skill-docs.ts (lines 40-41) both expect a `gen:skill-docs:user` npm script — `gen:skill-docs` plus `--respect-detection` — but it was never defined in package.json. The brain-aware SKILL.md regen step in ./setup therefore failed with `error: Script not found "gen:skill-docs:user"` and was silently skipped, so machines with gbrain installed never got the un-suppressed brain-aware blocks regenerated on setup. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
E2E Evals: ✅ PASS0/0 tests passed | $0 total cost | 12 parallel runners
12x ubicloud-standard-8 (Docker: pre-baked toolchain + deps) | wall clock ≈ slowest suite |
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
Adds the
gen:skill-docs:usernpm script thatsetupandscripts/gen-skill-docs.tsalready expect butpackage.jsonnever defined.Why
On machines where gbrain is installed,
./setupregenerates the Claude-host SKILL.md files with un-suppressed brain-aware blocks by callingbun run gen:skill-docs:user --host claude(setup:1297). That script was missing, so the step failed with:The failure was non-fatal (setup continued and reported "ready"), but the brain-aware blocks were silently skipped — gbrain-equipped machines never got the regenerated planning skills with gbrain context blocks.
scripts/gen-skill-docs.ts:40-41documents the intended mapping:gen:skill-docs:user==gen:skill-docs --respect-detection. This PR just wires it up.Verification
Surfaced while upgrading a global install from v1.52.0.0 → v1.54.0.0.
🤖 Generated with Claude Code