Repository navigation
feat(skills): offer to install skills on first run - #1056
Open
JackNDwyer wants to merge 1 commit into
Open
JackNDwyer wants to merge 1 commit into
JackNDwyer wants to merge 1 commit into
Conversation
When a coding agent is on the machine and no LiveKit skills are installed, lk asks once, in a terminal, whether to install them globally (lk skills install --global). It runs before any sign-in, so API-key and self-hosted users see it too. Runs without a terminal or with --yes print a one-line tip instead and never wait for input; CI, --quiet, --json and LK_NO_SKILLS_PROMPT=1 skip it entirely. The answer is saved in the CLI config so it's asked only once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
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
lkasks once whether to install them globally. Yes runs the same install aslk skills install --global.lk project addand self-hosted users see it too.--yes(for example, a coding agent callinglk), it prints a one-line tip instead. CI,--quiet,--jsonandLK_NO_SKILLS_PROMPT=1skip it entirely.skills_prompted), so it's asked only once. Declining also stops the tip.skillscommands, help, version and completion, andlk agent init, which has its own skills offer.Why
Coding agents building LiveKit agents often don't have LiveKit's skills (DEVX-840), especially when starting from an empty folder, where no repo file can point them there. This installs the skills when the CLI is first used, however it was installed (Homebrew can't run this step itself). Ticket: DEVX-843. The cross-platform curl installer from the same ticket is in #1057.
Pairs with the template-side change in livekit-examples/agent-starter-python#114 and livekit-examples/agent-starter-node#75.
How to verify
HOME=$(mktemp -d) sh -c 'mkdir $HOME/.claude && lk token create --list --api-key k --api-secret s'. Expect the prompt. Yes installs seven skills into~/.claude/skillsand adds the Docs MCP server, then the command runs. No prints a skip line, then the command runs.HOME: no prompt.</dev/null(no terminal) on a freshHOME: oneTip:line on stderr, no prompt. Add--quiet,CI=1orLK_NO_SKILLS_PROMPT=1: no tip.Unit tests cover the decision table, the installed-skills check, and resolving the leaf command from the root
Beforehook. I tested both prompt answers and the non-interactive paths with a local build; the prompt was driven throughscriptrather than a real terminal.🤖 Generated with Claude Code