Build, debug, or review code using Cloudflare Artifacts Git-compatible versioned storage from Workers, REST API, or Git clients. Covers env.ARTIFACTS binding, creating/forking/importing repos, repo-scoped tokens, and pushing commits from a Worker.
Ships in artifacts. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Artifacts is Git-compatible versioned storage: namespaces hold repositories, and each repository has a Git remote. Your knowledge of the Artifacts API may be outdated or missing. Prefer retrieval over pre-training: read the matching page below before writing code, and treat the docs and generated types as the source of truth over this skill.
| 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, remote setting, Git and tool versions, where local repos persist and how to reset them |
| 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 INVALID_TTL |
| 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 409 Conflict while an import finishes. Repository status values are under list() in the Workers binding reference |
For the full page list, read Artifacts llms.txt.
Run npx wrangler types after adding the Artifacts binding, then read the Artifacts, ArtifactsRepo, and ArtifactsError declarations in the generated worker-configuration.d.ts. They document every method, return shape, and error code for the installed Wrangler version, and work without network access. Do not guess method names or probe the binding at runtime.
Most of these follow from the Workers binding reference; the last two are general Git and application guidance. They are the usual causes of Workers that pass a manual test but fail in a fresh environment.
write token.get() throws if the repository does not exist or is not ready yet, so check the error code before treating it as missing. Handle a missing repository by calling create(), and treat ALREADY_EXISTS from create() as a concurrent request winning the race. A new repository has no commits, so the first write initializes a working tree and pushes, rather than cloning.create() and import() return an initial token, but prefer not to keep it in module scope or rely on it for later pushes. Call repo.createToken("write", ttl) when you need to push, use its plaintext, keep the TTL short, and revoke it when done if appropriate. Best practices recommends short lifetimes and a fresh token for each agent session. Tokens end in an ?expires=<unix_seconds> suffix; do not assume a fixed prefix. Send the full string as a Bearer token, or only the part before ?expires= as the Basic auth password, as in the Git protocol reference.repo.info(). get() returns a disposable capability, not metadata. info() performs a fresh lookup and returns ArtifactsRepoInfo; read its field names, such as the remote URL and default branch, from the generated types. Declare handles with using so they are released before the request ends.NOT_FOUND and ALREADY_EXISTS, are listed on Errors; check how the binding exposes them in the ArtifactsError declaration in worker-configuration.d.ts. Retry IMPORT_IN_PROGRESS and FORK_IN_PROGRESS briefly. Return a clear error for the rest.Test the way a new deployment runs: start from a namespace without the repository, exercise every route, restart the Worker, and exercise them again. If you created repositories or tokens by hand while exploring, delete them first, or the code that creates them is never tested. With the local simulator and persistence on, repositories persist across dev-server restarts and are separate from deployed ones. Local development covers which dev tools use the simulator by default and how to reset it to start empty.
If the user reports that this skill gave incorrect or outdated guidance, or is missing information, read references/skill-feedback.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/artifacts:artifactsfrom artifacts
artifacts@filippo-skills is listed by filippolmt/skills — review the source before installing
npx claudepluginhub filippolmt/skills --plugin artifacts2 plugins in one repository ship this exact skill · first indexed Nov 24, 2026
Other plugins' skills for the same job