| 1 | # Submitting to the xAI plugin marketplace |
| 2 | |
| 3 | Getting last30days into xAI's official catalog (`xai-org/plugin-marketplace`) is an outbound PR to *their* repo — an index that only points at our source, so nothing of last30days is vendored there. Do this **after** the change you want to ship has merged to `main`: the entry pins a commit that must already exist. |
| 4 | |
| 5 | 1. Fork `xai-org/plugin-marketplace` and branch from `main`. |
| 6 | 2. Get the commit to pin — a full 40-char lowercase SHA; a branch, tag, or short SHA is rejected by their validator: |
| 7 | ```bash |
| 8 | git ls-remote https://github.com/mvanhorn/last30days-skill.git HEAD |
| 9 | ``` |
| 10 | 3. Add one entry to their `.grok-plugin/marketplace.json` under `plugins[]`, a remote source pinned to that SHA: |
| 11 | ```json |
| 12 | { |
| 13 | "name": "last30days", |
| 14 | "description": "Research any topic across Reddit, X, YouTube, TikTok, Instagram, Hacker News, Polymarket, GitHub, and 5+ more sources. AI agent scores by upvotes, likes, and real money - not editors.", |
| 15 | "category": "productivity", |
| 16 | "source": { |
| 17 | "source": "url", |
| 18 | "url": "https://github.com/mvanhorn/last30days-skill.git", |
| 19 | "sha": "<full-40-char-sha-from-step-2>" |
| 20 | }, |
| 21 | "homepage": "https://github.com/mvanhorn/last30days-skill", |
| 22 | "keywords": ["last30days", "last 30 days"] |
| 23 | } |
| 24 | ``` |
| 25 | 4. Regenerate their component index (never hand-edit it) and validate exactly as their CI does: |
| 26 | ```bash |
| 27 | python3 scripts/generate-plugin-index.py |
| 28 | python3 scripts/validate-catalog.py |
| 29 | python3 scripts/generate-plugin-index.py --check |
| 30 | ``` |
| 31 | 5. Open the PR, fill in their template, and wait for code-owner review. |
| 32 | |
| 33 | To roll out a later update in their catalog, bump the pinned `sha` in the existing entry — never open a second, parallel entry. |
| 34 | |
| 35 | Do not confuse this with our own `.grok-plugin/marketplace.json`: that file makes this repo directly addable as a Grok marketplace (`grok plugin marketplace add mvanhorn/last30days-skill`) and uses a **bare URL** source (no SHA) so it tracks HEAD; the xAI entry above lives in *their* repo and uses a **remote** source pinned to a SHA. |
| 36 |