upstash/context7 · warning

No skills found in

Error message

No skills found in ${repo}

What it means

In skill.ts installCommand() (list/install path), when the repository query returns no skills — data.skills is missing or an empty array — the spinner warns `No skills found in ${repo}` and returns. It is a benign empty-result case, not a network or auth failure (those take the earlier error branch).

Solutions

  1. Verify the repo slug (owner/repo) is spelled and cased correctly
  2. Browse the repo on GitHub to confirm it actually contains skills in the expected location
  3. Wait/retry if the repo was just published — indexing can lag
  4. Use the Context7 search/list command to find the correct repo name

Example fix

// before
// $ context7 skill install user/typo-repo
//   ! No skills found in user/typo-repo
// after
// $ context7 skill install user/correct-repo
Defensive patterns

Strategy: validation

Validate before calling

if (!data.skills || data.skills.length === 0) {
  console.warn(`Repo "${repo}" has no indexed skills; verify the owner/repo slug.`);
  return;
}

Type guard

function hasSkills(data) {
  return Array.isArray(data?.skills) && data.skills.length > 0;
}

Prevention

When it happens

Trigger: getSkill/list call for `repo` succeeds but returns no skills: data.skills is undefined or length 0 and the earlier error branch did not fire; typically the repo has no skills indexed or the repo slug is wrong yet valid.

Common situations: Typo in the GitHub owner/repo slug; a repo that exists but publishes no skills; skills not yet indexed by Context7 for a brand-new repo; case/suffix mistakes in the repo argument.

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


AI-assisted analysis of upstash/context7@4416fb855b (2026-09-16). Data as JSON: /api/errors/cebe6f70adae8d1b. Report an issue: GitHub.

Appendix: source

Thrown at packages/cli/src/commands/skill.ts:312

    if ((data.error || !data.skills || data.skills.length === 0) && !data.blockedSkillsCount) {
      spinner.text = `Fetching skills from GitHub...`;
      const ghResult = await listSkillsFromGitHub(repo);
      if (ghResult.status === "repo_not_found") {
        spinner.fail(pc.red(`Repository not found: ${repo}`));
        return;
      }
      if (ghResult.status === "ok" && ghResult.skills.length > 0) {
        data = { project: repo, skills: ghResult.skills };
      }
    }

    if (data.error && (!data.skills || data.skills.length === 0)) {
      spinner.fail(pc.red(`Error: ${data.message || data.error}`));
      return;
    }

    if (!data.skills || data.skills.length === 0) {
      spinner.warn(pc.yellow(`No skills found in ${repo}`));
      return;
    }

    const skillsWithRepo = data.skills
      .map((s) => ({ ...s, project: repo }))
      .sort((a, b) => (b.installCount ?? 0) - (a.installCount ?? 0));

    spinner.succeed(`Found ${data.skills.length} skill(s)`);

    if (data.blockedSkillsCount && data.blockedSkillsCount > 0) {
      log.blank();
      log.error(
        `${data.blockedSkillsCount} skill(s) blocked due to prompt injection and not shown.`
      );
      log.warn("Review other skills from this repository carefully before installing.");
    }

    if (options.all || data.skills.length === 1) {

View on GitHub (pinned to 4416fb855b)