Search X logo

Search X

Community
marckohlbrugge
search-x

Look things up on X (Twitter): posts, accounts, threads, replies, and quotes. Use this whenever the user mentions X or Twitter, a tweet, a handle, what someone posted, or when the next step would be opening x.com or twitter.com. x.com blocks normal web fetches. If you already have x_keyword_search, use the X tools yourself. Otherwise run the Grok CLI as this skill says. A single known tweet or profile is a curl to api.fxtwitter.com, not a search.

Overview

Publishermarckohlbrugge
Repositoryskills
Skill namesearch-x
Stars
749
Forks
57
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by marckohlbrugge on GitHub. Read the source before you install it.

Installation

Install the Search X AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/marckohlbrugge/skills/tree/main/skills/search-x
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/marckohlbrugge/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/search-x .claude/skills/search-x
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Search X in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Search X on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Search X is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Search X

x.com and twitter.com block ordinary fetches, and web search does not return the posts. Read one known tweet or profile from the public FixTweet API. Search, find accounts, and read threads with Grok's X tools.

Which path

The user handed you one status URL, one status id, or one handle, and wants that tweet or that profile: curl FixTweet. No key. Do not start Grok for this.

bash
# A post. The id is the number in /status/<id>, including /i/web/status/<id>.
curl -fsS "https://api.fxtwitter.com/status/<id>"

# A profile. The handle without @.
curl -fsS "https://api.fxtwitter.com/<screen_name>"

The body is JSON. A post is under .tweet (text, author, created_at, likes, replies, media, community_note). A profile is under .user (name, screen_name, description, followers, website). If .tweet or .user is missing, read .message and stop. This returns that one object. It does not search, and it does not return replies.

You already have x_keyword_search, x_semantic_search, x_user_search, and x_thread_fetch: Call them. Do not start another grok process.

You do not: Run the command below. One question is one process. This needs the grok CLI, installed and logged in. FixTweet cannot search.

Which tool

Pick from the question. Do not run every tool every time.

QuestionTool
Words, a phrase, a handle, a date, a filterx_keyword_search
The wording is unknown and meaning is the only handlex_semantic_search, then drop posts whose text is about something else
Who is this account, or what is their handlex_user_search, then from:handle if you need their posts
What was said around this postx_thread_fetch with the post id

x_keyword_search is X advanced search. Spaces are AND, OR must be uppercase, quotes are an exact phrase, -term excludes, from: and to: and @ select people, since: and until: are dates, filter: selects replies, quotes, links, or media, min_faves: sets a floor. mode is Latest or Top. Latest is what is happening. Top is what got attention. One call returns at most 10 posts. Narrow the query, or page with since:, until:, or max_id:, instead of asking for more than 10.

x_semantic_search matches meaning, so near-miss topics come back as hits. A date range and a username list are filters on that call. Keep a post only when its text answers the question.

x_user_search takes a name or a handle, not a post query. x_thread_fetch takes a post id and returns the parents and the replies.

Command

bash
grok -p "$(cat <<'EOF'
Answer this from X. Do not use the web. Do not write files.

<question>

Use only x_keyword_search, x_semantic_search, x_user_search, and x_thread_fetch.
Pick the tool that matches the question. Do not run every tool.

Keyword search is X advanced search: spaces are AND, OR is uppercase, quotes are an exact phrase, -term excludes, from: and since: and filter: and min_faves: work. mode is Latest or Top. One call returns at most 10 posts.
Semantic search matches meaning and returns nearby topics. Keep a post only when its text answers the question.
User search finds accounts. Thread fetch takes a post id and returns the conversation.

For each post you use: author name, @handle, date, https://x.com/<handle>/status/<id>, and the text. If nothing matched, say so.
EOF
)" \
  --cwd /tmp \
  --always-approve \
  --max-turns 12 \
  --disallowed-tools "write,search_replace,run_terminal_cmd,task,web_search,web_fetch" \
  --output-format plain

Replace <question> with the actual ask. Leave the rest of the prompt as written.

Why these flags:

  • --always-approve is required. Headless mode has no one to click Allow, so without it the process waits until it is killed.
  • --cwd /tmp keeps the search off the repo you are in. Grok would otherwise load that project's rules and could treat the repo as its workspace.
  • --max-turns 12 covers a few searches and a thread. Raise it only when the run stops because it hit the turn cap.
  • Do not pass --tools x_keyword_search,.... Those are the names the model calls, and --tools does not recognize them. Grok then warns and leaves every other tool available, so the flag does not sandbox anything. The denylist is what actually removes shell, edits, subagents, and the web.

Give the process several minutes. Read stdout. If stderr says a denylist name is unknown, drop that one name and rerun. An unknown denylist entry removes nothing.

How to report

Answer the question that was asked. Cite the status URL, the handle, and the date for every post you rely on. Leave out posts that do not match. If the tool summary and the post text disagree, trust the post text. No matching posts is a result, not a failed command.

Frequently asked questions

What does the Search X AI skill do?

Look things up on X (Twitter): posts, accounts, threads, replies, and quotes. Use this whenever the user mentions X or Twitter, a tweet, a handle, what someone posted, or when the next step would be opening x.com or twitter.com. x.com blocks normal web fetches. If you already have x_keyword_search, use the X tools yourself. Otherwise run the Grok CLI as this skill says. A single known tweet or profile is a curl to api.fxtwitter.com, not a search.

Why use Search X on TypingMind?

Because you install it once and use it with any model. Search X is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Search X in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/marckohlbrugge/skills/tree/main/skills/search-x. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Search X?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Search X?

As many as you like. As long as a model supports skills, you can use Search X with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Search X AI skill free?

It is published on GitHub by marckohlbrugge. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇