From 20806d379f334132685485fcd2433a220b084eea Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 03:28:42 +0000 Subject: [PATCH 1/2] Initial plan From f62a7646836a938f827d71baa58d12afdbc137c1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Feb 2026 03:31:09 +0000 Subject: [PATCH 2/2] Fix path matching in getResourceType to support relative paths Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com> --- website/src/scripts/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/scripts/utils.ts b/website/src/scripts/utils.ts index 1728cd5e..a7f8e8c2 100644 --- a/website/src/scripts/utils.ts +++ b/website/src/scripts/utils.ts @@ -229,9 +229,9 @@ export function getResourceType(filePath: string): string { if (filePath.endsWith(".agent.md")) return "agent"; if (filePath.endsWith(".prompt.md")) return "prompt"; if (filePath.endsWith(".instructions.md")) return "instruction"; - if (filePath.includes("/skills/") && filePath.endsWith("SKILL.md")) + if (/(^|\/)skills\//.test(filePath) && filePath.endsWith("SKILL.md")) return "skill"; - if (filePath.includes("/hooks/") && filePath.endsWith("README.md")) + if (/(^|\/)hooks\//.test(filePath) && filePath.endsWith("README.md")) return "hook"; if (filePath.endsWith(".collection.yml")) return "collection"; return "unknown";