What is the Artifacts skill?
Artifacts is a devops skill by Cloudflare for Claude Code, Cursor, Codex and other AI coding agents. 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.
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.
When to use it
Use for the env.ARTIFACTS binding, creating, forking, or importing repositories, repo-scoped tokens, and pushing commits from a Worker.
What the SKILL.md covers
- Documentation
- Find the binding types first
- Gotchas
- Verify
- Skill feedback
- Author
- Cloudflare
- Pack
- cloudflare/skills (24 skills)
- Category
- DevOps, #86 of 455
- Alyn Score
- 75 / 99
- Files
- 2, includes references
- License
- Apache-2.0
- Last updated
- 29 h ago
- Works with
- Claude Code, Claude, Cursor, Codex, Gemini CLI, Copilot
Artifacts compared to similar skills
| Skill | Alyn Score | GitHub stars | Updated |
|---|---|---|---|
| Artifacts · Cloudflare | 75 | 3.4k | 29 h ago |
| Db Repo · Nikolay-Shirokov | 58 | 823 | 10 days ago |
| Dsh Code Review · qufei1993 | 47 | 1.9k | 3 days ago |
| Cs Fullstack Review · alirezarezvani | 63 | 30k | 3 days ago |
Install Artifacts
Pick your agent. Every command is ready to paste.
npx alyn-cli add artifactsDetects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
npx skills add cloudflare/skills --skill artifactsOr use the open skills CLI directly.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads artifacts when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the artifacts skill”. In Codex, type $artifacts.
Cloudflare Artifacts
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.
Documentation
| 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.
Find the binding types first
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.
Gotchas
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.
- The binding doesn't write files or commits. It creates, imports, forks, and deletes repositories, manages tokens, and reads metadata, history, and files. To change files, commit with a Git client, such as isomorphic-git in a Worker, and push to the repository's remote with a
writetoken. - Create the repository in code if the task needs it to exist.
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 callingcreate(), and treatALREADY_EXISTSfromcreate()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. - Mint a short-lived token when you need to push.
create()andimport()return an initial token, but prefer not to keep it in module scope or rely on it for later pushes. Callrepo.createToken("write", ttl)when you need to push, use itsplaintext, 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. - Read metadata with
repo.info().get()returns a disposable capability, not metadata.info()performs a fresh lookup and returnsArtifactsRepoInfo; read its field names, such as the remote URL and default branch, from the generated types. Declare handles withusingso they are released before the request ends. - Match errors on their code, not message text. The codes, such as
NOT_FOUNDandALREADY_EXISTS, are listed on Errors; check how the binding exposes them in theArtifactsErrordeclaration inworker-configuration.d.ts. RetryIMPORT_IN_PROGRESSandFORK_IN_PROGRESSbriefly. Return a clear error for the rest. - Handle concurrent pushes (general Git guidance). Two writers can race on the same branch. Push without force, and on a rejected push fetch again, reapply the change, and retry.
- Read current state from Artifacts (general application guidance). Read files and metadata through the binding or Git when a request needs them, instead of caching repository contents, tokens, or remote URLs in module scope or another store, unless the task asks for that. Cached copies go stale and are lost on restart.
Verify
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.
Skill feedback
If the user reports that this skill gave incorrect or outdated guidance, or is missing information, read references/skill-feedback.md.
Tips for Artifacts
- • Start a fresh session after installing so your agent picks up the new skill.
- • It bundles reference files. The agent reads them only when needed, so they cost no context until then.
- • It is part of a pack with 24 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Artifacts
What does the Artifacts skill do?
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.
How do I install Artifacts?
Run "npx alyn-cli add artifacts" in your project. The Alyn CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Artifacts work in Cursor and Codex?
Yes. Artifacts uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
When should I use the Artifacts skill?
Use for the env.ARTIFACTS binding, creating, forking, or importing repositories, repo-scoped tokens, and pushing commits from a Worker.
What is inside the Artifacts skill?
The SKILL.md covers Documentation, Find the binding types first, Gotchas, Verify, Skill feedback, and the skill folder has 2 files.
What is a good alternative to Artifacts?
Db Repo by Nikolay-Shirokov is the highest-ranked similar skill from another creator, with an Alyn Score of 58 compared to 75 for Artifacts.
Is Artifacts free?
Artifacts is open source on GitHub under the Apache-2.0 license. It is free to install; check the license before commercial use.
Who made Artifacts?
Artifacts is published by Cloudflare in the cloudflare/skills repository, together with 23 other skills.


