Skillpedia
وسائل التواصل الاجتماعي260k · #618

xurl

ما الذي تفعله

تربط هذه المهارة الذكاء الاصطناعي لديك بمنصة X، التي كانت تُعرف بتويتر، فيستطيع النشر والبحث في المنشورات وإرسال الرسائل المباشرة وإدارة الحسابات. وهي لمن يدير حسابات تواصل على X ويريد مساعدة وكيله.

متى تستخدمها

  • ✓عندما تريد من وكيلك نشر منشور أو الرد عليه أو اقتباسه في X.
  • ✓عندما تريد البحث في X عن منشورات حول موضوع والحصول على تفاصيلها.
  • ✓عندما تريد إرسال رسالة مباشرة أو رفع وسائط أو فحص الإشارات على X.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/NousResearch/hermes-agent/blob/main/skills/social-media/xurl/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“ابحث في X عن منشورات حول إطلاق منتجنا خلال اليوم الماضي، وصِغ ردًا على الأكثر شعبية.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تشغّل المهارة أداة سطر الأوامر الرسمية xurl التي ترسل طلبات إلى واجهة X وتعيد نتائج JSON. تبقى بيانات دخولك إلى X في ملف تملؤه بنفسك، ولا يقرأ الذكاء الاصطناعي هذا الملف أبدًا.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من 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

الأسئلة الشائعة

هل سيرى الذكاء الاصطناعي كلمة المرور أو الرمز الخاص بي؟

لا. تقول المهارة إن الذكاء الاصطناعي يجب ألا يقرأ ملف بيانات الدخول أو يطبعه أبدًا، وأنت تملؤه بنفسك.

هل يستطيع النشر دون موافقتي؟

تغطي المهارة النشر والحذف، ولا تقول إن الذكاء الاصطناعي ينشر دون تحقق منك، لذلك راجع ما يكتبه أولًا.

هل تحل محل مهارة xitter القديمة؟

نعم. تقول المهارة إن xurl يحل محل مهارة xitter الأقدم.

التفاصيل

الوصف الأصلي من المؤلف

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

repo: NousResearch/hermes-agent

الشعبية

نجوم GitHub
260k
الترتيب
#618
الترخيص
MIT
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة