[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70M1K7ADZP5TJWG78VHV11C":3,"skill-same:01M70M1K7ADZP5TJWG78VHV11C":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":13,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M70M1K7ADZP5TJWG78VHV11C","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.","mingster\u002Fdotfiles","mingster","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F528506?v=4","01M6BVP9E23T80TBZM7S0F94RG","01M6BVP9JK6JMSX0SZ2G1VMEDW",1,"MIT","https:\u002F\u002Fgithub.com\u002Fmingster\u002Fdotfiles\u002Fblob\u002Fmain\u002Ftemplates\u002Fagent-team\u002F.agents\u002Fskills\u002Fcontrol-cli\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"control","control cli","cli","tui","demos","startup","terminal","ux","build","services","interactive","prompt","use","local","flows","adapt","inspect","for","memory","harness","2026-11-10 10:12:30",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","d775d974eade471675ab972f749b4be9bcdad6c3","templates\u002Fagent-team\u002F.agents\u002Fskills\u002Fcontrol-cli","https:\u002F\u002Fgithub.com\u002Fmingster\u002Fdotfiles","https:\u002F\u002Fgithub.com\u002Fmingster","2026-11-15 03:23:26",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add mingster\u002Fdotfiles --skill control-cli",{"tool":55,"command":56},"bunx","bunx skills add mingster\u002Fdotfiles --skill control-cli",{"tool":58,"command":59},"pnpm","pnpm dlx skills add mingster\u002Fdotfiles --skill control-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmingster\u002Fdotfiles\u002Fblob\u002Fmain\u002Ftemplates\u002Fagent-team\u002F.agents\u002Fskills\u002Fcontrol-cli\u002FSKILL.md",true,[],[64,72,96,122,137,156],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":71},"01M7DRC1SJMNMFRXKQW0A9Z67C","tune-agent-docs","Cut words from agent guide files (role files, team docs, AGENTS.md) without changing any rule. Use when asked to tune, trim or shrink agent docs.","https:\u002F\u002Fgithub.com\u002Fmingster\u002Fdotfiles\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftune-agent-docs\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":38},"01M70M8J3PA9F7TJA4DK95GE8N","workflow-from-chats","Extract durable working preferences from recent Cursor chats and convert them into skills, rules, or workflow docs. Use when asked to learn preferences, mine feedback, personalize workflows, or generate team\u002Fperson-specific agent guidance.","https:\u002F\u002Fgithub.com\u002Fmingster\u002Fdotfiles\u002Fblob\u002Fmain\u002Ftemplates\u002Fagent-team\u002F.agents\u002Fskills\u002Fworkflow-from-chats\u002FSKILL.md",[],[79,80,81,82,83,84,85,86,87,30,88,89,90,91,92,93,94,95],"workflow","workflow from chats","mine","feedback","generate","cursor","person","guidance","preferences","Rules","workflows","docs","when","learn","convert","team","extract",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":38},"01M70M8DK87GX45FFZCC840SW2","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002Fmingster\u002Fdotfiles\u002Fblob\u002Fmain\u002Ftemplates\u002Fagent-team\u002F.agents\u002Fskills\u002Fwhy\u002FSKILL.md",[],[98,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121],"analytics","parallel","observability","warehouse","returns","infrastructure","source","data","issue","read","tracker","how","product","work","design","error","error tracking","time","product analytics",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":38},"01M70M89EYB7RB4WT9EBQ19VEW","what-did-i-get-done","Summarize authored commits over a user-specified time period into a concise update","https:\u002F\u002Fgithub.com\u002Fmingster\u002Fdotfiles\u002Fblob\u002Fmain\u002Ftemplates\u002Fagent-team\u002F.agents\u002Fskills\u002Fwhat-did-i-get-done\u002FSKILL.md",[],[129,130,131,132,133,120,134,135,136],"done","what did i get done","get","concise","commits","update","user","summarize",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":38},"01M70M887Z6CVVHAM294BC9SG3","weekly-review","Produce a weekly synthesis of authored commits with highlights by bugfix, tech debt, and net-new work","https:\u002F\u002Fgithub.com\u002Fmingster\u002Fdotfiles\u002Fblob\u002Fmain\u002Ftemplates\u002Fagent-team\u002F.agents\u002Fskills\u002Fweekly-review\u002FSKILL.md",[],[144,145,146,147,148,116,149,133,150,151,152,153,154,155],"review","weekly review","weekly","weekly synthesis","with","tech","bugfix","tech debt","new","debt","produce","Synthesis",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":38},"01M70M86M3WNW7S7TZ1NVKSGT7","verify-this","Verify a claim with fresh local evidence: restate it falsifiably, capture baseline and treatment, compare artifacts, and return VERIFIED, NOT VERIFIED, or INCONCLUSIVE.","https:\u002F\u002Fgithub.com\u002Fmingster\u002Fdotfiles\u002Fblob\u002Fmain\u002Ftemplates\u002Fagent-team\u002F.agents\u002Fskills\u002Fverify-this\u002FSKILL.md",[],[163,164,148,165,166,167,168,169,170,171,31,172,173,174],"verify","verify this","artifacts","it","compare","restate","verified","claim","capture","baseline","evidence","fresh"]