[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AH4N9WS3RDDPMWFJMF7N99":3,"skill-same:01M7AH4N9WS3RDDPMWFJMF7N99":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},"01M7AH4N9WS3RDDPMWFJMF7N99","taku-action-contract",null,"Use when adding, changing, removing, or validating host-callable Taku App Actions and their shared UI data.","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-action-contract\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: taku-action-contract\ndescription: Use when adding, changing, removing, or validating host-callable Taku App Actions and their shared UI data.\n---\n\n# Taku Action Contract\n\nAn Action is complete only when its declaration, registration, execution, persistence, and UI-visible result agree.\n\n## Implement one Action\n\n1. Read `docs\u002Fsubapp-action-architecture.md`, `src\u002Flib\u002Factions\u002Ftypes.ts`, and the existing `src\u002Factions\u002F` registry.\n2. Pass a recursively static object literal directly as the first argument to `registerAction`; validate inputs in the handler. There are no spreads, imported constants, computed values, or helper calls anywhere in that definition. Arrays such as `enum` must list their literal values directly. Runtime handler code may reuse constants after the definition.\n3. Add the typed handler under `src\u002Factions\u002F`.\n4. Import the module from `src\u002Factions\u002Findex.ts` so registration occurs at runtime. Keep the module top level registration-only: it may declare and register the definition and handler, but database, network, filesystem, process, and other business effects must run inside the handler or its server-only domain operation.\n5. Add the same name, description, parameter semantics, and return semantics to `taku.manifest.json`.\n6. If the Action changes user-visible data, write the same SQLite\u002FDrizzle or `taku-data` store that the UI reads.\n7. For every public Action, add a contract test that executes the real handler and asserts the actual returned `data` shape, including nesting, agrees with the registration definition and manifest semantics. In the test, import `@\u002Factions\u002Findex` before reading the real registry; do not rely on an ambiguous directory import or a hand-built adapter. Exercise success, missing\u002Finvalid input, business failure, upstream failure, and persistence after restart.\n\n`src\u002Factions\u002Findex.ts` is the registration root, not application bootstrap. The Host RPC route must not statically side-effect import it at module top level. Only after `TAKU_CONTROL_TOKEN` exists and the request header passes genuine `node:crypto` `timingSafeEqual` validation may the POST handler `await import('@\u002Factions\u002Findex')`; that import must happen before any `hasAction` or `executeAction`. RPC tests must prove that importing the route, omitting the token, and presenting the wrong token leave business Actions unloaded.\n\n## One domain mutation\n\nFor each domain mutation, create one server-only operation that owns input validation and the durable write. The Action handler calls that operation through the fail-closed Host RPC gateway. Only when a versioned Taku-controlled server authority contract actually exists may a domain-specific Route Handler call the same server-only operation; when allowed, the Route Handler and Action handler call the same operation. Without that authority the browser mutation stays blocked. A generic collection store is persistence plumbing, not an authorization or domain-validation boundary. Do not expose a generic collection HTTP endpoint or permit direct client collection writes.\n\nDo not ship `\u002Fapi\u002Factions`, `\u002Fapi\u002Factions\u002F\u003Cname>`, `\u002Fapi\u002Fai\u002Fcompletion`, or `\u002Fapi\u002Fai\u002Fimage\u002Fgenerate`. They turn the Taku App server into an unauthenticated executor or credentialed service proxy. `TAKU_CONTROL_TOKEN` protects only the local Host-to-runtime transport and is never proof of user identity, ownership, entitlement, or billing authority. Managed service and external writes remain blocked until a Taku-controlled server can authorize the narrow product operation from server-side facts.\n\nDo not expose filesystem or shell tool execution through a public or unauthenticated route. If a product explicitly requires such authority, use the Host Agent Runtime and require a host-authenticated, authorized contract plus a process-level sandbox for filesystem, environment, process, and network access; prompts and command blacklists are not security boundaries. Terminal and desktop-app tools are valid Host Agent Runtime capabilities only after the app negotiates the declared capability and the Host authorizes the current run. Limit execution to the Host-granted files, folders, applications, and operations; user-selected resources do not have to live inside the app workspace. Require explicit user confirmation before destructive or otherwise dangerous operations, and never send Host long-lived credentials to the Taku App.\n\n## Keep Host Agent Runtime separate\n\n`taku.agent.run\u002Fv2` operations are not Actions. Do not register them with `registerAction`, place them in the manifest `actions` catalog, invoke them through `\u002F__taku\u002Frpc`, or expose `capabilities`, `start`, `subscribe`, `result`, or `cancel` through a public Route Handler. A Taku App that needs this distinct capability follows `docs\u002Fsubapp-agent-runtime.md`, uses only `@\u002Flib\u002Ftaku-runtime`, and declares the exact operation and revision under `runtimeCapabilities`; declaration still does not grant authority.\n\nThe SDK recognizes revision `1` of `agent.execute`, `research.generateReport`, `media.image.generate`, and `media.video.generate`; an app declares only the operations its real workflow calls, and the Host may grant a smaller set. The default manifest requests none. Text may arrive inline or through negotiated `contentRef`; image and video results are opaque `assetRef` descriptors opened only with the negotiated, authenticated `asset.open` method. Never persist its short-lived playback URL or expose a provider, model, path, or provider URL. The protocol is still experimental and pre-release, so every real Host operation and production grant remains a publish-time verification requirement. Keep Host authority out of generic Actions, public proxies, and credential-bearing service surfaces.\n\n## Consistency gate\n\n- No manifest-only Action.\n- No registered public Action missing from the manifest.\n- No leftover template\u002Fdemo Action. In the canonical template, public Actions originating only from `src\u002Factions\u002Fexample.ts` and manifest entries such as `greet` or `getStatus` are demos until deliberately replaced by a real product contract and tests; renaming them is not replacement.\n- No success response before durable work succeeds.\n- No secret, token, provider credential, or raw private payload in results or logs.\n\nFor app-local tests, import `@\u002Factions\u002Findex`, inspect the real registry, and execute the registered handler through the registry API. For Host integration, use only the documented `\u002F__taku\u002Frpc` harness with its injected control token; never print, copy, or expose that token and do not invent a new bridge.\n","# Taku Action Contract\n\nAn Action is complete only when its declaration, registration, execution, persistence, and UI-visible result agree.\n\n## Implement one Action\n\n1. Read `docs\u002Fsubapp-action-architecture.md`, `src\u002Flib\u002Factions\u002Ftypes.ts`, and the existing `src\u002Factions\u002F` registry.\n2. Pass a recursively static object literal directly as the first argument to `registerAction`; validate inputs in the handler. There are no spreads, imported constants, computed values, or helper calls anywhere in that definition. Arrays such as `enum` must list their literal values directly. Runtime handler code may reuse constants after the definition.\n3. Add the typed handler under `src\u002Factions\u002F`.\n4. Import the module from `src\u002Factions\u002Findex.ts` so registration occurs at runtime. Keep the module top level registration-only: it may declare and register the definition and handler, but database, network, filesystem, process, and other business effects must run inside the handler or its server-only domain operation.\n5. Add the same name, description, parameter semantics, and return semantics to `taku.manifest.json`.\n6. If the Action changes user-visible data, write the same SQLite\u002FDrizzle or `taku-data` store that the UI reads.\n7. For every public Action, add a contract test that executes the real handler and asserts the actual returned `data` shape, including nesting, agrees with the registration definition and manifest semantics. In the test, import `@\u002Factions\u002Findex` before reading the real registry; do not rely on an ambiguous directory import or a hand-built adapter. Exercise success, missing\u002Finvalid input, business failure, upstream failure, and persistence after restart.\n\n`src\u002Factions\u002Findex.ts` is the registration root, not application bootstrap. The Host RPC route must not statically side-effect import it at module top level. Only after `TAKU_CONTROL_TOKEN` exists and the request header passes genuine `node:crypto` `timingSafeEqual` validation may the POST handler `await import('@\u002Factions\u002Findex')`; that import must happen before any `hasAction` or `executeAction`. RPC tests must prove that importing the route, omitting the token, and presenting the wrong token leave business Actions unloaded.\n\n## One domain mutation\n\nFor each domain mutation, create one server-only operation that owns input validation and the durable write. The Action handler calls that operation through the fail-closed Host RPC gateway. Only when a versioned Taku-controlled server authority contract actually exists may a domain-specific Route Handler call the same server-only operation; when allowed, the Route Handler and Action handler call the same operation. Without that authority the browser mutation stays blocked. A generic collection store is persistence plumbing, not an authorization or domain-validation boundary. Do not expose a generic collection HTTP endpoint or permit direct client collection writes.\n\nDo not ship `\u002Fapi\u002Factions`, `\u002Fapi\u002Factions\u002F\u003Cname>`, `\u002Fapi\u002Fai\u002Fcompletion`, or `\u002Fapi\u002Fai\u002Fimage\u002Fgenerate`. They turn the Taku App server into an unauthenticated executor or credentialed service proxy. `TAKU_CONTROL_TOKEN` protects only the local Host-to-runtime transport and is never proof of user identity, ownership, entitlement, or billing authority. Managed service and external writes remain blocked until a Taku-controlled server can authorize the narrow product operation from server-side facts.\n\nDo not expose filesystem or shell tool execution through a public or unauthenticated route. If a product explicitly requires such authority, use the Host Agent Runtime and require a host-authenticated, authorized contract plus a process-level sandbox for filesystem, environment, process, and network access; prompts and command blacklists are not security boundaries. Terminal and desktop-app tools are valid Host Agent Runtime capabilities only after the app negotiates the declared capability and the Host authorizes the current run. Limit execution to the Host-granted files, folders, applications, and operations; user-selected resources do not have to live inside the app workspace. Require explicit user confirmation before destructive or otherwise dangerous operations, and never send Host long-lived credentials to the Taku App.\n\n## Keep Host Agent Runtime separate\n\n`taku.agent.run\u002Fv2` operations are not Actions. Do not register them with `registerAction`, place them in the manifest `actions` catalog, invoke them through `\u002F__taku\u002Frpc`, or expose `capabilities`, `start`, `subscribe`, `result`, or `cancel` through a public Route Handler. A Taku App that needs this distinct capability follows `docs\u002Fsubapp-agent-runtime.md`, uses only `@\u002Flib\u002Ftaku-runtime`, and declares the exact operation and revision under `runtimeCapabilities`; declaration still does not grant authority.\n\nThe SDK recognizes revision `1` of `agent.execute`, `research.generateReport`, `media.image.generate`, and `media.video.generate`; an app declares only the operations its real workflow calls, and the Host may grant a smaller set. The default manifest requests none. Text may arrive inline or through negotiated `contentRef`; image and video results are opaque `assetRef` descriptors opened only with the negotiated, authenticated `asset.open` method. Never persist its short-lived playback URL or expose a provider, model, path, or provider URL. The protocol is still experimental and pre-release, so every real Host operation and production grant remains a publish-time verification requirement. Keep Host authority out of generic Actions, public proxies, and credential-bearing service surfaces.\n\n## Consistency gate\n\n- No manifest-only Action.\n- No registered public Action missing from the manifest.\n- No leftover template\u002Fdemo Action. In the canonical template, public Actions originating only from `src\u002Factions\u002Fexample.ts` and manifest entries such as `greet` or `getStatus` are demos until deliberately replaced by a real product contract and tests; renaming them is not replacement.\n- No success response before durable work succeeds.\n- No secret, token, provider credential, or raw private payload in results or logs.\n\nFor app-local tests, import `@\u002Factions\u002Findex`, inspect the real registry, and execute the registered handler through the registry API. For Host integration, use only the documented `\u002F__taku\u002Frpc` harness with its injected control token; never print, copy, or expose that token and do not invent a new bridge.\n",{"name":5,"description":7},"main","e23736925046d173414345d0a2f9e3d957595f50","packages\u002Frepo-to-stax-converter\u002Ftemplate\u002Ftakuai-template\u002F.taku-template\u002Fpayload\u002F.claude\u002Fskills\u002Ftaku-action-contract",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-action-contract",{"tool":38,"command":39},"bunx","bunx skills add Taku-OS\u002Ftaku-publisher --skill taku-action-contract",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Taku-OS\u002Ftaku-publisher --skill taku-action-contract","安装技能，技能地址：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",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},"01M7AH4RS9KC85Z7YRBJV7SHBZ","taku-subapp-development","Use when building or migrating a Taku App, especially when translating an existing web or Python-backed app into the canonical Next.js runtime.","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",[],[],{"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",[],[]]