x-intelligence

x-intelligence is a skill for Claude Code, Codex from 0xNyk/oneclaw. It costs 0 tokens per session (3,513 once invoked), scanned A, original, MIT.

A guide for researching and analysing posts and accounts on X, the platform formerly known as Twitter, using the official X API and optionally xAI’s Grok API.

In plain words
What is it for?
Use it to search, monitor, or analyse X content after checking API access, tokens, and the recommended command-line tool.
Why use it?
It sets the required tools, credentials, and rules for gathering X information without using scraping or unofficial endpoints.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/0xnyk/oneclaw/x-intelligence
Any agent
npx skills add 0xNyk/oneclaw --skill x-intelligence
Clone the repo
git clone --depth 1 https://github.com/0xNyk/oneclaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for x-intelligence

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xnyk/oneclaw/x-intelligence.svg)](https://agentmods.dev/skills/0xnyk/oneclaw/x-intelligence)
Your own site
<a href="https://agentmods.dev/skills/0xnyk/oneclaw/x-intelligence"><img src="https://agentmods.dev/badge/skills/0xnyk/oneclaw/x-intelligence.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,513 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.03513
Opus 5 $0.00000 $0.01757
Sonnet 5 $0.00000 $0.00703
Haiku 4.5 $0.00000 $0.00351

Measured 4d ago against content hash 1fac2bf62815, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

x-intelligence scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/skills/builtins/x-intelligence/SKILL.md · 402 lines

How it starts

The opening of the file, as written. The whole thing — 402 lines — stays where its author put it; the contents beside it link to each section on GitHub.

X/Twitter Intelligence Gathering

When the user asks you to search, monitor, or analyze content on X (formerly Twitter), follow this guide. All operations use the official X API v2 and optionally the xAI Grok API for analysis. Never scrape. Never use unofficial endpoints.


Prerequisites

Before performing any X intelligence operation, verify the following:

  1. X API v2 Bearer Token is available in the config or environment (ONECLAW_X_BEARER_TOKEN or X_BEARER_TOKEN).
  2. xAI Grok API Key is available if analysis features are needed (ONECLAW_XAI_API_KEY or XAI_API_KEY).
  3. The xint-rs CLI tool is installed and on PATH (recommended). Fall back to raw HTTP if unavailable.

If credentials are missing, inform the user and explain how to obtain them:


xint-rs is a Rust CLI that wraps X API v2 and xAI Grok into a single intelligence workflow. Prefer it when available.

Check availability

which xint && xint --version

Common xint commands

# Search recent tweets (last 7 days, Free/Basic tier)
xint search "rust programming" --max-results 100 --format json

# Search with date range (Academic/Enterprise tier)
xint search "AI safety" --start "2026-01-01" --end "2026-02-01" --max-results 500

# Get a user's recent tweets
xint user-tweets @username --max-results 50 --format json

# Analyze sentiment of search results via Grok
xint search "oneclaw agent" --max-results 50 --analyze sentiment

# Monitor a topic (polls every interval)
xint monitor "topic OR keyword" --interval 300 --callback webhook://localhost:8080/x-intel

# Generate intelligence report
xint report "AI agents" --days 7 --output report.md

If xint-rs is not available, use http_request tool with the raw API endpoints documented below.

Read the full file on GitHub · 402 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 402 lines · 0 tokens per session scan A 1fac2bf62815

Subscribe to this mod's changes

x-intelligence is a skill published in the GitHub repository 0xNyk/oneclaw (2 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,513 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories