Skip to content

Commit 50c6fab

Browse files
committed
Fix plugin manifest for Claude Code skill discovery
Replace .claude-plugin/marketplace.json with .claude-plugin/plugin.json (the standard format Claude Code expects). Skills are auto-discovered from the skills/ directory — no explicit listing needed in the manifest.
1 parent 1f7d131 commit 50c6fab

4 files changed

Lines changed: 12 additions & 26 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

.claude-plugin/plugin.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "context-profiler",
3+
"description": "Analyze agent traces, transcripts, Langfuse exports, and raw provider requests for context bloat, redundancy, and tool hotspots.",
4+
"version": "0.2.0",
5+
"author": {
6+
"name": "Yanpeng Wang"
7+
}
8+
}

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ Do not put product-distribution skills in `.agents/skills/` or `.claude/skills/`
8282
If skill paths change, update:
8383

8484
- `.plugin/plugin.json`
85-
- `.claude-plugin/marketplace.json`
85+
- `.claude-plugin/plugin.json`
8686
- README skill distribution section
8787
- tests covering manifests

tests/test_smoke.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def test_skill_distribution_manifests():
487487
root = Path(__file__).parents[1]
488488
skill = root / "skills" / "analyze-agent-context" / "SKILL.md"
489489
open_plugin = root / ".plugin" / "plugin.json"
490-
claude_marketplace = root / ".claude-plugin" / "marketplace.json"
490+
claude_plugin = root / ".claude-plugin" / "plugin.json"
491491

492492
assert skill.exists()
493493
assert "name: analyze-agent-context" in skill.read_text()
@@ -496,9 +496,8 @@ def test_skill_distribution_manifests():
496496
assert plugin_data["name"] == "context-profiler"
497497
assert plugin_data["skills"] == ["./skills/analyze-agent-context"]
498498

499-
marketplace_data = json.loads(claude_marketplace.read_text())
500-
assert marketplace_data["plugins"][0]["name"] == "context-profiler"
501-
assert marketplace_data["plugins"][0]["skills"] == ["./skills/analyze-agent-context"]
499+
claude_data = json.loads(claude_plugin.read_text())
500+
assert claude_data["name"] == "context-profiler"
502501

503502

504503
def test_diagnose_agent_trace_sample_json():

0 commit comments

Comments
 (0)