Skip to content

Commit 2bca71c

Browse files
committed
fix(claude-plugin): Update marketplace.json version and source structure
1 parent 448adad commit 2bca71c

File tree

2 files changed

+20
-50
lines changed

2 files changed

+20
-50
lines changed

.claude-plugin/marketplace.json

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
2-
"$schema": "https://code.claude.com/schemas/marketplace.json",
3-
"name": "terraform-skill",
2+
"name": "antonbabenko",
43
"owner": {
5-
"name": "Anton Babenko",
6-
"email": "anton@antonbabenko.com"
4+
"name": "Anton Babenko"
75
},
6+
<<<<<<< Updated upstream
87
"version": "2.0.1",
8+
||||||| Stash base
9+
"version": "2.0.0",
10+
=======
11+
"version": "0.0.0",
12+
>>>>>>> Stashed changes
913
"metadata": {
1014
"description": "Comprehensive Terraform and OpenTofu best practices skill covering testing, modules, CI/CD, and production patterns.",
1115
"repository": "https://github.com/antonbabenko/terraform-skill",
@@ -15,11 +19,20 @@
1519
{
1620
"name": "terraform-skill",
1721
"description": "Use when working with Terraform or OpenTofu - creating modules, writing tests (native test framework, Terratest), setting up CI/CD pipelines, reviewing configurations, choosing between testing approaches, debugging state issues, implementing security scanning (trivy, checkov), or making infrastructure-as-code architecture decisions",
22+
<<<<<<< Updated upstream
1823
"source": {
1924
"source": "github",
2025
"repo": "antonbabenko/terraform-skill",
2126
"ref": "v2.0.1"
2227
},
28+
||||||| Stash base
29+
"source": {
30+
"source": "github",
31+
"repo": "antonbabenko/terraform-skill"
32+
},
33+
=======
34+
"source": "./",
35+
>>>>>>> Stashed changes
2336
"category": "development",
2437
"keywords": [
2538
"terraform",

.github/workflows/validate.yml

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ jobs:
111111
sys.exit(1)
112112
113113
# Validate owner structure
114-
if 'name' not in marketplace['owner'] or 'email' not in marketplace['owner']:
115-
print("❌ ERROR: owner must have 'name' and 'email'")
114+
if 'name' not in marketplace['owner']:
115+
print("❌ ERROR: owner must have 'name'")
116116
sys.exit(1)
117117
118118
# Validate version format
@@ -128,56 +128,13 @@ jobs:
128128
129129
# Validate each plugin
130130
for idx, plugin in enumerate(marketplace['plugins']):
131-
required_plugin = ['name', 'version', 'description', 'source']
131+
required_plugin = ['name', 'description', 'source']
132132
missing = [f for f in required_plugin if f not in plugin]
133133
134134
if missing:
135135
print(f"❌ ERROR: Plugin {idx} missing fields: {missing}")
136136
sys.exit(1)
137137
138-
# Validate plugin version
139-
plugin_version = plugin['version']
140-
if not re.match(r'^\d+\.\d+\.\d+$', plugin_version):
141-
print(f"❌ ERROR: Invalid plugin version: {plugin_version}")
142-
sys.exit(1)
143-
144-
# Validate source structure
145-
source = plugin['source']
146-
if 'type' not in source:
147-
print(f"❌ ERROR: Plugin {idx} source missing 'type'")
148-
sys.exit(1)
149-
150-
source_type = source['type']
151-
152-
if source_type == 'github':
153-
if 'repo' not in source or 'ref' not in source:
154-
print(f"❌ ERROR: GitHub source must have 'repo' and 'ref'")
155-
sys.exit(1)
156-
157-
# Validate repo format (owner/repo)
158-
if not re.match(r'^[^/]+/[^/]+$', source['repo']):
159-
print(f"❌ ERROR: Invalid repo format: {source['repo']}")
160-
sys.exit(1)
161-
162-
elif source_type == 'local':
163-
if 'path' not in source:
164-
print(f"❌ ERROR: Local source must have 'path'")
165-
sys.exit(1)
166-
167-
else:
168-
print(f"❌ ERROR: Unsupported source type: {source_type}")
169-
sys.exit(1)
170-
171-
# Validate version sync
172-
if plugin_version != version:
173-
print(f"⚠️ WARNING: Plugin version {plugin_version} != marketplace version {version}")
174-
175-
# Validate ref sync (if github source)
176-
if source_type == 'github':
177-
expected_ref = f"v{version}"
178-
if source['ref'] != expected_ref:
179-
print(f"⚠️ WARNING: Source ref {source['ref']} != expected {expected_ref}")
180-
181138
print(f"✅ marketplace.json valid (v{version}, {len(marketplace['plugins'])} plugin(s))")
182139
EOF
183140

0 commit comments

Comments
 (0)