code-dimension/code-dimension-skills/cloudflare-stream
Claude Code and agent skill by code-dimension/code-dimension-skills
- community
Checking that the SKILL.md file is still in the repository.
Design, implement, review, or troubleshoot Cloudflare Stream video-on-demand and live-video integrations, including uploads, playback, access control, webhooks, analytics, operations, limits, pricing, and product trade-offs. Use for Cloudflare Stream work; do not use for generic Cloudflare CDN, R2, Images, or Media Transformations tasks that do not involve Stream.
Install
npx vskill@latest install code-dimension/code-dimension-skills/cloudflare-streamSKILL.md
The same SKILL.md was published earlier as code-dimension/code-dimension-skills/cloudflare-stream.
Cloudflare Stream
Build the smallest Stream integration that satisfies the product contract. Treat Stream as an asynchronous managed video pipeline: the application owns authorization and business metadata; Cloudflare owns ingestion, encoding, storage, and delivery.
Before changing code
- Inspect the repository's existing Cloudflare client, configuration, domain model, webhook handling, player, and tests before adding anything.
- Identify the actual mode: on-demand upload, direct creator upload, playback, live, analytics, or lifecycle operations.
- Fetch current Cloudflare Stream documentation through Context7 before relying on endpoint schemas, limits, pricing, beta status, or SDK syntax. Prefer the official Stream docs and API reference. Never invent an endpoint or field.
- Read only the references needed for the task:
- Product fit and architecture: decision-guide.md
- Authentication, API conventions, and video lifecycle: api-lifecycle.md
- Uploads and media preparation: uploads.md
- Playback, privacy, captions, and downloads: playback-security.md
- Live streaming: live.md
- Webhooks, analytics, costs, limits, and operations: operations.md
Non-negotiable boundaries
- Keep API tokens, signing keys, webhook secrets, live input keys, and account identifiers needed for privileged operations on trusted server infrastructure. Never return them to a browser or mobile client.
- For user uploads, issue a constrained, expiring Direct Creator Upload URL from the backend; upload media directly from the client to Stream.
- Treat upload acceptance as pending, not success. Persist the Stream video UID, then transition business state from a verified webhook or explicit status reconciliation.
- Verify webhook signatures against the untouched raw body, reject stale timestamps, use constant-time comparison, and make processing idempotent.
- Require signed URLs for private or paid content.
allowedOriginsis defense in depth against embedding, not viewer authorization. - Use short-lived playback tokens and authorize each issuance against the application's current user/resource policy. Never log tokens or place them in durable storage.
- Handle deletion deliberately: remove or tombstone the application record and Stream asset consistently; design retries so partial failure is recoverable.
- Do not promise DRM, forensic watermarking, guaranteed prevention of screen capture, frame-accurate editing, arbitrary rendition control, or permanent source-file archival unless a separately verified product capability provides it.
Implementation shape
- Reuse the installed Cloudflare SDK when it already covers the required API; otherwise use the REST API with one small server-side adapter. Do not add a second Cloudflare client abstraction.
- Store Stream identifiers and business metadata in the application's database. Do not use Stream
metaas the system of record. - Model only states the product needs, mapping Cloudflare's richer processing status at the integration boundary.
- Prefer the built-in player for the least maintenance. Use HLS/DASH with a custom player only for requirements the built-in player cannot satisfy.
- Add one focused runnable check for each non-trivial flow: upload provisioning constraints, webhook signature/idempotency, playback authorization, or live key handling.
Completion evidence
Report the selected upload/playback mode, security controls, asynchronous state transition, cleanup behavior, verified docs date, and checks run. Separate locally verified behavior from actions that require a real Cloudflare account.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cloudflare-stream/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/code-dimension/code-dimension-skills/cloudflare-stream)