upstash/context7 · info
No skills found matching
Error message
No skills found matching "${query}" What it means
Fired by searchCommand when the registry/API call succeeded (no exception, no data.error) but returned an empty results array for the user's query string. It signals an empty-but-valid search outcome rather than a failure: the spinner is switched to a warning state and the command exits without rendering any result list, so callers should treat it as 'query matched nothing', not a network or parsing error.
Solutions
- Check the query spelling and try broader or alternative keywords
- Browse the skill registry in a browser to confirm the skill name
- Verify the registry/endpoint the CLI points at is the expected one and is indexed/healthy
- Use `skill install <repo>` directly if you already know the repository
Example fix
// before $ opencode skill search supabse-auth # typo -> No skills found matching "supabse-auth" // after $ opencode skill search supabase # broader/corrected query returns results
Defensive patterns
Strategy: fallback
Validate before calling
const { results } = await searchSkills(query);
if (!results || results.length === 0) {
console.warn(`No results for "${query}"; try broader keywords or verify the registry.`);
} Type guard
if (!Array.isArray(results) || results.length === 0) { /* treat as empty search */ } Prevention
- Double-check spelling of skill names
- Use short, broad queries then narrow interactively
- Confirm you are pointed at the intended registry endpoint
When it happens
Trigger: Running `opencode skill search <query>` where the remote search API returns data.results as an empty array (or null/undefined) for the given query string.
Common situations: Misspelled skill name; searching an obscure term no published skill matches; querying against a registry index that has not indexed newer skills; network/proxy returning an empty-but-valid payload.
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 libraries found matching
- No matching skills found for your dependencies
- searchResult.message || "Try a different description"
- Your results only include libraries matching your…
- await describeErrorResponse(response, fallback)
AI-assisted analysis of upstash/context7@4416fb855b (2026-09-16).
Data as JSON: /api/errors/0e6b35453af66e52.
Report an issue: GitHub.
Appendix: source
Thrown at packages/cli/src/commands/skill.ts:499
trackEvent("command", { name: "search" });
log.blank();
const spinner = ora(`Searching for "${query}"...`).start();
let data;
try {
data = await searchSkills(query);
} catch (err) {
spinner.fail(pc.red(`Error: ${err instanceof Error ? err.message : String(err)}`));
return;
}
if (data.error) {
spinner.fail(pc.red(`Error: ${data.message || data.error}`));
return;
}
if (!data.results || data.results.length === 0) {
spinner.warn(pc.yellow(`No skills found matching "${query}"`));
return;
}
spinner.succeed(`Found ${data.results.length} skill(s)`);
trackEvent("search_query", { query, resultCount: data.results.length });
log.blank();
const indexWidth = data.results.length.toString().length;
const nameWithRepo = (s: SkillSearchResult) => `${s.name} ${pc.dim(`(${s.project})`)}`;
const nameWithRepoLen = (s: SkillSearchResult) => `${s.name} (${s.project})`.length;
const maxNameLen = Math.max(...data.results.map(nameWithRepoLen));
const popularityColWidth = 13;
const choices = data.results.map((s, index) => {
const indexStr = pc.dim(`${(index + 1).toString().padStart(indexWidth)}.`);
const rawLen = nameWithRepoLen(s);
const displayName = nameWithRepo(s) + " ".repeat(maxNameLen - rawLen);
const popularity = formatPopularity(s.installCount) + " ".repeat(popularityColWidth - 4);
const trust = formatTrust(s.trustScore);View on GitHub (pinned to 4416fb855b)