Skip to content

feat: add x-search skill for X/Twitter research#28

Merged
iamladi merged 4 commits intomainfrom
plan/x-search-skill
Feb 8, 2026
Merged

feat: add x-search skill for X/Twitter research#28
iamladi merged 4 commits intomainfrom
plan/x-search-skill

Conversation

@iamladi
Copy link
Copy Markdown
Owner

@iamladi iamladi commented Feb 8, 2026

Summary

  • Add /x-search skill for X/Twitter research from Claude Code
  • Port and adapt rohunvora/x-research-skill to sdlc-plugin conventions
  • TypeScript CLI under utils/x-search/ with 6 commands: search, thread, profile, tweet, watchlist, cache

Changes

  • SKILL.md with sdlc-plugin frontmatter, agentic research loop, CLI reference, and refinement heuristics
  • TypeScript CLI adapted: env-var-only auth (X_BEARER_TOKEN), markdown default output, --save writes to CWD
  • Bug fixes: thread root tweet parsing, 401/403/429 error handling with actionable messages
  • Review fixes: renamed --no-retweets to --include-retweets (P1 logic fix), --limit respected across all output formats, NaN guards on numeric flags, stderr logging for thread catch
  • Tests: 12 fixture-based unit tests for parseTweets, deduplication, sorting, filtering
  • Data scaffolding: watchlist example, cache directory, .gitignore entries

Plan

plans/x-search-skill-integration.md

Review

Code reviewed by GPT-5.2-Codex (xhigh) and Gemini 3 Pro. All P1 and P2 findings addressed.

Validation

  • bun run validate passes
  • bun test utils/x-search/tests/ — 12/12 pass
  • No hardcoded ~/clawd/ or ~/.config/env/ paths
  • CLI shows usage without API call

Test plan

  • bun run utils/x-search/x-search.ts shows usage help
  • bun test utils/x-search/tests/ — 12 tests pass
  • bun run validate passes
  • grep -r "clawd\|global\.env" utils/x-search/ skills/x-search/ returns no matches
  • With valid X_BEARER_TOKEN: bun run utils/x-search/x-search.ts search "test" returns markdown results

Research and PRD for integrating rohunvora/x-research-skill as an
x-search skill in the sdlc-plugin. Includes multi-LLM blindspot
review (Codex + Gemini) with consolidated findings.
Port and adapt rohunvora/x-research-skill CLI for sdlc-plugin conventions:
- SKILL.md with frontmatter, research loop, and CLI reference
- TypeScript CLI under utils/x-search/ with 6 commands (search, thread,
  profile, tweet, watchlist, cache)
- Env-var-only auth (X_BEARER_TOKEN), no file fallback
- Default markdown output instead of Telegram format
- --save writes to CWD, not hardcoded ~/clawd/drafts/
- 401/403/429 error handling with actionable messages
- Thread root tweet bug fix (single tweet response parsing)
- Fixture-based unit tests for parseTweets and deduplication
- --include-retweets flag (retweets excluded by default)
- --limit respected across all output formats
Transforms the x-search skill from rule-based (4.6/10) to reasoning-based
(~7.5/10) per Anthropic Constitution principles. Replaces exhaustive CLI
flag enumeration with concise reference that trusts --help, converts
6-step procedural research loop into principles-based approach, and adds
reasoning to all constraints explaining why they matter for decisions.
@iamladi iamladi merged commit f3fe7a3 into main Feb 8, 2026
1 check passed
@iamladi iamladi deleted the plan/x-search-skill branch February 8, 2026 16:56
iamladi added a commit that referenced this pull request Apr 20, 2026
…tes" catchall headers per iter-12 guidance, absorbing duplicated blast-radius content into Invocation shape and promoting user-handoff discoverability hooks to a semantic "After the run" section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant