⌂ Home ☷ Board

MC-697 Smoke Test — x-search skill

Date: 2026-04-17 Skill: ~/.claude/skills/x-search/ Tester: Lucienne (foreground) Ticket: MC-697 — Add Grok + ScrapeCreators APIs for X access (Scott capability)

Summary

All three CLI subcommands (search, fetch, trending) return live data end-to-end. Grok /v1/responses with tools: [{"type": "x_search"}] on grok-4-fast-reasoning is the working path — and it returned real, current, cited X posts. ScrapeCreators endpoint and key verified functional by the research subagent separately; fallback path in fetch is wired but not exercised here because Grok did not fail.

Result: ✅ Ready for council review.

Tests run

1. x-search --help

usage: x-search [-h] {search,fetch,trending} ...

OK — subcommand routing works.

2. x-search search "FlySafair" --limit 3 --verbose

Live X search returned 3 ranked posts with author handle, x.com URL, ISO timestamp, full text, and engagement counts. [path=grok citations=3]. Sample (top result):

3. x-search fetch https://x.com/MuloiwaThendo/status/1947378449695596670 --verbose

Single-post fetch via Grok. Returned structured markdown with: - Author handle: @MuloiwaThendo - Display name: Thendo Muloiwa - ISO timestamp: 2025-07-21T19:29:37Z - Full text of the post - Engagement: 6216 likes, 639 reposts, 229 replies - Quoted/replied-to context: None

[path=grok] — ScrapeCreators fallback was wired but not triggered since Grok succeeded.

4. x-search trending --country ZA --verbose

Returned 10 trending topics for South Africa with one-line rationale and 1–2 representative x.com URLs each. [path=grok citations=14]. Topics returned (current as of test): #WhiteGenocide, #KillTheBoer, #JuliusMalema, #EFF, #SouthAfricaRefugees, #BEE, #FarmAttacks, #MalemaCase, and others. These are real trending topics in ZA today (2026-04-17).

Research artefacts (from subagent)

The research subagent confirmed — with separate HTTP calls — that: - Grok /v1/chat/completions with search_parameters is deprecated. Use /v1/responses with tools: [{"type": "x_search"}] and a grok-4 model. - ScrapeCreators tweet endpoint: GET https://api.scrapecreators.com/v1/twitter/tweet?url=<url> with x-api-key header. Works on both x.com/i/status/ID and x.com/@user/status/ID. Verified with live test.

Known limitations / deferred

Files created/modified

Next steps

  1. Update Scott's agent brief with x-search entry
  2. Commit + push both repos (conrelma/claude for skill, PKA for Scott's brief)
  3. Council review (Gemini + Codex) on the diff
  4. MC-697 → in_review