Skip to content

Commit 4041b35

Browse files
authored
Fix Claude plugin skill loading (#14)
* register Claude plugin skills explicitly * use Claude skills directory path and bump plugin version
1 parent 5b6c98c commit 4041b35

3 files changed

Lines changed: 20 additions & 6 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
},
66
"metadata": {
77
"description": "Portable TLA+ agent skills for Claude Code and other Agent Skills clients.",
8-
"version": "0.1.0"
8+
"version": "0.1.2"
99
},
1010
"plugins": [
1111
{
1212
"name": "tla-workbenches",
13-
"description": "TLA+ workbench skills for TLC model checking and TLAPS proofs.",
14-
"version": "0.1.0",
13+
"description": "TLA+ skills for checking specs and writing proofs.",
14+
"version": "0.1.2",
1515
"author": {
1616
"name": "younes-io"
1717
},
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"name": "tla-workbenches",
3-
"version": "0.1.0",
4-
"description": "TLA+ workbench skills for TLC model checking and TLAPS proofs.",
3+
"version": "0.1.2",
4+
"description": "TLA+ skills for checking specs and writing proofs.",
55
"author": {
66
"name": "younes-io"
7-
}
7+
},
8+
"repository": "https://github.com/younes-io/agent-skills",
9+
"homepage": "https://github.com/younes-io/agent-skills/tree/main/plugins/tla-workbenches",
10+
"skills": "./skills/"
811
}

scripts/validate_claude_plugin.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ expected_marketplace = {
3232
"owner_name": "younes-io",
3333
"plugin_name": "tla-workbenches",
3434
"plugin_source": "./plugins/tla-workbenches",
35+
"plugin_version": "0.1.2",
36+
"skills": "./skills/",
3537
}
3638
3739
if marketplace.get("name") != expected_marketplace["name"]:
@@ -51,11 +53,20 @@ if entry.get("name") != expected_marketplace["plugin_name"]:
5153
if entry.get("source") != expected_marketplace["plugin_source"]:
5254
raise SystemExit("Unexpected plugin source path in marketplace")
5355
56+
if entry.get("version") != expected_marketplace["plugin_version"]:
57+
raise SystemExit("Unexpected plugin version in marketplace")
58+
5459
if plugin.get("name") != expected_marketplace["plugin_name"]:
5560
raise SystemExit("Unexpected plugin manifest name")
5661
5762
if plugin.get("author", {}).get("name") != expected_marketplace["owner_name"]:
5863
raise SystemExit("Unexpected plugin manifest author")
64+
65+
if plugin.get("version") != expected_marketplace["plugin_version"]:
66+
raise SystemExit("Unexpected plugin manifest version")
67+
68+
if plugin.get("skills") != expected_marketplace["skills"]:
69+
raise SystemExit("Plugin manifest must register the ./skills/ directory")
5970
PY
6071

6172
if find "$generated_skills" -type l | grep -q .; then

0 commit comments

Comments
 (0)