From 221bd548e0a873c8530843027627ccf03e30e3be Mon Sep 17 00:00:00 2001 From: Jey Burrows <175012+jeyrb@users.noreply.github.com> Date: Wed, 25 Nov 2026 13:02:08 +0000 Subject: [PATCH] homeassistant-repl from its plugin/ folder (git-subdir source) Co-Authored-By: Claude Opus 5.5 --- .claude-plugin/marketplace.json | 5 +++-- README.md | 22 ++++++++++------------ 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 200e0f6..c3802f1 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -10,8 +10,9 @@ { "name": "homeassistant-repl", "source": { - "source": "github", - "repo": "rhizomatics/homeassistant-repl" + "source": "git-subdir", + "url": "https://github.com/rhizomatics/homeassistant-repl.git", + "path": "plugin" }, "description": "Teaches an agent to run Python against a running Home Assistant with ha-repl, for custom component development", "homepage": "https://homeassistant-repl.rhizomatics.org.uk" diff --git a/README.md b/README.md index 5f2891c..4221f0d 100644 --- a/README.md +++ b/README.md @@ -18,17 +18,13 @@ Then install the plugins you want: claude plugin install homeassistant-repl@rhizomatics ``` -In [GitHub Copilot CLI](https://docs.github.com/en/copilot/how-tos/copilot-cli), which reads the same -`.claude-plugin/marketplace.json`: +For other agents (GitHub Copilot, Codex, Cursor, Gemini and more), the [`skills` CLI](https://skills.sh) installs a +plugin's skills straight from its folder, e.g. ```bash -copilot plugin marketplace add rhizomatics/agent-plugins -copilot plugin install homeassistant-repl@rhizomatics +npx skills add https://github.com/rhizomatics/homeassistant-repl/tree/main/plugin/skills/ha-repl ``` -For other agents (Codex, Cursor, Gemini and more), the [`skills` CLI](https://skills.sh) installs a plugin's skills -straight from its own repo, e.g. `npx skills add rhizomatics/homeassistant-repl`. - ## Plugins | Plugin | What it teaches an agent | Source | @@ -37,9 +33,11 @@ straight from its own repo, e.g. `npx skills add rhizomatics/homeassistant-repl` ## Adding a plugin -The plugin lives in the tool's own repo, so its skills are versioned with the code they describe: +The plugin lives in the tool's own repo, so its skills are versioned with the code they describe, in a folder of +its own (`plugin/`), so that folder can be submitted to the Claude plugin directory without the tool's code: -1. In the tool's repo, add `.claude-plugin/plugin.json` and a `skills//SKILL.md`. -2. Add an entry for it to [`.claude-plugin/marketplace.json`](.claude-plugin/marketplace.json) here, - with a `github` source pointing at that repo. -3. Run `claude plugin validate .` in both repos. +1. In the tool's repo, add `plugin/.claude-plugin/plugin.json`, a square `plugin/.claude-plugin/icon.png` and + `plugin/skills//SKILL.md`. Keep the folder to Markdown, JSON and images. +2. Add an entry for it to [`.claude-plugin/marketplace.json`](.claude-plugin/marketplace.json) here, with a + `git-subdir` source: `url` the tool's repo, `path` `plugin`. +3. Run `claude plugin validate .` here and `claude plugin validate plugin` in the tool's repo.