diff --git a/claude/.claude-plugin/marketplace.json b/claude/.claude-plugin/marketplace.json index 767fdf7..be44a26 100644 --- a/claude/.claude-plugin/marketplace.json +++ b/claude/.claude-plugin/marketplace.json @@ -13,10 +13,7 @@ { "name": "fj", "description": "Teach Claude Code to use fj, a CLI for Forgejo and Gitea-compatible instances. Activates when the user mentions fj, Forgejo, Gitea, or any forge-side action (issues, PRs, releases, code search, labels, milestones, webhooks).", - "source": { - "source": "url", - "url": "https://github.com/rasterandstate/fj-claude-plugin.git" - }, + "source": "./plugins/fj", "license": "MIT", "category": "developer-tools", "keywords": ["fj", "forgejo", "gitea", "git", "cli"], diff --git a/claude/README.md b/claude/README.md index 68b2405..c15c0a0 100644 --- a/claude/README.md +++ b/claude/README.md @@ -25,15 +25,22 @@ After install, the skill activates automatically when relevant. ``` claude/ ├── .claude-plugin/ -│ ├── plugin.json plugin manifest (name, version, keywords) -│ └── marketplace.json makes this directory a single-plugin -│ marketplace; required for `/plugin install` +│ └── marketplace.json marketplace manifest — declares plugins[] ├── README.md this file -└── skills/ +└── plugins/ └── fj/ - └── SKILL.md the skill body — what Claude reads + ├── .claude-plugin/ + │ └── plugin.json plugin manifest (name, version, keywords) + └── skills/ + └── fj/ + └── SKILL.md the skill body — what Claude reads ``` +The marketplace lives at the root; each plugin lives in `plugins//`. +`marketplace.json` references plugins via `"source": "./plugins/"`. +This is the working pattern used by `anthropics/claude-plugins-official` +and other shipping marketplaces. + ## Updating This `claude/` directory is the source of truth, inside the fj repo at diff --git a/claude/.claude-plugin/plugin.json b/claude/plugins/fj/.claude-plugin/plugin.json similarity index 100% rename from claude/.claude-plugin/plugin.json rename to claude/plugins/fj/.claude-plugin/plugin.json diff --git a/claude/skills/fj/SKILL.md b/claude/plugins/fj/skills/fj/SKILL.md similarity index 100% rename from claude/skills/fj/SKILL.md rename to claude/plugins/fj/skills/fj/SKILL.md