[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ATFR3936K9MTVYTHD47C48":3,"skill-same:01M7ATFR3936K9MTVYTHD47C48":45},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7ATFR3936K9MTVYTHD47C48","tny-live-testing",null,"Run tny against the user's real provider accounts (codex subscription, CURSOR_API_KEY) and drive the real TUI in a pty. Use for \"full integration\" or \"test against my accounts\" requests, and for verifying host process lifecycle (pre-warm, adoption, shutdown, orphans).","thehumanworks\u002Ftny","thehumanworks","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F178243268?v=4","01M7ATFN18HGD2MMZM8798C4T9","Tomas Roda","01M7ATFN1Y1WDK31RADZB53QSC",0,"MIT","https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftny-live-testing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tny-live-testing\ndescription: Run tny against the user's real provider accounts (codex subscription, CURSOR_API_KEY) and drive the real TUI in a pty. Use for \"full integration\" or \"test against my accounts\" requests, and for verifying host process lifecycle (pre-warm, adoption, shutdown, orphans).\n---\n\n# Live-testing tny against real accounts\n\n## Credentials and binaries\n\n- `CURSOR_API_KEY` lives in the login shell only: fetch it with\n  `zsh -lc 'printf %s $CURSOR_API_KEY'`. Codex auth is `~\u002F.tny\u002Fcodex-auth.json`\n  (tny's native login) or the Codex CLI's `~\u002F.codex\u002Fauth.json`; either works.\n- Agent CLIs are wrapped by shell functions and mise shims: resolve real\n  paths with `zsh -lc 'whence -p codex'` for the *other* CLIs; codex needs\n  no binary at all (turns and login go straight to chatgpt.com\u002Fauth.openai.com).\n  The user's HOME must stay real (mise shims break under a fake HOME).\n\n## Protecting the user's state\n\n- `tny ask`\u002FTUI writes `~\u002F.tny\u002Fsettings.json` (`last_provider`, per-provider\n  models) via `remember_use`. **Back it up first, diff and restore after** so\n  live tests don't silently flip the user's default provider.\n- Run from a scratch cwd so test sessions don't pile into a real workspace's\n  session list.\n- Never run live tests through `build\u002Ftny` while the mutation harness is\n  active — it relinks that binary with mutants. Copy it first.\n\n## One-shot checks (cheap, per provider)\n\n```sh\nTNY_CODEX_BIN=$(zsh -lc 'whence -p codex') \\\n  .\u002Ftny --provider codex ask --json \"Reply with exactly the word OK and nothing else.\"\nzsh -lc '.\u002Ftny --provider cursor ask --json \"Reply with exactly OK.\"'\n```\n\nAssert on the `--json` envelope: `output`, `provider`, `exit_code`.\n\n## TUI lifecycle checks (pty)\n\nDrive the binary under `pty.openpty()` + `TIOCSWINSZ` (see\n`tests\u002Fintegration\u002Ftest_tui.py` for the Term\u002FScreen classes; the Screen\nemulator is the only honest way to assert what is *visible*, because the raw\nbyte stream keeps everything ever printed). The live pre-warm check is:\n\n1. launch `tny --provider X` and send **no prompt**;\n2. poll `ps -ax -o pid=,ppid=,command=` for the host child\n   (`cursor-sdk-bridge`, the ACP agent) — it must appear within seconds of\n   the banner. `--provider codex` spawns nothing (docs\u002Fadr\u002F0065): assert\n   that NO child appears and that the reply still arrives over HTTPS;\n3. submit a prompt, assert the reply AND that the host pid did not change\n   (adoption, not respawn);\n4. `\u002Fquit`, then check for orphans with a precise `pgrep -f` on the host\n   command line — the user runs unrelated agent processes (ChatGPT.app,\n   codex app-servers) that a loose pgrep will flag.\n\n## Known lifecycle trap\n\nVersion-manager shims **fork** the real host binary instead of exec'ing it;\nkilling only the direct child orphans the server. tny handles this with\n`setpgid` + process-group kills in every host spawn\u002Fstop path — if you add a\nspawn path, do the same and re-run the orphan check above.\n","# Live-testing tny against real accounts\n\n## Credentials and binaries\n\n- `CURSOR_API_KEY` lives in the login shell only: fetch it with\n  `zsh -lc 'printf %s $CURSOR_API_KEY'`. Codex auth is `~\u002F.tny\u002Fcodex-auth.json`\n  (tny's native login) or the Codex CLI's `~\u002F.codex\u002Fauth.json`; either works.\n- Agent CLIs are wrapped by shell functions and mise shims: resolve real\n  paths with `zsh -lc 'whence -p codex'` for the *other* CLIs; codex needs\n  no binary at all (turns and login go straight to chatgpt.com\u002Fauth.openai.com).\n  The user's HOME must stay real (mise shims break under a fake HOME).\n\n## Protecting the user's state\n\n- `tny ask`\u002FTUI writes `~\u002F.tny\u002Fsettings.json` (`last_provider`, per-provider\n  models) via `remember_use`. **Back it up first, diff and restore after** so\n  live tests don't silently flip the user's default provider.\n- Run from a scratch cwd so test sessions don't pile into a real workspace's\n  session list.\n- Never run live tests through `build\u002Ftny` while the mutation harness is\n  active — it relinks that binary with mutants. Copy it first.\n\n## One-shot checks (cheap, per provider)\n\n```sh\nTNY_CODEX_BIN=$(zsh -lc 'whence -p codex') \\\n  .\u002Ftny --provider codex ask --json \"Reply with exactly the word OK and nothing else.\"\nzsh -lc '.\u002Ftny --provider cursor ask --json \"Reply with exactly OK.\"'\n```\n\nAssert on the `--json` envelope: `output`, `provider`, `exit_code`.\n\n## TUI lifecycle checks (pty)\n\nDrive the binary under `pty.openpty()` + `TIOCSWINSZ` (see\n`tests\u002Fintegration\u002Ftest_tui.py` for the Term\u002FScreen classes; the Screen\nemulator is the only honest way to assert what is *visible*, because the raw\nbyte stream keeps everything ever printed). The live pre-warm check is:\n\n1. launch `tny --provider X` and send **no prompt**;\n2. poll `ps -ax -o pid=,ppid=,command=` for the host child\n   (`cursor-sdk-bridge`, the ACP agent) — it must appear within seconds of\n   the banner. `--provider codex` spawns nothing (docs\u002Fadr\u002F0065): assert\n   that NO child appears and that the reply still arrives over HTTPS;\n3. submit a prompt, assert the reply AND that the host pid did not change\n   (adoption, not respawn);\n4. `\u002Fquit`, then check for orphans with a precise `pgrep -f` on the host\n   command line — the user runs unrelated agent processes (ChatGPT.app,\n   codex app-servers) that a loose pgrep will flag.\n\n## Known lifecycle trap\n\nVersion-manager shims **fork** the real host binary instead of exec'ing it;\nkilling only the direct child orphans the server. tny handles this with\n`setpgid` + process-group kills in every host spawn\u002Fstop path — if you add a\nspawn path, do the same and re-run the orphan check above.\n",{"name":5,"description":7},"main","f170ea8f9d04357df828f92f51cadb46dc37b054",".claude\u002Fskills\u002Ftny-live-testing","https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny","https:\u002F\u002Fgithub.com\u002Fthehumanworks","Fluffy Pupster during the day; Agentic Doggo at night.","2026-11-14 22:10:19",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add thehumanworks\u002Ftny --skill tny-live-testing",{"tool":37,"command":38},"bunx","bunx skills add thehumanworks\u002Ftny --skill tny-live-testing",{"tool":40,"command":41},"pnpm","pnpm dlx skills add thehumanworks\u002Ftny --skill tny-live-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftny-live-testing\u002FSKILL.md",true,[],[46,53,60,67,74],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7ATG9M1W5Q5DVY6XH23YQSK","usr","Fixture whose name collides with a path component","https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-ws\u002Fskills\u002Fusr\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"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":19},"01M7ATG8CW7AYB97K6TTNE81AB","deploy","Ship the current branch to staging","https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-ws\u002Fskills\u002Fdeploy\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":19},"01M7ATG5D2V2817D8KN0WBJ8DX","deploy-prod","Promote staging to production","https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-ws\u002Fskills\u002Fdeploy-prod\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":19},"01M7ATG0G2KHVKABCTHZ9X4585","tny-tool-extensions","Write, test and debug tny Python tool extensions (@tny.tool, tny.group, tny.proxy, folder modules, schemas). Use when asked to add a tool, command or MCP proxy to tny.","https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny\u002Fblob\u002Fmain\u002Fskills\u002Ftny-tool-extensions\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":19},"01M7ATFVQW36VB8KSWT0KNC0F0","tny-mutation-testing","Run and interpret tny's mutation-testing harness (tests\u002Fmutation\u002Fmutate.py) to verify that the test suite actually notices behavior changes. Use when asked to mutation-test a change, to \"test extensively\", or when adding code the unit suite might cover only nominally.","https:\u002F\u002Fgithub.com\u002Fthehumanworks\u002Ftny\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftny-mutation-testing\u002FSKILL.md",[],[]]