← Back to Skills Marketplace
K test
by
Dang Trung Kien
· GitHub ↗
· v1.0.0
· MIT-0
84
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install k-test
Description
Search X (Twitter) posts using the xAI API. Use when the user wants to find tweets, search X/Twitter, look up what people are saying on X, or find social med...
README (SKILL.md)
X Search
Search X (Twitter) posts using the xAI Grok API with real-time access to X content.
Setup
- Get your API key: https://console.x.ai
- Set environment variable:
export XAI_API_KEY="xai-your-key-here" - Or set
skills."x-search".apiKey/skills."x-search".env.XAI_API_KEYin~/.openclaw/openclaw.json
Usage
python3 {baseDir}/scripts/search.py "what is trending in AI right now"
Useful flags:
# Filter by handles (max 10)
python3 {baseDir}/scripts/search.py --handles jaaneek,OpenClaw "latest posts"
# Exclude handles (max 10)
python3 {baseDir}/scripts/search.py --exclude spambot,crypto_shill "trending AI"
# Date range (YYYY-MM-DD)
python3 {baseDir}/scripts/search.py --from 2026-03-01 --to 2026-03-20 "xAI grok updates"
# Enable image/video understanding in posts
python3 {baseDir}/scripts/search.py --images --video "product demos"
Notes
- Uses the xAI Responses API with
x_searchtool (Grok performs the search and summarizes results) - Cannot use
--handlesand--excludeat the same time - Results include citations with links to original X posts
- Present results in a readable format with post content, authors, and citations
Usage Guidance
This skill appears to do what it claims: it calls the xAI Responses API to search X posts and only needs python3 plus your XAI_API_KEY. Before installing: (1) confirm you trust the publisher (there is a slug/ownerId mismatch between the registry entry and the included _meta.json that could be a packaging artifact), (2) only provide an XAI API key with the minimum necessary scope and rotate/revoke it if you later uninstall the skill, and (3) you can inspect or run the included scripts locally (they are readable) to verify behavior. If you have doubts about the publisher identity, contact them or prefer a skill whose metadata matches exactly.
Capability Analysis
Type: OpenClaw Skill
Name: k-test
Version: 1.0.0
The skill bundle is a well-implemented tool for searching X (Twitter) via the xAI API. The Python script `scripts/search.py` uses standard libraries, implements strict input validation for handles and dates, and includes a security-conscious custom redirect handler to prevent credential leakage. No evidence of data exfiltration, malicious execution, or prompt injection was found.
Capability Assessment
Purpose & Capability
The skill implements an X (Twitter) search using the xAI Grok Responses API and only requires python3 and XAI_API_KEY, which is proportional to its stated purpose. Note: registry metadata and the bundled _meta.json disagree on slug/ownerId (skill listed as 'K test' / slug 'k-test' in the registry but _meta.json shows slug 'x-search' and a different ownerId). This mismatch is likely non-malicious (packaging or publishing artifact) but is worth confirming with the publisher.
Instruction Scope
SKILL.md instructs running the included Python script and setting XAI_API_KEY; the code only reads that env var, validates CLI args, builds a request to https://api.x.ai/v1/responses, and prints formatted JSON. It does not read other environment variables, user files, or send data to unexpected endpoints.
Install Mechanism
Install spec only suggests installing Python via Homebrew (formula: python) to provide python3. This is a low-risk, proportional install path for a Python script.
Credentials
The only required environment variable is XAI_API_KEY (declared as the primary credential) which is appropriate for calling the xAI API. The code does not request other secrets or configuration paths.
Persistence & Privilege
The skill is not marked always:true and does not attempt to modify other skills or system-wide settings. It runs on demand and only uses its own runtime resources.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install k-test - After installation, invoke the skill by name or use
/k-test - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of x-search.
- Search X (Twitter) posts in real time using the xAI Grok API.
- Supports filters for handles, exclusions, date ranges, and media (images/video).
- Returns results with citations and links to original X posts.
- Simple setup requiring an API key and Python 3.
- Usage examples included for common search scenarios.
Metadata
Frequently Asked Questions
What is K test?
Search X (Twitter) posts using the xAI API. Use when the user wants to find tweets, search X/Twitter, look up what people are saying on X, or find social med... It is an AI Agent Skill for Claude Code / OpenClaw, with 84 downloads so far.
How do I install K test?
Run "/install k-test" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is K test free?
Yes, K test is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does K test support?
K test is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created K test?
It is built and maintained by Dang Trung Kien (@dtkien1802); the current version is v1.0.0.
More Skills