[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ETX2NT5221QJEVS01CPG49":3,"skill-same:01M7ETX2NT5221QJEVS01CPG49":46},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7ETX2NT5221QJEVS01CPG49","tweet-posting-cdp",null,"Publish tweets via Chrome DevTools Protocol (CDP) without any browser extension. Use for posting X\u002FTwitter updates from scripts or agents when opencli-style extension tooling is unavailable or broken.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Ftweet-posting-cdp\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tweet-posting-cdp\ndescription: Publish tweets via Chrome DevTools Protocol (CDP) without any browser extension. Use for posting X\u002FTwitter updates from scripts or agents when opencli-style extension tooling is unavailable or broken.\n---\n\n# Tweet Posting via CDP\n\nPost tweets to X\u002FTwitter by driving the already-logged-in Chrome through the DevTools Protocol. No extension needed — relies on Chrome's remote debugging endpoint.\n\n## Prerequisites\n\n1. Chrome running with remote debugging. If `~\u002FLibrary\u002FApplication Support\u002FGoogle\u002FChrome\u002FDevToolsActivePort` exists, the endpoint is live (the file contains port + browser WebSocket path). If missing, relaunch Chrome:\n\n```bash\nopen -a \"Google Chrome\" --args --remote-debugging-port=9222\n```\n\n2. Chrome logged into X (https:\u002F\u002Fx.com) — the script reuses the logged-in session.\n\n## Post a tweet\n\n```bash\necho \"推文内容\" | ~\u002F.agent-reach\u002Fscripts\u002Fpost-tweet-cdp.mjs\n# 或\n~\u002F.agent-reach\u002Fscripts\u002Fpost-tweet-cdp.mjs \"推文内容\"\n```\n\nScript output: composer text length, button state, success confirmation. On success the composer is emptied (that's the verification signal).\n\n## How it works\n\n1. Read `DevToolsActivePort` → `ws:\u002F\u002F127.0.0.1:\u003Cport>\u002Fdevtools\u002Fbrowser\u002F\u003Ctoken>`\n   - NOTE: HTTP `http:\u002F\u002Flocalhost:9222\u002Fjson\u002F*` returns 404\u002F502 on modern Chrome (v136+); the WebSocket from this file is the only working entry point.\n2. `Target.getTargets` → find the `page` target whose URL contains `x.com` (open one if absent).\n3. `Target.attachToTarget` with `flatten: true` → session-scoped commands.\n4. Focus the composer via `Runtime.evaluate`: `document.querySelector('[data-testid=\"tweetTextarea_0\"]').focus()`, then clear any draft with `execCommand('selectAll')` + `execCommand('delete')`.\n5. Insert text in ~50-char chunks via `Input.insertText` (trusted input events — React\u002FDraft.js accepts these; a single big insertText or plain `execCommand('insertText')` does NOT enable the Post button).\n6. Click `[data-testid=\"tweetButtonInline\"]` (fallback `[data-testid=\"tweetButton\"]`) via `Runtime.evaluate` → `.click()`.\n7. Verify: composer textContent length drops to 0\u002Fgone.\n\n## Gotchas (learned the hard way)\n\n- `execCommand('insertText')` alone leaves the Post button `disabled` — React never registers the text. `Input.insertText` (CDP) is required.\n- `Input.insertText` with the whole tweet in one call silently drops trailing chars. Chunk at ~50 chars with ~150ms sleep between chunks.\n- The composer element itself is the contenteditable (`DIV.tweetTextarea_0`); `.focus()` on it works, then `Input.insertText` lands correctly.\n- OpenCLI's browser-bridge approach (`opencli twitter post`) breaks with `attach failed: Cannot access a chrome-extension:\u002F\u002F URL of different extension` when the extension ID drifts after updates — CDP avoids extensions entirely.\n- cua-driver (`cua.ai\u002Fcua-driver`) native path (AX click + CGEvent typing) works for navigation but web-content writes are `unverifiable`; its `page` tool needs the same CDP port. Direct CDP is the most reliable layer.\n\n## Posting rules (project convention)\n\n- One post per sweep round; never retry or repost with different wording (opencli-era rule, still honored).\n- No post when a sweep round adds zero entries.\n","# Tweet Posting via CDP\n\nPost tweets to X\u002FTwitter by driving the already-logged-in Chrome through the DevTools Protocol. No extension needed — relies on Chrome's remote debugging endpoint.\n\n## Prerequisites\n\n1. Chrome running with remote debugging. If `~\u002FLibrary\u002FApplication Support\u002FGoogle\u002FChrome\u002FDevToolsActivePort` exists, the endpoint is live (the file contains port + browser WebSocket path). If missing, relaunch Chrome:\n\n```bash\nopen -a \"Google Chrome\" --args --remote-debugging-port=9222\n```\n\n2. Chrome logged into X (https:\u002F\u002Fx.com) — the script reuses the logged-in session.\n\n## Post a tweet\n\n```bash\necho \"推文内容\" | ~\u002F.agent-reach\u002Fscripts\u002Fpost-tweet-cdp.mjs\n# 或\n~\u002F.agent-reach\u002Fscripts\u002Fpost-tweet-cdp.mjs \"推文内容\"\n```\n\nScript output: composer text length, button state, success confirmation. On success the composer is emptied (that's the verification signal).\n\n## How it works\n\n1. Read `DevToolsActivePort` → `ws:\u002F\u002F127.0.0.1:\u003Cport>\u002Fdevtools\u002Fbrowser\u002F\u003Ctoken>`\n   - NOTE: HTTP `http:\u002F\u002Flocalhost:9222\u002Fjson\u002F*` returns 404\u002F502 on modern Chrome (v136+); the WebSocket from this file is the only working entry point.\n2. `Target.getTargets` → find the `page` target whose URL contains `x.com` (open one if absent).\n3. `Target.attachToTarget` with `flatten: true` → session-scoped commands.\n4. Focus the composer via `Runtime.evaluate`: `document.querySelector('[data-testid=\"tweetTextarea_0\"]').focus()`, then clear any draft with `execCommand('selectAll')` + `execCommand('delete')`.\n5. Insert text in ~50-char chunks via `Input.insertText` (trusted input events — React\u002FDraft.js accepts these; a single big insertText or plain `execCommand('insertText')` does NOT enable the Post button).\n6. Click `[data-testid=\"tweetButtonInline\"]` (fallback `[data-testid=\"tweetButton\"]`) via `Runtime.evaluate` → `.click()`.\n7. Verify: composer textContent length drops to 0\u002Fgone.\n\n## Gotchas (learned the hard way)\n\n- `execCommand('insertText')` alone leaves the Post button `disabled` — React never registers the text. `Input.insertText` (CDP) is required.\n- `Input.insertText` with the whole tweet in one call silently drops trailing chars. Chunk at ~50 chars with ~150ms sleep between chunks.\n- The composer element itself is the contenteditable (`DIV.tweetTextarea_0`); `.focus()` on it works, then `Input.insertText` lands correctly.\n- OpenCLI's browser-bridge approach (`opencli twitter post`) breaks with `attach failed: Cannot access a chrome-extension:\u002F\u002F URL of different extension` when the extension ID drifts after updates — CDP avoids extensions entirely.\n- cua-driver (`cua.ai\u002Fcua-driver`) native path (AX click + CGEvent typing) works for navigation but web-content writes are `unverifiable`; its `page` tool needs the same CDP port. Direct CDP is the most reliable layer.\n\n## Posting rules (project convention)\n\n- One post per sweep round; never retry or repost with different wording (opencli-era rule, still honored).\n- No post when a sweep round adds zero entries.\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Ftweet-posting-cdp",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill tweet-posting-cdp",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill tweet-posting-cdp",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill tweet-posting-cdp","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Ftweet-posting-cdp\u002FSKILL.md",true,[],[47,55,60,67,74,81],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":54},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":56,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":54},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":54},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":54},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":54},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"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":54},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]