[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XCQGTSZDC9AB92PPMB9XNX":3,"skill-same:01M6XCQGTSZDC9AB92PPMB9XNX":54},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M6XCQGTSZDC9AB92PPMB9XNX","cl_ui-design-philosophy",null,"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.codex\u002Fskills\u002Fcl_ui-design-philosophy\u002FSKILL.md",[],[18,19,20,21,22,23,24],"design","design philosophy","ui","ui design","philosophy","cl","cl ui design philosophy","2026-11-10 10:12:30",false,"---\nname: cl_ui-design-philosophy\ndescription: Use when building or restyling any Canary Lab web UI (apps\u002Fweb) — a new panel, dialog, pill, card, or full-screen view. The design language that makes a new surface feel native: the token system, the layout precedents, and meaning-carries-the-style.\n---\n\n\u003C!-- GENERATED FROM .claude\u002Fskills — DO NOT EDIT.\n     Run `npm run gen:skills` after editing the source skill (the build does this too). -->\n\n# Canary Lab UI Design Philosophy\n\nCanary Lab's UI is a dense, information-first operator console — not a marketing\npage. New surfaces must read as part of the same tool. The bar is *intentional and\nnative*, not *novel*. Apply `frontend-design` polish **inside** these constraints.\n\nCritique-only requests (\"review this design\", \"design feedback\") → `cl_design-feedback`.\nTerminal\u002FCLI output styling is out of scope.\n\n## Non-negotiables\n\n1. **Token system only.** Colour, spacing, radius, shadow, type all come from CSS\n   variables: `--bg-base\u002F-surface\u002F-selected`, `--text-primary\u002F-secondary\u002F-muted`,\n   `--border-default`, `--accent\u002F--success\u002F--warning\u002F--danger`, `--radius-*`,\n   `--shadow-*`, `--font-mono`. Never hardcode a hex that competes with a token.\n   Status hues (green verified, amber stale\u002Fshallow, sky in-progress, rose danger)\n   are reused consistently so a colour *means* the same thing everywhere.\n2. **No new component library.** Compose from existing precedents — don't introduce\n   a UI kit, CSS-in-JS runtime, or competing styling approach.\n3. **Light + dark both.** Everything derives from tokens, so both themes work for\n   free — verify you didn't bake in a theme-specific colour.\n\n## Layout precedents to copy\n\n| Need | Copy from |\n| --- | --- |\n| Full-screen workspace view | `CoverageLedgerPage`, `LogCleanupPage` (`fixed inset-0`, header bar + panes) |\n| Modal with tabs | `FeatureConfigEditor` (`.cl-modal-backdrop` + `.cl-modal` + `\u003Cnav>` tabs) |\n| Status-bar launcher | the `*Pill` components in `GlobalStatusBar` |\n| Background-task surface | `FlightsPill` + `FlightPage` (`features\u002Fflights\u002Fcomponents\u002F`) (see `cl_async-task-ux`) |\n| Long async generation | the Coverage **Generating** screen — a dedicated full pane (phase stepper + the agent timeline via `AgentSessionView`, always on) that OWNS the view while a job runs; not a banner over a dimmed result |\n| Server-spawned agent with a structured session log | **`AgentSessionView`**; external clients use the shared external-agent card |\n\n## Principles that make it feel designed\n\n- **One structured timeline for agentic work.** Server-spawned work with a\n  readable CLI session log — run heal, coverage, portify, benchmark, flight\n  stages, localized evaluation rewrite — uses `AgentSessionView` rather than a\n  second home-grown session viewer. The producer pins a session ref (Claude\n  `--session-id`; Codex located by cwd + start) and exposes a REST snapshot +\n  `\u002Fws\u002F...\u002Fagent-session` tail, as coverage does (see `cl_async-task-ux`).\n  External-client work has no server-owned JSONL; use the shared\n  `ExternalAgentCard`. Raw\u002Fcached tasks may have only progress text. Classify\n  the producer before promising a thinking\u002Ftool timeline (see\n  `cl_surfacing-agent-work`).\n- **A live UI transition needs a reliable trigger, not just a push.** A panel that\n  must flip state mid-job may not depend solely on a best-effort broadcast — back it\n  off the per-task stream you already hold. Pattern, worked example, and the\n  \"only updates after I refresh\" fingerprint: [[cl_live-state-sync]].\n- **Meaning carries the style, not decoration.** Prefer a status dot, a coloured\n  border-inset, or a typed chip over a heavy accent. (The TestCard has no\n  decorative left-accent — the verified dot + `@req-*` chips already say it.)\n- **Worst-first ordering.** Lists of work (gaps, failures) sort the items that need\n  attention to the top; \"all good\" sinks to the bottom.\n- **Never dead-end, never blank.** Every state has a rendering with a next action\n  (a `Setup needed` empty state offers Generate). While a long job runs, give it a\n  dedicated screen that owns the view (the Coverage Generating pane) instead of a\n  stale\u002Fempty ledger behind a banner — the work-in-progress IS the content.\n- **One exercise, not exposed seams.** When two steps are really one user goal\n  (PRD summary → coverage mapping), present one flow with chained progress and one\n  set of actions (Regenerate summary \u002F Regenerate coverage) — don't leak the\n  internal two-job boundary or a per-item review gate the user must babysit.\n- **Route the selection that should survive refresh.** Top-level view and\n  feature live in the URL + `localStorage` and sync across tabs. Run, dialog,\n  flight, stage, and config tab live in the URL only, so two tabs can inspect\n  different details without moving each other. See\n  `apps\u002Fweb\u002Fsrc\u002Fshared\u002Flib\u002Fworkspace-view-state.ts` and `cl_route-every-surface`.\n  Ephemeral UI (hover, transient filters) stays in React state.\n- **One owner for a long-lived lifecycle; don't split it across views.** A background\n  job (or any cross-view live state) must be owned ONCE at the screen level — one\n  poller, rehydrated on open — and every panel reads from it. The Coverage dialog's\n  worst bug came from two tabs each owning their own job + poller that unmounted on\n  switch (orphaned jobs, \"nothing happened\", raw 409s). The fix wasn't more hydration\n  — it was collapsing the tabs into one never-unmounting view. **Prefer one view with\n  panels\u002Frails over tabs when the tabs share live state.** Treat a \"already running\"\n  conflict as *attach to the existing*, never an error in the user's face.\n- **Distinct view per lifecycle state.** Empty \u002F generating \u002F final each get their own\n  rendering off the single derived state — not one layout that's half-populated. A\n  long-running job earns a full-screen takeover (you watch the agent); the resting\n  states show the working surface.\n- **Density with breathing room.** Tight vertical rhythm (8–12px gaps), small type\n  (10–13px), monospace for ids\u002Ftags\u002Fpaths. Information-rich, not cramped.\n- **Restrained motion.** Subtle opacity\u002Fbackground transitions (~120ms) for\n  hover\u002Factive; a pulse for \"live\". Headless preview forces reduced-motion — don't\n  rely on animation to convey state (use static SVG for the coverage ring).\n- **Two-way affordances.** Hovering one side of a relation lights the other and\n  dims the rest (the ledger's test↔requirement highlight) — makes structure legible.\n- **No layout shift from a scrollbar.** On any scroller whose content grows\u002Fshrinks\n  with a toggle or filter (a disclosure, a gap filter), set `scrollbar-gutter: stable`\n  so the appearing scrollbar doesn't eat content width and jump the layout sideways.\n\n## Verify\n\nComponent behaviour is happy-dom-tested (`*.test.tsx`); the live look needs the\n`canary-apply` cycle — see `cl_verify-changes` Tier 3 for who runs it. Typecheck with\n`tsconfig.build.json`.\n","\u003C!-- GENERATED FROM .claude\u002Fskills — DO NOT EDIT.\n     Run `npm run gen:skills` after editing the source skill (the build does this too). -->\n\n# Canary Lab UI Design Philosophy\n\nCanary Lab's UI is a dense, information-first operator console — not a marketing\npage. New surfaces must read as part of the same tool. The bar is *intentional and\nnative*, not *novel*. Apply `frontend-design` polish **inside** these constraints.\n\nCritique-only requests (\"review this design\", \"design feedback\") → `cl_design-feedback`.\nTerminal\u002FCLI output styling is out of scope.\n\n## Non-negotiables\n\n1. **Token system only.** Colour, spacing, radius, shadow, type all come from CSS\n   variables: `--bg-base\u002F-surface\u002F-selected`, `--text-primary\u002F-secondary\u002F-muted`,\n   `--border-default`, `--accent\u002F--success\u002F--warning\u002F--danger`, `--radius-*`,\n   `--shadow-*`, `--font-mono`. Never hardcode a hex that competes with a token.\n   Status hues (green verified, amber stale\u002Fshallow, sky in-progress, rose danger)\n   are reused consistently so a colour *means* the same thing everywhere.\n2. **No new component library.** Compose from existing precedents — don't introduce\n   a UI kit, CSS-in-JS runtime, or competing styling approach.\n3. **Light + dark both.** Everything derives from tokens, so both themes work for\n   free — verify you didn't bake in a theme-specific colour.\n\n## Layout precedents to copy\n\n| Need | Copy from |\n| --- | --- |\n| Full-screen workspace view | `CoverageLedgerPage`, `LogCleanupPage` (`fixed inset-0`, header bar + panes) |\n| Modal with tabs | `FeatureConfigEditor` (`.cl-modal-backdrop` + `.cl-modal` + `\u003Cnav>` tabs) |\n| Status-bar launcher | the `*Pill` components in `GlobalStatusBar` |\n| Background-task surface | `FlightsPill` + `FlightPage` (`features\u002Fflights\u002Fcomponents\u002F`) (see `cl_async-task-ux`) |\n| Long async generation | the Coverage **Generating** screen — a dedicated full pane (phase stepper + the agent timeline via `AgentSessionView`, always on) that OWNS the view while a job runs; not a banner over a dimmed result |\n| Server-spawned agent with a structured session log | **`AgentSessionView`**; external clients use the shared external-agent card |\n\n## Principles that make it feel designed\n\n- **One structured timeline for agentic work.** Server-spawned work with a\n  readable CLI session log — run heal, coverage, portify, benchmark, flight\n  stages, localized evaluation rewrite — uses `AgentSessionView` rather than a\n  second home-grown session viewer. The producer pins a session ref (Claude\n  `--session-id`; Codex located by cwd + start) and exposes a REST snapshot +\n  `\u002Fws\u002F...\u002Fagent-session` tail, as coverage does (see `cl_async-task-ux`).\n  External-client work has no server-owned JSONL; use the shared\n  `ExternalAgentCard`. Raw\u002Fcached tasks may have only progress text. Classify\n  the producer before promising a thinking\u002Ftool timeline (see\n  `cl_surfacing-agent-work`).\n- **A live UI transition needs a reliable trigger, not just a push.** A panel that\n  must flip state mid-job may not depend solely on a best-effort broadcast — back it\n  off the per-task stream you already hold. Pattern, worked example, and the\n  \"only updates after I refresh\" fingerprint: [[cl_live-state-sync]].\n- **Meaning carries the style, not decoration.** Prefer a status dot, a coloured\n  border-inset, or a typed chip over a heavy accent. (The TestCard has no\n  decorative left-accent — the verified dot + `@req-*` chips already say it.)\n- **Worst-first ordering.** Lists of work (gaps, failures) sort the items that need\n  attention to the top; \"all good\" sinks to the bottom.\n- **Never dead-end, never blank.** Every state has a rendering with a next action\n  (a `Setup needed` empty state offers Generate). While a long job runs, give it a\n  dedicated screen that owns the view (the Coverage Generating pane) instead of a\n  stale\u002Fempty ledger behind a banner — the work-in-progress IS the content.\n- **One exercise, not exposed seams.** When two steps are really one user goal\n  (PRD summary → coverage mapping), present one flow with chained progress and one\n  set of actions (Regenerate summary \u002F Regenerate coverage) — don't leak the\n  internal two-job boundary or a per-item review gate the user must babysit.\n- **Route the selection that should survive refresh.** Top-level view and\n  feature live in the URL + `localStorage` and sync across tabs. Run, dialog,\n  flight, stage, and config tab live in the URL only, so two tabs can inspect\n  different details without moving each other. See\n  `apps\u002Fweb\u002Fsrc\u002Fshared\u002Flib\u002Fworkspace-view-state.ts` and `cl_route-every-surface`.\n  Ephemeral UI (hover, transient filters) stays in React state.\n- **One owner for a long-lived lifecycle; don't split it across views.** A background\n  job (or any cross-view live state) must be owned ONCE at the screen level — one\n  poller, rehydrated on open — and every panel reads from it. The Coverage dialog's\n  worst bug came from two tabs each owning their own job + poller that unmounted on\n  switch (orphaned jobs, \"nothing happened\", raw 409s). The fix wasn't more hydration\n  — it was collapsing the tabs into one never-unmounting view. **Prefer one view with\n  panels\u002Frails over tabs when the tabs share live state.** Treat a \"already running\"\n  conflict as *attach to the existing*, never an error in the user's face.\n- **Distinct view per lifecycle state.** Empty \u002F generating \u002F final each get their own\n  rendering off the single derived state — not one layout that's half-populated. A\n  long-running job earns a full-screen takeover (you watch the agent); the resting\n  states show the working surface.\n- **Density with breathing room.** Tight vertical rhythm (8–12px gaps), small type\n  (10–13px), monospace for ids\u002Ftags\u002Fpaths. Information-rich, not cramped.\n- **Restrained motion.** Subtle opacity\u002Fbackground transitions (~120ms) for\n  hover\u002Factive; a pulse for \"live\". Headless preview forces reduced-motion — don't\n  rely on animation to convey state (use static SVG for the coverage ring).\n- **Two-way affordances.** Hovering one side of a relation lights the other and\n  dims the rest (the ledger's test↔requirement highlight) — makes structure legible.\n- **No layout shift from a scrollbar.** On any scroller whose content grows\u002Fshrinks\n  with a toggle or filter (a disclosure, a gap filter), set `scrollbar-gutter: stable`\n  so the appearing scrollbar doesn't eat content width and jump the layout sideways.\n\n## Verify\n\nComponent behaviour is happy-dom-tested (`*.test.tsx`); the live look needs the\n`canary-apply` cycle — see `cl_verify-changes` Tier 3 for who runs it. Typecheck with\n`tsconfig.build.json`.\n",{},"main","2c85305cab69e5f773d59ea79a64a0b049a98345",".codex\u002Fskills\u002Fcl_ui-design-philosophy",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":7,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add ferterahadi\u002Fcanary-lab --skill cl_ui-design-philosophy",{"tool":46,"command":47},"bunx","bunx skills add ferterahadi\u002Fcanary-lab --skill cl_ui-design-philosophy",{"tool":49,"command":50},"pnpm","pnpm dlx skills add ferterahadi\u002Fcanary-lab --skill cl_ui-design-philosophy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fcl_ui-design-philosophy\u002FSKILL.md",true,[],[55,62,70,80,107,125],{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":25},"01M6XCWFJ75NNVF0N8C0XGNC17","off-by-one","https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002Fapps\u002Fweb-server\u002Fprompts\u002Fsabotage-skills\u002Foff-by-one\u002Fskill.md",[],[61],"off by one",{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":25},"01M6XCWBYW1QHVFKSDQCCRRRDT","multi-failure-cascade","https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002Fapps\u002Fweb-server\u002Fprompts\u002Fsabotage-skills\u002Fmulti-failure-cascade\u002Fskill.md",[],[68,69],"multi","multi failure cascade",{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":25},"01M6XCW8XA7QY74Q18D9PGFFMD","broken-delete-contract","https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002Fapps\u002Fweb-server\u002Fprompts\u002Fsabotage-skills\u002Fbroken-delete-contract\u002Fskill.md",[],[76,77,78,79],"delete","broken","contract","broken delete contract",{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":25},"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",[],[87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106],"lab","canary","canary lab","capability","pipeline","work","only","take","green","get","end","app","respond","suite","product","bare","when","start","MCP","run",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":25},"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",[],[88,114,87,115,89,96,105,116,117,106,118,119,120,121,122,97,98,123,124,103],"verify","canary lab verify","config","create","update","verification","Tools","loop","list","checkout","result",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":25},"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",[],[132,89,106,88,87,97,96,133,134,121,120,104,135,105,103,136,137,98,138,139],"canary lab run","fix","context","code","rerun","wait","new repo","failing"]