From 6d80af3807f38b8d8d8956cf8f7a72fc902ae73e Mon Sep 17 00:00:00 2001 From: Matt Van Horn Date: Sat, 7 Feb 2026 09:11:28 -0800 Subject: [PATCH] Add Claude Code marketplace plugin support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add .claude-plugin/marketplace.json and plugin.json manifests - Use ${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/skills/last30days} for script path - Plugin install: uses CLAUDE_PLUGIN_ROOT when set - Manual install: falls back to ~/.claude/skills/last30days (no breakage) - SKILL.md stays at root, plugin.json points skills to "./" Users can now install via: claude plugin marketplace add mvanhorn/last30days-skill claude plugin install last30days@last30days Inspired by PR #1 (galligan) — lighter approach without repo restructure. Co-Authored-By: Claude Opus 4.6 --- .claude-plugin/marketplace.json | 16 ++++++++++++++++ .claude-plugin/plugin.json | 12 ++++++++++++ SKILL.md | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .claude-plugin/marketplace.json create mode 100644 .claude-plugin/plugin.json diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json new file mode 100644 index 0000000..7e45d1a --- /dev/null +++ b/.claude-plugin/marketplace.json @@ -0,0 +1,16 @@ +{ + "name": "last30days", + "owner": { + "name": "mvanhorn", + "url": "https://github.com/mvanhorn" + }, + "metadata": { + "description": "Research any topic from the last 30 days across Reddit, X, and the web" + }, + "plugins": [ + { + "name": "last30days", + "source": "." + } + ] +} diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..0e51d53 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "last30days", + "description": "Research any topic from the last 30 days across Reddit, X, and the web", + "version": "2.0.0", + "author": { + "name": "mvanhorn" + }, + "repository": "https://github.com/mvanhorn/last30days-skill", + "license": "MIT", + "keywords": ["research", "reddit", "twitter", "x", "trends", "prompts"], + "skills": ["./"] +} diff --git a/SKILL.md b/SKILL.md index 166d75c..954bf72 100644 --- a/SKILL.md +++ b/SKILL.md @@ -58,7 +58,7 @@ This text MUST appear before you call any tools. It confirms to the user that yo **Step 1: Run the research script** ```bash -python3 ~/.claude/skills/last30days/scripts/last30days.py "$ARGUMENTS" --emit=compact 2>&1 +python3 "${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/skills/last30days}/scripts/last30days.py" "$ARGUMENTS" --emit=compact 2>&1 ``` The script will automatically: