upstash/context7 · warning
No skills installed
Error message
No skills installed
What it means
The `ctx7 skill list` command scans the target IDE/scope directories for installed skills and prints them. When the scan completes but the results array is empty, it emits this warning via log.warn instead of failing. It signals that no skills have been installed into any of the checked target directories, not an internal fault.
Solutions
- Install a skill first with `ctx7 skill add <source>` or `ctx7 skill search <keyword>`
- Verify the target IDE/scope flags match where skills were previously installed (try `ctx7 skill list` with different --ide/--scope)
- If skills were expected, check the skills directory (e.g. ~/.claude/skills or project .ctx7 dir) exists and is populated
Defensive patterns
Strategy: validation
Validate before calling
import { existsSync, readdirSync } from 'fs';
const skillsDir = join(homedir(), '.claude', 'skills');
const hasSkills = existsSync(skillsDir) && readdirSync(skillsDir).length > 0;
if (!hasSkills) console.log('No skills installed yet — run: ctx7 skill add <source>'); Prevention
- Install at least one skill before scripting around `skill list`
- In scripts, parse the JSON output and treat empty arrays as a normal state
- Always pass the same --ide/--scope flags used at install time
When it happens
Trigger: Running `ctx7 skill list` (listCommand, invoked via registerSkillCommands) when every scanned target directory contains zero skills — e.g. no skills have ever been installed, or the configured IDE/scope points at an empty directory.
Common situations: Fresh machine or new project before any `ctx7 skill add`; user configured the wrong --ide or --scope so list looks at a directory other than the one skills were installed into; a previous install failed silently.
Understand the failure class
Background: EmptyResultError / "no results found": when an API or scraper succeeds but returns zero rows — this error's family across 9 libraries.
Related errors
- No dependencies detected
- await describeErrorResponse(response, fallback)
- Cancelled
- Context7 base URL must not contain a query string or…
- Could not reach : )` : ""}\n
AI-assisted analysis of upstash/context7@4416fb855b (2026-09-16).
Data as JSON: /api/errors/bf9b10d3c76928e3.
Report an issue: GitHub.
Appendix: source
Thrown at packages/cli/src/commands/skill.ts:736
}
}
}
if (options.json) {
const skills = results.flatMap((result) =>
result.skills.map((name) => ({
name,
path: join(result.dir, name),
source: result.source,
}))
);
console.log(JSON.stringify({ skills }, null, 2));
return;
}
if (results.length === 0) {
log.warn("No skills installed");
return;
}
log.blank();
for (const { label, displayPath, skills } of results) {
log.plain(`${pc.bold(label)} ${pc.dim(displayPath)}`);
for (const skill of skills) {
log.plain(` ${pc.green(skill)}`);
}
log.blank();
}
}
async function removeCommand(name: string, options: RemoveOptions): Promise<void> {
trackEvent("command", { name: "remove" });
const target = await promptForSingleTarget(options);
if (!target) {View on GitHub (pinned to 4416fb855b)