{"record":{"id":"31f089121edffec7","repo":"upstash/context7","slug":"no-matching-skills-found-for-your-dependencies","errorCode":null,"errorMessage":"No matching skills found for your dependencies","messagePattern":"No matching skills found for your dependencies","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"packages/cli/src/commands/skill.ts","lineNumber":864,"sourceCode":"  const accessToken = await getValidAccessToken();\n\n  let data;\n  try {\n    data = await suggestSkills(deps, accessToken);\n  } catch {\n    searchSpinner.fail(pc.red(\"Failed to connect to Context7\"));\n    return;\n  }\n\n  if (data.error) {\n    searchSpinner.fail(pc.red(`Error: ${data.message || data.error}`));\n    return;\n  }\n\n  const skills = data.skills;\n\n  if (skills.length === 0) {\n    searchSpinner.warn(pc.yellow(\"No matching skills found for your dependencies\"));\n    return;\n  }\n\n  searchSpinner.succeed(`Found ${skills.length} relevant skill(s)`);\n  trackEvent(\"suggest_results\", { depCount: deps.length, skillCount: skills.length });\n  log.blank();\n\n  const nameWithRepo = (s: SkillSearchResult) => `${s.name} ${pc.dim(`(${s.project})`)}`;\n  const nameWithRepoLen = (s: SkillSearchResult) => `${s.name} (${s.project})`.length;\n  const maxNameLen = Math.max(...skills.map(nameWithRepoLen));\n  const popularityColWidth = 13;\n  const trustColWidth = 8;\n  const maxMatchedLen = Math.max(...skills.map((s) => s.matchedDep.length));\n  const indexWidth = skills.length.toString().length;\n\n  const choices = skills.map((s, index) => {\n    const indexStr = pc.dim(`${(index + 1).toString().padStart(indexWidth)}.`);\n    const rawLen = nameWithRepoLen(s);","sourceCodeStart":846,"sourceCodeEnd":882,"githubUrl":"https://github.com/upstash/context7/blob/4416fb855b8f752be735e34f943b5d0762701aad/packages/cli/src/commands/skill.ts#L846-L882","documentation":"In the suggest flow, after detecting dependencies the CLI queries the remote search API for skills matching those dependencies. When the response contains an empty skills array, the spinner warns `No matching skills found for your dependencies`. The request succeeded; the backend simply had no relevant skills.","triggerScenarios":"`ctx7 skill suggest` where dependency detection succeeded but the remote skill search returns data.skills.length === 0 — detected deps have no indexed matching skills.","commonSituations":"Project depends on niche/proprietary libraries with no community skills; backend index hasn't catalogued skills for those libraries yet; very unusual dependency combination.","solutions":["Fall back to `ctx7 skills search <keyword>` with the library name to search manually","Broaden/curate your dependencies or install skills for the mainstream ones manually","Retry later — the skill index may add matches","Check ctx7 version and update, as the search endpoint/index may have changed"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"const data = await searchSkillsForDeps(deps);\nif (!data.skills || data.skills.length === 0) {\n  console.log('No auto-matches; falling back to manual search: ctx7 skills search <library>');\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Expect empty results for niche libraries and keep the manual search command handy","Treat suggest as best-effort; verify results before installing","Retry periodically as the skill index grows"],"tags":["cli","search","empty-result","remote-api"],"backgroundTag":"empty-result-set","analyzedSha":"4416fb855b8f752be735e34f943b5d0762701aad","analyzedAt":"2026-09-16T20:28:07.148Z","contentChangedAt":"2026-09-16T20:28:07.148Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}