Claude-skill-registry grok-skill
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/grok-skill" ~/.claude/skills/majiayu000-claude-skill-registry-grok-skill && rm -rf "$T"
manifest:
skills/data/grok-skill/SKILL.mdsource content
Grok 4 — X/Twitter Live Search Skill
Prerequisites
- OpenRouter API key required (set as
environment variable)OPENROUTER_API_KEY - Get your key at openrouter.ai
- Bun runtime installed
When to use
Use this Skill whenever the user asks for trends, activity, examples, or evidence from X/Twitter:
- "search twitter|x for <query>"
- "what's trending on X"
- "top tweets/threads/hashtags about <topic>"
- "what are people saying about <project>"
- "tweets from @handle", "compare @a vs @b"
How to run (Claude should execute these)
-
Minimal:
bun scripts/grok.ts --q "<query>" -
One-off with inline API key:
OPENROUTER_API_KEY="sk-or-..." bun scripts/grok.ts --q "<query>" -
With handles and date window (YYYY-MM-DD):
bun scripts/grok.ts \ --q "<topic or question>" \ --mode on \ --include "@OpenAI" "@AnthropicAI" \ --from "2025-11-01" --to "2025-11-07" \ --min-faves 50 --min-views 0 \ --max 12 -
Output is concise JSON:
,summary
(tweet URLs), andcitations
. Paste a short synthesis with linked tweets.usage
Defaults & notes
- Live Search
defaults tomode
; useauto
for explicit "search X now".on - If user gives handles, pass them via
(or--include
).--exclude - Use
for time-bounded asks; if unspecified, do not assume dates.--from/--to - Keep
modest (8–20) for cost/latency; raise only if sparse.--max
and--include
are mutually exclusive.--exclude- Do not claim access to private/protected content. Prefer links over long quotes.
Troubleshooting
- Sparse results → increase
or relax filters; consider removing handles.--max - Missing links → they're in
of the JSON output; share the URLs.citations