[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AE4021Y4QK62VNGR0D0VRC":3,"skill-same:01M7AE4021Y4QK62VNGR0D0VRC":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7AE4021Y4QK62VNGR0D0VRC","sandbox-aws",null,"Sign AWS requests (S3 and every other SigV4 service) in a Code node or CodeAct action, with NodeTool's signer running on the host","hanchenhao\u002Fai-canvas","hanchenhao","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F15713703?v=4","01M7ADWCF5AE30N3MG7MDF3RV2","01M7ADWCFVJS4V8VD9KWJG22WR",1,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fhanchenhao\u002Fai-canvas\u002Fblob\u002Fmain\u002Fpackages\u002Fsandbox-packs\u002Fsandbox-aws\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sandbox-aws\ndescription: Sign AWS requests (S3 and every other SigV4 service) in a Code node or CodeAct action, with NodeTool's signer running on the host\n---\n\n# AWS SigV4 in the sandbox\n\nSpecifier: `@nodetool-ai\u002Fsandbox-aws`. Declare it in the node's `packages`\nproperty and import it at the top of the body.\n\nS3 is an HTTP API, so `fetch` already reaches it. What the guest cannot do is\nsign the request: SigV4 is an HMAC-SHA256 chain over a canonical form of the\nrequest, and one wrong byte gives a signature mismatch that names nothing.\nThis pack is a **host module**: the chain runs on the host and hands back\nheaders.\n\n**Nothing here sends a request.** Both exports are pure — they take a request\nand return a signed one. The call goes out through the guest's own `fetch`, so\nthe run's fetch cap and its SSRF guard still apply.\n\n## sigv4 — sign a request\n\n```js\nimport { sigv4 } from \"@nodetool-ai\u002Fsandbox-aws\";\n\nconst accessKeyId = await nodetool.secrets.get(\"AWS_ACCESS_KEY_ID\");\nconst secretAccessKey = await nodetool.secrets.get(\"AWS_SECRET_ACCESS_KEY\");\n\nconst signed = await sigv4({\n  method: \"GET\",\n  url: \"https:\u002F\u002Fmy-bucket.s3.us-east-1.amazonaws.com\u002F?list-type=2&max-keys=100\",\n  region: \"us-east-1\",\n  service: \"s3\",\n  accessKeyId,\n  secretAccessKey\n});\n\nconst res = await fetch(signed.url, { method: signed.method, headers: signed.headers });\nreturn { xml: await res.text() };\n```\n\nOptions: `method` (default `GET`), `url` (required, absolute), `region`\n(default `us-east-1`), `service` (default `s3`), `accessKeyId` and\n`secretAccessKey` (required), `sessionToken` (for temporary STS credentials),\n`headers`, `body`, `payloadHash`.\n\nReturns `{url, method, headers}` — never the body. Pass the same body value to\n`fetch` yourself, so bytes make one trip, not two.\n\n### Writing an object\n\n```js\nconst body = JSON.stringify(inputs.record);\nconst signed = await sigv4({\n  method: \"PUT\",\n  url: `https:\u002F\u002Fmy-bucket.s3.us-east-1.amazonaws.com\u002F${inputs.key}`,\n  region: \"us-east-1\", service: \"s3\",\n  accessKeyId, secretAccessKey,\n  headers: { \"content-type\": \"application\u002Fjson\" },\n  body\n});\nawait fetch(signed.url, { method: \"PUT\", headers: signed.headers, body });\n```\n\nA `Uint8Array` body works the same way — from `workspace.readBytes` or a\nprevious `response.bytes()`.\n\n## presign — a URL that authorizes itself\n\n```js\nimport { presign } from \"@nodetool-ai\u002Fsandbox-aws\";\n\nconst url = await presign({\n  method: \"GET\",\n  url: \"https:\u002F\u002Fmy-bucket.s3.us-east-1.amazonaws.com\u002Freport.pdf\",\n  region: \"us-east-1\", service: \"s3\",\n  expiresIn: 3600,\n  accessKeyId, secretAccessKey\n});\nreturn { url };\n```\n\nReturns the URL as a string. `expiresIn` is seconds, clamped to a week. The\npayload is unsigned, which is what makes a presigned `PUT` usable — whoever\nholds the URL supplies the body.\n\n## Gotchas\n\n- **Every export is async.** A host call is a round trip.\n- **It signs; it does not send.** Nothing reaches the network until you call\n  `fetch`.\n- **The signature is time-bound.** It is stamped when you call `sigv4`, and AWS\n  rejects one more than 15 minutes old. Sign immediately before fetching, not\n  at the top of a long function.\n- **Other services work too.** Set `service` and `region` — `dynamodb`,\n  `sqs`, `lambda`, `bedrock`. Only `s3` skips path normalization, because an\n  object key is a key.\n- **10 MB of body per signature.** Hash a bigger upload yourself and pass\n  `payloadHash`, or use a presigned `PUT`.\n","# AWS SigV4 in the sandbox\n\nSpecifier: `@nodetool-ai\u002Fsandbox-aws`. Declare it in the node's `packages`\nproperty and import it at the top of the body.\n\nS3 is an HTTP API, so `fetch` already reaches it. What the guest cannot do is\nsign the request: SigV4 is an HMAC-SHA256 chain over a canonical form of the\nrequest, and one wrong byte gives a signature mismatch that names nothing.\nThis pack is a **host module**: the chain runs on the host and hands back\nheaders.\n\n**Nothing here sends a request.** Both exports are pure — they take a request\nand return a signed one. The call goes out through the guest's own `fetch`, so\nthe run's fetch cap and its SSRF guard still apply.\n\n## sigv4 — sign a request\n\n```js\nimport { sigv4 } from \"@nodetool-ai\u002Fsandbox-aws\";\n\nconst accessKeyId = await nodetool.secrets.get(\"AWS_ACCESS_KEY_ID\");\nconst secretAccessKey = await nodetool.secrets.get(\"AWS_SECRET_ACCESS_KEY\");\n\nconst signed = await sigv4({\n  method: \"GET\",\n  url: \"https:\u002F\u002Fmy-bucket.s3.us-east-1.amazonaws.com\u002F?list-type=2&max-keys=100\",\n  region: \"us-east-1\",\n  service: \"s3\",\n  accessKeyId,\n  secretAccessKey\n});\n\nconst res = await fetch(signed.url, { method: signed.method, headers: signed.headers });\nreturn { xml: await res.text() };\n```\n\nOptions: `method` (default `GET`), `url` (required, absolute), `region`\n(default `us-east-1`), `service` (default `s3`), `accessKeyId` and\n`secretAccessKey` (required), `sessionToken` (for temporary STS credentials),\n`headers`, `body`, `payloadHash`.\n\nReturns `{url, method, headers}` — never the body. Pass the same body value to\n`fetch` yourself, so bytes make one trip, not two.\n\n### Writing an object\n\n```js\nconst body = JSON.stringify(inputs.record);\nconst signed = await sigv4({\n  method: \"PUT\",\n  url: `https:\u002F\u002Fmy-bucket.s3.us-east-1.amazonaws.com\u002F${inputs.key}`,\n  region: \"us-east-1\", service: \"s3\",\n  accessKeyId, secretAccessKey,\n  headers: { \"content-type\": \"application\u002Fjson\" },\n  body\n});\nawait fetch(signed.url, { method: \"PUT\", headers: signed.headers, body });\n```\n\nA `Uint8Array` body works the same way — from `workspace.readBytes` or a\nprevious `response.bytes()`.\n\n## presign — a URL that authorizes itself\n\n```js\nimport { presign } from \"@nodetool-ai\u002Fsandbox-aws\";\n\nconst url = await presign({\n  method: \"GET\",\n  url: \"https:\u002F\u002Fmy-bucket.s3.us-east-1.amazonaws.com\u002Freport.pdf\",\n  region: \"us-east-1\", service: \"s3\",\n  expiresIn: 3600,\n  accessKeyId, secretAccessKey\n});\nreturn { url };\n```\n\nReturns the URL as a string. `expiresIn` is seconds, clamped to a week. The\npayload is unsigned, which is what makes a presigned `PUT` usable — whoever\nholds the URL supplies the body.\n\n## Gotchas\n\n- **Every export is async.** A host call is a round trip.\n- **It signs; it does not send.** Nothing reaches the network until you call\n  `fetch`.\n- **The signature is time-bound.** It is stamped when you call `sigv4`, and AWS\n  rejects one more than 15 minutes old. Sign immediately before fetching, not\n  at the top of a long function.\n- **Other services work too.** Set `service` and `region` — `dynamodb`,\n  `sqs`, `lambda`, `bedrock`. Only `s3` skips path normalization, because an\n  object key is a key.\n- **10 MB of body per signature.** Hash a bigger upload yourself and pass\n  `payloadHash`, or use a presigned `PUT`.\n",{"name":5,"description":7},"main","4ef72a828b24c99c49109033c7ec504c34f3bd17","packages\u002Fsandbox-packs\u002Fsandbox-aws",0,"https:\u002F\u002Fgithub.com\u002Fhanchenhao\u002Fai-canvas","https:\u002F\u002Fgithub.com\u002Fhanchenhao","2026-08-18 16:41:12",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add hanchenhao\u002Fai-canvas --skill sandbox-aws",{"tool":36,"command":37},"bunx","bunx skills add hanchenhao\u002Fai-canvas --skill sandbox-aws",{"tool":39,"command":40},"pnpm","pnpm dlx skills add hanchenhao\u002Fai-canvas --skill sandbox-aws","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhanchenhao\u002Fai-canvas\u002Fblob\u002Fmain\u002Fpackages\u002Fsandbox-packs\u002Fsandbox-aws\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"package.json","REFERENCE","参考文档",861,"https:\u002F\u002Fgithub.com\u002Fhanchenhao\u002Fai-canvas\u002Fblob\u002Fmain\u002Fpackages\u002Fsandbox-packs\u002Fsandbox-aws\u002Fpackage.json",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7AE5NP5AWGV47WS3F37VPZ1","sandbox-zip","Read and write zip archives in a Code node or CodeAct action, with fflate running on the host under a 50 MB inflation cap","https:\u002F\u002Fgithub.com\u002Fhanchenhao\u002Fai-canvas\u002Fblob\u002Fmain\u002Fpackages\u002Fsandbox-packs\u002Fsandbox-zip\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7AE5JP0CG2S114Q246RC6MH","sandbox-yaml","Read and write YAML inside a Code node or CodeAct action, with js-yaml running in the guest","https:\u002F\u002Fgithub.com\u002Fhanchenhao\u002Fai-canvas\u002Fblob\u002Fmain\u002Fpackages\u002Fsandbox-packs\u002Fsandbox-yaml\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7AE5GJ9AV36WM1DPW1878VM","sandbox-xml","Parse XML feeds and sitemaps in a Code node or CodeAct action, with fast-xml-parser running on the host","https:\u002F\u002Fgithub.com\u002Fhanchenhao\u002Fai-canvas\u002Fblob\u002Fmain\u002Fpackages\u002Fsandbox-packs\u002Fsandbox-xml\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7AE5DMYDAGJW27G8KKTZ2BN","sandbox-xlsx","Read and write Excel workbooks in a Code node or CodeAct action, with exceljs running on the host","https:\u002F\u002Fgithub.com\u002Fhanchenhao\u002Fai-canvas\u002Fblob\u002Fmain\u002Fpackages\u002Fsandbox-packs\u002Fsandbox-xlsx\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7AE5BARJSFCT296SEMYDSJQ","sandbox-twilio","Send SMS and WhatsApp messages and look up numbers from a Code node or CodeAct action, with NodeTool's Twilio request builder running on the host","https:\u002F\u002Fgithub.com\u002Fhanchenhao\u002Fai-canvas\u002Fblob\u002Fmain\u002Fpackages\u002Fsandbox-packs\u002Fsandbox-twilio\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7AE57C5APRDF96NB3G0WQMW","sandbox-tfjs","Classify and embed images, detect objects, and answer from a passage in a Code node or CodeAct action, with TensorFlow.js running on the host","https:\u002F\u002Fgithub.com\u002Fhanchenhao\u002Fai-canvas\u002Fblob\u002Fmain\u002Fpackages\u002Fsandbox-packs\u002Fsandbox-tfjs\u002FSKILL.md",[],[]]