diff --git a/ai-catalog.json b/ai-catalog.json index 20bdf39c..840f0392 100644 --- a/ai-catalog.json +++ b/ai-catalog.json @@ -9337,6 +9337,18 @@ }, "type": "application/ai-skill" }, + { + "identifier": "urn:air:github.com:mattpocock:skills:grill-me", + "displayName": "Grill Me", + "mediaType": "application/ai-skill", + "url": "https://github.com/mattpocock/skills/blob/main/skills/productivity/grill-me/SKILL.md", + "description": "A relentless interview to sharpen a plan or design.", + "metadata": { + "sourceSet": "mattpocock/skills", + "repoPath": "skills/productivity/grill-me/SKILL.md" + }, + "type": "application/ai-skill" + }, { "identifier": "urn:air:github.com:mattpocock:skills:loop-me", "displayName": "Loop Me", diff --git a/catalog/mattpocock/grill-me.json b/catalog/mattpocock/grill-me.json new file mode 100644 index 00000000..4a357e0f --- /dev/null +++ b/catalog/mattpocock/grill-me.json @@ -0,0 +1,11 @@ +{ + "identifier": "urn:ai:github.com:mattpocock:skills:grill-me", + "displayName": "Grill Me", + "mediaType": "application/ai-skill", + "url": "https://github.com/mattpocock/skills/blob/main/skills/productivity/grill-me/SKILL.md", + "description": "A relentless interview to sharpen a plan or design.", + "metadata": { + "sourceSet": "mattpocock/skills", + "repoPath": "skills/productivity/grill-me/SKILL.md" + } +} diff --git a/tests/test_mattpocock_plugin_refs.py b/tests/test_mattpocock_plugin_refs.py index 43f7674a..de1ab4a0 100644 --- a/tests/test_mattpocock_plugin_refs.py +++ b/tests/test_mattpocock_plugin_refs.py @@ -6,7 +6,9 @@ IDENTIFIER_PREFIX = "urn:ai:github.com:mattpocock:skills:" PLUGIN_IDENTIFIER = IDENTIFIER_PREFIX + "mattpocock-skills" PLUGIN_MEDIA_TYPE = "application/vnd.anthropic.claude-plugin+json" -RETIRED_SKILL_NAMES = ("grill-me", "grilling", "to-questionnaire", "wizard") +RETIRED_SKILL_NAMES = ("grilling", "to-questionnaire", "wizard") +# Bundled in the plugin too, but listed on its own because the GitHub Copilot app features it. +GRILL_ME_IDENTIFIER = IDENTIFIER_PREFIX + "grill-me" class MattPocockPluginRefsTest(unittest.TestCase): @@ -35,11 +37,27 @@ def test_parent_plugin_targets_root_manifest(self): }, ) - def test_bundled_skills_are_not_separate_entries(self): + def test_retired_skills_are_not_separate_entries(self): for name in RETIRED_SKILL_NAMES: with self.subTest(name=name): self.assertNotIn(IDENTIFIER_PREFIX + name, self.entries) + def test_grill_me_stays_listed_alongside_plugin(self): + repo_path = "skills/productivity/grill-me/SKILL.md" + source = self.entries[GRILL_ME_IDENTIFIER] + self.assertEqual(source["mediaType"], "application/ai-skill") + self.assertEqual( + source["url"], f"https://github.com/mattpocock/skills/blob/main/{repo_path}" + ) + self.assertEqual( + source["metadata"], {"sourceSet": "mattpocock/skills", "repoPath": repo_path} + ) + catalog = json.loads((ROOT / "ai-catalog.json").read_text(encoding="utf-8")) + entries = {entry["identifier"]: entry for entry in catalog["entries"]} + entry = entries["urn:air:github.com:mattpocock:skills:grill-me"] + self.assertEqual(entry["type"], "application/ai-skill") + self.assertEqual(entry["url"], source["url"]) + def test_nonbundled_skills_remain_cataloged(self): for name, repo_path in ( ("claude-handoff", "skills/in-progress/claude-handoff/SKILL.md"), @@ -63,7 +81,7 @@ def test_reviewed_icon_targets_only_parent_plugin(self): ) self.assertTrue(icons[0]["url"].endswith("/icons/mattpocock/skills.png")) - def test_generated_catalog_publishes_plugin_instead_of_bundled_skills(self): + def test_generated_catalog_publishes_plugin_instead_of_retired_skills(self): catalog = json.loads((ROOT / "ai-catalog.json").read_text(encoding="utf-8")) entries = {entry["identifier"]: entry for entry in catalog["entries"]} identifier = PLUGIN_IDENTIFIER.replace("urn:ai:", "urn:air:", 1)