Logotipo de Twitter Search Skill

Twitter Search Skill

Comunidad
zeenie-ai
twitter-search-skill

Search for recent tweets on Twitter/X using keywords, hashtags, mentions, and advanced query operators. Returns rich tweet data with expanded URLs, author info, media, metrics, and referenced tweets.

Descripción general

Editorzeenie-ai
RepositorioOpenCompany
Nombre de la habilidadtwitter-search-skill
Estrellas
912
Forks
137
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por zeenie-ai en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Twitter Search Skill en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/zeenie-ai/OpenCompany/tree/main/server/skills/social_agent/twitter-search-skill
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zeenie-ai/OpenCompany.git /tmp/OpenCompany
mkdir -p .claude/skills
cp -r /tmp/OpenCompany/server/skills/social_agent/twitter-search-skill .claude/skills/twitter-search-skill
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Twitter Search Skill en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Twitter Search Skill automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Twitter Search Skill no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Twitter Search Tool

Search for recent tweets on Twitter/X with rich data including full text, expanded URLs, author profiles, media attachments, engagement metrics, and referenced tweets.

How It Works

This skill provides instructions for the Twitter Search tool node. Connect the Twitter Search node to an AI Agent's input-tools handle to enable tweet searching.

twitter_search Tool

Search for tweets matching a query. Returns enriched tweet data via X API v2 expansions.

Schema Fields

FieldTypeRequiredDescription
querystringYesSearch query (supports operators)
max_resultsintegerNoNumber of results (10-100, default: 10)

Query Rules (X API constraint — required reading)

Every query must contain at least one STANDALONE term. Operator-only queries return HTTP 400 from X.

  • Standalone (can stand alone as the whole query): keyword, "quoted phrase", #hashtag, @mention, from:user, to:user, url:domain, context:.
  • Conjunction-required (must be combined with a standalone term): lang:, is:retweet / -is:retweet, is:reply / -is:reply, is:quote, has:links, has:media, has:images, has:videos, plain -negation of any keyword.

HTTP 400 — these queries fail:

Bad queryWhy
lang:enconjunction-required operator alone
-is:retweetnegation alone
-is:retweet lang:entwo conjunction-required operators, zero standalone
has:mediaconjunction-required alone
is:replyconjunction-required alone

Valid — these have at least one standalone term:

Good queryStandalone anchor
python -is:retweetkeyword python
"machine learning" lang:enquoted phrase
from:elonmusk -is:retweetfrom:
#ai has:mediahashtag
@OpenAI lang:enmention
url:"github.com" -is:retweeturl:

Query Operators

The X API v2 supports advanced search operators:

OperatorExampleDescription
keywordpythonTweets containing the word
phrase"machine learning"Exact phrase match
hashtag#AITweets with hashtag
mention@usernameTweets mentioning user
fromfrom:elonmuskTweets by specific user
toto:usernameReplies to user
-keyword-spamExclude keyword
ORpython OR javascriptEither term
langlang:enLanguage filter
has:linksAI has:linksTweets with URLs
has:mediasunset has:mediaTweets with media
has:imagescat has:imagesTweets with images
has:videosnews has:videosTweets with videos
is:retweetbitcoin is:retweetOnly retweets
-is:retweetnews -is:retweetExclude retweets
is:reply@user is:replyOnly replies
-is:replytopic -is:replyExclude replies
is:quotebreaking is:quoteOnly quote tweets
url:url:"github.com"Tweets linking to domain
context:context:131.1007360414114435072Tweets in topic context

Examples

Simple keyword search:

json
{
  "query": "artificial intelligence",
  "max_results": 20
}

Search with hashtag:

json
{
  "query": "#MachineLearning -is:retweet lang:en",
  "max_results": 50
}

Search tweets from a user (original tweets only):

json
{
  "query": "from:OpenAI -is:retweet",
  "max_results": 10
}

Complex query:

json
{
  "query": "AI (startup OR company) -is:retweet lang:en has:links",
  "max_results": 100
}

Search for media posts:

json
{
  "query": "sunset has:media -is:retweet",
  "max_results": 25
}

Response Format

Each tweet includes rich data. The display_text field has t.co links replaced with full expanded URLs. Long-form tweets (>280 chars) use note_tweet content.

json
{
  "success": true,
  "result": {
    "tweets": [
      {
        "id": "1234567890123456789",
        "text": "Check out https://t.co/abc123",
        "display_text": "Check out https://www.example.com/full-article-url",
        "author_id": "987654321",
        "created_at": "2025-02-19T10:30:00+00:00",
        "lang": "en",
        "source": "Twitter Web App",
        "conversation_id": "1234567890123456789",
        "in_reply_to_user_id": null,
        "possibly_sensitive": false,
        "public_metrics": {
          "retweet_count": 42,
          "reply_count": 12,
          "like_count": 256,
          "quote_count": 5,
          "bookmark_count": 18,
          "impression_count": 15000
        },
        "author": {
          "id": "987654321",
          "username": "techuser",
          "name": "Tech User",
          "profile_image_url": "https://pbs.twimg.com/..."
        },
        "urls": [
          {
            "url": "https://t.co/abc123",
            "expanded_url": "https://www.example.com/full-article-url",
            "display_url": "example.com/full-article-..."
          }
        ],
        "media": [
          {
            "media_key": "3_123456789",
            "type": "photo",
            "url": "https://pbs.twimg.com/media/...",
            "alt_text": "Description of the image"
          }
        ],
        "referenced_tweets": [
          {
            "type": "quoted",
            "id": "1111111111111111111",
            "text": "Original tweet text that was quoted",
            "author_id": "222222222"
          }
        ]
      }
    ],
    "count": 20,
    "query": "#AI"
  },
  "execution_time": 0.82
}

Key Response Fields

FieldDescription
textRaw tweet text (may contain t.co shortened links)
display_textText with t.co links expanded to full URLs -- use this for display
authorAuthor profile (username, name, profile image) from includes expansion
public_metricsEngagement: retweet_count, reply_count, like_count, quote_count, bookmark_count, impression_count
mediaAttached media objects (photo, video, animated_gif) with URLs and alt text
urlsExpanded URL mappings (short t.co -> full URL)
referenced_tweetsQuoted or replied-to tweets with their text content
langDetected language code (e.g., "en", "es", "ja")
sourceClient used to post (e.g., "Twitter Web App", "Twitter for iPhone")
conversation_idID of the conversation thread
in_reply_to_user_idIf a reply, the user ID being replied to

Important Notes

  • Always use display_text instead of text when showing tweet content to users -- it contains expanded URLs
  • Long tweets: Tweets over 280 characters use note_tweet; the full text is in the text field
  • Media URLs: media[].url gives the direct image/video URL
  • Referenced tweets: referenced_tweets[].text contains the full text of quoted/replied tweets
  • Metrics: public_metrics shows real-time engagement counts

Error Response

json
{
  "success": false,
  "error": "Search query is required",
  "execution_time": 0.01
}

Guidelines

  1. Always include a standalone term (keyword / phrase / hashtag / mention / from: / to: / url:) — see "Query Rules" above. Operator-only queries fail with HTTP 400.
  2. Max results: Minimum 10, maximum 100 per request (X API v2 constraint).
  3. Recent tweets only: X API v2 free/basic tier searches recent tweets (last 7 days).
  4. Rate limits: Be mindful of API rate limits when searching repeatedly.
  5. Combine operators on a base term: e.g., python -is:retweet lang:en has:links — the python keyword anchors all three filters.
  6. Exclude retweets: append -is:retweet to a keyword query (e.g. python -is:retweet). Cannot stand alone.
  7. Language filter: append lang:en to a keyword/from:/hashtag query (e.g. "openai" lang:en). Cannot stand alone.
  8. Media filter: append has:media / has:images / has:videos to a keyword query. Cannot stand alone.

Common Use Cases

  • Monitor brand mentions with engagement metrics
  • Track trending topics and measure reach
  • Find tweets about specific subjects with media
  • Research competitor activity and engagement
  • Gather content for curation with full context
  • Find influencers by analyzing follower/engagement metrics
  • Analyze conversation threads via conversation_id

Setup Requirements

  1. Connect the Twitter Search node to an AI Agent's input-tools handle
  2. Ensure Twitter is connected (authenticated via OAuth in Credentials Modal)
  3. Your X Developer account must have appropriate API access level

References

Preguntas frecuentes

¿Qué hace la habilidad de IA Twitter Search Skill?

Search for recent tweets on Twitter/X using keywords, hashtags, mentions, and advanced query operators. Returns rich tweet data with expanded URLs, author info, media, metrics, and referenced tweets.

¿Por qué usar Twitter Search Skill en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Twitter Search Skill está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Twitter Search Skill en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/zeenie-ai/OpenCompany/tree/main/server/skills/social_agent/twitter-search-skill. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Twitter Search Skill?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Twitter Search Skill?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Twitter Search Skill con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Twitter Search Skill?

Sí. zeenie-ai la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇