{
  "schemaVersion": "1.0",
  "item": {
    "slug": "x-api",
    "name": "X Api",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/lobstergeneralintelligence/x-api",
    "canonicalUrl": "https://clawhub.ai/lobstergeneralintelligence/x-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/x-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=x-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "scripts/package.json",
      "scripts/x-post.mjs"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "x-api",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-11T05:33:52.846Z",
      "expiresAt": "2026-05-18T05:33:52.846Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=x-api",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=x-api",
        "contentDisposition": "attachment; filename=\"x-api-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "x-api"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/x-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/x-api",
    "agentPageUrl": "https://openagent3.xyz/skills/x-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/x-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/x-api/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "x-api 🐦",
        "body": "Post to X using the official API (OAuth 1.0a)."
      },
      {
        "title": "When to Use",
        "body": "Posting tweets (cookie-based bird tweet gets blocked by bot detection)\nOfficial API access is needed for reliability\n\nFor reading (timeline, search, mentions), use bird CLI instead — it's free and works well for reads."
      },
      {
        "title": "1. Get API Credentials",
        "body": "Go to https://developer.x.com/en/portal/dashboard\nCreate a Project and App\nSet App permissions to Read and Write\nGet your keys from \"Keys and tokens\" tab:\n\nAPI Key (Consumer Key)\nAPI Key Secret (Consumer Secret)\nAccess Token\nAccess Token Secret"
      },
      {
        "title": "2. Configure Credentials",
        "body": "Option A: Environment variables\n\nexport X_API_KEY=\"your-api-key\"\nexport X_API_SECRET=\"your-api-secret\"\nexport X_ACCESS_TOKEN=\"your-access-token\"\nexport X_ACCESS_SECRET=\"your-access-token-secret\"\n\nOption B: Config file at ~/.clawdbot/secrets/x-api.json\n\n{\n  \"consumerKey\": \"your-api-key\",\n  \"consumerSecret\": \"your-api-secret\",\n  \"accessToken\": \"your-access-token\",\n  \"accessTokenSecret\": \"your-access-token-secret\"\n}"
      },
      {
        "title": "3. Install Dependency",
        "body": "npm install -g twitter-api-v2"
      },
      {
        "title": "Post a Tweet",
        "body": "x-post \"Your tweet text here\"\n\nOr with full path:\n\nnode /path/to/skills/x-api/scripts/x-post.mjs \"Your tweet text here\"\n\nSupports multi-line tweets:\n\nx-post \"Line one\n\nLine two\n\nLine three\"\n\nReturns the tweet URL on success."
      },
      {
        "title": "Limits",
        "body": "Free tier: 1,500 posts/month (requires credits in X Developer Portal)\nBasic tier ($100/mo): Higher limits"
      },
      {
        "title": "Reading (use bird)",
        "body": "For reading, searching, and monitoring — use the bird CLI:\n\nbird home                    # Timeline\nbird mentions                # Mentions\nbird search \"query\"          # Search\nbird user-tweets @handle     # User's posts\nbird read <tweet-url>        # Single tweet"
      },
      {
        "title": "Troubleshooting",
        "body": "402 Credits Depleted: Add credits in X Developer Portal → Dashboard\n\n401 Unauthorized: Regenerate Access Token (ensure Read+Write permissions are set first)\n\nNo credentials found: Set env vars or create config file (see Setup above)"
      }
    ],
    "body": "x-api 🐦\n\nPost to X using the official API (OAuth 1.0a).\n\nWhen to Use\nPosting tweets (cookie-based bird tweet gets blocked by bot detection)\nOfficial API access is needed for reliability\n\nFor reading (timeline, search, mentions), use bird CLI instead — it's free and works well for reads.\n\nSetup\n1. Get API Credentials\nGo to https://developer.x.com/en/portal/dashboard\nCreate a Project and App\nSet App permissions to Read and Write\nGet your keys from \"Keys and tokens\" tab:\nAPI Key (Consumer Key)\nAPI Key Secret (Consumer Secret)\nAccess Token\nAccess Token Secret\n2. Configure Credentials\n\nOption A: Environment variables\n\nexport X_API_KEY=\"your-api-key\"\nexport X_API_SECRET=\"your-api-secret\"\nexport X_ACCESS_TOKEN=\"your-access-token\"\nexport X_ACCESS_SECRET=\"your-access-token-secret\"\n\n\nOption B: Config file at ~/.clawdbot/secrets/x-api.json\n\n{\n  \"consumerKey\": \"your-api-key\",\n  \"consumerSecret\": \"your-api-secret\",\n  \"accessToken\": \"your-access-token\",\n  \"accessTokenSecret\": \"your-access-token-secret\"\n}\n\n3. Install Dependency\nnpm install -g twitter-api-v2\n\nPost a Tweet\nx-post \"Your tweet text here\"\n\n\nOr with full path:\n\nnode /path/to/skills/x-api/scripts/x-post.mjs \"Your tweet text here\"\n\n\nSupports multi-line tweets:\n\nx-post \"Line one\n\nLine two\n\nLine three\"\n\n\nReturns the tweet URL on success.\n\nLimits\nFree tier: 1,500 posts/month (requires credits in X Developer Portal)\nBasic tier ($100/mo): Higher limits\nReading (use bird)\n\nFor reading, searching, and monitoring — use the bird CLI:\n\nbird home                    # Timeline\nbird mentions                # Mentions\nbird search \"query\"          # Search\nbird user-tweets @handle     # User's posts\nbird read <tweet-url>        # Single tweet\n\nTroubleshooting\n\n402 Credits Depleted: Add credits in X Developer Portal → Dashboard\n\n401 Unauthorized: Regenerate Access Token (ensure Read+Write permissions are set first)\n\nNo credentials found: Set env vars or create config file (see Setup above)"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/lobstergeneralintelligence/x-api",
    "publisherUrl": "https://clawhub.ai/lobstergeneralintelligence/x-api",
    "owner": "lobstergeneralintelligence",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/x-api",
    "downloadUrl": "https://openagent3.xyz/downloads/x-api",
    "agentUrl": "https://openagent3.xyz/skills/x-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/x-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/x-api/agent.md"
  }
}