[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CSFKH4BYNSMC1SKZYDJZS0":3,"skill-same:01M7CSFKH4BYNSMC1SKZYDJZS0":48},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7CSFKH4BYNSMC1SKZYDJZS0","test-environment-selection",null,"Use before booting anything - choosing local (start_task_preview or a workspace boot), the task's preview or stage, confirming the build is the PR head, and what to do when nothing can run","makifbaysal\u002Ftasktrooper","makifbaysal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F25031940?v=4","01M7CRG3ZCSYZSSEVDMW3DEYC8","Mehmet Akif Baysal","01M7CRG401FJ8YAXH5ER730XYV",122,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fqa-agent\u002Fskills\u002Ftest-environment-selection\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: test-environment-selection\ncategory: qa\ndescription: Use before booting anything - choosing local (start_task_preview or a workspace boot), the task's preview or stage, confirming the build is the PR head, and what to do when nothing can run\n---\n# Test Environment Selection\n\n## Overview\n\nBefore executing a single scenario, decide WHERE the product will run, in this order:\n\n1. **Backend, worker or full-stack repository: local.** DB rows, logs and third-party stubs are only observable there. First choice `start_task_preview` — it checks out the task branch in the task workspace, detects how to run it, starts it, stops a stale server, and returns a `localhost` URL for the browser tools; call it again if the URL isn't there yet. Only when it cannot run the project (e.g. a backend+frontend pair, or a worker it doesn't detect), boot by hand (backend-manual-testing).\n2. **Frontend-only repository: the task's own preview, else local.** When the component is deployed with a per-branch `preview` environment, `get_task_preview` returns it — use it when `status: \"ready\"` AND `built_from_pr_head: true`. Anything else (`building`, `built_from_pr_head: false`, `error`, `canceled`, `none`, or an empty list) is not the code under test: fall back to `start_task_preview`.\n3. **Stage.** Used when the repository is configured for stage verification, or when the app cannot boot locally (managed secrets, heavy infra the workspace lacks) — always after confirming stage is actually running the PR head (see Stage rules).\n\n**Production is never a test environment.** No scenario is ever executed against the prod base URL or prod data — not a \"harmless\" GET, not seeding, not cleanup.\n\n## How to decide\n\n1. Identify the repository shape (backend\u002Fworker\u002Ffull-stack vs frontend-only) and apply the order above.\n2. Read the repository settings (`list_repositories`): `build_command`, `test_command`, `verify_command` — and any comment the developer left on the task (a clean run leaves none). These are the project's declared way of running and checking itself. `get_project_brief` has the same information plus what each component talks to.\n3. If neither a usable preview nor a local boot nor stage works, you are blocked — see below.\n\n## Preview rules\n\n- **Address.** Use `open_url` in the browser (`browser_navigate`) — for a protected preview it carries the bypass and sets a cookie, so the pages it links to load too. For HTTP requests (curl, an API client) use `branch_url` (or `url` when there is none) and send every header in `request_headers` on every request.\n- **Protected without a bypass.** When the entry notes that the preview is behind Vercel Deployment Protection with no Protection Bypass for Automation, the preview answers every automated request with a login page. Do not report that page as a failure. Test locally instead and leave one comment asking the human to add \"Protection Bypass for Automation\" in the Vercel project (Settings → Deployment Protection).\n- **Never write the bypass secret** — nor `open_url`, which contains it — into a comment, test case, document or bug report: it opens the project's previews to whoever reads it. Refer to \"the preview bypass\" instead.\n- **A preview is not prod, but its backing services may be.** If the preview talks to a shared database or a third-party account, avoid destructive scenarios there exactly as on stage; they run locally only.\n- **Put the preview's `branch_url` and short `commit_sha` in every `review_criterion` note** — the next reader needs to know exactly what ran, and a pass writes no comment to say it elsewhere.\n\n## Stage rules\n\n- **Confirm the change is actually there before testing.** `list_deployments` (env=stage) shows the commit of the latest deploy — it must equal the PR head from `get_task_pull_request`. `get_environment` says whether stage is bound at all. Not equal → wait for the stage deploy that started when the task entered `ready_for_qa` (`get_pipeline_status` shows its progress); never test the old build.\n- **Stage is shared.** Namespace your test data (`qa-\u003Ctask-key>-...` prefixes, test-data-and-stubs), avoid destructive scenarios (mass deletes, migrations, load tests) — those run locally only — and clean up what you created.\n- The stage `base_url` is for requests; the `health_url` is only a liveness probe.\n\n## When none is possible\n\nIf there is no usable preview, the app cannot boot in the workspace (including via `start_task_preview`) AND no stage target exists (or it isn't running the PR head), do not fake a verdict and do not read the code as a substitute. Apply the blocker triage (qa-verify-before-verdict): the project cannot boot from its own documented commands → `need_revision` with the failing command and its output, a developer-fixable defect. A blocker only a human can lift (no stage configured at all, a credential you don't have) → one `ask_user` question with concrete options, not a `need_revision` the developer cannot act on.\n\n## Red Flags\n\n- A connection string or base URL in your commands points at prod → stop immediately.\n- \"I'll just check this one thing on prod\" → no. Preview, local or stage, always.\n- Testing a preview or stage whose commit is not the PR head → the verdict describes an earlier version.\n","# Test Environment Selection\n\n## Overview\n\nBefore executing a single scenario, decide WHERE the product will run, in this order:\n\n1. **Backend, worker or full-stack repository: local.** DB rows, logs and third-party stubs are only observable there. First choice `start_task_preview` — it checks out the task branch in the task workspace, detects how to run it, starts it, stops a stale server, and returns a `localhost` URL for the browser tools; call it again if the URL isn't there yet. Only when it cannot run the project (e.g. a backend+frontend pair, or a worker it doesn't detect), boot by hand (backend-manual-testing).\n2. **Frontend-only repository: the task's own preview, else local.** When the component is deployed with a per-branch `preview` environment, `get_task_preview` returns it — use it when `status: \"ready\"` AND `built_from_pr_head: true`. Anything else (`building`, `built_from_pr_head: false`, `error`, `canceled`, `none`, or an empty list) is not the code under test: fall back to `start_task_preview`.\n3. **Stage.** Used when the repository is configured for stage verification, or when the app cannot boot locally (managed secrets, heavy infra the workspace lacks) — always after confirming stage is actually running the PR head (see Stage rules).\n\n**Production is never a test environment.** No scenario is ever executed against the prod base URL or prod data — not a \"harmless\" GET, not seeding, not cleanup.\n\n## How to decide\n\n1. Identify the repository shape (backend\u002Fworker\u002Ffull-stack vs frontend-only) and apply the order above.\n2. Read the repository settings (`list_repositories`): `build_command`, `test_command`, `verify_command` — and any comment the developer left on the task (a clean run leaves none). These are the project's declared way of running and checking itself. `get_project_brief` has the same information plus what each component talks to.\n3. If neither a usable preview nor a local boot nor stage works, you are blocked — see below.\n\n## Preview rules\n\n- **Address.** Use `open_url` in the browser (`browser_navigate`) — for a protected preview it carries the bypass and sets a cookie, so the pages it links to load too. For HTTP requests (curl, an API client) use `branch_url` (or `url` when there is none) and send every header in `request_headers` on every request.\n- **Protected without a bypass.** When the entry notes that the preview is behind Vercel Deployment Protection with no Protection Bypass for Automation, the preview answers every automated request with a login page. Do not report that page as a failure. Test locally instead and leave one comment asking the human to add \"Protection Bypass for Automation\" in the Vercel project (Settings → Deployment Protection).\n- **Never write the bypass secret** — nor `open_url`, which contains it — into a comment, test case, document or bug report: it opens the project's previews to whoever reads it. Refer to \"the preview bypass\" instead.\n- **A preview is not prod, but its backing services may be.** If the preview talks to a shared database or a third-party account, avoid destructive scenarios there exactly as on stage; they run locally only.\n- **Put the preview's `branch_url` and short `commit_sha` in every `review_criterion` note** — the next reader needs to know exactly what ran, and a pass writes no comment to say it elsewhere.\n\n## Stage rules\n\n- **Confirm the change is actually there before testing.** `list_deployments` (env=stage) shows the commit of the latest deploy — it must equal the PR head from `get_task_pull_request`. `get_environment` says whether stage is bound at all. Not equal → wait for the stage deploy that started when the task entered `ready_for_qa` (`get_pipeline_status` shows its progress); never test the old build.\n- **Stage is shared.** Namespace your test data (`qa-\u003Ctask-key>-...` prefixes, test-data-and-stubs), avoid destructive scenarios (mass deletes, migrations, load tests) — those run locally only — and clean up what you created.\n- The stage `base_url` is for requests; the `health_url` is only a liveness probe.\n\n## When none is possible\n\nIf there is no usable preview, the app cannot boot in the workspace (including via `start_task_preview`) AND no stage target exists (or it isn't running the PR head), do not fake a verdict and do not read the code as a substitute. Apply the blocker triage (qa-verify-before-verdict): the project cannot boot from its own documented commands → `need_revision` with the failing command and its output, a developer-fixable defect. A blocker only a human can lift (no stage configured at all, a credential you don't have) → one `ask_user` question with concrete options, not a `need_revision` the developer cannot act on.\n\n## Red Flags\n\n- A connection string or base URL in your commands points at prod → stop immediately.\n- \"I'll just check this one thing on prod\" → no. Preview, local or stage, always.\n- Testing a preview or stage whose commit is not the PR head → the verdict describes an earlier version.\n",{"name":5,"category":24,"description":7},"qa","main","910394a0b6db9fc8c9a8f36328ec421d3ebd8b38","catalog\u002Fagents\u002Fqa-agent\u002Fskills\u002Ftest-environment-selection",18,"https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper","https:\u002F\u002Ftasktrooper.ai","https:\u002F\u002Fgithub.com\u002Fmakifbaysal","Senior Software Developer","2026-11-15 04:50:29",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add makifbaysal\u002Ftasktrooper --skill test-environment-selection",{"tool":40,"command":41},"bunx","bunx skills add makifbaysal\u002Ftasktrooper --skill test-environment-selection",{"tool":43,"command":44},"pnpm","pnpm dlx skills add makifbaysal\u002Ftasktrooper --skill test-environment-selection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fqa-agent\u002Fskills\u002Ftest-environment-selection\u002FSKILL.md",true,[],[49,55,62,69,76,83],{"skillNo":50,"name":51,"nameZh":6,"description":6,"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},"01M7CSVEPQW6J6TD6CS2T5FPNZ","visual-craft","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fvisual-craft\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},"01M7CSVAQG91ETHQ0HBNZDG5FR","ux-copy","Use when you write any words a user reads in a mockup or a hand-off - content language and voice, buttons, labels, errors, empty states, confirmations, numbers and dates, and the longest-string check","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fux-copy\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},"01M7CSV6H0J38659NDXHJQ8396","screen-mockup-html","Use when you draw screens as the design task's HTML mockup - ONE canvas document holding every screen and every variant side by side, the sanitizer-safe recipe, phone and wide frames, the states grid, static control states, and the loopback self-check with screenshots at 375, 768 and 1440 attached to the task","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fscreen-mockup-html\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},"01M7CSV3JFRF3BM3XK52M7YEYR","performance-awareness","How the performance score moves for your role. Use when the score context shows a declining trend, or before handing off work you have not self-checked against every criterion.","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fperformance-awareness\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},"01M7CSTZDH00YRF5SCT7BRT9QD","design-variants","Use when a screen design needs variants - how many, variants as side-by-side rows on the one canvas, what makes two variants genuinely different, recommending one, how the human's choice is read, and narrowing to the chosen one in revision","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-variants\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},"01M7CSTV6P3SM3PAE28DB0RF77","design-system-authoring","Use when you derive, change or extend a design system - where tokens live per stack, the DTCG token tree, role-based names for both themes, base vs layer vs drift, the DESIGN.md section order, the inventory format, the contrast check and the lint every proposal returns","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-system-authoring\u002FSKILL.md",[],[]]