diegosouzapw/OmniRoute · error

Failed to fetch SKILL.md

Error message

Failed to fetch SKILL.md: ${res.status} (${url})

What it means

Upstream fetch failure in fetchSkillMd: the GitHub raw URL for the skill's SKILL.md (under GITHUB_RAW_BASE/<owner>/repo/main/skills/<skillId>/SKILL.md) returned a non-2xx status. Typically 404 (skill moved, renamed, or not on the main branch) but can be a rate-limit 403/429 from raw.githubusercontent.

Solutions

  1. Verify the skill still exists at the given owner/repo and skillId on the main branch
  2. Wait and retry if rate-limited by GitHub
  3. Pin or update the skill source if the repository restructured its skills/ layout
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/lib/skills/skillssh.ts:67 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/7a7130b888ee6afe. Report an issue: GitHub.

Appendix: source

Thrown at src/lib/skills/skillssh.ts:67

    clearTimeout(timeout);
  }
}

/**
 * Fetch SKILL.md content from GitHub for a skills.sh skill.
 *
 * @param source - GitHub "owner/repo" (e.g. "supabase/agent-skills")
 * @param skillId - Skill name (last segment of the full id, e.g. "supabase-postgres-best-practices")
 */
export async function fetchSkillMd(source: string, skillId: string): Promise<string> {
  const url = `${GITHUB_RAW_BASE}/${source}/main/skills/${skillId}/SKILL.md`;
  const controller = new AbortController();
  const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS);

  try {
    const res = await fetch(url, { signal: controller.signal });
    if (!res.ok) {
      throw new Error(`Failed to fetch SKILL.md: ${res.status} (${url})`);
    }
    return await res.text();
  } finally {
    clearTimeout(timeout);
  }
}

View on GitHub (pinned to a179ffed5b)