[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AH50GPT5KS85WGZS4EGHAM":3,"skill-same:01M7AH50GPT5KS85WGZS4EGHAM":72},{"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},"01M7AH50GPT5KS85WGZS4EGHAM","taku-sites",null,"Use when a user wants to build or update a Taku Site on a taku.site subdomain. Excludes Marketplace Skills, SubApps, and Stax Cards.","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\u002Fskills\u002Ftaku-sites\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: taku-sites\ndescription: Use when a user wants to build or update a Taku Site on a taku.site subdomain. Excludes Marketplace Skills, SubApps, and Stax Cards.\n---\n\n# Build and publish a Taku Site\n\nYou build, run, and test the Site with your own tools. The bundled CLI only does what needs Taku: sign-in and identity, the live capability catalog, the browser SDK file, packaging and contract validation, subdomain availability, and publishing. It does not generate, host, or preview the Site.\n\nRun every CLI command from **this Skill's directory**: `cd \u003Cdirectory-containing-this-SKILL.md> && node scripts\u002Ftaku-publisher.mjs \u003Ccommand> --json ...`. Read the JSON `status`, `requires_action`, and `action_type`; exit code 0 alone does not mean success. Do not assume a global CLI or a Publisher checkout.\n\n## Flow (in this order)\n\n1. **Sign in first.** `sites-login --json`, let the user finish the browser step, then `auth-check --request-id \u003Cid> --json` until `authenticated`. Then `sites-whoami --json`. Sites eligibility and capacity come from the current server policy for the authenticated account, not its email domain or this Skill version. If access is denied, stop and report it; do not work around it. Never ask for, print, or pass tokens; never call the Taku API yourself.\n2. **Read the contract.** `sites-contract --json` returns the project format, artifact limits, visitor `capabilities`, and a separate `owner_assets` contract. Check `declared`, `authorized`, and `available` independently. Owner library operations are not visitor SDK scopes. If the command fails because you are offline or signed out, fix that; do not guess from memory. Read [references\u002Fmaterials.md](references\u002Fmaterials.md) when adding images or videos: new media must use the quota-managed material manifest, not the code asset bundle.\n3. **Build the Site** in the user's project to match what they asked for. See [references\u002Fcontract.md](references\u002Fcontract.md) for the project layout, the manifest, the browser\u002FWorker boundary, and security rules. See [references\u002Fcapabilities.md](references\u002Fcapabilities.md) for SDK calls, scopes, and credits. For image generation\u002Fediting, read [references\u002Fimage-models.md](references\u002Fimage-models.md): ask once for economy\u002Fquality or a named model if unspecified, retain an existing choice, read `sites-image-models --operation \u003Cexact operation> --json`, and put the selected model\u002Fversion\u002Fparameters into app configuration and actual v2 quotes. Do not silently replace unavailable choices or send model fields through legacy calls. The build choice is not future visitors' payment consent. See [references\u002Fstorage.md](references\u002Fstorage.md) for data (personal records, anonymous submissions, favorites, SQL). For a new empty project, `sites-init --project \u003Cabs-dir> --json` writes a minimal starting point. Replace it with a real Site. Get the SDK with `sites-sdk-export --output \u003Cabs-project>\u002Fdist\u002Fassets\u002Ftaku-sites-sdk.mjs --json`.\n4. **Run and test it yourself**, using your normal dev server, tests, and browser. `\u002F__taku\u002F*` platform capabilities are not available outside Taku, so put them behind a stub. [references\u002Ftesting.md](references\u002Ftesting.md) covers what you can and cannot check locally. Tell the user which behaviors you only checked against stubs.\n5. **Validate.** Run `sites-validate --project \u003Cabs-dir> --json`. Fix errors and rerun until it passes. This is a packaging and compatibility check. It is not an authorization check: the server re-checks the manifest, scopes, and capability availability at publish and at runtime.\n6. **Ask the user for one exact subdomain.** A request to build a site does not choose a subdomain. Do not suggest or generate candidates. To update a Site they already own, use its `projectId` from `sites-list --json`.\n7. **Check availability, then ask about Marketplace discovery — mandatory.** Run `sites-publish --project \u003Cabs-dir> --slug \u003Cexact-subdomain> --json` (or `--project-id \u003Cowned-id>`). If `sites_slug_unavailable`, ask for another subdomain. Otherwise show the returned `confirm_target` and build summary, and explicitly ask: **“Your Site URL is public. Do you also want to list it on the Taku Marketplace so more people can discover it?”** Ask in the user's language, including in external harnesses such as Codex, Claude Code, Cursor and OpenCode, even when they only asked to publish a website. This can share one question with target confirmation. A generic “publish” request, silence or a default checkbox is not an answer; wait for their explicit yes\u002Fno. Marketplace listing controls discovery, not the Site's access or visitor sign-in policy.\n8. **Publish after both answers.** Yes → `--listing public`; no → `--listing private` (excluded from Marketplace, while the Site URL remains public). Rerun the same command with that choice and `--confirm-target \u003Cexact confirm_target>`. For updates, tell the user their choice also changes the existing Marketplace listing. Do not silently carry consent across a different Site or a new confirmation after `--reset`.\n9. **Report Site and Marketplace outcomes separately.** A Site is live only when `sites_published` has `ready: true`, or `sites-status --project-id \u003Cid> --json` confirms the release. Report Marketplace discovery only from `marketplace.status`: `listed` is discoverable, `unlisted` is not, `pending` is waiting, `failed` was not confirmed, and `unchanged` means no listing choice was applied. If `sites_publishing`, rerun the same `sites-publish` command with the saved choice after checking status so listing can finish once the Site is ready. On `retry_site_listing`, the Site is already live: use `sites-listing --project-id \u003Cid> --listing \u003Csame-choice> --json` after checking its current state; do not republish it to retry listing. A conflict may reflect a choice made in Console; review it with the user before overwriting. A retry of the same interrupted publish keeps its answer; `sites_build_changed` \u002F `sites_target_changed` \u002F `sites_listing_changed` requires review and new confirmation before `--reset`. Preserve target, account and Worker-origin options on every retry. Report typed errors as returned.\n\n## Session renewal and errors\n\nNew Site sessions renew automatically for a fixed 30 days. `auth-refresh --json` renews now; `auth-status --json` reports validity without exposing credentials. A lost refresh response is recovered by promptly repeating the original command (within 60s). `sites_login_required` requires `sites-login`; `publisher_refresh_unavailable` means renewal could not be confirmed, so retry the same command without discarding its publish checkpoint. Older sessions without refresh support need login again when expired.\n\nReport `http_status`, `server_error`, `request_id` and the sanitized summary from API errors. A 404 needs a target, account-access, and CLI-version check; none is a confirmed cause merely from the status. `auth-logout --json` clears local authorization and attempts server revocation; `remote_session_revoked: false` means revocation was not verified.\n","# Build and publish a Taku Site\n\nYou build, run, and test the Site with your own tools. The bundled CLI only does what needs Taku: sign-in and identity, the live capability catalog, the browser SDK file, packaging and contract validation, subdomain availability, and publishing. It does not generate, host, or preview the Site.\n\nRun every CLI command from **this Skill's directory**: `cd \u003Cdirectory-containing-this-SKILL.md> && node scripts\u002Ftaku-publisher.mjs \u003Ccommand> --json ...`. Read the JSON `status`, `requires_action`, and `action_type`; exit code 0 alone does not mean success. Do not assume a global CLI or a Publisher checkout.\n\n## Flow (in this order)\n\n1. **Sign in first.** `sites-login --json`, let the user finish the browser step, then `auth-check --request-id \u003Cid> --json` until `authenticated`. Then `sites-whoami --json`. Sites eligibility and capacity come from the current server policy for the authenticated account, not its email domain or this Skill version. If access is denied, stop and report it; do not work around it. Never ask for, print, or pass tokens; never call the Taku API yourself.\n2. **Read the contract.** `sites-contract --json` returns the project format, artifact limits, visitor `capabilities`, and a separate `owner_assets` contract. Check `declared`, `authorized`, and `available` independently. Owner library operations are not visitor SDK scopes. If the command fails because you are offline or signed out, fix that; do not guess from memory. Read [references\u002Fmaterials.md](references\u002Fmaterials.md) when adding images or videos: new media must use the quota-managed material manifest, not the code asset bundle.\n3. **Build the Site** in the user's project to match what they asked for. See [references\u002Fcontract.md](references\u002Fcontract.md) for the project layout, the manifest, the browser\u002FWorker boundary, and security rules. See [references\u002Fcapabilities.md](references\u002Fcapabilities.md) for SDK calls, scopes, and credits. For image generation\u002Fediting, read [references\u002Fimage-models.md](references\u002Fimage-models.md): ask once for economy\u002Fquality or a named model if unspecified, retain an existing choice, read `sites-image-models --operation \u003Cexact operation> --json`, and put the selected model\u002Fversion\u002Fparameters into app configuration and actual v2 quotes. Do not silently replace unavailable choices or send model fields through legacy calls. The build choice is not future visitors' payment consent. See [references\u002Fstorage.md](references\u002Fstorage.md) for data (personal records, anonymous submissions, favorites, SQL). For a new empty project, `sites-init --project \u003Cabs-dir> --json` writes a minimal starting point. Replace it with a real Site. Get the SDK with `sites-sdk-export --output \u003Cabs-project>\u002Fdist\u002Fassets\u002Ftaku-sites-sdk.mjs --json`.\n4. **Run and test it yourself**, using your normal dev server, tests, and browser. `\u002F__taku\u002F*` platform capabilities are not available outside Taku, so put them behind a stub. [references\u002Ftesting.md](references\u002Ftesting.md) covers what you can and cannot check locally. Tell the user which behaviors you only checked against stubs.\n5. **Validate.** Run `sites-validate --project \u003Cabs-dir> --json`. Fix errors and rerun until it passes. This is a packaging and compatibility check. It is not an authorization check: the server re-checks the manifest, scopes, and capability availability at publish and at runtime.\n6. **Ask the user for one exact subdomain.** A request to build a site does not choose a subdomain. Do not suggest or generate candidates. To update a Site they already own, use its `projectId` from `sites-list --json`.\n7. **Check availability, then ask about Marketplace discovery — mandatory.** Run `sites-publish --project \u003Cabs-dir> --slug \u003Cexact-subdomain> --json` (or `--project-id \u003Cowned-id>`). If `sites_slug_unavailable`, ask for another subdomain. Otherwise show the returned `confirm_target` and build summary, and explicitly ask: **“Your Site URL is public. Do you also want to list it on the Taku Marketplace so more people can discover it?”** Ask in the user's language, including in external harnesses such as Codex, Claude Code, Cursor and OpenCode, even when they only asked to publish a website. This can share one question with target confirmation. A generic “publish” request, silence or a default checkbox is not an answer; wait for their explicit yes\u002Fno. Marketplace listing controls discovery, not the Site's access or visitor sign-in policy.\n8. **Publish after both answers.** Yes → `--listing public`; no → `--listing private` (excluded from Marketplace, while the Site URL remains public). Rerun the same command with that choice and `--confirm-target \u003Cexact confirm_target>`. For updates, tell the user their choice also changes the existing Marketplace listing. Do not silently carry consent across a different Site or a new confirmation after `--reset`.\n9. **Report Site and Marketplace outcomes separately.** A Site is live only when `sites_published` has `ready: true`, or `sites-status --project-id \u003Cid> --json` confirms the release. Report Marketplace discovery only from `marketplace.status`: `listed` is discoverable, `unlisted` is not, `pending` is waiting, `failed` was not confirmed, and `unchanged` means no listing choice was applied. If `sites_publishing`, rerun the same `sites-publish` command with the saved choice after checking status so listing can finish once the Site is ready. On `retry_site_listing`, the Site is already live: use `sites-listing --project-id \u003Cid> --listing \u003Csame-choice> --json` after checking its current state; do not republish it to retry listing. A conflict may reflect a choice made in Console; review it with the user before overwriting. A retry of the same interrupted publish keeps its answer; `sites_build_changed` \u002F `sites_target_changed` \u002F `sites_listing_changed` requires review and new confirmation before `--reset`. Preserve target, account and Worker-origin options on every retry. Report typed errors as returned.\n\n## Session renewal and errors\n\nNew Site sessions renew automatically for a fixed 30 days. `auth-refresh --json` renews now; `auth-status --json` reports validity without exposing credentials. A lost refresh response is recovered by promptly repeating the original command (within 60s). `sites_login_required` requires `sites-login`; `publisher_refresh_unavailable` means renewal could not be confirmed, so retry the same command without discarding its publish checkpoint. Older sessions without refresh support need login again when expired.\n\nReport `http_status`, `server_error`, `request_id` and the sanitized summary from API errors. A 404 needs a target, account-access, and CLI-version check; none is a confirmed cause merely from the status. `auth-logout --json` clears local authorization and attempts server revocation; `remote_session_revoked: false` means revocation was not verified.\n",{"name":5,"description":7},"main","e23736925046d173414345d0a2f9e3d957595f50","skills\u002Ftaku-sites",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-sites",{"tool":38,"command":39},"bunx","bunx skills add Taku-OS\u002Ftaku-publisher --skill taku-sites",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Taku-OS\u002Ftaku-publisher --skill taku-sites","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fskills\u002Ftaku-sites\u002FSKILL.md",true,[46,52,56,60,64,68],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fcapabilities.md","REFERENCE","参考文档",7151,"https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fskills\u002Ftaku-sites\u002Freferences\u002Fcapabilities.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fcontract.md",4494,"https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fskills\u002Ftaku-sites\u002Freferences\u002Fcontract.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fimage-models.md",29063,"https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fskills\u002Ftaku-sites\u002Freferences\u002Fimage-models.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fmaterials.md",5015,"https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fskills\u002Ftaku-sites\u002Freferences\u002Fmaterials.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fstorage.md",4993,"https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fskills\u002Ftaku-sites\u002Freferences\u002Fstorage.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Ftesting.md",3245,"https:\u002F\u002Fgithub.com\u002FTaku-OS\u002Ftaku-publisher\u002Fblob\u002Fmain\u002Fskills\u002Ftaku-sites\u002Freferences\u002Ftesting.md",[73,80,87,94,101,108],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"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":81,"name":82,"nameZh":6,"description":83,"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},"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":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"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":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":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":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"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":109,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"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",[],[]]