[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EDH60Q2KTYDNAEHFNNQNT6":3,"skill-same:01M7EDH60Q2KTYDNAEHFNNQNT6":49},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7EDH60Q2KTYDNAEHFNNQNT6","neon-object-storage",null,"S3-compatible object storage that branches with your Neon project, so files and the database stay in sync across every branch. Use when a user wants object storage, a bucket, blob\u002Ffile storage, or somewhere to put uploads, images, documents, avatars, or user-generated files for their app or agent — especially when they already use (or are setting up) Lakebase Postgres and don't want to add a separate storage provider like AWS S3, Cloudflare R2, or Supabase Storage. Triggers include \"object storage\", \"bucket\", \"blob storage\", \"file storage\", \"store uploads\u002Fimages\u002Ffiles\", \"S3-compatible storage\", \"presigned URL\", \"where do I put files\", \"storage logs\", \"bucket logs\", \"CDN in front of object storage\", \"Neon Object Storage\", \"Neon Storage\", and \"storage that branches with my database\".","mrluisfer\u002Famazon-extension","mrluisfer","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F65029792?v=4","01M7EDG3R6ZFP0XVDPCJNFBBHE","Luis Alvarez","01M7EDG3RSD38T0SZKTDP62EK1",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmrluisfer\u002Famazon-extension\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fneon-object-storage\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: neon-object-storage\ndescription: >-\n  S3-compatible object storage that branches with your Neon project, so files\n  and the database stay in sync across every branch. Use when a user wants\n  object storage, a bucket, blob\u002Ffile storage, or somewhere to put uploads,\n  images, documents, avatars, or user-generated files for their app or agent —\n  especially when they already use (or are setting up) Lakebase Postgres and don't\n  want to add a separate storage provider like AWS S3, Cloudflare R2, or\n  Supabase Storage. Triggers include \"object storage\", \"bucket\", \"blob\n  storage\", \"file storage\", \"store uploads\u002Fimages\u002Ffiles\", \"S3-compatible\n  storage\", \"presigned URL\", \"where do I put files\", \"storage logs\",\n  \"bucket logs\", \"CDN in front of object storage\", \"Neon Object Storage\",\n  \"Neon Storage\", and \"storage that branches with my database\".\nmetadata:\n  parent: neon\n  source: https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fagent-skills\u002Ftree\u002Fmain\u002Fskills\u002Fneon-object-storage\n---\n\n**FIRST**: Use the parent `neon` skill for a Neon overview, getting started with Neon, Neon development best practices, and more.\n\nIf the `neon` skill is not installed, fetch it from https:\u002F\u002Fneon.com\u002Fdocs\u002Fai\u002Fskills\u002Fneon\u002FSKILL.md or install it with:\n\n```bash\nneon skills -s neon -y\n```\n\n# Neon Object Storage\n\nCurrently available in `aws-us-east-2`, `aws-us-east-1`, `aws-eu-central-1`, and `aws-ap-southeast-1`.\n\nNeon Object Storage is S3-compatible object storage that branches with your projects: every branch gets its own isolated storage state, so files and database rows stay in sync across dev, preview, staging, and production.\n\nUse this skill to help the user store and serve files that branch alongside their database. Deliver a working bucket and upload\u002Fdownload flow, a branch-aware S3 client wired to the injected env vars, or a precise answer from the official Neon docs.\n\n## When to Use\n\nReach for Neon Object Storage for the files an app and its users produce — uploads, attachments, avatars, images, documents, generated assets, backups. It is the default place to put them when the app is already on Neon:\n\n- **They already use Lakebase Postgres and don't want a second provider.** One backend, one bill, one CLI, one set of branches — instead of standing up and wiring a separate AWS S3 \u002F R2 \u002F Supabase Storage account. The same Neon credential that backs the database backs storage.\n- **Files must stay in sync with the database across environments.** Storage branches _together with_ your Postgres data. Fork a branch and the child instantly inherits the parent's buckets and objects at that point in time — copy-on-write, so no data is duplicated. This is what makes agent, dev, preview, and test environments seamless: a preview branch gets a consistent snapshot of _both_ the rows and the files they reference, and writes on the child never touch the parent.\n- **They want safe, throwaway environments.** Upload, overwrite, and delete files in a preview\u002FCI branch without any risk to production data, then drop the branch.\n- **They want standard S3 tooling.** It's built on S3 semantics and speaks the S3 API, so the AWS SDKs, `boto3`, the AWS CLI, and presigned URLs all work — reliable and familiar, with no proprietary client.\n\nIf the files in question ship with the app itself — HTML, JS bundles, CSS, the images in `public\u002F` — that's static web hosting and belongs on Vercel, Netlify, or Cloudflare instead. Public assets that are served from a bucket want a CDN in front of them (see [Architecture: Where Object Storage Fits](#architecture-where-object-storage-fits)).\n\n## What It Does\n\n- **S3-compatible** — Works with existing S3 SDKs, `boto3`, the AWS CLI, and presigned URLs. Path-style addressing and SigV4 only.\n- **Branches with your database** — Every Neon branch gets its own isolated, copy-on-write storage state. Forking copies no data.\n- **Two access modes** — `private` buckets require a credential for every operation; `public_read` buckets allow anonymous reads with authenticated writes.\n- **One credential system** — The same Neon credential system used by Functions and the AI Gateway.\n\n## Availability\n\nCheck this precondition before setting anything up: Neon Object Storage is currently available in `aws-us-east-2`, `aws-us-east-1`, `aws-eu-central-1`, and `aws-ap-southeast-1`. Confirm the user's Neon project is in one of these regions before proceeding. Region coverage: https:\u002F\u002Fneon.com\u002Fdocs\u002Fget-started\u002Fbackend-overview.md\n\n## Architecture: Where Object Storage Fits\n\nNeon (Object Storage included) is **backend primitives, not full-stack app hosting**. Object Storage holds the files the app and its users produce — uploads, attachments, avatars, documents, generated images, backups — keyed from Postgres rows on the same branch. Two boundaries follow from that:\n\n- **Put a CDN in front of public assets.** A `public_read` object is read anonymously at `${AWS_ENDPOINT_URL_S3}\u002F\u003Cbucket>\u002F\u003Cobject-key>` — the branch's storage endpoint, injected as an env var (see [Environment Variables](#environment-variables)). For assets a browser loads on every page view — avatars, product images, anything hot — use that as the origin for a Cloudflare or Vercel CDN, and set `Cache-Control` on `PutObject` so the edge knows how long to hold each object. A cached object is only as fresh as its key, so write each version to a new key (`avatars\u002F\u003Cuser-id>\u002F\u003Cuuid>.jpg`) and repoint the key stored in Postgres, rather than overwriting one key and waiting out the TTL. The endpoint is branch-scoped, so a production CDN points at the production branch while preview branches read their own endpoint directly rather than sharing a cache. Private buckets stay on presigned URLs instead, which carry their signature in the query string.\n- **Host the app itself elsewhere.** Anything checked into the repo — HTML, JS bundles, CSS, and the images and fonts that ship in `public\u002F` — belongs on Vercel, Netlify, or Cloudflare, along with the index documents, SPA fallbacks, and custom domains that go with them. Neon has no website mode to serve them through: `PutBucketWebsite` returns `501 Not Implemented`.\n\n## Setup\n\nObject storage is part of the `neon.ts` infrastructure-as-code config (see the `neon` skill for the branch-first workflow, `link`\u002F`checkout`, and `neon.ts` basics). Declare buckets under `buckets`, keyed by bucket name:\n\n```typescript\n\u002F\u002F neon.ts\nimport { defineConfig } from \"@neon\u002Fconfig\u002Fv1\";\n\nexport default defineConfig({\n  buckets: {\n    images: {}, \u002F\u002F private by default\n    \"public-assets\": { access: \"public_read\" },\n  },\n});\n```\n\nProvision the declared buckets on the linked branch:\n\n```bash\nneon deploy   # alias for `neon config apply`\n```\n\n## Neon Infrastructure as Code (`neon.ts`)\n\nThe `buckets` block above is part of `neon.ts`, Neon's infrastructure-as-code file — one TypeScript file declares your buckets alongside every other service the branch should have (see the `neon` skill for the full reference). Reconcile the declaration against a branch the Terraform way:\n\n```bash\nneon config status   # print the branch's live config (which buckets exist)\nneon config plan     # dry-run diff of what apply would change\nneon config apply    # create the declared buckets  (neon deploy is an alias)\n```\n\nBuckets are **branch-scoped**: when a `neon.ts` is present, `neon checkout` applies the policy as it _creates_ a branch, so a fresh preview\u002FCI branch comes up with its buckets already provisioned (and copy-on-write objects inherited from the parent). Checking out an _existing_ branch doesn't reconcile it — run `neon deploy` to apply changes. Provisioning (`config apply` \u002F `deploy`), `link`, and `checkout` also pull the branch's S3 credentials into your local `.env.local`, so the same `env pull` step shown below happens for you on those commands.\n\n## Environment Variables\n\nWhen `buckets` is declared, Neon injects **AWS-standard** S3 env vars so the AWS SDKs work from the environment with zero extra config. Inside a deployed Neon Function these are injected automatically; locally, pull them onto disk (or inject them at runtime) via the CLI:\n\n```bash\nneon env pull            # writes the branch's vars into .env (or .env.local)\n# or, without writing a file, inject at runtime:\nneon-env run -- \u003Cyour dev command>\n```\n\n| Variable                | Meaning                                             |\n| ----------------------- | --------------------------------------------------- |\n| `AWS_ACCESS_KEY_ID`     | S3 Access Key ID (the branch credential's token id) |\n| `AWS_SECRET_ACCESS_KEY` | S3 Secret Access Key                                |\n| `AWS_ENDPOINT_URL_S3`   | Branch S3 endpoint URL                              |\n| `AWS_REGION`            | Region, e.g. `us-east-2`                            |\n\nBecause the names are AWS-standard, the AWS SDK picks up the credentials, endpoint, and region from the environment automatically. Credentials are branch-scoped and valid for that branch and all its descendants.\n\nFor typed, validated access to these credentials instead of reading `process.env` directly, pass the same `neon.ts` config object to `parseEnv` from `@neon\u002Fenv` — it returns an `env.storage` namespace (`accessKeyId`, `secretAccessKey`, `endpoint`, `region`) derived from your config. See the `neon` skill.\n\n## Working with Objects: the Files SDK (Recommended)\n\nThe simplest, most portable way to read and write objects is the [Files SDK](https:\u002F\u002Ffiles-sdk.dev) with its `neon` adapter — a small, unified storage API (`upload`, `download`, `url`, `list`, `exists`, `copy`, `delete`, `signedUploadUrl`) over web-standard I\u002FO. It uses the AWS S3 client under the hood, configured appropriately for Neon, and relabels errors as `Neon error` — so there's nothing to misconfigure. Reach for this first.\n\nInstall it alongside the AWS S3 peer dependencies the adapter uses internally:\n\n```bash\nnpm install files-sdk @aws-sdk\u002Fclient-s3 @aws-sdk\u002Fs3-presigned-post @aws-sdk\u002Fs3-request-presigner\n```\n\nThe adapter resolves its endpoint, region, and credentials from the same injected `AWS_*` env vars — pass only the bucket name:\n\n```typescript\nimport { Files } from \"files-sdk\";\nimport { neon } from \"files-sdk\u002Fneon\";\n\nconst files = new Files({ adapter: neon({ bucket: \"images\" }) });\n\n\u002F\u002F Upload — body may be a Buffer, Uint8Array, Blob, File, ReadableStream, or string\nawait files.upload(\"generated\u002Fcat.jpg\", fileBuffer, { contentType: \"image\u002Fjpeg\" });\n\n\u002F\u002F Download\nconst file = await files.download(\"generated\u002Fcat.jpg\");\nconst bytes = new Uint8Array(await file.arrayBuffer());\n\n\u002F\u002F Presigned GET — share without exposing credentials (defaults to a 1h expiry)\nconst url = await files.url(\"generated\u002Fcat.jpg\", { expiresIn: 3600 });\n\n\u002F\u002F Plus: files.exists(), files.list({ prefix }), files.copy(), files.delete(), files.signedUploadUrl()\n```\n\nSwap the adapter import (`files-sdk\u002Fs3`, `files-sdk\u002Fr2`, `files-sdk\u002Fgcs`, …) and the rest of your code is unchanged.\n\n## Working with Objects: the AWS S3 Client (Alternative)\n\nNeon speaks the S3 API directly, so you can drop down to the AWS SDK whenever you prefer the native client or already depend on it. The credentials, endpoint, and region are read from the standard AWS env chain, so the only setting you pass is `forcePathStyle: true` — Neon requires path-style addressing, so the S3 client **must** set it:\n\n```typescript\nimport { S3Client } from \"@aws-sdk\u002Fclient-s3\";\n\nconst s3 = new S3Client({\n  forcePathStyle: true, \u002F\u002F required: Neon uses path-style addressing\n});\n```\n\nThen upload, download, and presign with the raw command objects:\n\n```typescript\nimport { PutObjectCommand, GetObjectCommand } from \"@aws-sdk\u002Fclient-s3\";\nimport { getSignedUrl } from \"@aws-sdk\u002Fs3-request-presigner\";\n\nconst BUCKET = \"images\";\n\n\u002F\u002F Upload\nawait s3.send(\n  new PutObjectCommand({\n    Bucket: BUCKET,\n    Key: \"generated\u002Fcat.jpg\",\n    Body: fileBuffer,\n    ContentType: \"image\u002Fjpeg\",\n  }),\n);\n\n\u002F\u002F Download\nconst res = await s3.send(\n  new GetObjectCommand({ Bucket: BUCKET, Key: \"generated\u002Fcat.jpg\" }),\n);\nconst bytes = await res.Body?.transformToByteArray();\n\n\u002F\u002F Presigned GET — share without exposing credentials\nconst url = await getSignedUrl(\n  s3,\n  new GetObjectCommand({ Bucket: BUCKET, Key: \"generated\u002Fcat.jpg\" }),\n  { expiresIn: 3600 },\n);\n```\n\n## Pairing Storage with the Database on a Branch\n\nThe canonical pattern: an agent generates an image → `PutObject` into the `images` bucket → a row is inserted in Postgres → a presigned URL is returned on read. Store the bucket **key** (not the bytes) in a Postgres column, and presign on read. Because both the row and the object live on the same branch, they branch together and never drift.\n\n## CLI Bucket and Object Commands\n\n`neon` also has first-class bucket\u002Fobject commands (`neon bucket create|list|delete`, `neon bucket object put|get|list|delete`) for scripting and one-off operations.\n\n## Built-in Branch Logs\n\n```bash\nneon logs query --branch production --source storage --since 1h\n```\n\nStorage is one of the two sources branch logs cover today, alongside Neon Functions. Logs are scoped to a single branch, so pass `--branch` when the bucket you're debugging isn't on the branch you're checked out on. Everything else about logs — the required CLI version, filters, the SDK, and the Loki-compatible read API — is in the parent `neon` skill's **Observability** section.\n\n## Neon Documentation\n\nThe Neon documentation is the source of truth and Object Storage is evolving rapidly, so always verify against the official docs. Any doc page can be fetched as markdown by appending `.md` to the URL or by requesting `Accept: text\u002Fmarkdown`. Find the right page from the docs index (https:\u002F\u002Fneon.com\u002Fdocs\u002Fllms.txt) and the changelog announcements.\n\n## Further Reading\n\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fget-started\u002Fbackend-overview.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fstorage\u002Foverview.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fstorage\u002Fget-started.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fstorage\u002Fbuckets.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fstorage\u002Fobjects.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fstorage\u002Fauthentication.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fstorage\u002Fs3-compatibility.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fstorage\u002Ftroubleshooting.md\n- https:\u002F\u002Ffiles-sdk.dev — Files SDK docs (the `neon` adapter)\n","**FIRST**: Use the parent `neon` skill for a Neon overview, getting started with Neon, Neon development best practices, and more.\n\nIf the `neon` skill is not installed, fetch it from https:\u002F\u002Fneon.com\u002Fdocs\u002Fai\u002Fskills\u002Fneon\u002FSKILL.md or install it with:\n\n```bash\nneon skills -s neon -y\n```\n\n# Neon Object Storage\n\nCurrently available in `aws-us-east-2`, `aws-us-east-1`, `aws-eu-central-1`, and `aws-ap-southeast-1`.\n\nNeon Object Storage is S3-compatible object storage that branches with your projects: every branch gets its own isolated storage state, so files and database rows stay in sync across dev, preview, staging, and production.\n\nUse this skill to help the user store and serve files that branch alongside their database. Deliver a working bucket and upload\u002Fdownload flow, a branch-aware S3 client wired to the injected env vars, or a precise answer from the official Neon docs.\n\n## When to Use\n\nReach for Neon Object Storage for the files an app and its users produce — uploads, attachments, avatars, images, documents, generated assets, backups. It is the default place to put them when the app is already on Neon:\n\n- **They already use Lakebase Postgres and don't want a second provider.** One backend, one bill, one CLI, one set of branches — instead of standing up and wiring a separate AWS S3 \u002F R2 \u002F Supabase Storage account. The same Neon credential that backs the database backs storage.\n- **Files must stay in sync with the database across environments.** Storage branches _together with_ your Postgres data. Fork a branch and the child instantly inherits the parent's buckets and objects at that point in time — copy-on-write, so no data is duplicated. This is what makes agent, dev, preview, and test environments seamless: a preview branch gets a consistent snapshot of _both_ the rows and the files they reference, and writes on the child never touch the parent.\n- **They want safe, throwaway environments.** Upload, overwrite, and delete files in a preview\u002FCI branch without any risk to production data, then drop the branch.\n- **They want standard S3 tooling.** It's built on S3 semantics and speaks the S3 API, so the AWS SDKs, `boto3`, the AWS CLI, and presigned URLs all work — reliable and familiar, with no proprietary client.\n\nIf the files in question ship with the app itself — HTML, JS bundles, CSS, the images in `public\u002F` — that's static web hosting and belongs on Vercel, Netlify, or Cloudflare instead. Public assets that are served from a bucket want a CDN in front of them (see [Architecture: Where Object Storage Fits](#architecture-where-object-storage-fits)).\n\n## What It Does\n\n- **S3-compatible** — Works with existing S3 SDKs, `boto3`, the AWS CLI, and presigned URLs. Path-style addressing and SigV4 only.\n- **Branches with your database** — Every Neon branch gets its own isolated, copy-on-write storage state. Forking copies no data.\n- **Two access modes** — `private` buckets require a credential for every operation; `public_read` buckets allow anonymous reads with authenticated writes.\n- **One credential system** — The same Neon credential system used by Functions and the AI Gateway.\n\n## Availability\n\nCheck this precondition before setting anything up: Neon Object Storage is currently available in `aws-us-east-2`, `aws-us-east-1`, `aws-eu-central-1`, and `aws-ap-southeast-1`. Confirm the user's Neon project is in one of these regions before proceeding. Region coverage: https:\u002F\u002Fneon.com\u002Fdocs\u002Fget-started\u002Fbackend-overview.md\n\n## Architecture: Where Object Storage Fits\n\nNeon (Object Storage included) is **backend primitives, not full-stack app hosting**. Object Storage holds the files the app and its users produce — uploads, attachments, avatars, documents, generated images, backups — keyed from Postgres rows on the same branch. Two boundaries follow from that:\n\n- **Put a CDN in front of public assets.** A `public_read` object is read anonymously at `${AWS_ENDPOINT_URL_S3}\u002F\u003Cbucket>\u002F\u003Cobject-key>` — the branch's storage endpoint, injected as an env var (see [Environment Variables](#environment-variables)). For assets a browser loads on every page view — avatars, product images, anything hot — use that as the origin for a Cloudflare or Vercel CDN, and set `Cache-Control` on `PutObject` so the edge knows how long to hold each object. A cached object is only as fresh as its key, so write each version to a new key (`avatars\u002F\u003Cuser-id>\u002F\u003Cuuid>.jpg`) and repoint the key stored in Postgres, rather than overwriting one key and waiting out the TTL. The endpoint is branch-scoped, so a production CDN points at the production branch while preview branches read their own endpoint directly rather than sharing a cache. Private buckets stay on presigned URLs instead, which carry their signature in the query string.\n- **Host the app itself elsewhere.** Anything checked into the repo — HTML, JS bundles, CSS, and the images and fonts that ship in `public\u002F` — belongs on Vercel, Netlify, or Cloudflare, along with the index documents, SPA fallbacks, and custom domains that go with them. Neon has no website mode to serve them through: `PutBucketWebsite` returns `501 Not Implemented`.\n\n## Setup\n\nObject storage is part of the `neon.ts` infrastructure-as-code config (see the `neon` skill for the branch-first workflow, `link`\u002F`checkout`, and `neon.ts` basics). Declare buckets under `buckets`, keyed by bucket name:\n\n```typescript\n\u002F\u002F neon.ts\nimport { defineConfig } from \"@neon\u002Fconfig\u002Fv1\";\n\nexport default defineConfig({\n  buckets: {\n    images: {}, \u002F\u002F private by default\n    \"public-assets\": { access: \"public_read\" },\n  },\n});\n```\n\nProvision the declared buckets on the linked branch:\n\n```bash\nneon deploy   # alias for `neon config apply`\n```\n\n## Neon Infrastructure as Code (`neon.ts`)\n\nThe `buckets` block above is part of `neon.ts`, Neon's infrastructure-as-code file — one TypeScript file declares your buckets alongside every other service the branch should have (see the `neon` skill for the full reference). Reconcile the declaration against a branch the Terraform way:\n\n```bash\nneon config status   # print the branch's live config (which buckets exist)\nneon config plan     # dry-run diff of what apply would change\nneon config apply    # create the declared buckets  (neon deploy is an alias)\n```\n\nBuckets are **branch-scoped**: when a `neon.ts` is present, `neon checkout` applies the policy as it _creates_ a branch, so a fresh preview\u002FCI branch comes up with its buckets already provisioned (and copy-on-write objects inherited from the parent). Checking out an _existing_ branch doesn't reconcile it — run `neon deploy` to apply changes. Provisioning (`config apply` \u002F `deploy`), `link`, and `checkout` also pull the branch's S3 credentials into your local `.env.local`, so the same `env pull` step shown below happens for you on those commands.\n\n## Environment Variables\n\nWhen `buckets` is declared, Neon injects **AWS-standard** S3 env vars so the AWS SDKs work from the environment with zero extra config. Inside a deployed Neon Function these are injected automatically; locally, pull them onto disk (or inject them at runtime) via the CLI:\n\n```bash\nneon env pull            # writes the branch's vars into .env (or .env.local)\n# or, without writing a file, inject at runtime:\nneon-env run -- \u003Cyour dev command>\n```\n\n| Variable                | Meaning                                             |\n| ----------------------- | --------------------------------------------------- |\n| `AWS_ACCESS_KEY_ID`     | S3 Access Key ID (the branch credential's token id) |\n| `AWS_SECRET_ACCESS_KEY` | S3 Secret Access Key                                |\n| `AWS_ENDPOINT_URL_S3`   | Branch S3 endpoint URL                              |\n| `AWS_REGION`            | Region, e.g. `us-east-2`                            |\n\nBecause the names are AWS-standard, the AWS SDK picks up the credentials, endpoint, and region from the environment automatically. Credentials are branch-scoped and valid for that branch and all its descendants.\n\nFor typed, validated access to these credentials instead of reading `process.env` directly, pass the same `neon.ts` config object to `parseEnv` from `@neon\u002Fenv` — it returns an `env.storage` namespace (`accessKeyId`, `secretAccessKey`, `endpoint`, `region`) derived from your config. See the `neon` skill.\n\n## Working with Objects: the Files SDK (Recommended)\n\nThe simplest, most portable way to read and write objects is the [Files SDK](https:\u002F\u002Ffiles-sdk.dev) with its `neon` adapter — a small, unified storage API (`upload`, `download`, `url`, `list`, `exists`, `copy`, `delete`, `signedUploadUrl`) over web-standard I\u002FO. It uses the AWS S3 client under the hood, configured appropriately for Neon, and relabels errors as `Neon error` — so there's nothing to misconfigure. Reach for this first.\n\nInstall it alongside the AWS S3 peer dependencies the adapter uses internally:\n\n```bash\nnpm install files-sdk @aws-sdk\u002Fclient-s3 @aws-sdk\u002Fs3-presigned-post @aws-sdk\u002Fs3-request-presigner\n```\n\nThe adapter resolves its endpoint, region, and credentials from the same injected `AWS_*` env vars — pass only the bucket name:\n\n```typescript\nimport { Files } from \"files-sdk\";\nimport { neon } from \"files-sdk\u002Fneon\";\n\nconst files = new Files({ adapter: neon({ bucket: \"images\" }) });\n\n\u002F\u002F Upload — body may be a Buffer, Uint8Array, Blob, File, ReadableStream, or string\nawait files.upload(\"generated\u002Fcat.jpg\", fileBuffer, { contentType: \"image\u002Fjpeg\" });\n\n\u002F\u002F Download\nconst file = await files.download(\"generated\u002Fcat.jpg\");\nconst bytes = new Uint8Array(await file.arrayBuffer());\n\n\u002F\u002F Presigned GET — share without exposing credentials (defaults to a 1h expiry)\nconst url = await files.url(\"generated\u002Fcat.jpg\", { expiresIn: 3600 });\n\n\u002F\u002F Plus: files.exists(), files.list({ prefix }), files.copy(), files.delete(), files.signedUploadUrl()\n```\n\nSwap the adapter import (`files-sdk\u002Fs3`, `files-sdk\u002Fr2`, `files-sdk\u002Fgcs`, …) and the rest of your code is unchanged.\n\n## Working with Objects: the AWS S3 Client (Alternative)\n\nNeon speaks the S3 API directly, so you can drop down to the AWS SDK whenever you prefer the native client or already depend on it. The credentials, endpoint, and region are read from the standard AWS env chain, so the only setting you pass is `forcePathStyle: true` — Neon requires path-style addressing, so the S3 client **must** set it:\n\n```typescript\nimport { S3Client } from \"@aws-sdk\u002Fclient-s3\";\n\nconst s3 = new S3Client({\n  forcePathStyle: true, \u002F\u002F required: Neon uses path-style addressing\n});\n```\n\nThen upload, download, and presign with the raw command objects:\n\n```typescript\nimport { PutObjectCommand, GetObjectCommand } from \"@aws-sdk\u002Fclient-s3\";\nimport { getSignedUrl } from \"@aws-sdk\u002Fs3-request-presigner\";\n\nconst BUCKET = \"images\";\n\n\u002F\u002F Upload\nawait s3.send(\n  new PutObjectCommand({\n    Bucket: BUCKET,\n    Key: \"generated\u002Fcat.jpg\",\n    Body: fileBuffer,\n    ContentType: \"image\u002Fjpeg\",\n  }),\n);\n\n\u002F\u002F Download\nconst res = await s3.send(\n  new GetObjectCommand({ Bucket: BUCKET, Key: \"generated\u002Fcat.jpg\" }),\n);\nconst bytes = await res.Body?.transformToByteArray();\n\n\u002F\u002F Presigned GET — share without exposing credentials\nconst url = await getSignedUrl(\n  s3,\n  new GetObjectCommand({ Bucket: BUCKET, Key: \"generated\u002Fcat.jpg\" }),\n  { expiresIn: 3600 },\n);\n```\n\n## Pairing Storage with the Database on a Branch\n\nThe canonical pattern: an agent generates an image → `PutObject` into the `images` bucket → a row is inserted in Postgres → a presigned URL is returned on read. Store the bucket **key** (not the bytes) in a Postgres column, and presign on read. Because both the row and the object live on the same branch, they branch together and never drift.\n\n## CLI Bucket and Object Commands\n\n`neon` also has first-class bucket\u002Fobject commands (`neon bucket create|list|delete`, `neon bucket object put|get|list|delete`) for scripting and one-off operations.\n\n## Built-in Branch Logs\n\n```bash\nneon logs query --branch production --source storage --since 1h\n```\n\nStorage is one of the two sources branch logs cover today, alongside Neon Functions. Logs are scoped to a single branch, so pass `--branch` when the bucket you're debugging isn't on the branch you're checked out on. Everything else about logs — the required CLI version, filters, the SDK, and the Loki-compatible read API — is in the parent `neon` skill's **Observability** section.\n\n## Neon Documentation\n\nThe Neon documentation is the source of truth and Object Storage is evolving rapidly, so always verify against the official docs. Any doc page can be fetched as markdown by appending `.md` to the URL or by requesting `Accept: text\u002Fmarkdown`. Find the right page from the docs index (https:\u002F\u002Fneon.com\u002Fdocs\u002Fllms.txt) and the changelog announcements.\n\n## Further Reading\n\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fget-started\u002Fbackend-overview.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fstorage\u002Foverview.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fstorage\u002Fget-started.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fstorage\u002Fbuckets.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fstorage\u002Fobjects.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fstorage\u002Fauthentication.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fstorage\u002Fs3-compatibility.md\n- https:\u002F\u002Fneon.com\u002Fdocs\u002Fstorage\u002Ftroubleshooting.md\n- https:\u002F\u002Ffiles-sdk.dev — Files SDK docs (the `neon` adapter)\n",{"name":5,"metadata":24,"description":7},{"parent":25,"source":26},"neon","https:\u002F\u002Fgithub.com\u002Fneondatabase\u002Fagent-skills\u002Ftree\u002Fmain\u002Fskills\u002Fneon-object-storage","main","c99c8dde29d589085aadd7402ee30e25a2a38f1a",".claude\u002Fskills\u002Fneon-object-storage","https:\u002F\u002Fgithub.com\u002Fmrluisfer\u002Famazon-extension","https:\u002F\u002Fgithub.com\u002Fmrluisfer","https:\u002F\u002Fmrluisfer.vercel.app","senior full-stack developer","2026-11-10 03:30:34",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add mrluisfer\u002Famazon-extension --skill neon-object-storage",{"tool":41,"command":42},"bunx","bunx skills add mrluisfer\u002Famazon-extension --skill neon-object-storage",{"tool":44,"command":45},"pnpm","pnpm dlx skills add mrluisfer\u002Famazon-extension --skill neon-object-storage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmrluisfer\u002Famazon-extension\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fneon-object-storage\u002FSKILL.md",true,[],[50,57,64,70,77,84],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7EDJBMRRFKJW07X18SE7XD6","example","Example skill shipped with the plugin template. Replace with a real workflow.","https:\u002F\u002Fgithub.com\u002Fmrluisfer\u002Famazon-extension\u002Fblob\u002Fmain\u002Fplugins\u002F_template\u002Fskills\u002Fexample\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7EDJ9MCR4GNRSJDC6TZ5138","new-marketplace","Add support for another Amazon country\u002Fmarketplace (e.g. amazon.com, amazon.es). Use when the user wants the extension to work on a new Amazon domain.","https:\u002F\u002Fgithub.com\u002Fmrluisfer\u002Famazon-extension\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fnew-marketplace\u002FSKILL.md",[],[],{"skillNo":65,"name":25,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EDJ13B4M7QH8HYVJV2CXTA","Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions, and the AI Gateway. Start here to choose Neon for undecided login, files, APIs, and LLM calls, set up the CLI or MCP server, and follow the branch-first workflow. Use when building an app or backend on Neon, or when \"Neon\" or \"Lakebase Postgres\" is mentioned. Child skill neon-postgres wins for an existing DATABASE_URL, SQL, schema, inspect, or search. Child skill neon-auth wins for login, users, sessions, identity routing, and Managed Better Auth setup. Also use for object storage, S3, buckets, serverless functions, function triggers, cron, AI gateway, LLM calls, logs, Loki, Grafana, observability, postgres, database, backend, Claimable Neon, neon.new, or a no-signup database.","https:\u002F\u002Fgithub.com\u002Fmrluisfer\u002Famazon-extension\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fneon\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EDHTDPJ0PREYWXKQDAF8HQ","neon-postgres","Guides and best practices for working with Lakebase Postgres on Neon: connections, pooled vs direct, schema migrations, branching, autoscaling, scale-to-zero, instant restore, read replicas, IP allow lists, logical replication, and Lakebase Search. Use when the work is an existing DATABASE_URL, SQL, schema, inspect, or search. New backends, Auth, files, Functions, and LLM calls go to the parent `neon` skill. Also use for \"@neondatabase\u002Fserverless\", \"@neondatabase\u002Fneon-js\", \"neon inspect db\", \"semantic search\", \"vector search\", \"full-text search\", \"BM25\", or \"hybrid search\".","https:\u002F\u002Fgithub.com\u002Fmrluisfer\u002Famazon-extension\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fneon-postgres\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EDHM9C93QSQBYQ3Z1QATSH","neon-postgres-egress-optimizer","Diagnose and fix excessive Postgres egress (network data transfer) in a codebase. Use when a user mentions high database bills, unexpected data transfer costs, network transfer charges, egress spikes, \"why is my Neon bill so high\", \"database costs jumped\", SELECT * optimization, query overfetching, reduce Neon costs, optimize database usage, or wants to reduce data sent from their database to their application. Also use when reviewing query patterns for cost efficiency, even if the user doesn't explicitly mention egress or data transfer.","https:\u002F\u002Fgithub.com\u002Fmrluisfer\u002Famazon-extension\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fneon-postgres-egress-optimizer\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EDHDPZ4QNV6YYWYQF5M01C","neon-postgres-branches","Choose and create the right Neon branch type for testing and development. Use when users ask about Neon branching, migration testing with real data, isolated test environments, schema-only branch workflows for sensitive data, resetting a branch from its parent, branch expiration and CI\u002FCD branch lifecycles, or branch creation via Neon CLI or Neon MCP. Triggers include \"Neon branch\", \"test migrations safely\", \"branch production data\", \"schema-only branch\", \"reset branch\", \"branch per PR\" and \"sensitive data testing\".","https:\u002F\u002Fgithub.com\u002Fmrluisfer\u002Famazon-extension\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fneon-postgres-branches\u002FSKILL.md",[],[]]