Skip to content

Commit bd72bd5

Browse files
zhujian0805claude
andcommitted
fix: correct marketplace detection for repositories with marketplace.json
- Fix logic in fetch_repo_info() to properly classify repos with marketplace.json as marketplaces - Update hcp-terraform-skills type from 'plugin' to 'marketplace' in config - Repositories with .claude-plugin/marketplace.json are now correctly identified as marketplaces regardless of plugin count 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 56f5446 commit bd72bd5

File tree

3 files changed

+37
-22
lines changed

3 files changed

+37
-22
lines changed

code_assistant_manager/plugin_repos.json

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@
1212
"every-marketplace"
1313
]
1414
},
15-
"claude-code-plugins-plus": {
16-
"name": "claude-code-plugins-plus",
17-
"description": "A comprehensive marketplace and educational hub for Claude Code plugins",
18-
"enabled": true,
19-
"type": "marketplace",
20-
"repoOwner": "jeremylongshore",
21-
"repoName": "claude-code-plugins-plus",
22-
"repoBranch": "main"
23-
},
2415
"superpowers-marketplace": {
2516
"name": "superpowers-marketplace",
2617
"description": "Curated Claude Code plugins: skills, workflows, and productivity tools",
@@ -65,5 +56,32 @@
6556
"repoOwner": "wshobson",
6657
"repoName": "agents",
6758
"repoBranch": "main"
59+
},
60+
"superpowers-dev": {
61+
"name": "superpowers-dev",
62+
"description": "Development marketplace for Superpowers core skills library",
63+
"enabled": true,
64+
"type": "plugin",
65+
"repoOwner": "obra",
66+
"repoName": "superpowers",
67+
"repoBranch": "main"
68+
},
69+
"claude-code-plugins-plus": {
70+
"name": "claude-code-plugins-plus",
71+
"description": "A comprehensive marketplace and educational hub for Claude Code plugins",
72+
"enabled": true,
73+
"type": "marketplace",
74+
"repoOwner": "jeremylongshore",
75+
"repoName": "claude-code-plugins-plus",
76+
"repoBranch": "main"
77+
},
78+
"hcp-terraform-skills": {
79+
"name": "hcp-terraform-skills",
80+
"description": "Comprehensive Claude Code skills for HashiCorp Terraform, including style guides, testing frameworks, Terraform Stacks configurations, and HCP Terraform automation",
81+
"enabled": true,
82+
"type": "marketplace",
83+
"repoOwner": "hashi-demo-lab",
84+
"repoName": "claude-skill-hcp-terraform",
85+
"repoBranch": "main"
6886
}
6987
}

code_assistant_manager/plugins/fetch.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -147,19 +147,9 @@ def fetch_repo_info(
147147

148148
# Determine type: if it has a marketplace.json with plugins array, it's a marketplace
149149
# Even single-plugin repos can be marketplaces if structured that way
150-
# We use plugin_count > 1 as heuristic, but the file structure indicates marketplace
151-
if plugin_count > 1:
152-
repo_type = "marketplace"
153-
plugin_path = None # Marketplaces don't have a single plugin path
154-
else:
155-
repo_type = "plugin"
156-
# For single plugin, get the source path
157-
if plugins:
158-
source = plugins[0].get("source", "")
159-
# Convert ./plugins/plugin-name to plugins/plugin-name
160-
plugin_path = source.lstrip("./") if source else None
161-
else:
162-
plugin_path = plugin_root.lstrip("./") if plugin_root else None
150+
# The presence of marketplace.json indicates marketplace structure
151+
repo_type = "marketplace"
152+
plugin_path = None # Marketplaces don't have a single plugin path
163153

164154
return FetchedRepoInfo(
165155
owner=owner,

code_assistant_manager/skill_repos.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,12 @@
4545
"name": "claudekit-skills",
4646
"branch": "main",
4747
"enabled": true
48+
},
49+
"weipanux/seo-geo-blog-writer": {
50+
"owner": "weipanux",
51+
"name": "seo-geo-blog-writer",
52+
"branch": "main",
53+
"enabled": true,
54+
"skillsPath": "."
4855
}
4956
}

0 commit comments

Comments
 (0)