[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CCJSAGJTN6S0HWK5NGH674":3,"skill-same:01M6CCJSAGJTN6S0HWK5NGH674":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":53,"ownerDescription":6,"updatedAt":55,"install":56,"resources":69},"01M6CCJSAGJTN6S0HWK5NGH674","x-api",null,"Search X (Twitter) posts, pull user profiles, fetch specific tweets, and read reply threads for sentiment, news, and event research. Triggers on 'X', 'Twitter', 'tweets about', 'sentiment on', 'what are people saying about', 'historical tweets', or any request to read public X content.","ginlix-ai\u002FLangAlpha","ginlix-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255505137?v=4","01M6CCJK39A1C27GHF9AP4XWY0","Ginlix AI","01M6CCJK7GR7P1AWNRTPZYDJZY",2303,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fginlix-ai\u002FLangAlpha\u002Fblob\u002Fmain\u002Fplugins\u002Falternative_data\u002Fskills\u002Fx-api\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"api","x api","reply","request","for","threads","posts","profiles","about","event","people","triggers","news","search x","research","fetch","user","read","public","twitter","sentiment","content","search","pull","2026-11-10 10:12:30",false,"---\nname: x-api\ndescription: \"Search X (Twitter) posts, pull user profiles, fetch specific tweets, and read reply threads for sentiment, news, and event research. Triggers on 'X', 'Twitter', 'tweets about', 'sentiment on', 'what are people saying about', 'historical tweets', or any request to read public X content.\"\n---\n\n# X (Twitter) API\n\nRead-only access to X content via five MCP tools. Use for sentiment on tickers, exec announcements, launches, event tracking, and qualitative research alongside SEC\u002Fmarket data.\n\n> **Not for single-post URL lookups.** If the user hands you a specific X post URL and just wants its text or context, use `web_fetch` on the URL — no vault, no auth, no rate limit. Reach for this skill when the task is **search, aggregation, or thread traversal**.\n\n## Auth\n\nEvery tool requires a `bearer_token`. Read it once per code block from the vault:\n\n```python\nfrom vault import get\ntoken = get(\"X_BEARER_TOKEN\")\n```\n\nIf `token` is `None` or empty, the user hasn't added it yet. For the setup walkthrough and per-error fixes, see [TROUBLESHOOTING.md](.\u002FTROUBLESHOOTING.md).\n\n## Tools at a glance\n\nThe primary use case is **search** — the first two tools are what you'll reach for most.\n\n| Tool | Use for | Page size | Notes |\n|---|---|---|---|\n| `search_posts` | Posts from the last ~7 days | default 10, max 100 | Default choice. Query ≤512 chars. |\n| `search_all_posts` | Posts older than 7 days (back to 2006) | default 10, max 500 | Paid-tier X plan only. Query ≤1024 chars. |\n| `get_conversation` | Reply thread to a root tweet | default 50, max 100 | Uses recent search — thread must be ≤7 days old. Root tweet not included. |\n| `get_user_by_username` | A user profile + metrics | — | Handle without `@`, ≤15 chars. |\n| `get_tweet_by_id` | Hydrate a single post (mainly to find its `conversation_id` before `get_conversation`) | — | For a one-off URL the user already has, prefer `web_fetch`. |\n\n## Examples\n\n### Recent sentiment on a ticker\n\n```python\nres = search_posts(\n    query=\"$NVDA -is:retweet lang:en\",\n    bearer_token=token,\n    max_results=100,\n)\nposts = res[\"posts\"]\nposts.sort(key=lambda p: p[\"public_metrics\"].get(\"impression_count\", 0), reverse=True)\nfor p in posts[:10]:\n    print(p[\"author\"][\"username\"], p[\"public_metrics\"].get(\"like_count\"), p[\"text\"][:140])\n```\n\n### Historical reaction to a past event\n\n```python\nres = search_all_posts(\n    query=\"$TSLA earnings -is:retweet lang:en\",\n    bearer_token=token,\n    max_results=500,\n    start_time=\"2020-03-13T00:00:00Z\",\n    end_time=\"2020-03-20T00:00:00Z\",\n)\n```\n\n### Full thread on a specific tweet\n\n```python\nroot = get_tweet_by_id(tweet_id=\"1700000000000000001\", bearer_token=token)\nthread = get_conversation(\n    conversation_id=root[\"post\"][\"conversation_id\"],\n    bearer_token=token,\n    max_results=100,\n)\nall_posts = [root[\"post\"], *thread[\"posts\"]]\n```\n\n### Paginate through a large result\n\n```python\nposts, next_tok = [], None\nwhile len(posts) \u003C 500:\n    res = search_posts(\n        query=\"from:FedSpeakers\",\n        bearer_token=token,\n        max_results=100,\n        next_token=next_tok,\n    )\n    if \"error\" in res:\n        break\n    posts.extend(res[\"posts\"])\n    next_tok = res.get(\"next_token\")\n    if not next_tok:\n        break\n```\n\n## Post shape\n\nEach post: `id`, `text`, `created_at`, `lang`, `conversation_id`, `author_id`, `edit_history_tweet_ids`, `public_metrics` (retweet\u002Freply\u002Flike\u002Fquote\u002Fbookmark\u002Fimpression counts), `author` — which is `{id, username, name, verified}`, `{id, unresolved: true}` for suspended\u002Fdeleted users, or `None` if the tweet has no author_id.\n\nFull per-tool response schemas (including user shape and error variants): [reference.md](.\u002Freference.md).\n\n## Query syntax\n\n`$TSLA` (cashtag), `#hashtag`, `from:elonmusk`, `to:@SEC_News`, `-is:retweet`, `is:verified`, `has:links`, `has:media`, `lang:en`, `\"exact phrase\"`, parentheses + `OR` for alternation. Full list: https:\u002F\u002Fdocs.x.com\u002Fx-api\u002Fposts\u002Fsearch\u002Fintroduction.\n\n## Errors\n\nEvery tool returns `{\"error\": \"...\", ...}` on failure — they never raise. Always check for `error` before accessing `posts` \u002F `user` \u002F `post`. For the per-error playbook (including setup fixes and tier gotchas), read [TROUBLESHOOTING.md](.\u002FTROUBLESHOOTING.md).\n\n## Do \u002F Don't\n\n- **Do** read `token = get(\"X_BEARER_TOKEN\")` once and reuse it across calls.\n- **Do** cross-reference with `get_daily_prices` and `get_sec_filing` when investigating price moves or disclosures.\n- **Don't** hardcode tokens. Ever.\n- **Don't** cache `next_token` across sessions — cursors can expire.\n- **Don't** assume every author is resolved — check for `{unresolved: true}` before reading `username`.\n\n## Related\n\n- `get_daily_prices` — cross-reference X sentiment with price action\n- `get_sec_filing` — pair chatter with official disclosures\n- `scrape` `scrape_page` \u002F `scrape_pages` — fallback for public pages when the API is blocked\n- `web_search` — broader news search that also indexes X posts\n","# X (Twitter) API\n\nRead-only access to X content via five MCP tools. Use for sentiment on tickers, exec announcements, launches, event tracking, and qualitative research alongside SEC\u002Fmarket data.\n\n> **Not for single-post URL lookups.** If the user hands you a specific X post URL and just wants its text or context, use `web_fetch` on the URL — no vault, no auth, no rate limit. Reach for this skill when the task is **search, aggregation, or thread traversal**.\n\n## Auth\n\nEvery tool requires a `bearer_token`. Read it once per code block from the vault:\n\n```python\nfrom vault import get\ntoken = get(\"X_BEARER_TOKEN\")\n```\n\nIf `token` is `None` or empty, the user hasn't added it yet. For the setup walkthrough and per-error fixes, see [TROUBLESHOOTING.md](.\u002FTROUBLESHOOTING.md).\n\n## Tools at a glance\n\nThe primary use case is **search** — the first two tools are what you'll reach for most.\n\n| Tool | Use for | Page size | Notes |\n|---|---|---|---|\n| `search_posts` | Posts from the last ~7 days | default 10, max 100 | Default choice. Query ≤512 chars. |\n| `search_all_posts` | Posts older than 7 days (back to 2006) | default 10, max 500 | Paid-tier X plan only. Query ≤1024 chars. |\n| `get_conversation` | Reply thread to a root tweet | default 50, max 100 | Uses recent search — thread must be ≤7 days old. Root tweet not included. |\n| `get_user_by_username` | A user profile + metrics | — | Handle without `@`, ≤15 chars. |\n| `get_tweet_by_id` | Hydrate a single post (mainly to find its `conversation_id` before `get_conversation`) | — | For a one-off URL the user already has, prefer `web_fetch`. |\n\n## Examples\n\n### Recent sentiment on a ticker\n\n```python\nres = search_posts(\n    query=\"$NVDA -is:retweet lang:en\",\n    bearer_token=token,\n    max_results=100,\n)\nposts = res[\"posts\"]\nposts.sort(key=lambda p: p[\"public_metrics\"].get(\"impression_count\", 0), reverse=True)\nfor p in posts[:10]:\n    print(p[\"author\"][\"username\"], p[\"public_metrics\"].get(\"like_count\"), p[\"text\"][:140])\n```\n\n### Historical reaction to a past event\n\n```python\nres = search_all_posts(\n    query=\"$TSLA earnings -is:retweet lang:en\",\n    bearer_token=token,\n    max_results=500,\n    start_time=\"2020-03-13T00:00:00Z\",\n    end_time=\"2020-03-20T00:00:00Z\",\n)\n```\n\n### Full thread on a specific tweet\n\n```python\nroot = get_tweet_by_id(tweet_id=\"1700000000000000001\", bearer_token=token)\nthread = get_conversation(\n    conversation_id=root[\"post\"][\"conversation_id\"],\n    bearer_token=token,\n    max_results=100,\n)\nall_posts = [root[\"post\"], *thread[\"posts\"]]\n```\n\n### Paginate through a large result\n\n```python\nposts, next_tok = [], None\nwhile len(posts) \u003C 500:\n    res = search_posts(\n        query=\"from:FedSpeakers\",\n        bearer_token=token,\n        max_results=100,\n        next_token=next_tok,\n    )\n    if \"error\" in res:\n        break\n    posts.extend(res[\"posts\"])\n    next_tok = res.get(\"next_token\")\n    if not next_tok:\n        break\n```\n\n## Post shape\n\nEach post: `id`, `text`, `created_at`, `lang`, `conversation_id`, `author_id`, `edit_history_tweet_ids`, `public_metrics` (retweet\u002Freply\u002Flike\u002Fquote\u002Fbookmark\u002Fimpression counts), `author` — which is `{id, username, name, verified}`, `{id, unresolved: true}` for suspended\u002Fdeleted users, or `None` if the tweet has no author_id.\n\nFull per-tool response schemas (including user shape and error variants): [reference.md](.\u002Freference.md).\n\n## Query syntax\n\n`$TSLA` (cashtag), `#hashtag`, `from:elonmusk`, `to:@SEC_News`, `-is:retweet`, `is:verified`, `has:links`, `has:media`, `lang:en`, `\"exact phrase\"`, parentheses + `OR` for alternation. Full list: https:\u002F\u002Fdocs.x.com\u002Fx-api\u002Fposts\u002Fsearch\u002Fintroduction.\n\n## Errors\n\nEvery tool returns `{\"error\": \"...\", ...}` on failure — they never raise. Always check for `error` before accessing `posts` \u002F `user` \u002F `post`. For the per-error playbook (including setup fixes and tier gotchas), read [TROUBLESHOOTING.md](.\u002FTROUBLESHOOTING.md).\n\n## Do \u002F Don't\n\n- **Do** read `token = get(\"X_BEARER_TOKEN\")` once and reuse it across calls.\n- **Do** cross-reference with `get_daily_prices` and `get_sec_filing` when investigating price moves or disclosures.\n- **Don't** hardcode tokens. Ever.\n- **Don't** cache `next_token` across sessions — cursors can expire.\n- **Don't** assume every author is resolved — check for `{unresolved: true}` before reading `username`.\n\n## Related\n\n- `get_daily_prices` — cross-reference X sentiment with price action\n- `get_sec_filing` — pair chatter with official disclosures\n- `scrape` `scrape_page` \u002F `scrape_pages` — fallback for public pages when the API is blocked\n- `web_search` — broader news search that also indexes X posts\n",{"name":5,"description":7},"main","f5d250aa1bedbf685a23b5220f50f9192f76289a","plugins\u002Falternative_data\u002Fskills\u002Fx-api",387,"https:\u002F\u002Fgithub.com\u002Fginlix-ai\u002FLangAlpha","https:\u002F\u002Flangalpha.ai","https:\u002F\u002Fgithub.com\u002Fginlix-ai","2026-11-15 02:14:56",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add ginlix-ai\u002FLangAlpha --skill x-api",{"tool":62,"command":63},"bunx","bunx skills add ginlix-ai\u002FLangAlpha --skill x-api",{"tool":65,"command":66},"pnpm","pnpm dlx skills add ginlix-ai\u002FLangAlpha --skill x-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fginlix-ai\u002FLangAlpha\u002Fblob\u002Fmain\u002Fplugins\u002Falternative_data\u002Fskills\u002Fx-api\u002FSKILL.md",true,[70,76],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"reference.md","REFERENCE","参考文档",4583,"https:\u002F\u002Fgithub.com\u002Fginlix-ai\u002FLangAlpha\u002Fblob\u002Fmain\u002Fplugins\u002Falternative_data\u002Fskills\u002Fx-api\u002Freference.md",{"path":77,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":79},"TROUBLESHOOTING.md",8492,"https:\u002F\u002Fgithub.com\u002Fginlix-ai\u002FLangAlpha\u002Fblob\u002Fmain\u002Fplugins\u002Falternative_data\u002Fskills\u002Fx-api\u002FTROUBLESHOOTING.md",[81,89,113,125,136,151],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":88},"01M743D4A5JN1KT6ZFH64N893X","dashboard-page","The user's own LangAlpha Dashboard: build or change the page they see when they open LangAlpha, with live market data and custom data refreshed on a schedule","https:\u002F\u002Fgithub.com\u002Fginlix-ai\u002FLangAlpha\u002Fblob\u002Fmain\u002Fplugins\u002Flangalpha_deliverables\u002Fskills\u002Fdashboard-page\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":90,"name":91,"nameZh":92,"description":93,"descriptionZh":94,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":107,"publishedAt":43},"01M6CCP2R7FYQ1DHW1D59NR7CR","fx-notes","Fx-notes 测试固定技能","Fixture skill fx-notes","测试固定装置技能 fx-notes。","https:\u002F\u002Fgithub.com\u002Fginlix-ai\u002FLangAlpha\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fplugins\u002Fvalid-full\u002Fskills\u002Ffx-notes\u002FSKILL.md",[97,102],{"categoryNo":98,"categoryName":99,"taxonomyType":100,"taxonomyTypeDesc":101},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":103,"categoryName":104,"taxonomyType":105,"taxonomyTypeDesc":106},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能","SCENARIO","使用场景",[108,109,110,111,112],"fx","fx notes","notes","fixture skill","fixture",{"skillNo":114,"name":115,"nameZh":116,"description":117,"descriptionZh":118,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":123,"publishedAt":43},"01M6CCP16MF4A5J06320JAV03Z","good","Good 测试固定技能","Fixture skill good","测试固定装置技能 good。","https:\u002F\u002Fgithub.com\u002Fginlix-ai\u002FLangAlpha\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fplugins\u002Fskill-defects\u002Fskills\u002Fgood\u002FSKILL.md",[121,122],{"categoryNo":98,"categoryName":99,"taxonomyType":100,"taxonomyTypeDesc":101},{"categoryNo":103,"categoryName":104,"taxonomyType":105,"taxonomyTypeDesc":106},[115,124,111,112],"skill good",{"skillNo":126,"name":127,"nameZh":128,"description":129,"descriptionZh":130,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":135,"publishedAt":43},"01M6CCNZAYQT0RT73XFTFPTJC0","survivor","Survivor 测试固定技能","Fixture skill survivor","测试固定装置技能 survivor。","https:\u002F\u002Fgithub.com\u002Fginlix-ai\u002FLangAlpha\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fplugins\u002Fmcp-doc-invalid\u002Fskills\u002Fsurvivor\u002FSKILL.md",[133,134],{"categoryNo":98,"categoryName":99,"taxonomyType":100,"taxonomyTypeDesc":101},{"categoryNo":103,"categoryName":104,"taxonomyType":105,"taxonomyTypeDesc":106},[127,111,112],{"skillNo":137,"name":138,"nameZh":139,"description":140,"descriptionZh":141,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":147,"publishedAt":43},"01M6CCNX73ZH4DY2W1K0CH5BNP","alpha-notes","Alpha 事项笔记","Notes on alpha things.","关于 alpha（内测版）相关事物的笔记。","https:\u002F\u002Fgithub.com\u002Fginlix-ai\u002FLangAlpha\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fplugins\u002Fmarketplace-mixed\u002Fplugins\u002Falpha\u002Fskills\u002Falpha-notes\u002FSKILL.md",[144],{"categoryNo":145,"categoryName":146,"taxonomyType":105,"taxonomyTypeDesc":106},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀",[148,149,110,150],"alpha","alpha notes","things",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":43},"01M6CCNVK5ZV4CZ2T0M6SH8QB9","cli-tips","Tips for the command line.","https:\u002F\u002Fgithub.com\u002Fginlix-ai\u002FLangAlpha\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fplugins\u002Fdialect-cursor\u002Fskills\u002Fcli-tips\u002FSKILL.md",[],[158,159,160,161,23,162,163],"cli tips","tips","cli","line","command line","command"]