{"record":{"id":"7a7130b888ee6afe","repo":"diegosouzapw/OmniRoute","slug":"failed-to-fetch-skill-md-res-status-url","errorCode":null,"errorMessage":"Failed to fetch SKILL.md: ${res.status} (${url})","messagePattern":"Failed to fetch SKILL\\.md: (.+?) \\((.+?)\\)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/lib/skills/skillssh.ts","lineNumber":67,"sourceCode":"    clearTimeout(timeout);\n  }\n}\n\n/**\n * Fetch SKILL.md content from GitHub for a skills.sh skill.\n *\n * @param source - GitHub \"owner/repo\" (e.g. \"supabase/agent-skills\")\n * @param skillId - Skill name (last segment of the full id, e.g. \"supabase-postgres-best-practices\")\n */\nexport async function fetchSkillMd(source: string, skillId: string): Promise<string> {\n  const url = `${GITHUB_RAW_BASE}/${source}/main/skills/${skillId}/SKILL.md`;\n  const controller = new AbortController();\n  const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS);\n\n  try {\n    const res = await fetch(url, { signal: controller.signal });\n    if (!res.ok) {\n      throw new Error(`Failed to fetch SKILL.md: ${res.status} (${url})`);\n    }\n    return await res.text();\n  } finally {\n    clearTimeout(timeout);\n  }\n}\n","sourceCodeStart":49,"sourceCodeEnd":74,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/skills/skillssh.ts#L49-L74","documentation":"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.","triggerScenarios":"Thrown at src/lib/skills/skillssh.ts:67 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the skill still exists at the given owner/repo and skillId on the main branch","Wait and retry if rate-limited by GitHub","Pin or update the skill source if the repository restructured its skills/ layout"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}