upstash/context7 · info
No skills selected
Error message
No skills selected
What it means
After the interactive skill selection for a repository, selectedSkills is empty — the user submitted the checkbox with nothing ticked (which, unlike Ctrl+C, does not throw). The CLI treats an empty selection as a dead end, warns 'No skills selected', and exits before asking for install targets.
Source
Thrown at packages/cli/src/commands/skill.ts:393
loop: false,
theme: {
style: {
message: (text: string, status: string) => {
if (status === "done") return pc.dim(text.split("\n")[0]);
return pc.bold(text);
},
},
},
});
} catch {
log.warn("Installation cancelled");
return;
}
}
}
if (selectedSkills.length === 0) {
log.warn("No skills selected");
return;
}
const targets = await promptForInstallTargets(options);
if (!targets) {
log.warn("Installation cancelled");
return;
}
const targetDirs = getTargetDirs(targets);
const installSpinner = ora("Installing skills...").start();
let permissionError = false;
const failedDirs: Set<string> = new Set();
const installedSkills: string[] = [];
for (const skill of selectedSkills) {View on GitHub (pinned to 5284672feb)
Solutions
- Re-run the command and keep at least one skill ticked (space toggles, enter submits).
- Skip the UI with `--all` or by naming the skill: `context7 skill add <repo> <skill>`.
Defensive patterns
Strategy: validation
Validate before calling
// Guard the selection result before proceeding
if (!selectedSkills || selectedSkills.length === 0) {
log.warn("No skills selected");
return;
} Type guard
function hasSelectedSkills(s: unknown[]): s is [unknown, ...unknown[]] {
return s.length > 0;
} Prevention
- Keep at least one item ticked before submitting the checkbox (space toggles).
- Default-select the named skill when the user already specified one to avoid empty states.
- Treat an empty selection as a clean no-op, not an error.
When it happens
Trigger: Pressing Enter on the skill checkbox with zero items selected; reachable only when the multi-select was shown (repo has multiple skills, no --all, no single-skill shortcut).
Common situations: User untoggles everything while browsing; spacebar/arrow-key slip unticks the last selected item before submission.
Related errors
- Installation cancelled
- Remove cancelled
- Setup cancelled
- This skill contains potentially malicious content and cannot
- No skills found in ${repo}
AI-assisted analysis of upstash/context7@5284672feb (2026-08-18).
Data as JSON: /api/errors/95c60677ca5db2e9.
Report an issue: GitHub.