Skip to content

Make VALYU_API_KEY skill input optional#74

Merged
yorkeccak merged 1 commit into
mainfrom
fix/skill-optional-api-key
Jul 8, 2026
Merged

Make VALYU_API_KEY skill input optional#74
yorkeccak merged 1 commit into
mainfrom
fix/skill-optional-api-key

Conversation

@yorkeccak

@yorkeccak yorkeccak commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Bug

skills/valyu-cli/SKILL.md declared VALYU_API_KEY as a required input. Skill-aware installers/agent harnesses treat required inputs as blocking prompts, so on a fresh machine the first thing a user saw was "enter your API key" - no browser, no device flow. This contradicts the skill's own agent protocol ("mints and stores a scoped val_ key, so an agent never has to ask a human to paste a secret") and buries the intended valyu login UX.

Reported from a real fresh-machine install: user was prompted for an API key immediately, browser never opened.

Fix

required: false with a description that steers to valyu login (device flow) and reserves the env var for headless/CI.

Frontmatter-only change - no code or tests affected. GitHub-sourced skill installs pick this up immediately; npm-packaged copies get it with the next release.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

required: true forced skill-aware installers and agent harnesses to demand
an API key up front, before the user ever saw the device flow - directly
contradicting the skill body, which tells agents to use `valyu login`
(device flow) so nobody has to paste a secret. Key entry is now optional,
for headless/CI environments only.
@yorkeccak yorkeccak merged commit 9d738fa into main Jul 8, 2026
1 check passed
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