MCPcopy Index your code
hub / github.com/upstash/context7 / getSkillFromGitHub

Function getSkillFromGitHub

packages/cli/src/utils/github.ts:240–248  ·  view source on GitHub ↗
(
  project: string,
  skillName: string
)

Source from the content-addressed store, hash-verified

238}
239
240export async function getSkillFromGitHub(
241 project: string,
242 skillName: string
243): Promise<GitHubSkillsResult & { skill?: Skill & { project: string } }> {
244 const result = await listSkillsFromGitHub(project);
245 if (result.status !== "ok") return result;
246 const skill = result.skills.find((s) => s.name.toLowerCase() === skillName.toLowerCase());
247 return { ...result, skill };
248}
249
250export async function downloadSkillFromGitHub(
251 skill: Skill & { project: string }

Callers 2

downloadSkillFunction · 0.85
installCommandFunction · 0.85

Calls 1

listSkillsFromGitHubFunction · 0.85

Tested by

no test coverage detected