Add Claude Code marketplace plugin support

- 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 <noreply@anthropic.com>
This commit is contained in:
Matt Van Horn
2026-02-07 09:11:28 -08:00
parent 60f06ea86e
commit 6d80af3807
3 changed files with 29 additions and 1 deletions
+16
View File
@@ -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": "."
}
]
}
+12
View File
@@ -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": ["./"]
}
+1 -1
View File
@@ -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** **Step 1: Run the research script**
```bash ```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: The script will automatically: