fix: adaptive prompt hint + clearer bundled-skill wording + demo/README refresh#155
Merged
Conversation
- demo.tape: replace bare ls with `skilltree targets list`, append `doctor` and `list` scenes so the demo reflects current CLI surface (PRs since c303916: doctor, gitignore drift check, packs footer, etc). - README commands table: note the new "Defined packs" footer on `list` and the `--target` requirement on `vendor` with multiple install_targets. No code change; re-record (`make gh-demo`) deferred to sir.
The "Include all? [Y/n/1,3,5]" prompt hardcoded "1,3,5" as the comma-separated-index sample, which advertised indices that don't exist when fewer than 5 options are printed. With two detected agents the user saw `[1] / [2]` followed by `[Y/n/1,3,5]`, suggesting indices 3 and 5 were valid picks. - Add `buildSelectionHint(n)` that sizes the sample to the actual count (n=2 → "1,2", n=3..4 → "1,3", n>=5 → "1,3,5"). - Apply it at both prompt sites (`promptForTargetSelection`, `promptForSelection`). - Update demo.tape to detect cursor instead of codex — codex's install dir is `.agents/` (codex reads from there), which made the gitignore output in the demo look like a bug to viewers.
6b9f556 to
df72888
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The bundled-skill check's "missing" state rendered as "Claude Code: not installed" / "Cursor: not installed", which read as "Claude Code / Cursor is not installed" — but the user is plainly using the agent. What's actually missing is the skilltree skill for that agent. Switch to "skill missing", e.g. "Claude Code: skill missing; Cursor: skill missing". The "Run `skilltree teach` to install the skilltree skill" remediation already made the intent clear; this brings the per-agent line in line with it.
Without this, doctor's bundled-skill check warns about the skilltree skill being absent from the demo's fake \$DEMO_HOME — a state no returning user would actually be in (`teach` is a one-time global install). The warning was technically correct but misleading: a viewer reasonably thinks "I just ran install, why is there still something to install?" Pre-teaching in the Hide block mirrors real-world state.
The player's play-button overlay sits at the bottom-center of the final frame and obscured the last 2-3 lines of demo output. Push the closing message up with a few blank prompts so it stays readable.
GitHub's camo image proxy silently returns 404 for source images larger than ~5 MB, which means the README image stops rendering on the repo page even though the asset is live on gh-pages. The new scenes pushed the GIF from 4.8 MB to 5.5 MB and tripped this. Add a gifsicle -O3 --lossy=80 --colors 128 pass at the end of the `demo` target so every recording lands well under the limit (5.5 MB → 3.0 MB on the current tape). gifsicle joins vhs + ffmpeg as a required local tool — brew install hint included in the prereq check.
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
Four connected fixes discovered while refreshing the demo recording:
Include all? [Y/n/1,3,5]prompt was misleading —1,3,5was hardcoded, so with 2 detected agents the user saw[1] / [2]followed by a hint claiming indices3and5were valid too. Spotted in the new demo recording.bundled-skillwarning read as agent-not-installed —"Claude Code: not installed"is ambiguous: the user is plainly running inside Claude Code. What's missing is the skilltree skill for that agent. Renamed to"Claude Code: skill missing".doctor, multi-agent showcase, packs footer, etc. (~48 commits since).listandvendordescriptions elided behavior shipped in PR Bundled bugfix sweep — issues #150, #138, #143, #72 #152 and perdocs/specs/multi-agent.mdR19.What changed
src/commands/init.ts— newbuildSelectionHint(n)helper that sizes the example indices to the actual option count (n=2 →1,2, n=3..4 →1,3, n≥5 →1,3,5). Applied at both prompt sites.src/commands/doctor.ts—formatAgentState's "missing" branch now renders"<Label>: skill missing".buildSelectionHint; regression guard on the init prompt hint; tightened BSC1 to fail on the old "not installed" wording.demo/demo.tape.codexdetection for.cursor— codex installs into.agents/(codex reads from there), and the surprise path in the demo's.gitignoreoutput read like a bug to viewers.lswithskilltree targets list.skilltree doctor) and Scene 9 (skilltree list).README.md— note the "Defined packs" footer onlist, and the--targetrequirement onvendorwith multipleinstall_targets.How tested
bun test— 1629 pass, 0 fail (added 7 new assertions across 2 files).install.ts:201,verify.tsstatus column,targets list, other doctor cases) — no similar agent-vs-skill ambiguity found.dist/skilltreebuilt at0.38.0+ both fixes) and republished. Live: https://imarios.github.io/skilltree/demo.mp4Risk & rollback
Low. Both fixes are additive/wording; existing parse grammar and doctor status enums untouched. Demo and README changes are docs-only. Revert via
git revertper commit if a tweak is preferred.