xurl
O que ela faz
Esta skill conecta sua IA ao X, antigo Twitter, para que ela possa publicar, pesquisar posts, enviar mensagens diretas e gerenciar contas. Ela é para quem mantém contas de redes sociais no X e quer ajuda da IA.
Quando usar
- ✓Quando você quer que sua IA publique, responda ou cite um post no X.
- ✓Quando você quer pesquisar no X posts sobre um tema e obter os detalhes deles.
- ✓Quando você quer enviar uma mensagem direta, enviar mídia ou verificar menções no X.
Link da skill
https://github.com/NousResearch/hermes-agent/blob/main/skills/social-media/xurl/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Pesquise no X os posts sobre o lançamento do nosso produto do último dia e rascunhe uma resposta para o mais popular.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill executa a ferramenta de linha de comando oficial xurl, que envia requisições à API do X e devolve JSON. As suas credenciais de login ficam em um arquivo que você mesmo preenche, e a IA nunca lê esse arquivo.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
~/.xurlto LLM context. - Never ask the user to paste credentials/tokens into chat.
- The user must fill
~/.xurlwith 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/-vin 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.
Create or open an app at https://developer.x.com/en/portal/dashboard
Set the redirect URI to
http://localhost:8080/callbackCopy the app's Client ID and Client Secret
Register the app locally (user runs this):
xurl auth apps add my-app --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRETAuthenticate (specify
--appto 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
UsernameNotFounderror or 403 on the post-OAuth/2/users/melookup, pass your handle explicitly (xurl v1.1.0+):xurl auth oauth2 --app my-app YOUR_USERNAMEThis binds the token to your handle and skips the broken
/2/users/mecall.Set the app as default so all commands use it:
xurl auth default my-appVerify:
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-appfromxurl auth oauth2, the OAuth token is saved to the built-indefaultapp 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-runxurl auth oauth2 --app my-appandxurl auth default my-app.
Docker HOME pitfall: In the official Hermes Docker layout,
/opt/dataisHERMES_HOME, but Hermes tool subprocesses use/opt/data/homeasHOME. That means~/.xurlresolves to/opt/data/home/.xurlfor Hermes-run `xur
Perguntas frequentes
A IA vai ver minha senha ou meu token do X?
Não. A skill diz que a IA nunca deve ler nem imprimir o arquivo de credenciais, e que você deve preenchê-lo sozinho.
Ela pode publicar sem minha aprovação?
A skill cobre publicar e apagar. Ela não diz que a IA deve publicar sem a sua conferência, então revise antes o que ela escreveu.
Ela substitui a antiga skill xitter?
Sim. A skill diz que o xurl substitui a skill xitter mais antiga.
Detalhes
Descrição original do autor
X/Twitter via xurl CLI: raw post search, posting, DM, media.
Popularidade
- Estrelas no GitHub
- 260 mil
- Posição no ranking
- #618
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
agent-merge-conflict-arbiter
260 milResolve um conflito de merge no git entre as branches de dois agentes como terceiro neutro, produzindo um único resultado unificado para o repositório.
antigravity-cli
260 milOrienta você na instalação, atualização e solução de problemas da ferramenta de linha de comando Antigravity, incluindo plugins, login e sandbox.
blackbox
260 milPermite que seu agente entregue uma tarefa de programação para a ferramenta de linha de comando Blackbox AI, que roda vários modelos de IA e escolhe o melhor resultado.
dynamic-workflow
260 milEnsina seu agente a rodar grandes lotes de trabalhos semelhantes como um script salvo, de modo que só resultados verificados voltem para a conversa principal.
Skills parecidas
xurl
394 milAjuda seu agente a publicar, responder, pesquisar e ler no X, enviar mensagens diretas e subir mídias, usando a ferramenta autenticada xurl.
connections-optimizer
280 milMelhora suas conexões em redes sociais. Sugere quem seguir ou remover e ajuda a criar mensagens personalizadas para expandir sua rede.
content-engine
280 milCria conteúdo para diferentes plataformas. Ajuda a produzir posts, roteiros e calendários de conteúdo que funcionam bem em redes como X, LinkedIn e YouTube.