Search Xのロゴ

Search X

コミュニティ
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.

概要

公開者marckohlbrugge
リポジトリskills
スキル名search-x
スター
749
フォーク
57
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    marckohlbruggeがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Search X」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/marckohlbrugge/skills/tree/main/skills/search-x
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSearch Xを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にSearch Xを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Search Xは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「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.

TypingMindでSearch Xを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Search Xはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSearch Xをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/marckohlbrugge/skills/tree/main/skills/search-xを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Search Xを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Search Xで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSearch Xを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Search X」は無料ですか?

marckohlbruggeがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇