Loading...
Loading...
Build, debug, or review code that uses Cloudflare Artifacts, Git-compatible versioned storage, from Workers, the REST API, or Git clients. Use for the env.ARTIFACTS binding, creating, forking, or importing repositories, repo-scoped tokens, and pushing commits from a Worker.
npx skill4agent add cloudflare/skills artifacts| Task | Docs | Check for |
|---|---|---|
| Understand the model | How Artifacts works, Repositories, Namespaces | What the binding, REST API, and Git protocol each do |
| Use Artifacts from a Worker | Workers get started, Workers binding | Binding config, namespace and repository methods, return shapes, minimum Wrangler version |
| Develop and test locally | Local development | Local simulator default, |
| Write files from a Worker | isomorphic-git example, Git protocol | Commit and push flow, token format, in-memory filesystem |
| Issue and scope tokens | Authentication, Errors | Token scopes and how each interface authenticates; the allowed TTL range is under |
| Handle failures | Errors | Error names, numeric codes, and what each means |
| Manage repos over HTTP or the CLI | REST API, Wrangler commands | Routes, authentication, CLI usage |
| Design for scale and safety | Best practices, Limits | Repo naming, forking from a baseline, token lifetimes, rate limits |
| React to pushes or import repos | Event subscriptions, Import repositories | Event shapes; retry on |
npx wrangler typesArtifactsArtifactsRepoArtifactsErrorworker-configuration.d.tswriteget()create()ALREADY_EXISTScreate()create()import()repo.createToken("write", ttl)plaintext?expires=<unix_seconds>?expires=repo.info()get()info()ArtifactsRepoInfousingNOT_FOUNDALREADY_EXISTSArtifactsErrorworker-configuration.d.tsIMPORT_IN_PROGRESSFORK_IN_PROGRESS