Skip to content

fix(setup): add missing gen:skill-docs:user script#1807

Merged
garrytan merged 1 commit into
mainfrom
garrytan/tacoma-v1
May 30, 2026
Merged

fix(setup): add missing gen:skill-docs:user script#1807
garrytan merged 1 commit into
mainfrom
garrytan/tacoma-v1

Conversation

@garrytan

Copy link
Copy Markdown
Owner

What

Adds the gen:skill-docs:user npm script that setup and scripts/gen-skill-docs.ts already expect but package.json never defined.

"gen:skill-docs:user": "bun run scripts/gen-skill-docs.ts --respect-detection",

Why

On machines where gbrain is installed, ./setup regenerates the Claude-host SKILL.md files with un-suppressed brain-aware blocks by calling bun run gen:skill-docs:user --host claude (setup:1297). That script was missing, so the step failed with:

error: Script not found "gen:skill-docs:user"

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-41 documents the intended mapping: gen:skill-docs:user == gen:skill-docs --respect-detection. This PR just wires it up.

Verification

$ bun run gen:skill-docs:user --host claude
... TOTAL 64237 lines ~802764 tokens
EXIT=0

Surfaced while upgrading a global install from v1.52.0.0 → v1.54.0.0.

🤖 Generated with Claude Code

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>
@garrytan garrytan merged commit b882236 into main May 30, 2026
9 of 10 checks passed
@github-actions

Copy link
Copy Markdown

E2E Evals: ✅ PASS

0/0 tests passed | $0 total cost | 12 parallel runners

Suite Result Status Cost

12x ubicloud-standard-8 (Docker: pre-baked toolchain + deps) | wall clock ≈ slowest suite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant