[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XCKQSSB4BZE28KT8D29TJP":3,"skill-same:01M6XCKQSSB4BZE28KT8D29TJP":65},{"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":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":46,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6XCKQSSB4BZE28KT8D29TJP","cl_surfacing-agent-work",null,"Use when building or changing any UI that shows an agent's progress or output (live or historical), when choosing how to stream agent output, or when a user says an agent view \"looks stuck\" \u002F \"I can't see the output\". Prevents designing a viewer before knowing what the agent actually produces.","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_surfacing-agent-work\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"cl surfacing agent work","work","cl","progress","when","stream","viewer","can","output","how to","ui","live","what the","use","user","view","how","2026-11-10 10:12:30",false,"---\nname: cl_surfacing-agent-work\ndescription: Use when building or changing any UI that shows an agent's progress or output (live or historical), when choosing how to stream agent output, or when a user says an agent view \"looks stuck\" \u002F \"I can't see the output\". Prevents designing a viewer before knowing what the agent actually produces.\n---\n\n# Surfacing an Agent's Work (without overpromising)\n\nSkip when: the view is blank because the session-log path is wrong\n(`CLAUDE_CONFIG_DIR`\u002F`CODEX_HOME`, missing JSONL) → `cl_locate-agent-session-logs`;\nnon-agent UI styling → `cl_ui-design-philosophy`; generic \"only updates after\nrefresh\" staleness → `cl_live-state-sync`.\n\nThe expensive, repeated mistake on this codebase: **building the viewer before\ngrounding in the agent's real execution model.** A polished \"watch the agent\nthink \u002F read \u002F work\" surface is worthless — and reads as *stuck* — if the agent\nbehind it is a single completion that produces no such trace. Match the surface to\nwhat the agent actually emits, and tell the user the limits *before* you build.\n\n## Step 0 — classify the agent BEFORE designing anything\n\nFind the spawn and answer one question: **is this an agentic loop or a one-shot\ncompletion?**\n\n| Shape | How to spot it | What it can show |\n| --- | --- | --- |\n| **Agentic loop** | spawned to read\u002Fiterate with tools: the heal agent, **and PRD-summary + coverage-mapping** (their prompts list file paths and make the agent read the docs\u002Fspecs itself) — long-running, writes tool_use \u002F tool_result \u002F thinking to its session log | A genuine timeline — reads, thinks, tool calls, results, multiple turns |\n| **One-shot completion** | A prompt that **inlines all context** and whose observed run makes no tool calls (often the evaluation rewrite). `codex exec` alone does not establish this shape; it can run an agentic loop. | Only the prompt + one final answer when no tools are used. No read\u002Fthink\u002Ftool timeline to show. |\n\n**Don't classify by spawn flags alone.** `claude -p --dangerously-skip-permissions`\nalready has tools ON — what makes a spawn one-shot *in practice* is a prompt that\ninlines every input, so the model never needs to call a tool. PRD-summary +\ncoverage-mapping prompts list file *paths* and require reading them, so they stream\na real read\u002Fthink\u002Ftool timeline through `AgentSessionView`. The evaluation rewrite\ninlines its evidence packet, so it is one-shot.\n\nIf it is one-shot, **say so up front** and scope the view to reality. A session\nviewer may show only the final block. If the user needs to watch answer text\narrive, use a supported stdout stream; if they need real read\u002Ftool steps, give\nthe task inputs the agent must inspect and verify that it actually uses tools.\n\n## Two transports — pick the one that fits the shape\n\n| Transport | What it is | Good for | Cannot |\n| --- | --- | --- | --- |\n| **On-disk session JSONL** — `AgentSessionView` tails it (REST snapshot + `\u002Fws\u002F...\u002Fagent-session`, parsed by `agent-session-log.ts`) | The agent CLI's own session file; the parser emits **complete events only** | Agentic loops; historical replay; the structured rail (thinking\u002Ftool\u002Fresult rows, model+session header) | **Token-stream a one-shot** — the assistant block only lands at *completion*, by which point the job is done and the view moves on, so you see just the prompt |\n| **Claude stdout `--output-format=stream-json --include-partial-messages`** | The live token stream on stdout; parse deltas yourself (see `features\u002Fagent-sessions\u002Flogic\u002Fagent-stream.ts`) | Watching a Claude one-shot write its answer in real time | Give you the structured tool\u002Fthink rows for free — you render the text. Check Codex's actual output format separately. |\n\nRule of thumb: **agentic loop → AgentSessionView (file tail). Claude one-shot\nwhose answer must stream → stream-json stdout → a live log.** For Codex, inspect\nthe CLI output this spawn actually uses before choosing a streaming view. The file\ntail physically cannot show token partials (the JSONL records whole blocks, and the\nshared parser drops partial lines). See [[cl_ui-design-philosophy]] \"One agent\ntimeline everywhere\" for when the structured rail IS the right call.\n\n## Honesty \u002F anti-overpromise\n\n- When a user asks to \"see what the agent is doing,\" **answer with the agent's shape\n  first**, then build. \"These are one-shot inferences — there's no read\u002Fthink trace;\n  the most you can watch is the answer stream in\" is the honest framing. Saying it at\n  design time is cheap; discovering it after shipping costs a rebuild.\n- Don't ship a thinner proxy (a flat `\u003Cpre>` log behind a toggle) for the thing the\n  user explicitly asked to see and call it done. Either deliver the real view or\n  surface the constraint and decide together. A toggle that flips between two equally\n  empty states \"does nothing\".\n- Verify the data **exists** before designing the view that displays it. If you can't\n  confirm the wire shape locally (e.g. claude's stream-json — needs the user's\n  `canary-apply` env), say so, parse defensively, and degrade safely.\n\n## Persist the LIVE lifecycle, not just navigation\n\nA generation\u002Fheal job is durable server-side. If the UI shows it, the UI must\n**rehydrate the running job on open** (query the job list, re-attach the poller) —\nnot just restore which view\u002Ffeature was selected. Persisting navigation but not the\nin-flight job is why \"refresh during generating loses the state\" even though the\nheader still says *Generating*. One owner for the job lifecycle; every panel reads\nit (see [[cl_ui-design-philosophy]] \"One owner for a long-lived lifecycle\" and\n[[cl_async-task-ux]]).\n\n## Common mistakes\n\n| Mistake | Symptom | Fix |\n| --- | --- | --- |\n| Mounted a tool-loop timeline on a one-shot agent | \"1 event\", looks stuck | Classify first; stream-json stdout → live log for one-shots |\n| Promised \"watch it think\u002Fread\" for an agent with no tools | User bounces twice | State the shape up front; scope the view to it |\n| File-tail viewer expected to token-stream | Only the prompt shows until completion, then the view closes | Use stdout stream-json for the live token feel |\n| Persisted view+feature but not the running job | Refresh mid-job → empty ledger | Rehydrate the active job on mount |\n| Deferred the core \"see the agent\" ask with a flat-log placeholder | \"the toggle does nothing\" | Do it properly or surface the real constraint |\n\n## Verify\n\nStream parsing is pure + unit-tested (`features\u002Fagent-sessions\u002Flogic\u002Fagent-stream.test.ts`) so the logic\nis checkable without a live agent; the actual wire shape needs the `canary-apply`\ncycle (see `cl_verify-changes` Tier 3). Component behaviour is happy-dom-tested.\n","# Surfacing an Agent's Work (without overpromising)\n\nSkip when: the view is blank because the session-log path is wrong\n(`CLAUDE_CONFIG_DIR`\u002F`CODEX_HOME`, missing JSONL) → `cl_locate-agent-session-logs`;\nnon-agent UI styling → `cl_ui-design-philosophy`; generic \"only updates after\nrefresh\" staleness → `cl_live-state-sync`.\n\nThe expensive, repeated mistake on this codebase: **building the viewer before\ngrounding in the agent's real execution model.** A polished \"watch the agent\nthink \u002F read \u002F work\" surface is worthless — and reads as *stuck* — if the agent\nbehind it is a single completion that produces no such trace. Match the surface to\nwhat the agent actually emits, and tell the user the limits *before* you build.\n\n## Step 0 — classify the agent BEFORE designing anything\n\nFind the spawn and answer one question: **is this an agentic loop or a one-shot\ncompletion?**\n\n| Shape | How to spot it | What it can show |\n| --- | --- | --- |\n| **Agentic loop** | spawned to read\u002Fiterate with tools: the heal agent, **and PRD-summary + coverage-mapping** (their prompts list file paths and make the agent read the docs\u002Fspecs itself) — long-running, writes tool_use \u002F tool_result \u002F thinking to its session log | A genuine timeline — reads, thinks, tool calls, results, multiple turns |\n| **One-shot completion** | A prompt that **inlines all context** and whose observed run makes no tool calls (often the evaluation rewrite). `codex exec` alone does not establish this shape; it can run an agentic loop. | Only the prompt + one final answer when no tools are used. No read\u002Fthink\u002Ftool timeline to show. |\n\n**Don't classify by spawn flags alone.** `claude -p --dangerously-skip-permissions`\nalready has tools ON — what makes a spawn one-shot *in practice* is a prompt that\ninlines every input, so the model never needs to call a tool. PRD-summary +\ncoverage-mapping prompts list file *paths* and require reading them, so they stream\na real read\u002Fthink\u002Ftool timeline through `AgentSessionView`. The evaluation rewrite\ninlines its evidence packet, so it is one-shot.\n\nIf it is one-shot, **say so up front** and scope the view to reality. A session\nviewer may show only the final block. If the user needs to watch answer text\narrive, use a supported stdout stream; if they need real read\u002Ftool steps, give\nthe task inputs the agent must inspect and verify that it actually uses tools.\n\n## Two transports — pick the one that fits the shape\n\n| Transport | What it is | Good for | Cannot |\n| --- | --- | --- | --- |\n| **On-disk session JSONL** — `AgentSessionView` tails it (REST snapshot + `\u002Fws\u002F...\u002Fagent-session`, parsed by `agent-session-log.ts`) | The agent CLI's own session file; the parser emits **complete events only** | Agentic loops; historical replay; the structured rail (thinking\u002Ftool\u002Fresult rows, model+session header) | **Token-stream a one-shot** — the assistant block only lands at *completion*, by which point the job is done and the view moves on, so you see just the prompt |\n| **Claude stdout `--output-format=stream-json --include-partial-messages`** | The live token stream on stdout; parse deltas yourself (see `features\u002Fagent-sessions\u002Flogic\u002Fagent-stream.ts`) | Watching a Claude one-shot write its answer in real time | Give you the structured tool\u002Fthink rows for free — you render the text. Check Codex's actual output format separately. |\n\nRule of thumb: **agentic loop → AgentSessionView (file tail). Claude one-shot\nwhose answer must stream → stream-json stdout → a live log.** For Codex, inspect\nthe CLI output this spawn actually uses before choosing a streaming view. The file\ntail physically cannot show token partials (the JSONL records whole blocks, and the\nshared parser drops partial lines). See [[cl_ui-design-philosophy]] \"One agent\ntimeline everywhere\" for when the structured rail IS the right call.\n\n## Honesty \u002F anti-overpromise\n\n- When a user asks to \"see what the agent is doing,\" **answer with the agent's shape\n  first**, then build. \"These are one-shot inferences — there's no read\u002Fthink trace;\n  the most you can watch is the answer stream in\" is the honest framing. Saying it at\n  design time is cheap; discovering it after shipping costs a rebuild.\n- Don't ship a thinner proxy (a flat `\u003Cpre>` log behind a toggle) for the thing the\n  user explicitly asked to see and call it done. Either deliver the real view or\n  surface the constraint and decide together. A toggle that flips between two equally\n  empty states \"does nothing\".\n- Verify the data **exists** before designing the view that displays it. If you can't\n  confirm the wire shape locally (e.g. claude's stream-json — needs the user's\n  `canary-apply` env), say so, parse defensively, and degrade safely.\n\n## Persist the LIVE lifecycle, not just navigation\n\nA generation\u002Fheal job is durable server-side. If the UI shows it, the UI must\n**rehydrate the running job on open** (query the job list, re-attach the poller) —\nnot just restore which view\u002Ffeature was selected. Persisting navigation but not the\nin-flight job is why \"refresh during generating loses the state\" even though the\nheader still says *Generating*. One owner for the job lifecycle; every panel reads\nit (see [[cl_ui-design-philosophy]] \"One owner for a long-lived lifecycle\" and\n[[cl_async-task-ux]]).\n\n## Common mistakes\n\n| Mistake | Symptom | Fix |\n| --- | --- | --- |\n| Mounted a tool-loop timeline on a one-shot agent | \"1 event\", looks stuck | Classify first; stream-json stdout → live log for one-shots |\n| Promised \"watch it think\u002Fread\" for an agent with no tools | User bounces twice | State the shape up front; scope the view to it |\n| File-tail viewer expected to token-stream | Only the prompt shows until completion, then the view closes | Use stdout stream-json for the live token feel |\n| Persisted view+feature but not the running job | Refresh mid-job → empty ledger | Rehydrate the active job on mount |\n| Deferred the core \"see the agent\" ask with a flat-log placeholder | \"the toggle does nothing\" | Do it properly or surface the real constraint |\n\n## Verify\n\nStream parsing is pure + unit-tested (`features\u002Fagent-sessions\u002Flogic\u002Fagent-stream.test.ts`) so the logic\nis checkable without a live agent; the actual wire shape needs the `canary-apply`\ncycle (see `cl_verify-changes` Tier 3). Component behaviour is happy-dom-tested.\n",{"name":5,"description":7},"main","2c85305cab69e5f773d59ea79a64a0b049a98345",".claude\u002Fskills\u002Fcl_surfacing-agent-work",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":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add ferterahadi\u002Fcanary-lab --skill cl_surfacing-agent-work",{"tool":57,"command":58},"bunx","bunx skills add ferterahadi\u002Fcanary-lab --skill cl_surfacing-agent-work",{"tool":60,"command":61},"pnpm","pnpm dlx skills add ferterahadi\u002Fcanary-lab --skill cl_surfacing-agent-work","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcl_surfacing-agent-work\u002FSKILL.md",true,[],[66,73,81,91,116,134],{"skillNo":67,"name":68,"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":69,"categories":70,"keywords":71,"publishedAt":36},"01M6XCWFJ75NNVF0N8C0XGNC17","off-by-one","https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002Fapps\u002Fweb-server\u002Fprompts\u002Fsabotage-skills\u002Foff-by-one\u002Fskill.md",[],[72],"off by one",{"skillNo":74,"name":75,"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":76,"categories":77,"keywords":78,"publishedAt":36},"01M6XCWBYW1QHVFKSDQCCRRRDT","multi-failure-cascade","https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002Fapps\u002Fweb-server\u002Fprompts\u002Fsabotage-skills\u002Fmulti-failure-cascade\u002Fskill.md",[],[79,80],"multi","multi failure cascade",{"skillNo":82,"name":83,"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":84,"categories":85,"keywords":86,"publishedAt":36},"01M6XCW8XA7QY74Q18D9PGFFMD","broken-delete-contract","https:\u002F\u002Fgithub.com\u002Fferterahadi\u002Fcanary-lab\u002Fblob\u002Fmain\u002Fapps\u002Fweb-server\u002Fprompts\u002Fsabotage-skills\u002Fbroken-delete-contract\u002Fskill.md",[],[87,88,89,90],"delete","broken","contract","broken delete contract",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":36},"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",[],[98,99,100,101,102,20,103,104,105,106,107,108,109,110,111,112,23,113,114,115],"lab","canary","canary lab","capability","pipeline","only","take","green","get","end","app","respond","suite","product","bare","start","MCP","run",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":36},"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",[],[99,123,98,124,100,106,114,125,126,115,127,128,129,130,131,107,108,132,133,23],"verify","canary lab verify","config","create","update","verification","Tools","loop","list","checkout","result",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":36},"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",[],[141,100,115,99,98,107,106,142,143,130,129,113,144,114,23,145,146,108,147,148],"canary lab run","fix","context","code","rerun","wait","new repo","failing"]