cloudflare-assets

SkillCloud & infra

Cloudflare Assets binding usage rules

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the cloudflare-assets skill

What this skill tells your AI

The instructions your AI receives, as published by theprimeagen/skills in skills/cloudflare-assets/SKILL.md and read by ahel’s review.

Cloudflare Assets

Rules

  1. Configure static assets in wrangler.jsonc with an assets block that sets both binding and directory.
  2. Serve static files from the Worker by returning env.ASSETS.fetch(request) inside fetch.
  3. Keep the binding name consistent across config and code (for example ASSETS in both places).

Example 1: wrangler.jsonc

{
  "$schema": "node_modules/wrangler/config-schema.json",
  "name": "my-worker",
  "main": "src/index.ts",
  "compatibility_date": "2026-02-24",
  "assets": {
    "binding": "ASSETS",
    "directory": "./public"
  }
}

Example 2: Minimal Worker

export default {
  async fetch(request, env, ctx) {
    return env.ASSETS.fetch(request);
  },
};

Signals

GitHub stars
233
Forks
5
Last commit
Feb 2026

ahel review

  • S4info
    community integration — published by theprimeagen, not cloudflare

Automated review, not a security audit. Ruleset v1+k2.

Advanced
Catalog kind
skill
Gateway key
cloudflare-assets
Source
github.com/theprimeagen/skills