--- import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro"; import BackToTop from "../../components/BackToTop.astro"; import skillsData from "../../../public/data/skills.json"; import RawMarkdown from "../../components/pages/RawMarkdown.astro"; import type { HeaderItem } from "../../components/pages/Header.astro"; import DetailHeader from "../../components/pages/Header.astro"; import Breadcrumb from "../../components/pages/Breadcrumb.astro"; import Sidebar from "../../components/pages/Sidebar.astro"; import FileBrowser from "../../components/pages/FileBrowser.astro"; import { readResourceMarkdown, formatLastUpdated } from "../../lib/detail-page"; const GITHUB_BASE = "https://github.com/github/awesome-copilot/blob/main"; const GITHUB_TREE_BASE = "https://github.com/github/awesome-copilot/tree/main"; const REPO_IDENTIFIER = "github/awesome-copilot"; interface SkillFile { name: string; path: string; size?: number; } interface SkillItem extends HeaderItem { id: string; title: string; description?: string; path: string; skillFile: string; files: SkillFile[]; hasAssets?: boolean; assetCount?: number; lastUpdated?: string | null; } export function getStaticPaths() { return (skillsData.items as SkillItem[]).map((item) => ({ params: { id: item.id }, props: { item }, })); } const { item } = Astro.props as { item: SkillItem }; const { markdownHtml, frontmatterText, rawMarkdown } = readResourceMarkdown( item.skillFile ); const lastUpdated = formatLastUpdated(item.lastUpdated); const githubUrl = `${GITHUB_TREE_BASE}/${item.path}`; const installCommand = `gh skills install ${REPO_IDENTIFIER} ${item.id}`; const skillFileName = item.skillFile.split("/").pop() ?? "SKILL.md"; const fileCount = item.files.length; const chips: { title: string; items: string[] }[] = [ { title: "Files", items: [`${fileCount} file${fileCount === 1 ? "" : "s"}`] }, ]; if (item.hasAssets && item.assetCount) { chips.push({ title: "Assets", items: [`${item.assetCount} asset${item.assetCount === 1 ? "" : "s"}`], }); } ---

Install with the GitHub CLI

{installCommand}