# Artifacts

> Artifacts is an open-source agent skill for developer tools. Guides agents in building and debugging Git-compatible versioned storage on Cloudflare. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/cloudflare/skills/tree/main/skills/artifacts
- **Repository:** https://github.com/cloudflare/skills
- **GitHub stars:** 3,545
- **License:** Apache-2.0
- **Skill name:** artifacts
- **Collection:** https://github.com/cloudflare/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-30

## About

This skill points the agent at Cloudflare Artifacts, a Git-compatible storage service organized into namespaces and repositories. It covers code that uses the env.ARTIFACTS Worker binding, the REST API, or standard Git clients, and it asks the agent to consult the official docs and generated binding types before writing code rather than relying on memory.

The skill lays out practical rules: the binding manages repositories, tokens and metadata but does not write files, so changes go through a Git client such as isomorphic-git pushed with a short-lived write token. It also explains creating a repository when it is missing, matching errors by code, retrying transient import and fork states, handling racing pushes, and testing from an empty namespace after a restart. It includes a references file for reporting feedback about the skill itself.

The skill assumes a Cloudflare Workers project with Wrangler, since it runs npx wrangler types to generate declarations. It contains no scripts; the agent works from the linked documentation and the project's own code.

## When your agent uses it

> 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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/cloudflare/skills/tree/HEAD/skills/artifacts)
- [License: Apache-2.0](https://github.com/cloudflare/skills/tree/HEAD/skills/artifacts)

## Features

- **Workers binding guidance:** Explains how to configure and call the env.ARTIFACTS binding for namespaces and repositories.
- **Token handling:** Covers minting short-lived repo-scoped write tokens and how to send them over Bearer or Basic auth.
- **Repository lifecycle:** Describes creating, forking, importing and reading repository metadata safely.
- **Error handling rules:** Matches Artifacts errors by code and retries in-progress import and fork states.
- **Commit and push flow:** Outlines writing files with a Git client and pushing to a repository remote without force.
- **Local testing steps:** Directs fresh-namespace and restart testing using the local simulator and its reset options.

## Good for

- Add a Worker endpoint that creates a versioned repository for each user
- Commit generated files from a Worker and push them to an Artifacts remote
- Debug a failing env.ARTIFACTS binding call that returns an error code
- Fork a baseline repository for each agent session
- Review existing Artifacts code for missing repo-creation or token handling

## Install

### Claude Code

This skill ships in the `cloudflare` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add cloudflare/skills
/plugin install cloudflare@cloudflare
```

Or copy only this skill to `~/.claude/skills/artifacts`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/cloudflare/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/artifacts &&
cp -R "$tmp/skills/artifacts" ~/.claude/skills/artifacts &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/artifacts` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/artifacts` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/cloudflare/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/artifacts &&
cp -R "$tmp/skills/artifacts" ~/.agents/skills/artifacts &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/artifacts` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/artifacts` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/cloudflare/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/artifacts &&
cp -R "$tmp/skills/artifacts" ~/.cursor/skills/artifacts &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/artifacts` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/cloudflare/skills.git --path skills/artifacts
```

Or copy the folder to `~/.gemini/skills/artifacts` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/artifacts`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/cloudflare/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/artifacts &&
cp -R "$tmp/skills/artifacts" ~/.copilot/skills/artifacts &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/artifacts` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/cloudflare/skills.git
```

Then copy `skills/skills/artifacts` into your agent's skills folder as `artifacts`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does the skill write files to repositories for me?

No. The binding creates, imports, forks and deletes repositories, manages tokens and reads metadata. Files are changed by committing with a Git client and pushing to the repository remote.

### Which tools does Artifacts need?

It assumes a Workers project using Wrangler, since it runs npx wrangler types to generate the binding declarations. It has no scripts of its own.

### How should push tokens be handled?

It recommends calling repo.createToken with the write scope and a short TTL when pushing, using the plaintext value, and avoiding storing tokens in module scope.

### Does Artifacts work offline?

Reading the generated binding types works without network access, according to the skill. Other parts rely on the Cloudflare documentation.

### How do I install Artifacts in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/artifacts to use it in all your projects, or to .claude/skills/artifacts in one project. Or install the cloudflare plugin, which includes it: /plugin marketplace add cloudflare/skills, then /plugin install cloudflare@cloudflare.

### Does Artifacts run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Artifacts?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Artifacts?

The closest alternatives to Artifacts are Agents SDK, Workers best practices, Cloudflare email service, Cf CLI and Wt.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Agents SDK](https://ai-powered.com/skills/agents-sdk): Agents SDK is an open-source agent skill for developer tools.
- [Workers best practices](https://ai-powered.com/skills/workers-best-practices): Workers best practices is an open-source agent skill for developer tools.
- [Cloudflare email service](https://ai-powered.com/skills/cloudflare-email-service): Cloudflare email service is an open-source agent skill for cloud and infrastructure.
- [Cf CLI](https://ai-powered.com/skills/cf-cli): Cf CLI is an open-source agent skill for cloud and infrastructure.
- [Wt](https://ai-powered.com/skills/wt-timvw): Wt is an open-source agent skill for developer tools.
- [Flagship](https://ai-powered.com/skills/flagship): Flagship is an open-source agent skill for developer tools.
- [Cloudflare app bootstrap](https://ai-powered.com/skills/cloudflare-app-bootstrap): Cloudflare app bootstrap is an open-source agent skill for cloud and infrastructure.
- [Git](https://ai-powered.com/skills/git-jasgujral): Git is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/artifacts-cloudflare
