Aller au contenu
Skillpedia
Réseaux sociaux260k · #618

xurl

Ce qu’il fait

Ce skill relie votre IA à X, anciennement Twitter, pour publier, chercher des messages, envoyer des messages privés et gérer des comptes. Il s'adresse aux personnes qui animent des comptes sur X et veulent l'aide de leur IA.

Quand l’utiliser

  • ✓Quand vous voulez que votre IA publie, réponde ou cite un message sur X.
  • ✓Quand vous voulez chercher des messages sur X au sujet d'un thème et en obtenir les détails.
  • ✓Quand vous voulez envoyer un message privé, téléverser un média ou vérifier les mentions sur X.

Lien du skill

https://github.com/NousResearch/hermes-agent/blob/main/skills/social-media/xurl/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/NousResearch/hermes-agent/blob/main/skills/social-media/xurl/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Cherche sur X les messages sur le lancement de notre produit de la dernière journée et rédige une réponse au plus populaire.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Le skill lance l'outil officiel en ligne de commande xurl, qui envoie des requêtes à l'API de X et renvoie du JSON. Vos identifiants de connexion restent dans un fichier que vous remplissez vous-même, et l'IA ne le lit jamais.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

xurl — X (Twitter) API via the Official CLI

xurl is the X developer platform's official CLI for the X API. It supports shortcut commands for common actions AND raw curl-style access to any v2 endpoint. All commands return JSON to stdout.

Use this skill for:

  • posting, replying, quoting, deleting posts
  • searching for raw posts (actual post JSON with IDs you can engage with) and reading timelines/mentions
  • liking, reposting, bookmarking
  • following, unfollowing, blocking, muting
  • direct messages
  • media uploads (images and video)
  • raw access to any X API v2 endpoint
  • multi-app / multi-account workflows

This skill replaces the older xitter skill (which wrapped a third-party Python CLI). xurl is maintained by the X developer platform team, supports OAuth 2.0 PKCE with auto-refresh, and covers a substantially larger API surface.


Secret Safety (MANDATORY)

Critical rules when operating inside an agent/LLM session:

  • Never read, print, parse, summarize, upload, or send ~/.xurl to LLM context.
  • Never ask the user to paste credentials/tokens into chat.
  • The user must fill ~/.xurl with secrets manually on their own machine. In Docker, this must be the ~ seen by Hermes tool subprocesses; see the Docker note below.
  • Never recommend or execute auth commands with inline secrets in agent sessions.
  • Never use --verbose / -v in agent sessions — it can expose auth headers/tokens.
  • To verify credentials exist, only use: xurl auth status.

Forbidden flags in agent commands (they accept inline secrets): --bearer-token, --consumer-key, --consumer-secret, --access-token, --token-secret, --client-id, --client-secret

App credential registration and credential rotation must be done by the user manually, outside the agent session. After credentials are registered, the user authenticates with xurl auth oauth2 — also outside the agent session. Tokens persist to ~/.xurl in YAML. Each app has isolated tokens. OAuth 2.0 tokens auto-refresh.


Installation

Pick ONE method. On Linux, the shell script or go install are the easiest.

# Shell script (installs to ~/.local/bin, no sudo, works on Linux + macOS)
curl -fsSL https://raw.githubusercontent.com/xdevplatform/xurl/main/install.sh | bash

# Homebrew (macOS)
brew install --cask xdevplatform/tap/xurl

# npm
npm install -g @xdevplatform/xurl

# Go
go install github.com/xdevplatform/xurl@latest

Verify:

xurl --help
xurl auth status

If xurl is installed but auth status shows no apps or tokens, the user needs to complete auth manually — see the next section.


One-Time User Setup (user runs these outside the agent)

These steps must be performed by the user directly, NOT by the agent, because they involve pasting secrets. Direct the user to this block; do not execute it for them.

  1. Create or open an app at https://developer.x.com/en/portal/dashboard

  2. Set the redirect URI to http://localhost:8080/callback

  3. Copy the app's Client ID and Client Secret

  4. Register the app locally (user runs this):

    xurl auth apps add my-app --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET
    
  5. Authenticate (specify --app to bind the token to your app):

    xurl auth oauth2 --app my-app
    

    (This opens a browser for the OAuth 2.0 PKCE flow.)

    If X returns a UsernameNotFound error or 403 on the post-OAuth /2/users/me lookup, pass your handle explicitly (xurl v1.1.0+):

    xurl auth oauth2 --app my-app YOUR_USERNAME
    

    This binds the token to your handle and skips the broken /2/users/me call.

  6. Set the app as default so all commands use it:

    xurl auth default my-app
    
  7. Verify:

    xurl auth status
    xurl whoami
    

After this, the agent can use any command below without further setup. OAuth 2.0 tokens auto-refresh.

Common pitfall: If you omit --app my-app from xurl auth oauth2, the OAuth token is saved to the built-in default app profile — which has no client-id or client-secret. Commands will fail with auth errors even though the OAuth flow appeared to succeed. If you hit this, re-run xurl auth oauth2 --app my-app and xurl auth default my-app.

Docker HOME pitfall: In the official Hermes Docker layout, /opt/data is HERMES_HOME, but Hermes tool subprocesses use /opt/data/home as HOME. That means ~/.xurl resolves to /opt/data/home/.xurl for Hermes-run `xur

Questions fréquentes

L'IA verra-t-elle mon mot de passe ou mon jeton X ?

Non. Le skill indique que l'IA ne doit jamais lire ni afficher le fichier d'identifiants, que vous remplissez vous-même.

Peut-elle publier sans mon approbation ?

Le skill couvre la publication et la suppression. Il ne précise pas que l'IA peut publier sans votre contrôle, donc relisez ce qu'elle écrit avant.

Remplace-t-il l'ancien skill xitter ?

Oui. Le skill indique que xurl remplace l'ancien skill xitter.

Détails

Description originale de l’auteur

X/Twitter via xurl CLI: raw post search, posting, DM, media.

repo: NousResearch/hermes-agent

Popularité

Étoiles GitHub
260k
Position au classement
#618
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires