[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7823KHQ1FGQ7G455CZH97FF":3,"skill-same:01M7823KHQ1FGQ7G455CZH97FF":47},{"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":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7823KHQ1FGQ7G455CZH97FF","control-cli",null,"Build or adapt a local harness to drive, inspect, and profile an interactive CLI or TUI without external services. Use for CLI UX checks, startup regressions, memory leaks, hangs, prompt flows, or terminal demos.","TheAngryPit\u002FTheAngrySkills","TheAngryPit","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7040636?v=4","01M7803EENA9ATXJ46S9268QJX","Vitor Cepeda Lopes","01M7803EF9FMF4G4420XE4DV7Y",0,"MIT","https:\u002F\u002Fgithub.com\u002FTheAngryPit\u002FTheAngrySkills\u002Fblob\u002Fmain\u002Fsources\u002Fcursor-plugins\u002Fupstream-tree\u002Fcursor-team-kit\u002Fskills\u002Fcontrol-cli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: control-cli\ndescription: Build or adapt a local harness to drive, inspect, and profile an interactive CLI or TUI without external services. Use for CLI UX checks, startup regressions, memory leaks, hangs, prompt flows, or terminal demos.\n---\n\n# Control CLI\n\nUse a repeatable local harness to exercise an interactive CLI instead of poking at it manually. First reuse the repo's own test\u002Fdemo harness if it exists; otherwise assemble a temporary harness from standard local tools.\n\n## What It Is Used For\n\n- Reproducing CLI\u002FTUI bugs with deterministic input.\n- Verifying keyboard flows, prompts, interrupts, resize behavior, and terminal layout.\n- Capturing before\u002Fafter transcripts for bug fixes.\n- Profiling startup time, slow operations, hangs, or memory growth.\n- Recording a short terminal demo when output is easier to show than explain.\n\n## Harness Loop\n\n1. Identify the command under test and the smallest reproducible workspace.\n2. Discover existing local harnesses: package scripts, e2e tests, demo recorders, expect scripts, or PTY helpers.\n3. If no harness exists, launch the CLI in an isolated terminal session with deterministic env vars.\n4. Capture the current screen before interacting.\n5. Send one action at a time: text, Enter, arrows, Escape, Ctrl-C, resize.\n6. Wait for a concrete screen pattern or prompt before the next action.\n7. Save the transcript and any profile artifacts.\n8. Kill the session cleanly.\n\n## Harness Options\n\n- Repo-native harness: prefer checked-in scripts because they know the app's startup, env, and prompts.\n- `tmux`: managed sessions, `capture-pane`, `send-keys`, attach\u002Fdetach.\n- PTY probe: use a short Python, Node, or Expect script when tmux is unavailable.\n- Runtime inspector: use Node or Bun inspector for CPU profiles, heap snapshots, and live evaluation.\n- Terminal recorder: use repo-local demo tools or asciinema-compatible tools when the user asks for a demo.\n\n## Minimal tmux Harness\n\n```bash\nSESSION=\"cli-harness-$(date +%s)\"\ntmux new-session -d -s \"$SESSION\" -- \u003Ccommand-under-test>\ntmux capture-pane -pt \"$SESSION\"\ntmux send-keys -t \"$SESSION\" \"help\" Enter\ntmux capture-pane -pt \"$SESSION\"\ntmux kill-session -t \"$SESSION\"\n```\n\nFor Node CLIs:\n\n```bash\nNODE_OPTIONS=\"--inspect=127.0.0.1:0\" tmux new-session -d -s \"$SESSION\" -- \u003Cnode-cli-command>\n```\n\nRead the terminal output to find the inspector URL, then use Chrome DevTools-compatible tooling if profiling is needed.\n\n## Minimal PTY Harness\n\nUse a PTY script when you need deterministic waits in a repo that does not have tmux or a demo harness. Keep it temporary unless the user asks to add a reusable test.\n\n```python\nimport os\nimport pty\nimport select\nimport subprocess\nimport time\n\nmaster_fd, slave_fd = pty.openpty()\nproc = subprocess.Popen(\n    [\"\u003Ccommand>\", \"\u003Carg>\"],\n    stdin=slave_fd,\n    stdout=slave_fd,\n    stderr=slave_fd,\n    close_fds=True,\n)\nos.close(slave_fd)\n\ndeadline = time.time() + 30\nbuffer = b\"\"\nwhile time.time() \u003C deadline:\n    ready, _, _ = select.select([master_fd], [], [], 0.25)\n    if not ready:\n        continue\n    chunk = os.read(master_fd, 4096)\n    buffer += chunk\n    if b\"\u003Cready text>\" in buffer:\n        os.write(master_fd, b\"help\\n\")\n        break\n\nprint(buffer.decode(errors=\"replace\"))\nproc.terminate()\nos.close(master_fd)\n```\n\nIf the CLI needs richer terminal control, use `pty.fork()` or an existing PTY library.\n\n## Profiling Recipes\n\n- Startup regression: capture baseline and treatment startup timings under the same machine, env, and command.\n- Slow operation: start a CPU profile, perform the operation, stop the profile, and compare top self-time functions.\n- Memory leak: force GC if available, take a heap snapshot, perform the operation repeatedly, force GC again, and take another snapshot.\n- Hang: capture the screen, active handles\u002Fresources, and a stack\u002FCPU sample before interrupting.\n\n## Guardrails\n\n- Prefer deterministic waits over sleeps. If you must sleep, explain why.\n- Do not send credentials or destructive commands into a controlled session.\n- Keep the harness in `\u002Ftmp` unless the repo already has a testing\u002Fdemo harness.\n- Do not hard-code paths from another repository. Adapt commands to the current repo's scripts and runtime.\n- Clean up tmux sessions, temp dirs, inspector processes, and demo artifacts unless the user asks to keep them.\n","# Control CLI\n\nUse a repeatable local harness to exercise an interactive CLI instead of poking at it manually. First reuse the repo's own test\u002Fdemo harness if it exists; otherwise assemble a temporary harness from standard local tools.\n\n## What It Is Used For\n\n- Reproducing CLI\u002FTUI bugs with deterministic input.\n- Verifying keyboard flows, prompts, interrupts, resize behavior, and terminal layout.\n- Capturing before\u002Fafter transcripts for bug fixes.\n- Profiling startup time, slow operations, hangs, or memory growth.\n- Recording a short terminal demo when output is easier to show than explain.\n\n## Harness Loop\n\n1. Identify the command under test and the smallest reproducible workspace.\n2. Discover existing local harnesses: package scripts, e2e tests, demo recorders, expect scripts, or PTY helpers.\n3. If no harness exists, launch the CLI in an isolated terminal session with deterministic env vars.\n4. Capture the current screen before interacting.\n5. Send one action at a time: text, Enter, arrows, Escape, Ctrl-C, resize.\n6. Wait for a concrete screen pattern or prompt before the next action.\n7. Save the transcript and any profile artifacts.\n8. Kill the session cleanly.\n\n## Harness Options\n\n- Repo-native harness: prefer checked-in scripts because they know the app's startup, env, and prompts.\n- `tmux`: managed sessions, `capture-pane`, `send-keys`, attach\u002Fdetach.\n- PTY probe: use a short Python, Node, or Expect script when tmux is unavailable.\n- Runtime inspector: use Node or Bun inspector for CPU profiles, heap snapshots, and live evaluation.\n- Terminal recorder: use repo-local demo tools or asciinema-compatible tools when the user asks for a demo.\n\n## Minimal tmux Harness\n\n```bash\nSESSION=\"cli-harness-$(date +%s)\"\ntmux new-session -d -s \"$SESSION\" -- \u003Ccommand-under-test>\ntmux capture-pane -pt \"$SESSION\"\ntmux send-keys -t \"$SESSION\" \"help\" Enter\ntmux capture-pane -pt \"$SESSION\"\ntmux kill-session -t \"$SESSION\"\n```\n\nFor Node CLIs:\n\n```bash\nNODE_OPTIONS=\"--inspect=127.0.0.1:0\" tmux new-session -d -s \"$SESSION\" -- \u003Cnode-cli-command>\n```\n\nRead the terminal output to find the inspector URL, then use Chrome DevTools-compatible tooling if profiling is needed.\n\n## Minimal PTY Harness\n\nUse a PTY script when you need deterministic waits in a repo that does not have tmux or a demo harness. Keep it temporary unless the user asks to add a reusable test.\n\n```python\nimport os\nimport pty\nimport select\nimport subprocess\nimport time\n\nmaster_fd, slave_fd = pty.openpty()\nproc = subprocess.Popen(\n    [\"\u003Ccommand>\", \"\u003Carg>\"],\n    stdin=slave_fd,\n    stdout=slave_fd,\n    stderr=slave_fd,\n    close_fds=True,\n)\nos.close(slave_fd)\n\ndeadline = time.time() + 30\nbuffer = b\"\"\nwhile time.time() \u003C deadline:\n    ready, _, _ = select.select([master_fd], [], [], 0.25)\n    if not ready:\n        continue\n    chunk = os.read(master_fd, 4096)\n    buffer += chunk\n    if b\"\u003Cready text>\" in buffer:\n        os.write(master_fd, b\"help\\n\")\n        break\n\nprint(buffer.decode(errors=\"replace\"))\nproc.terminate()\nos.close(master_fd)\n```\n\nIf the CLI needs richer terminal control, use `pty.fork()` or an existing PTY library.\n\n## Profiling Recipes\n\n- Startup regression: capture baseline and treatment startup timings under the same machine, env, and command.\n- Slow operation: start a CPU profile, perform the operation, stop the profile, and compare top self-time functions.\n- Memory leak: force GC if available, take a heap snapshot, perform the operation repeatedly, force GC again, and take another snapshot.\n- Hang: capture the screen, active handles\u002Fresources, and a stack\u002FCPU sample before interrupting.\n\n## Guardrails\n\n- Prefer deterministic waits over sleeps. If you must sleep, explain why.\n- Do not send credentials or destructive commands into a controlled session.\n- Keep the harness in `\u002Ftmp` unless the repo already has a testing\u002Fdemo harness.\n- Do not hard-code paths from another repository. Adapt commands to the current repo's scripts and runtime.\n- Clean up tmux sessions, temp dirs, inspector processes, and demo artifacts unless the user asks to keep them.\n",{"name":5,"description":7},"main","f31e1d2df163b90a48e30d0a3df67285f6641418","sources\u002Fcursor-plugins\u002Fupstream-tree\u002Fcursor-team-kit\u002Fskills\u002Fcontrol-cli",1,"https:\u002F\u002Fgithub.com\u002FTheAngryPit\u002FTheAngrySkills","https:\u002F\u002Fgithub.com\u002FTheAngryPit","www.vitorcepedalopes.com","Creative Director | Executive Producer | Storyteller | Narrative Worlds & Creative Production Systems\r\nFounder @TheHive-Mind ","2026-11-14 21:48:38",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TheAngryPit\u002FTheAngrySkills --skill control-cli",{"tool":39,"command":40},"bunx","bunx skills add TheAngryPit\u002FTheAngrySkills --skill control-cli",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TheAngryPit\u002FTheAngrySkills --skill control-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTheAngryPit\u002FTheAngrySkills\u002Fblob\u002Fmain\u002Fsources\u002Fcursor-plugins\u002Fupstream-tree\u002Fcursor-team-kit\u002Fskills\u002Fcontrol-cli\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M782GJ4CTPNKZN0WXTASXXZ4","X MCP guide","ALWAYS read this before using any X tool (the X plugin, any X MCP, or Grok Bot's built-in public X reads) and again on any X error. X tools are included in Grok Bot at no cost: never estimate costs, check credits, or tell the user to buy credits. tools=0 \u002F user-X-* not found is a setup failure, not a paywall. Covers Spaces, communities, and Lists (reads and list writes), X Chat (XChat, inbox, DMs, unread, message requests, Chat PIN, juicebox, xchat_lite: clone xchat-grokbot-helper yourself and decrypt locally), scheduled X calls (schedule_call, list_scheduled_calls and the other call tools), and livestreams (stream sources, broadcasts, scheduled broadcasts, broadcast chat, moderators, mutes). Chat, call, livestream, Spaces, or Lists tools missing while other X tools work: reconnect the X plugin.","https:\u002F\u002Fgithub.com\u002FTheAngryPit\u002FTheAngrySkills\u002Fblob\u002Fmain\u002Fsources\u002Fcursor-plugins\u002Fupstream-tree\u002Fthird_party\u002Fx\u002Fskills\u002Fx-api-mcp-guide\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M782GBW77901ESC9PD3XAM6V","X Money guide","Read this before the first X Money action in a session and again on any X Money error, refusal, or missing capability. Covers the approval rule for every action that moves money (always ask, every time, no exceptions), how the connection works (connection code plus passkey in the X app), how to guide the user through connect, reconnect, and revoke at x.com\u002Fi\u002Fmoney\u002Fsettings\u002Fconnections, and what each failure message means.","https:\u002F\u002Fgithub.com\u002FTheAngryPit\u002FTheAngrySkills\u002Fblob\u002Fmain\u002Fsources\u002Fcursor-plugins\u002Fupstream-tree\u002Fthird_party\u002Fx-money\u002Fskills\u002Fx-money-guide\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M782G7CMYD2JSVT3RX81QRB8","google-slides","Build and edit Google Slides through the google-slides MCP tools - slides, grids of cards and columns, text boxes, shapes, images, tables, styling, layout inspection, and per-slide PNG rendering. Use when creating a deck, laying out slide elements, matching a template, or verifying how a slide looks.","https:\u002F\u002Fgithub.com\u002FTheAngryPit\u002FTheAngrySkills\u002Fblob\u002Fmain\u002Fsources\u002Fcursor-plugins\u002Fupstream-tree\u002Fthird_party\u002Fgoogle-slides\u002Fskills\u002Fgoogle-slides\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M782G4DDAJ4SMGJEF13HTX69","google-sheets","Build and edit Google Sheets with the google-sheets tools - values, formatting, charts, conditional formatting, structure, validation, named and protected ranges. Use when creating a spreadsheet or dashboard, formatting cells, adding or fixing charts, or reorganizing tabs and rows.","https:\u002F\u002Fgithub.com\u002FTheAngryPit\u002FTheAngrySkills\u002Fblob\u002Fmain\u002Fsources\u002Fcursor-plugins\u002Fupstream-tree\u002Fthird_party\u002Fgoogle-sheets\u002Fskills\u002Fgoogle-sheets\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M782G1F8QNMNKRSY6M3Y0QG6","google-drive","Work with Google Drive through its MCP tools - search, read, create, organize, share, comment, and export files. Use when creating files in specific folders, moving or renaming, converting Markdown\u002FCSV into Docs\u002FSheets, managing comments, or exporting a rendered PDF.","https:\u002F\u002Fgithub.com\u002FTheAngryPit\u002FTheAngrySkills\u002Fblob\u002Fmain\u002Fsources\u002Fcursor-plugins\u002Fupstream-tree\u002Fthird_party\u002Fgoogle-drive\u002Fskills\u002Fgoogle-drive\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M782FYVJ5XTP2R0B446RRYTX","google-docs","Author and edit Google Docs with the google-docs tools - structured writing, character and paragraph styling, lists, tables, images, headers\u002Ffooters. Use when creating a formatted document, editing document content, or applying styles.","https:\u002F\u002Fgithub.com\u002FTheAngryPit\u002FTheAngrySkills\u002Fblob\u002Fmain\u002Fsources\u002Fcursor-plugins\u002Fupstream-tree\u002Fthird_party\u002Fgoogle-docs\u002Fskills\u002Fgoogle-docs\u002FSKILL.md",[],[]]