[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XCHQ2E36TNGD7ARC4J4ET3":3,"skill-same:01M6XCHQ2E36TNGD7ARC4J4ET3":68},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M6XCHQ2E36TNGD7ARC4J4ET3","cl_add-sample-feature",null,"Use when creating or editing a sample feature under templates\u002Fproject\u002Ffeatures\u002F — feature.config.cjs, envsets, e2e specs — or when a template change doesn't show up in a scaffolded workspace (for general pre-claim verification checks use cl_verify-changes).","ferterahadi\u002Fcanary-lab","ferterahadi","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F148174839?v=4","01M6XCHCY39C7QEF3JZJ3VZGNZ","Fer Terahadi","01M6XCHD1ZE9926NBC97ZMZZRY",4,"MIT","https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcl_add-sample-feature\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"cl add sample feature","cl","add","feature","sample","claim","when","features","for","project","change","show","general","up","use","editing","template","e2e","verification","config","2026-11-10 10:12:30",false,"---\nname: cl_add-sample-feature\ndescription: Use when creating or editing a sample feature under templates\u002Fproject\u002Ffeatures\u002F — feature.config.cjs, envsets, e2e specs — or when a template change doesn't show up in a scaffolded workspace (for general pre-claim verification checks use cl_verify-changes).\n---\n\n# Authoring Canary Lab Sample Features\n\nThe public scaffold ships two sample suites. `storefront-journey` exercises the\nthree-service repository at `templates\u002Fproject\u002Fdemo-app\u002F` so a first-time user\ncan press Run and watch fail → repair → green. `workflow-workbench` supplies\nunfinished Coverage, Author, Verify, and Portify work over `workflow-app\u002F`.\n\nThe trade is deliberate: discoverability for a first-time user beats a\nclean scaffold for an experienced one, and `features\u002FREADME.md` tells users they\ncan delete the samples once they have seen them. Adding another feature under\n`templates\u002Fproject\u002Ffeatures\u002F` still changes the product contract and still needs\nexplicit product approval.\n\n`npm run demo` adds **nothing** of its own — it packs the current build, runs the\nreal `canary-lab init`, and opens the UI. That is what makes it a developer's\ntest of the init experience: anything missing from the scaffold is missing from\nthe demo, visibly.\n\nTemplate files only ship via the build (`templates\u002Fproject\u002F` →\n`dist\u002Ftemplates\u002F`, copied by `tools\u002Fprepare-assets.mjs`). Editing them without\n`smoke:pack` proves nothing.\n\n## What ships\n\n`demo-app\u002F` is a three-service storefront with seven ordered journeys:\n\n```text\ncatalog-service → inventory-service → checkout-service\n product + SKU       reservation        final total\n```\n\n`demo-app\u002FREQUIREMENTS.md` states seven journeys as twelve contracts — five\nordered pairs plus two sound ones (J0, J6) that pass from the first run — and the\nservices carry ten application defects between them. Each journey is one\nPlaywright test with ordered assertions. `healOnFailureThreshold: 4` lets up to\nfour journeys report failures in a run; within each journey, a later contract\nbecomes observable only after the earlier one is fixed.\n\nKeep all of that when editing. Three traps, each of which cost a full gate run:\n\n- **`maxFailures` in `playwright.config.ts` is not the run's cap.**\n  `healOnFailureThreshold` in `feature.config.cjs` becomes `--max-failures=N` on\n  the command line and overrides it. Both files currently say `4`; keep them in\n  agreement so the Suite setup panel reports the cap the runner uses.\n- **Defects must not leave unintended state.** The services persist data in a\n  per-run JSON file and are not restarted between heal cycles. A reservation\n  that survives its own refusal drifts every rerun and can break the setup of\n  the journey meant to catch it.\n- **A defect must sit on a code path no earlier journey exercises**, or it fails\n  the wrong journey first — and repairing it then looks like a no-op.\n\nThe suite declares each service as **its own repo entry with exactly one start\ncommand**, all three pointing at `demo-app\u002F`. The schema does allow one repo\nentry to carry several start commands, but the demo deliberately does not use\nthat: one entry per service is the shape a real deployment has, it gives each\nservice its own per-run worktree so a repair lands only in the checkout the\nbroken service serves from, and it makes the run's captured changes group repairs by\nservice instead of pooling them under one repo name.\n\nThe suite lives at `templates\u002Fproject\u002Ffeatures\u002Fstorefront-journey\u002F` and ships\nwith every scaffold. `npm run smoke:demo` repairs it deterministically as an\nLLM-free gate; `npm run demo` leaves it for the tester. `smoke:pack` asserts it\nreaches a scaffolded workspace — a template edit that never reached\n`dist\u002Ftemplates\u002F` fails there.\n\n## Anatomy\n\n```\ntemplates\u002Fproject\u002Ffeatures\u002F\u003Cname>\u002F\n├── feature.config.cjs      # CommonJS, exports { config }\n├── playwright.config.ts\n├── e2e\u002F                    # specs + helpers\u002F\n├── envsets\u002F                # envsets.config.json + \u003Cenv>\u002F\u003Cslot>.env\n└── docs\u002F                   # source requirements + generated _prd-summary.* sidecars\n```\n\n`feature.config.cjs` essentials (the shipped `storefront-journey` config is the\nthree-service local example; `workflow-workbench` shows a remote env):\n\n- `envs` lists the feature's environments. `storefront-journey` declares only\n  `local`; `workflow-workbench` declares `local` and `production`.\n- Each `startCommand`: `command`, `envs: ['local']` to gate local-only boots,\n  optional `ports: [{ name: 'api', env: 'PORT' }]` for per-run port allocation,\n  and a per-env `healthCheck` (exactly one transport per probe: `http: { url }`\n  or `tcp: { port }`). `workflow-workbench` deliberately starts with a fixed\n  port so Portify has work to do.\n- `${port.\u003Cslot>}` is the reserved token for the allocated port — valid in the\n  command, the healthCheck URL, and applied envset files. See\n  [docs\u002FARCHITECTURE.md → Concurrency](..\u002F..\u002F..\u002Fdocs\u002FARCHITECTURE.md#concurrency).\n\nSpec rules:\n\n- Specs MUST import the fixture:\n  `import { test, expect } from 'canary-lab\u002Ffeature-support\u002Flog-marker-fixture'`\n- The storefront helper resolves `CANARY_PORT_\u003Cslot>` then a standalone default\n  (see `templates\u002Fproject\u002Ffeatures\u002Fstorefront-journey\u002Fe2e\u002Fhelpers\u002Fapi.ts`). A\n  feature that supports a remote env must also read its envset target, as\n  `workflow-workbench` does with `WORKFLOW_URL`.\n\n## Checklist\n\n1. Confirm the new feature is meant to ship in every consumer workspace. The\n   scaffold already carries `storefront-journey` and `workflow-workbench`;\n   another shipped feature needs explicit product approval.\n2. Start from `npx canary-lab new feature`; rename consistently (folder,\n   `config.name`, `startCommand.name`, envset file names).\n3. For a concurrency-ready sample, declare ports + `${port.\u003Cslot>}` wherever an\n   allocated port is needed. A fixed port is deliberate only when the sample\n   tests Portify, as `workflow-workbench` does.\n4. Add envsets for every env in `envs`; remote envs point the suite's target URL\n   variable (for example, `WORKFLOW_URL`) at that environment and gate local\n   `startCommands` with `envs: ['local']`.\n5. Tier-1 checks per `cl_verify-changes`, then **always finish with\n   `npm run smoke:pack`** — it scaffolds a temp workspace and proves the template\n   ships.\n6. Consumers sync scaffolded docs\u002Fskills via `npx canary-lab upgrade` (it lints\n   but does not overwrite their `features\u002F`); new-feature templates only reach\n   NEW scaffolds — note upgrade-worthiness in the changelog when releasing.\n\n## Common mistakes\n\n| Mistake | Consequence |\n| --- | --- |\n| Skipping `smoke:pack` | The template never reached `dist\u002Ftemplates\u002F` — consumers scaffold the old version |\n| Hardcoding a port in a spec or script | Breaks per-run allocation and concurrent runs |\n| Importing from `@playwright\u002Ftest` directly | Loses the log-marker fixture — run capture can't slice failures |\n| Forgetting the production envset when `envs` lists it | Env dropdown offers an env that can't apply |\n","# Authoring Canary Lab Sample Features\n\nThe public scaffold ships two sample suites. `storefront-journey` exercises the\nthree-service repository at `templates\u002Fproject\u002Fdemo-app\u002F` so a first-time user\ncan press Run and watch fail → repair → green. `workflow-workbench` supplies\nunfinished Coverage, Author, Verify, and Portify work over `workflow-app\u002F`.\n\nThe trade is deliberate: discoverability for a first-time user beats a\nclean scaffold for an experienced one, and `features\u002FREADME.md` tells users they\ncan delete the samples once they have seen them. Adding another feature under\n`templates\u002Fproject\u002Ffeatures\u002F` still changes the product contract and still needs\nexplicit product approval.\n\n`npm run demo` adds **nothing** of its own — it packs the current build, runs the\nreal `canary-lab init`, and opens the UI. That is what makes it a developer's\ntest of the init experience: anything missing from the scaffold is missing from\nthe demo, visibly.\n\nTemplate files only ship via the build (`templates\u002Fproject\u002F` →\n`dist\u002Ftemplates\u002F`, copied by `tools\u002Fprepare-assets.mjs`). Editing them without\n`smoke:pack` proves nothing.\n\n## What ships\n\n`demo-app\u002F` is a three-service storefront with seven ordered journeys:\n\n```text\ncatalog-service → inventory-service → checkout-service\n product + SKU       reservation        final total\n```\n\n`demo-app\u002FREQUIREMENTS.md` states seven journeys as twelve contracts — five\nordered pairs plus two sound ones (J0, J6) that pass from the first run — and the\nservices carry ten application defects between them. Each journey is one\nPlaywright test with ordered assertions. `healOnFailureThreshold: 4` lets up to\nfour journeys report failures in a run; within each journey, a later contract\nbecomes observable only after the earlier one is fixed.\n\nKeep all of that when editing. Three traps, each of which cost a full gate run:\n\n- **`maxFailures` in `playwright.config.ts` is not the run's cap.**\n  `healOnFailureThreshold` in `feature.config.cjs` becomes `--max-failures=N` on\n  the command line and overrides it. Both files currently say `4`; keep them in\n  agreement so the Suite setup panel reports the cap the runner uses.\n- **Defects must not leave unintended state.** The services persist data in a\n  per-run JSON file and are not restarted between heal cycles. A reservation\n  that survives its own refusal drifts every rerun and can break the setup of\n  the journey meant to catch it.\n- **A defect must sit on a code path no earlier journey exercises**, or it fails\n  the wrong journey first — and repairing it then looks like a no-op.\n\nThe suite declares each service as **its own repo entry with exactly one start\ncommand**, all three pointing at `demo-app\u002F`. The schema does allow one repo\nentry to carry several start commands, but the demo deliberately does not use\nthat: one entry per service is the shape a real deployment has, it gives each\nservice its own per-run worktree so a repair lands only in the checkout the\nbroken service serves from, and it makes the run's captured changes group repairs by\nservice instead of pooling them under one repo name.\n\nThe suite lives at `templates\u002Fproject\u002Ffeatures\u002Fstorefront-journey\u002F` and ships\nwith every scaffold. `npm run smoke:demo` repairs it deterministically as an\nLLM-free gate; `npm run demo` leaves it for the tester. `smoke:pack` asserts it\nreaches a scaffolded workspace — a template edit that never reached\n`dist\u002Ftemplates\u002F` fails there.\n\n## Anatomy\n\n```\ntemplates\u002Fproject\u002Ffeatures\u002F\u003Cname>\u002F\n├── feature.config.cjs      # CommonJS, exports { config }\n├── playwright.config.ts\n├── e2e\u002F                    # specs + helpers\u002F\n├── envsets\u002F                # envsets.config.json + \u003Cenv>\u002F\u003Cslot>.env\n└── docs\u002F                   # source requirements + generated _prd-summary.* sidecars\n```\n\n`feature.config.cjs` essentials (the shipped `storefront-journey` config is the\nthree-service local example; `workflow-workbench` shows a remote env):\n\n- `envs` lists the feature's environments. `storefront-journey` declares only\n  `local`; `workflow-workbench` declares `local` and `production`.\n- Each `startCommand`: `command`, `envs: ['local']` to gate local-only boots,\n  optional `ports: [{ name: 'api', env: 'PORT' }]` for per-run port allocation,\n  and a per-env `healthCheck` (exactly one transport per probe: `http: { url }`\n  or `tcp: { port }`). `workflow-workbench` deliberately starts with a fixed\n  port so Portify has work to do.\n- `${port.\u003Cslot>}` is the reserved token for the allocated port — valid in the\n  command, the healthCheck URL, and applied envset files. See\n  [docs\u002FARCHITECTURE.md → Concurrency](..\u002F..\u002F..\u002Fdocs\u002FARCHITECTURE.md#concurrency).\n\nSpec rules:\n\n- Specs MUST import the fixture:\n  `import { test, expect } from 'canary-lab\u002Ffeature-support\u002Flog-marker-fixture'`\n- The storefront helper resolves `CANARY_PORT_\u003Cslot>` then a standalone default\n  (see `templates\u002Fproject\u002Ffeatures\u002Fstorefront-journey\u002Fe2e\u002Fhelpers\u002Fapi.ts`). A\n  feature that supports a remote env must also read its envset target, as\n  `workflow-workbench` does with `WORKFLOW_URL`.\n\n## Checklist\n\n1. Confirm the new feature is meant to ship in every consumer workspace. The\n   scaffold already carries `storefront-journey` and `workflow-workbench`;\n   another shipped feature needs explicit product approval.\n2. Start from `npx canary-lab new feature`; rename consistently (folder,\n   `config.name`, `startCommand.name`, envset file names).\n3. For a concurrency-ready sample, declare ports + `${port.\u003Cslot>}` wherever an\n   allocated port is needed. A fixed port is deliberate only when the sample\n   tests Portify, as `workflow-workbench` does.\n4. Add envsets for every env in `envs`; remote envs point the suite's target URL\n   variable (for example, `WORKFLOW_URL`) at that environment and gate local\n   `startCommands` with `envs: ['local']`.\n5. Tier-1 checks per `cl_verify-changes`, then **always finish with\n   `npm run smoke:pack`** — it scaffolds a temp workspace and proves the template\n   ships.\n6. Consumers sync scaffolded docs\u002Fskills via `npx canary-lab upgrade` (it lints\n   but does not overwrite their `features\u002F`); new-feature templates only reach\n   NEW scaffolds — note upgrade-worthiness in the changelog when releasing.\n\n## Common mistakes\n\n| Mistake | Consequence |\n| --- | --- |\n| Skipping `smoke:pack` | The template never reached `dist\u002Ftemplates\u002F` — consumers scaffold the old version |\n| Hardcoding a port in a spec or script | Breaks per-run allocation and concurrent runs |\n| Importing from `@playwright\u002Ftest` directly | Loses the log-marker fixture — run capture can't slice failures |\n| Forgetting the production envset when `envs` lists it | Env dropdown offers an env that can't apply |\n",{"name":5,"description":7},"main","2c85305cab69e5f773d59ea79a64a0b049a98345",".claude\u002Fskills\u002Fcl_add-sample-feature",0,"https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab","https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fcanary-lab","https:\u002F\u002Fgithub.com\u002Fferterahadi","https:\u002F\u002Fgithub.com\u002Fferterahadi-oddle","Shipping well-tested, production-ready, vibe-coded code using today’s latest form of engineering - harness, agentic, loop, graph, or whatever drops next","2026-11-14 17:08:42",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add ferterahadi\u002Fcanary-lab --skill cl_add-sample-feature",{"tool":60,"command":61},"bunx","bunx skills add ferterahadi\u002Fcanary-lab --skill cl_add-sample-feature",{"tool":63,"command":64},"pnpm","pnpm dlx skills add ferterahadi\u002Fcanary-lab --skill cl_add-sample-feature","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcl_add-sample-feature\u002FSKILL.md",true,[],[69,76,84,94,120,136],{"skillNo":70,"name":71,"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":72,"categories":73,"keywords":74,"publishedAt":39},"01M6XCWFJ75NNVF0N8C0XGNC17","off-by-one","https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002Fapps\u002Fweb-server\u002Fprompts\u002Fsabotage-skills\u002Foff-by-one\u002Fskill.md",[],[75],"off by one",{"skillNo":77,"name":78,"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":79,"categories":80,"keywords":81,"publishedAt":39},"01M6XCWBYW1QHVFKSDQCCRRRDT","multi-failure-cascade","https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002Fapps\u002Fweb-server\u002Fprompts\u002Fsabotage-skills\u002Fmulti-failure-cascade\u002Fskill.md",[],[82,83],"multi","multi failure cascade",{"skillNo":85,"name":86,"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":87,"categories":88,"keywords":89,"publishedAt":39},"01M6XCW8XA7QY74Q18D9PGFFMD","broken-delete-contract","https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002Fapps\u002Fweb-server\u002Fprompts\u002Fsabotage-skills\u002Fbroken-delete-contract\u002Fskill.md",[],[90,91,92,93],"delete","broken","contract","broken delete contract",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":39},"01M6XCW439KA486AN2QZACNYTC","canary-lab","Use when the user wants Canary Lab to take a product repo end to end — \"test this app\", \"onboard this repo\", \"run a flight\", \"evaluate what I just built\" — through the flight pipeline (start_flight \u002F get_flight \u002F respond_flight_checkpoint over MCP). One conducted pipeline continues a configured suite or takes bare repo(s) to a green, covered, healed run and publishes a downloadable Report; Parallel setup continues as Canary-owned background work. Use a focused skill only when the user asks for that single capability without asking for a Flight or \u002Fcanary-lab.","https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002Fagent-integrations\u002Fplugin\u002Fcanary-lab\u002Fskills\u002Fcanary-lab\u002FSKILL.md",[],[101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,25,117,118,119],"lab","canary","canary lab","capability","pipeline","work","only","take","green","get","end","app","respond","suite","product","bare","start","MCP","run",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":39},"01M6XCVYQ31KC4ZXCD5QMRKXEE","canary-lab-verify","Use when verifying a Canary Lab feature against a RUNNING target — a deployed environment (\"verify checkout on staging\", \"run the saved verify config\", \"check the deployed app\") or a locally booted app (\"verify a running app\") — through the verify MCP tools (list\u002Fget\u002Fcreate\u002Fupdate_verification_config, boot_services, execute_verification, get_verification_result). No heal loop. For run + heal use canary-lab-run; for end-to-end onboarding use canary-lab (flight).","https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002Fagent-integrations\u002Fplugin\u002Fcanary-lab\u002Fskills\u002Fcanary-lab-verify\u002FSKILL.md",[],[102,127,101,128,103,110,118,38,129,119,130,37,131,132,133,111,112,134,135,25],"verify","canary lab verify","create","update","Tools","loop","list","checkout","result",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":39},"01M6XCVSWW705CN3C69FQMPZXN","canary-lab-run","Use when running or healing an EXISTING Canary Lab feature locally — \"run \u003Cfeature>\", \"fix the failing run\", \"rerun 7cvh\", \"drive the heal loop\" — through the repair MCP tools (start_run, wait_for_heal_task, signal_run, get_heal_context, pause_run, cancel_heal, abort_run). Fix failing runs by editing app\u002Fservice code, not tests. For end-to-end onboarding of a new repo use canary-lab (flight); for deployed-environment checks use canary-lab-verify.","https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002Fagent-integrations\u002Fplugin\u002Fcanary-lab\u002Fskills\u002Fcanary-lab-run\u002FSKILL.md",[],[143,103,119,102,101,111,110,144,145,132,131,117,146,118,25,147,148,112,149,150],"canary lab run","fix","context","code","rerun","wait","new repo","failing"]