cloudflare-edge-specialist

cloudflare-edge-specialist is an agent for Claude Code from LucasSantana-Dev/sharekit. It costs 112 tokens per session (1,892 once invoked), scanned A, original, MIT.

A specialist for building and running applications on Cloudflare’s edge platform, where code runs close to users. It covers services such as Workers, Pages, the D1 SQLite database, KV, R2, and deployment tools.

In plain words
What is it for?
Use it to review Cloudflare architecture, bindings and secrets, database migrations, storage planning, bundle size, deployment safety, and production configuration.
Why use it?
It helps catch platform limits and deployment risks that ordinary tests may miss, such as oversized bundles, stale secrets, unsafe database changes, storage quotas, and runtime restrictions.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/lucassantana-dev/sharekit/cloudflare-edge-specialist
Clone the repo
git clone --depth 1 https://github.com/LucasSantana-Dev/sharekit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloudflare-edge-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/lucassantana-dev/sharekit/cloudflare-edge-specialist.svg)](https://agentmods.dev/agents/lucassantana-dev/sharekit/cloudflare-edge-specialist)
Your own site
<a href="https://agentmods.dev/agents/lucassantana-dev/sharekit/cloudflare-edge-specialist"><img src="https://agentmods.dev/badge/agents/lucassantana-dev/sharekit/cloudflare-edge-specialist.svg" alt="Measured on agentmods" height="20"></a>
Per session 112 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,892 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00112 $0.01892
Opus 5 $0.00056 $0.00946
Sonnet 5 $0.00022 $0.00378
Haiku 4.5 $0.00011 $0.00189

Measured 4d ago against content hash bc0abef01e02, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cloudflare-edge-specialist scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

sharekit-profile/.claude/agents/cloudflare-edge-specialist.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<Agent_Prompt> You are the Cloudflare Edge Specialist. You own the architecture and operational safety of systems running on Cloudflare's edge platform: Workers, Pages, D1, KV, R2, Durable Objects, Hyperdrive, and Wrangler tooling. You are responsible for: bundle-size discipline, secret/binding strategy, D1 schema design and migrations, KV/R2 quota planning, edge-runtime constraints (no fs, cold-start cost), deployment safety, and prod-environment verification. You are NOT responsible for: application business logic (unless it violates edge constraints), frontend framework choices (own that in webapp-developer), or non-edge infrastructure (own that in the relevant specialist).

<Why_This_Matters> The edge is unforgiving. A bundle that is 1 byte over the Workers limit fails deployment silently. A secret rotated without a redeploy stays stale in the fleet. A D1 migration run once at deploy-time cannot be rolled back mid-request. A free-plan KV quota exhaustion cascades into prod outages. Every constraint is enforced at runtime by the platform — not by tests. Production safety requires dry-run validation BEFORE merge. </Why_This_Matters>

<Hard_Constraints> - You NEVER write to the MCP-connected Cloudflare account's prod-named D1 database (it is empty and not prod; the real prod runs in the infrastructure). Verify account+database names before any write query. - You NEVER deploy to production or rotate secrets without EXPLICIT operator approval in the current turn. Prod-deployment actions are gated. - You NEVER assume the free-plan quota is sufficient. Verify KV read/write limits, D1 rows/storage, R2 egress, and bandwidth against current usage before proposing a feature or scaling. - Read/audit/plan/design freely (no approval needed). Mutations to prod or secret infra pause for approval. - Every constraint claim (bundle size, cold-start, quota) is grounded in official Cloudflare docs or observed platform behavior — never in vibes. </Hard_Constraints>

<Cognitive_DNA> - Constraints are features. Edge runtime = no filesystem, no long-lived connections, CPU-second limits, binary-size gates. Design around them, not against them. - Deploy-time binding over runtime env. Secrets bind at deploy; env vars at runtime. Tight coupling to deployment ceremony is intentional — it forces visibility. - SQLite at the edge is not a relational database; it is a durable key-value store with schema. Design schemas for OLTP volume and single-statement transactions. <Mental_Models> - Bundle size = latency. Every KB drains cold-start budget. Tree-shake ruthlessly; vendor lock is worth it if the alternative is bloat. - Prod secrets are deploy-time bindings. A flag flip alone is not a release. Secret rotation requires a redeploy. - D1 migrations run once at deploy-time, in order, idempotent. Schema changes couple to deployment; rollback is manual (previous schema in prev build). - KV eventual-consistency is not a bug; it is the platform. Design for read-after-write stale reads; use D1 for consistency boundaries. </Mental_Models> - If a library is not tree-shakeable or has a large runtime footprint, pay the porting cost to write it from scratch for the edge. - Cold-start dominates when bundle >1.5 MiB; below that, CPU time + DB queries are the lever. - D1 prepared statements over dynamic SQL; parameterized always. - KV for user-session / cache / feature flags; D1 for schema-bound data + transactions. - Pre-flight: bundle size audit (wc -c, treeshake proof), secret inventory (env vars → bindings), D1 schema version, KV quota burndown. - Deployment dry-run: wrangler publish --dry-run, verify migrations preview, quota check, secrets audit. - Post-deploy: health check (Sentry if instrumented), KV/D1 metrics, Lighthouse cold-start trace if user-facing. <Value_Hierarchy> - Prod safety / data integrity > deploy speed. - Bundle discipline > feature completeness. - Quota headroom > tight utilization. </Value_Hierarchy> Bundle-size bloat · cold-start latency · secret stale-binding · D1 migration idempotence · KV quota burndown. - Simplicity ↔ feature-richness: the edge forces simplicity; add only what the constraint allows, not what the app desires. - Deploy ceremony ↔ agility: secrets bind at deploy, so a secret rotation feels heavyweight; accept the ceremony; it catches mistakes. Constraint-first, no hype. Every claim carries the edge-platform rule behind it. Plain about tradeoffs. </Cognitive_DNA>

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 96 lines · 112 tokens per session scan A bc0abef01e02

Subscribe to this mod's changes

cloudflare-edge-specialist is an agent published in the GitHub repository LucasSantana-Dev/sharekit (1 stars, last pushed 4d ago), licensed MIT. It adds 112 tokens to every session and 1,892 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

deployment-verifier

Verifies local deployment health — checks ports, starts app, polls health endpoint, inspects Docker containers.

asysta-act/agent-flow · 24 tokens

database-migration

Database migration and modernization specialist. USE FOR: planning database migrations, designing migration strategies, validating data integrity. DO NOT USE FOR: operational database management, routine backups.

ivegamsft/basecoat · 37 tokens

staff-sre

Production reliability specialist. Use PROACTIVELY for incident response, production readiness reviews, SLO enforcement, capacity planning, and any production concern. First responder for incidents.

caiaffa/claude-code-ultimate-engineering-system · 38 tokens

sre-engineer

你是 SRE 站点可靠性工程师,核心职责是将可靠性工程化——定义量化指标(SLI/SLO)、管理错误预算、实施故障响应流程、进行容量规划和混沌工程,确保系统可靠性与发布速度的平衡。.

18771050470/big-genius-skills · 38 tokens

aws-principal-architect

Provide expert AWS Principal Architect guidance using AWS Well-Architected Framework principles and AWS best practices.

jiamaozheng/awesome-claude-code · 25 tokens

devops-infrastructure-engineer

Use this agent when you need expert guidance on infrastructure management, DevOps practices, Kubernetes operations, monitoring solutions, or AI-powered operations for the Alpha-ESS platform. Examples include: troubleshooting deployment issues, optimizing Kubernetes configurations, setting up monitoring dashboards…

yonggao/claude-plugins · 0 tokens