[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AH4RS9KC85Z7YRBJV7SHBZ":3,"skill-same:01M7AH4RS9KC85Z7YRBJV7SHBZ":46},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7AH4RS9KC85Z7YRBJV7SHBZ","taku-subapp-development",null,"Use when building or migrating a Taku App, especially when translating an existing web or Python-backed app into the canonical Next.js runtime.","Taku-OS\u002Ftaku-publisher","Taku-OS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F242648642?v=4","01M7AGYHVCEEBAW81J66VTD02B","Taku","01M7AGYHW0V1BB3NZ91MDS4TN4",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fpackages\u002Frepo-to-stax-converter\u002Ftemplate\u002Ftakuai-template\u002F.taku-template\u002Fpayload\u002F.claude\u002Fskills\u002Ftaku-subapp-development\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: taku-subapp-development\ndescription: Use when building or migrating a Taku App, especially when translating an existing web or Python-backed app into the canonical Next.js runtime.\n---\n\n# Taku App Development\n\n## Start from the runtime contract\n\nRead `taku.manifest.json`, `package.json`, `CLAUDE.md`, `src\u002Fapp\u002Flayout.tsx`, and the relevant source before editing. Preserve `src\u002F__taku\u002F`, the host bridge, preview\u002Fedit scripts, manifest serving, and existing proxy rewrites.\n\nUse Node.js 20 and the package manager version declared in `package.json`. A Taku App is one canonical Next.js runtime unless a versioned Taku Host\u002Ftemplate contract already implements and documents another runtime. Editing the app's manifest or docs cannot authorize a sidecar that the Host does not support.\n\n## When migrating an upstream app\n\nWrite a capability matrix before implementation:\n\n| Upstream capability | Taku target | Decision |\n| --- | --- | --- |\n| UI and interaction | `src\u002Fapp\u002F` and `src\u002Fcomponents\u002F` | port or preserve |\n| HTTP\u002Fbackend logic | authorized narrow Route Handler plus server-only module | rewrite or block |\n| durable user state | Drizzle\u002FSQLite or existing `taku-data` | migrate |\n| host-callable operation | `src\u002Factions\u002F` plus manifest | expose as Action |\n| Python-only or daemon behavior | no implicit sidecar | replace or block |\n| third-party credential | Taku-managed proxy\u002Fservice | never copy the key |\n\nTreat unresolved core behavior as a publish blocker. Only the user can approve removing a capability from migration scope; an Agent cannot reclassify a hard capability as non-core to pass a gate. Do not silently replace live behavior with fake data or a deterministic demo.\n\nWhen managed authority is blocked, keep the managed operation visibly blocked and implement the maximum safe local read-only preparation, analysis, or exportable artifact that preserves product value. A catalog of disabled controls is not a workflow. Never fake managed output. The local artifact must derive only from user-provided or already-authorized local data and be labeled as preparation or analysis, never as the managed operation's result. Keep only that managed or external operation blocked rather than downgrading the whole Taku App to a tool-free or read-only experience: a separate Host-authorized local workflow may read or write granted files, run terminal commands, and open or operate granted desktop applications, and its result must accurately describe what actually ran.\n\nBefore coding, name one primary safe workflow from the capability matrix and make the page use the same domain code that its executable product test exercises.\n\nA blocked, readiness, status-only, or capability-reporting Action does not satisfy the core workflow smoke gate.\n\nWhen browser smoke cannot run, extract the primary local workflow's domain transformation or state transition, cover successful and rejected inputs in an executable test, and leave browser behavior explicitly unverified.\n\nAn `upstream-source\u002F` snapshot may remain as migration reference only when it is excluded from build\u002Fruntime\u002Ftypecheck, never executed, and tied to source provenance. It is not a supported second runtime.\n\n## Services, uploads, and data\n\n- Read `.taku\u002Fcontext\u002Fservice-api\u002F\u003CserviceId>\u002Fendpoints.json` before considering a managed service. Do not guess paths or schemas, and do not treat a discovered endpoint as authorization to call it.\n- A server-only helper or Host-injected token is not request authorization. Without a versioned Taku-controlled server authority contract that validates identity, ownership, operation scope, entitlement, quota, and replay, keep the capability visibly blocked.\n- Do not ship `\u002Fapi\u002Factions`, `\u002Fapi\u002Factions\u002F\u003Cname>`, `\u002Fapi\u002Fai\u002Fcompletion`, or `\u002Fapi\u002Fai\u002Fimage\u002Fgenerate`. Do not recreate a generic proxy, collection, upload, filesystem, shell, or tool route.\n- Only after the authority contract exists, validate upload MIME type, size, filename, ownership, and failure behavior at the narrow domain-specific Route Handler boundary. Store URLs and business metadata rather than blobs in generic JSON records. Do not use the Taku App filesystem as production business-file persistence.\n- Each domain mutation has one server-only operation for validation and durable work. The Host Action calls it through fail-closed `\u002F__taku\u002Frpc`. An authorized domain-specific Route Handler calls the same server-only operation as the Action handler only when the real server authority exists; otherwise browser mutation remains blocked. Do not expose a generic collection HTTP endpoint or let clients write raw records.\n- Never put provider keys in client code, `.env`, generated files, local storage, URLs, logs, or responses. `TAKU_CONTROL_TOKEN` is only a local transport capability, never user or billing authority.\n- Do not expose filesystem or shell tool execution through a public or unauthenticated route. Any explicit product requirement for that authority must use the Host Agent Runtime and needs a host-authenticated, authorized contract plus a process-level sandbox covering filesystem, environment, processes, and network; prompts and command blacklists do not qualify. The Host grants terminal, desktop-app, and other negotiated tools per app and re-authorizes them for the current run, scopes them to the approved files, folders, applications, and operations, and asks for explicit confirmation before destructive or otherwise dangerous work. Do not impose the app workspace as a universal boundary when the user has selected and the Host has granted another local resource.\n\n## Host Agent Runtime\n\nRead `docs\u002Fsubapp-agent-runtime.md` before using the Host Agent Runtime. It is a separate Host capability, not an ordinary Action, public API, or way to add an AI backend to the Taku App. Do not register its operations under `actions`, wrap its methods in a Route Handler, or recreate its transport outside `@\u002Flib\u002Ftaku-runtime`.\n\nKeep `runtimeCapabilities` absent unless the product workflow actually needs a Host operation. When it does, declare only the exact protocol, operation ID, and revision the app calls. The SDK recognizes revision `1` of `agent.execute`, `research.generateReport`, `media.image.generate`, and `media.video.generate`; the default manifest requests none, and a declaration is never a grant. The protocol is experimental and pre-release, so do not describe a fixture or an unverified Host capability as production AI.\n\nTreat `capabilities().features` as a negotiated intersection. Unknown optional client features must not break hello; require `content-ref-v1`, `operation-catalog-v1`, or `asset-open-v1` only at the call site that needs it. Use the authenticated operation catalog and its JSON Schema\u002Fdefaults for the common media fields; never hard-code or offer provider, model, quality tier, or provider-specific controls. The current product defaults are image `aspectRatio: \"1:1\"` and video `aspectRatio: \"16:9\"` with `durationSeconds: 4`; `start()` does not inject them, so omission stays omission and Taku Proxy applies the advertised defaults. Do not send removed v1 inputs such as `quality`, `profile`, batch `count`, or `aspectRatio: \"auto\"`; Taku Proxy owns model selection and fallback. The currently described media workflows are text-to-image and text-to-video only; image-to-video, first\u002Flast-frame video, audio, 3D, and other reserved capabilities must stay hidden unless a future Host catalog explicitly advertises them.\n\nKeep engine and tool implementation details on the Host side so Desktop can update Codex, Claude, bridges, and model routing without requiring every Taku App to update. The Taku App sends product-level task input plus any operation-scoped capability request or Host-issued resource handle defined by the versioned contract. `capabilities()` represents what this app may request; `start()` must still be authorized for the current run. A grant for one app or run must not be reused by another. Routine authorized work can proceed within that grant, while destructive, irreversible, privileged, or unexpectedly broad work must pause for explicit user confirmation. Host model keys, proxy credentials, service tokens, and other long-lived secrets never enter the Taku App or runtime wire.\n\nUse the exported client from `@\u002Flib\u002Ftaku-runtime`. Call `capabilities()` first and require an exact operation\u002Frevision grant before `start()`. Treat its authenticated `recoveryScope` as an opaque Host-owned recovery boundary; never derive or interpret one from an email, user ID, token, release, runtime kind, or other app-controlled value. Every `start()` must send that exact value as `expectedRecoveryScope`; a Host scope change must fail before any run or runner side effect. Create one idempotency key per logical request, keep it with that request for the current view, and reuse it whenever a start outcome is unknown. Keep the returned `runId` and latest cursor as product state. Use `subscribe()` for ordered progress, `get()` to restore a retained run, `result()` only after success, and `cancel(runId)` for an explicit user cancellation; aborting a page wait does not cancel a Host run.\n\nIf the local-fixture workflow promises recovery after a same-tab reload, use `createTakuAgentRunJournal({ recoveryScope: capabilities.recoveryScope })` plus `recoverOrStartTakuAgentRun()` from the SDK instead of hand-writing storage or open-coding recovery. The versioned, TTL-bounded `sessionStorage` ledger is written before start and every mutation carries its immutable `entryId`. A valid matching entry with `runId` is reconciled only through `get(runId)`; one without `runId` retries the original normalized input and idempotency key. Invalid, expired, future-dated, wrong-TTL, or wrong-scope evidence must block automatic restart and wait for an explicit user choice to start over. Scope changes discard the old entry without interpreting why it changed. Non-terminal cursors advance monotonically; coherent `succeeded`, `failed`, and `cancelled` cursors clear only their captured entry. Definitive request rejection may clear that entry, while unknown-delivery errors retain its identity. Journal update\u002Fcleanup failures are secondary recovery warnings: they must not block or replace the actual run result\u002Ferror, and a subscription error must end the current UI wait. In particular, do not settle a generic failure on `run.state=failed` before the following detailed `run.error`; reconcile the latest snapshot as a fallback. This journal is not durable business data and does not promise recovery across a window\u002FDesktop restart, another device, or production. Longer-lived recovery requires an already-authorized durable app store and remains a publish blocker until that contract exists.\n\nThe product UI must represent unavailable\u002Fnot granted, running progress, success, failure with a recoverable retry path, and cancelling\u002Fcancelled states. Restore only runs for which the app retained a trustworthy journal; do not turn a page reload, subscription gap, or transport timeout into a duplicate job or fabricated success. For large text, use `readContent()` or `readContentText()` and verify the complete reference rather than truncating it. Media results contain only opaque `assetRef` descriptors; call `openAsset(assetRef)` for a fresh short-lived range-capable playback grant, never persist or share `playbackUrl`, and call again after expiry. Never place Codex or Claude CLI details or executable details, Host model\u002Fprovider configuration, proxy URLs, provider URLs or paths, long-lived credentials, or control\u002Fsession keys in the Taku App, manifest, persisted business state, runtime input, or logs. Versioned operation input may include product intent, requested capability categories, and opaque Host-issued resource handles; it must not smuggle raw Host configuration or credentials.\n\nFor long-running generation, include a visible cancel action once an accepted `runId` is available. Disable repeat clicks synchronously, call `client.cancel(runId)`, and keep the original subscription until the Host confirms a terminal state. A cancel RPC receipt is not proof of cancellation; a failed request may retry cancellation of the same run, never create a replacement job. Late cancellation responses must not overwrite a completed result or a newer run. The executable example is `docs\u002Fexamples\u002Fsubapp-agent-runtime-qa\u002FAgentRuntimeQaPanel.tsx` with its adjacent `run-cancellation.ts`; reuse only the cancellation wiring, not the QA interface.\n\n## Product UI\n\nBuild the usable workflow on the first screen. Reuse real local primitives, use static and unique semantic `data-slot` values, and cover loading, empty, error, retry, disabled, narrow, and wide states. Every `data-slot` must be a quoted static string literal; never use a variable, template expression, conditional expression, or spread.\n\nFor every supported transformation, preserve information without loss in a round-trip or reject unsupported input before mutation. Add a focused round-trip contract test for the accepted and rejected paths; do not hide loss behind a best-effort rewrite.\n\nFor structured text, enumerate each accepted token boundary, including delimiters, quote and escape rules, statement separators, comment tokens, and their cross-boundary combinations. Build the positive contract matrix from those boundaries, then run parse → serialize → parse for every cell and assert that the two parsed values are deeply equivalent; isolated token fixtures or parse success alone are insufficient. If the grammar has no symmetric escape for an accepted value, reject that value before any mutation instead of accepting input that the serializer cannot represent.\n\nTreat empty strings, whitespace-only values, and leading or trailing whitespace as distinct cells rather than defaults. Include structural tokens inside quoted fields, compact forms without separator whitespace, and every accepted operator variant. A parser that accepts a value must either round-trip that exact semantic value through the serializer or reject it before persistence.\n\nDiagnostics for malformed, unparsed, ignored, or only partially modeled business input are not a persistable success. Only explicitly classified metadata warnings that preserve semantics across every relevant representation and consumer may continue. For every mutation that accepts a transformation result, rejection-path tests must assert that its durable writer or side-effect boundary was never called.\n\nCustom pointer interaction must have an equivalent keyboard path, logical focus behavior, and announced state. Relationship IDs must come from React `useId()` values for label, ARIA, and SVG definition\u002Freference pairs; never use static string literals, random values, data-derived values, or indexes for those relationships.\n\nDynamic read-only visualizations do not need fake interactive controls, but they must provide an equivalent textual summary and announce meaningful updates when no triggering control already announces the change. Render a live computed status or result with semantic `\u003Coutput>` when it is the result of user input.\n\nModel asynchronous UI work as an explicit consistency contract. Replacing a dirty draft requires confirmation, and the latest request wins for every independently refreshed resource. A stale success or failure must not overwrite data or attach an error to the current screen after selection changes. Reconcile save acknowledgements by advancing the persisted baseline while preserving edits typed after the request began; cover out-of-order promises in executable tests.\n\nFor any feature with bounded interactive capacity, enforce shared domain limits before persistence and rendering, and reuse the same constants in UI controls. Exercise maximum-size inputs at the accepted and rejected boundaries. For a graph or spatial renderer, when the domain supports cycles or self-references, exercise them and assert that every rendered node and edge stays within computed layout bounds.\n\nFor parsers that expand fan-out or cross-products, calculate the expansion before allocation and enforce independent node and edge budgets derived from domain limits, not only the raw input length. Reject over-budget input with diagnostics before constructing intermediate strings, arrays, nodes, or edges, and cover adversarial cross-products at both sides of the boundary.\n\n## Source review when tools cannot run\n\nWhen the shell is unavailable, perform a no-shell Biome self-review of formatting, imports, `import type`, unused symbols, and stable React\u002FARIA\u002FSVG ID pairs. Complete a manual import order and formatting audit before handoff. Do not add suppressions to evade review, and do not claim Biome ran without fresh command evidence.\n\nAn unexecuted test is not coverage. If its intended behavior is cited, trace its critical assertions to the implementation, mark it unexecuted, and do not pass any behavior claim or verification gate that depends on executing it.\n\nWithout executable tests, do not claim a spatial or algorithmic bug is fixed from inspection alone. Manually calculate at least one non-square counterexample for every axis or direction and one cyclic or self-referential case, while keeping the gate unpassed until execution.\n\nFinish with the gates in `taku-subapp-verification`.\n","# Taku App Development\n\n## Start from the runtime contract\n\nRead `taku.manifest.json`, `package.json`, `CLAUDE.md`, `src\u002Fapp\u002Flayout.tsx`, and the relevant source before editing. Preserve `src\u002F__taku\u002F`, the host bridge, preview\u002Fedit scripts, manifest serving, and existing proxy rewrites.\n\nUse Node.js 20 and the package manager version declared in `package.json`. A Taku App is one canonical Next.js runtime unless a versioned Taku Host\u002Ftemplate contract already implements and documents another runtime. Editing the app's manifest or docs cannot authorize a sidecar that the Host does not support.\n\n## When migrating an upstream app\n\nWrite a capability matrix before implementation:\n\n| Upstream capability | Taku target | Decision |\n| --- | --- | --- |\n| UI and interaction | `src\u002Fapp\u002F` and `src\u002Fcomponents\u002F` | port or preserve |\n| HTTP\u002Fbackend logic | authorized narrow Route Handler plus server-only module | rewrite or block |\n| durable user state | Drizzle\u002FSQLite or existing `taku-data` | migrate |\n| host-callable operation | `src\u002Factions\u002F` plus manifest | expose as Action |\n| Python-only or daemon behavior | no implicit sidecar | replace or block |\n| third-party credential | Taku-managed proxy\u002Fservice | never copy the key |\n\nTreat unresolved core behavior as a publish blocker. Only the user can approve removing a capability from migration scope; an Agent cannot reclassify a hard capability as non-core to pass a gate. Do not silently replace live behavior with fake data or a deterministic demo.\n\nWhen managed authority is blocked, keep the managed operation visibly blocked and implement the maximum safe local read-only preparation, analysis, or exportable artifact that preserves product value. A catalog of disabled controls is not a workflow. Never fake managed output. The local artifact must derive only from user-provided or already-authorized local data and be labeled as preparation or analysis, never as the managed operation's result. Keep only that managed or external operation blocked rather than downgrading the whole Taku App to a tool-free or read-only experience: a separate Host-authorized local workflow may read or write granted files, run terminal commands, and open or operate granted desktop applications, and its result must accurately describe what actually ran.\n\nBefore coding, name one primary safe workflow from the capability matrix and make the page use the same domain code that its executable product test exercises.\n\nA blocked, readiness, status-only, or capability-reporting Action does not satisfy the core workflow smoke gate.\n\nWhen browser smoke cannot run, extract the primary local workflow's domain transformation or state transition, cover successful and rejected inputs in an executable test, and leave browser behavior explicitly unverified.\n\nAn `upstream-source\u002F` snapshot may remain as migration reference only when it is excluded from build\u002Fruntime\u002Ftypecheck, never executed, and tied to source provenance. It is not a supported second runtime.\n\n## Services, uploads, and data\n\n- Read `.taku\u002Fcontext\u002Fservice-api\u002F\u003CserviceId>\u002Fendpoints.json` before considering a managed service. Do not guess paths or schemas, and do not treat a discovered endpoint as authorization to call it.\n- A server-only helper or Host-injected token is not request authorization. Without a versioned Taku-controlled server authority contract that validates identity, ownership, operation scope, entitlement, quota, and replay, keep the capability visibly blocked.\n- Do not ship `\u002Fapi\u002Factions`, `\u002Fapi\u002Factions\u002F\u003Cname>`, `\u002Fapi\u002Fai\u002Fcompletion`, or `\u002Fapi\u002Fai\u002Fimage\u002Fgenerate`. Do not recreate a generic proxy, collection, upload, filesystem, shell, or tool route.\n- Only after the authority contract exists, validate upload MIME type, size, filename, ownership, and failure behavior at the narrow domain-specific Route Handler boundary. Store URLs and business metadata rather than blobs in generic JSON records. Do not use the Taku App filesystem as production business-file persistence.\n- Each domain mutation has one server-only operation for validation and durable work. The Host Action calls it through fail-closed `\u002F__taku\u002Frpc`. An authorized domain-specific Route Handler calls the same server-only operation as the Action handler only when the real server authority exists; otherwise browser mutation remains blocked. Do not expose a generic collection HTTP endpoint or let clients write raw records.\n- Never put provider keys in client code, `.env`, generated files, local storage, URLs, logs, or responses. `TAKU_CONTROL_TOKEN` is only a local transport capability, never user or billing authority.\n- Do not expose filesystem or shell tool execution through a public or unauthenticated route. Any explicit product requirement for that authority must use the Host Agent Runtime and needs a host-authenticated, authorized contract plus a process-level sandbox covering filesystem, environment, processes, and network; prompts and command blacklists do not qualify. The Host grants terminal, desktop-app, and other negotiated tools per app and re-authorizes them for the current run, scopes them to the approved files, folders, applications, and operations, and asks for explicit confirmation before destructive or otherwise dangerous work. Do not impose the app workspace as a universal boundary when the user has selected and the Host has granted another local resource.\n\n## Host Agent Runtime\n\nRead `docs\u002Fsubapp-agent-runtime.md` before using the Host Agent Runtime. It is a separate Host capability, not an ordinary Action, public API, or way to add an AI backend to the Taku App. Do not register its operations under `actions`, wrap its methods in a Route Handler, or recreate its transport outside `@\u002Flib\u002Ftaku-runtime`.\n\nKeep `runtimeCapabilities` absent unless the product workflow actually needs a Host operation. When it does, declare only the exact protocol, operation ID, and revision the app calls. The SDK recognizes revision `1` of `agent.execute`, `research.generateReport`, `media.image.generate`, and `media.video.generate`; the default manifest requests none, and a declaration is never a grant. The protocol is experimental and pre-release, so do not describe a fixture or an unverified Host capability as production AI.\n\nTreat `capabilities().features` as a negotiated intersection. Unknown optional client features must not break hello; require `content-ref-v1`, `operation-catalog-v1`, or `asset-open-v1` only at the call site that needs it. Use the authenticated operation catalog and its JSON Schema\u002Fdefaults for the common media fields; never hard-code or offer provider, model, quality tier, or provider-specific controls. The current product defaults are image `aspectRatio: \"1:1\"` and video `aspectRatio: \"16:9\"` with `durationSeconds: 4`; `start()` does not inject them, so omission stays omission and Taku Proxy applies the advertised defaults. Do not send removed v1 inputs such as `quality`, `profile`, batch `count`, or `aspectRatio: \"auto\"`; Taku Proxy owns model selection and fallback. The currently described media workflows are text-to-image and text-to-video only; image-to-video, first\u002Flast-frame video, audio, 3D, and other reserved capabilities must stay hidden unless a future Host catalog explicitly advertises them.\n\nKeep engine and tool implementation details on the Host side so Desktop can update Codex, Claude, bridges, and model routing without requiring every Taku App to update. The Taku App sends product-level task input plus any operation-scoped capability request or Host-issued resource handle defined by the versioned contract. `capabilities()` represents what this app may request; `start()` must still be authorized for the current run. A grant for one app or run must not be reused by another. Routine authorized work can proceed within that grant, while destructive, irreversible, privileged, or unexpectedly broad work must pause for explicit user confirmation. Host model keys, proxy credentials, service tokens, and other long-lived secrets never enter the Taku App or runtime wire.\n\nUse the exported client from `@\u002Flib\u002Ftaku-runtime`. Call `capabilities()` first and require an exact operation\u002Frevision grant before `start()`. Treat its authenticated `recoveryScope` as an opaque Host-owned recovery boundary; never derive or interpret one from an email, user ID, token, release, runtime kind, or other app-controlled value. Every `start()` must send that exact value as `expectedRecoveryScope`; a Host scope change must fail before any run or runner side effect. Create one idempotency key per logical request, keep it with that request for the current view, and reuse it whenever a start outcome is unknown. Keep the returned `runId` and latest cursor as product state. Use `subscribe()` for ordered progress, `get()` to restore a retained run, `result()` only after success, and `cancel(runId)` for an explicit user cancellation; aborting a page wait does not cancel a Host run.\n\nIf the local-fixture workflow promises recovery after a same-tab reload, use `createTakuAgentRunJournal({ recoveryScope: capabilities.recoveryScope })` plus `recoverOrStartTakuAgentRun()` from the SDK instead of hand-writing storage or open-coding recovery. The versioned, TTL-bounded `sessionStorage` ledger is written before start and every mutation carries its immutable `entryId`. A valid matching entry with `runId` is reconciled only through `get(runId)`; one without `runId` retries the original normalized input and idempotency key. Invalid, expired, future-dated, wrong-TTL, or wrong-scope evidence must block automatic restart and wait for an explicit user choice to start over. Scope changes discard the old entry without interpreting why it changed. Non-terminal cursors advance monotonically; coherent `succeeded`, `failed`, and `cancelled` cursors clear only their captured entry. Definitive request rejection may clear that entry, while unknown-delivery errors retain its identity. Journal update\u002Fcleanup failures are secondary recovery warnings: they must not block or replace the actual run result\u002Ferror, and a subscription error must end the current UI wait. In particular, do not settle a generic failure on `run.state=failed` before the following detailed `run.error`; reconcile the latest snapshot as a fallback. This journal is not durable business data and does not promise recovery across a window\u002FDesktop restart, another device, or production. Longer-lived recovery requires an already-authorized durable app store and remains a publish blocker until that contract exists.\n\nThe product UI must represent unavailable\u002Fnot granted, running progress, success, failure with a recoverable retry path, and cancelling\u002Fcancelled states. Restore only runs for which the app retained a trustworthy journal; do not turn a page reload, subscription gap, or transport timeout into a duplicate job or fabricated success. For large text, use `readContent()` or `readContentText()` and verify the complete reference rather than truncating it. Media results contain only opaque `assetRef` descriptors; call `openAsset(assetRef)` for a fresh short-lived range-capable playback grant, never persist or share `playbackUrl`, and call again after expiry. Never place Codex or Claude CLI details or executable details, Host model\u002Fprovider configuration, proxy URLs, provider URLs or paths, long-lived credentials, or control\u002Fsession keys in the Taku App, manifest, persisted business state, runtime input, or logs. Versioned operation input may include product intent, requested capability categories, and opaque Host-issued resource handles; it must not smuggle raw Host configuration or credentials.\n\nFor long-running generation, include a visible cancel action once an accepted `runId` is available. Disable repeat clicks synchronously, call `client.cancel(runId)`, and keep the original subscription until the Host confirms a terminal state. A cancel RPC receipt is not proof of cancellation; a failed request may retry cancellation of the same run, never create a replacement job. Late cancellation responses must not overwrite a completed result or a newer run. The executable example is `docs\u002Fexamples\u002Fsubapp-agent-runtime-qa\u002FAgentRuntimeQaPanel.tsx` with its adjacent `run-cancellation.ts`; reuse only the cancellation wiring, not the QA interface.\n\n## Product UI\n\nBuild the usable workflow on the first screen. Reuse real local primitives, use static and unique semantic `data-slot` values, and cover loading, empty, error, retry, disabled, narrow, and wide states. Every `data-slot` must be a quoted static string literal; never use a variable, template expression, conditional expression, or spread.\n\nFor every supported transformation, preserve information without loss in a round-trip or reject unsupported input before mutation. Add a focused round-trip contract test for the accepted and rejected paths; do not hide loss behind a best-effort rewrite.\n\nFor structured text, enumerate each accepted token boundary, including delimiters, quote and escape rules, statement separators, comment tokens, and their cross-boundary combinations. Build the positive contract matrix from those boundaries, then run parse → serialize → parse for every cell and assert that the two parsed values are deeply equivalent; isolated token fixtures or parse success alone are insufficient. If the grammar has no symmetric escape for an accepted value, reject that value before any mutation instead of accepting input that the serializer cannot represent.\n\nTreat empty strings, whitespace-only values, and leading or trailing whitespace as distinct cells rather than defaults. Include structural tokens inside quoted fields, compact forms without separator whitespace, and every accepted operator variant. A parser that accepts a value must either round-trip that exact semantic value through the serializer or reject it before persistence.\n\nDiagnostics for malformed, unparsed, ignored, or only partially modeled business input are not a persistable success. Only explicitly classified metadata warnings that preserve semantics across every relevant representation and consumer may continue. For every mutation that accepts a transformation result, rejection-path tests must assert that its durable writer or side-effect boundary was never called.\n\nCustom pointer interaction must have an equivalent keyboard path, logical focus behavior, and announced state. Relationship IDs must come from React `useId()` values for label, ARIA, and SVG definition\u002Freference pairs; never use static string literals, random values, data-derived values, or indexes for those relationships.\n\nDynamic read-only visualizations do not need fake interactive controls, but they must provide an equivalent textual summary and announce meaningful updates when no triggering control already announces the change. Render a live computed status or result with semantic `\u003Coutput>` when it is the result of user input.\n\nModel asynchronous UI work as an explicit consistency contract. Replacing a dirty draft requires confirmation, and the latest request wins for every independently refreshed resource. A stale success or failure must not overwrite data or attach an error to the current screen after selection changes. Reconcile save acknowledgements by advancing the persisted baseline while preserving edits typed after the request began; cover out-of-order promises in executable tests.\n\nFor any feature with bounded interactive capacity, enforce shared domain limits before persistence and rendering, and reuse the same constants in UI controls. Exercise maximum-size inputs at the accepted and rejected boundaries. For a graph or spatial renderer, when the domain supports cycles or self-references, exercise them and assert that every rendered node and edge stays within computed layout bounds.\n\nFor parsers that expand fan-out or cross-products, calculate the expansion before allocation and enforce independent node and edge budgets derived from domain limits, not only the raw input length. Reject over-budget input with diagnostics before constructing intermediate strings, arrays, nodes, or edges, and cover adversarial cross-products at both sides of the boundary.\n\n## Source review when tools cannot run\n\nWhen the shell is unavailable, perform a no-shell Biome self-review of formatting, imports, `import type`, unused symbols, and stable React\u002FARIA\u002FSVG ID pairs. Complete a manual import order and formatting audit before handoff. Do not add suppressions to evade review, and do not claim Biome ran without fresh command evidence.\n\nAn unexecuted test is not coverage. If its intended behavior is cited, trace its critical assertions to the implementation, mark it unexecuted, and do not pass any behavior claim or verification gate that depends on executing it.\n\nWithout executable tests, do not claim a spatial or algorithmic bug is fixed from inspection alone. Manually calculate at least one non-square counterexample for every axis or direction and one cyclic or self-referential case, while keeping the gate unpassed until execution.\n\nFinish with the gates in `taku-subapp-verification`.\n",{"name":5,"description":7},"main","e23736925046d173414345d0a2f9e3d957595f50","packages\u002Frepo-to-stax-converter\u002Ftemplate\u002Ftakuai-template\u002F.taku-template\u002Fpayload\u002F.claude\u002Fskills\u002Ftaku-subapp-development",2,"https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher","https:\u002F\u002Fgithub.com\u002FTaku-OS","Taku.ai","2026-11-04 03:24:46",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Taku-OS\u002Ftaku-publisher --skill taku-subapp-development",{"tool":38,"command":39},"bunx","bunx skills add Taku-OS\u002Ftaku-publisher --skill taku-subapp-development",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Taku-OS\u002Ftaku-publisher --skill taku-subapp-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fpackages\u002Frepo-to-stax-converter\u002Ftemplate\u002Ftakuai-template\u002F.taku-template\u002Fpayload\u002F.claude\u002Fskills\u002Ftaku-subapp-development\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7AH50GPT5KS85WGZS4EGHAM","taku-sites","Use when a user wants to build or update a Taku Site on a taku.site subdomain. Excludes Marketplace Skills, SubApps, and Stax Cards.","https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fskills\u002Ftaku-sites\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7AH4Z9CV60J3BAES917FQYV","fixture-skill","Use this fixture to test native skill routing.","https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fpackages\u002Frepo-to-stax-converter\u002Ftests\u002Ffixtures\u002Fskill\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7AH4XAD5F88D4NXZ39CH0NY","using-superpowers","Use at the start of non-trivial Taku App development, migration, debugging, planning, or verification to select the relevant Superpowers workflow before acting.","https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fpackages\u002Frepo-to-stax-converter\u002Ftemplate\u002Ftakuai-template\u002F.taku-template\u002Fpayload\u002F.claude\u002Fskills\u002Fusing-superpowers\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"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":19},"01M7AH4VE3CMRVPTXFXKBEHGCT","taku-subapp-verification","Use before claiming a Taku App migration or feature is complete, and when deciding whether a workspace is ready to convert or publish.","https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fpackages\u002Frepo-to-stax-converter\u002Ftemplate\u002Ftakuai-template\u002F.taku-template\u002Fpayload\u002F.claude\u002Fskills\u002Ftaku-subapp-verification\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"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":19},"01M7AH4N9WS3RDDPMWFJMF7N99","taku-action-contract","Use when adding, changing, removing, or validating host-callable Taku App Actions and their shared UI data.","https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fpackages\u002Frepo-to-stax-converter\u002Ftemplate\u002Ftakuai-template\u002F.taku-template\u002Fpayload\u002F.claude\u002Fskills\u002Ftaku-action-contract\u002FSKILL.md",[],[],{"skillNo":83,"name":63,"nameZh":6,"description":64,"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":19},"01M7AH4GTZBMV7METE9SFBV5W0","https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fpackages\u002Frepo-to-stax-converter\u002Ftemplate\u002Ftakuai-template\u002F.taku-template\u002Fpayload\u002F.agents\u002Fskills\u002Fusing-superpowers\u002FSKILL.md",[],[]]