cffrank/paperclip-skills-agents/cloudflare-stack

Claude Code and agent skill by cffrank/paperclip-skills-agents

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Mandatory Cloudflare-first technology stack rules for all __COMPANY_NAME__ projects. Defines approved technologies, forbidden alternatives, binding patterns, environment conventions, and cross-cutting concerns. Every agent in the Paperclip org loads this skill. Use as the source of truth for technology decisions, stack questions, or when any agent needs to verify whether a tool/library/service is approved. Triggers on: "what stack", "which framework", "approved tools", "can I use", "technology…

Install

npx vskill@latest install cffrank/paperclip-skills-agents/cloudflare-stack

SKILL.md

The same SKILL.md was published earlier as cffrank/paperclip-skills-agents/cloudflare-stack.

Cloudflare Stack Skill

Shared skill loaded by every agent. This is the single source of truth for __COMPANY_NAME__'s mandatory technology stack. If it's not listed here, it needs an ADR (see software-architect skill) before adoption.

The Stack

Approved (use these, no discussion needed)
LayerTechnologyWhy
Frontend frameworkSvelteKitSSR on Workers, file-based routing, form actions
UI componentsshadcn-svelteAccessible, composable, Tailwind-native
StylingTailwind CSS 4Utility-first, no custom CSS needed
LanguageTypeScript (strict mode)Type safety across frontend + Workers
RuntimeCloudflare Workers (workerd)Edge compute, global deployment
DatabaseCloudflare D1 (SQLite)Edge-local reads, zero connection overhead
ORMDrizzleType-safe, D1-compatible, generates migrations
Object storageCloudflare R2S3-compatible, no egress fees
CacheCloudflare KVGlobal key-value, low-latency reads
AI inferenceCloudflare Workers AIEdge inference, free tier
AI proxyCloudflare AI GatewayCache, rate limit, log AI requests
Vector searchCloudflare VectorizeNative vector DB for RAG
AuthClerkManaged auth, JWT validation, user management
PaymentsStripeCheckout, subscriptions, webhooks
EmailResendTransactional email API
LintingBiomeFast, replaces ESLint + Prettier
TestingVitest + @cloudflare/vitest-pool-workersTests in workerd runtime
E2E testingPlaywrightCross-browser, screenshot evidence
CI/CDGitHub Actions + cloudflare/wrangler-action@v3Deploy to CF
Git hostingGitHubRepos, PRs, Actions, Issues
SecretsProton Pass → GitHub Secrets → wrangler secretEncrypted chain
TelephonyTelnyxSIP trunks, SMS, phone numbers
Voice AIElevenLabs Conversational AISTT-LLM-TTS pipeline
IconsLucide SvelteConsistent icon set
Forbidden (never use, no exceptions)
TechnologyWhy forbiddenUse instead
Prismamigrate deploy fails on D1's _cf_KV tableDrizzle
Retell AIIncompatible with __COMPANY_NAME__ architectureElevenLabs
Express.jsNot Workers-compatibleHono or SvelteKit API routes
ReactNot the chosen frameworkSvelteKit
Next.jsNot the chosen frameworkSvelteKit
MongoDBNo Cloudflare equivalentD1 (SQLite)
RedisUse Cloudflare-nativeKV or Durable Objects
AWS S3Use Cloudflare-nativeR2
VercelUse Cloudflare-nativePages
NetlifyUse Cloudflare-nativePages
DockerWorkers are the runtimeWorkers (no containers)
ESLint + PrettierSlower, more configBiome
JestIncompatible with vitest-pool-workersVitest
pages-action@v1Deprecatedwrangler-action@v3
Requires ADR (case-by-case)
TechnologyWhen it might be OK
HonoFor standalone API Workers (no UI)
Durable ObjectsFor stateful coordination, WebSocket servers
QueuesFor async job processing
Cron TriggersFor scheduled tasks
Service BindingsFor Worker-to-Worker RPC
Workers for PlatformsFor multi-tenant isolation

Cloudflare Account

Account ID: __CF_ACCOUNT_ID__

All resources (Workers, D1, R2, KV, Pages) live in this account.

Environment Conventions

Every project has three environments with matching branches:

BranchEnvironmentD1 suffixR2 suffixPurpose
devdev-dev-devDaily development
stagingstaging-staging-stagingQA validation
mainproduction-prod(no suffix)Live users

Promotion: dev → staging → main via PR. Never skip environments. Never deploy to production manually — always through CI/CD.

Binding Naming Conventions

toml
# wrangler.toml — consistent across all projects
[[d1_databases]]
binding = "DB" # Always "DB", never "DATABASE" or "D1"
[[r2_buckets]]
binding = "ASSETS" # Always "ASSETS" for primary bucket
[[kv_namespaces]]
binding = "CACHE" # Always "CACHE" for primary KV
[ai]
binding = "AI" # Always "AI"
[[vectorize]]
binding = "VECTORIZE" # Always "VECTORIZE"

TypeScript Conventions

Strict Mode
json
// tsconfig.json
{
"compilerOptions": {
"strict": true,
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true
}
}
Import Aliases
json
// svelte.config.js (via vite.resolve.alias)
{
"$lib": "src/lib",
"$components": "src/lib/components"
}
File Naming
  • Components: PascalCase.svelte (ProjectCard.svelte)
  • Everything else: kebab-case.ts (auth-middleware.ts)
  • Schema files: schema.ts (single file for small projects, split by domain for large)
  • Test files: *.test.ts co-located with source

Cross-Cutting Rules

Error Handling
  • Workers: Return structured JSON errors, never raw stack traces
  • SvelteKit: Use error() helper, custom error pages
  • D1: Catch constraint violations, return 409 Conflict
Logging
  • Use console.log/warn/error in Workers (captured by wrangler tail)
  • Structured JSON for machine-parseable logs
  • Never log secrets, PII, or full request bodies
Security
  • Auth on every /api/* route via Clerk middleware
  • CORS allowlist (never * with credentials)
  • Rate limiting on public endpoints
  • Secrets via wrangler secret put, never in code or config
Performance
  • D1 queries: parameterized, batched, indexed
  • R2: stream large objects, never buffer
  • KV: cache hot reads with TTL
  • Static assets: served by Cloudflare edge automatically
  • Bundle: < 10MB (Workers limit)
Data
  • Money stored as integer cents (never floats)
  • Dates as ISO 8601 TEXT in D1 (never Unix timestamps)
  • IDs as UUID TEXT (never auto-increment for distributed systems)
  • Soft delete preferred over hard delete for auditable data

When an Agent Is Unsure

If any agent encounters a technology choice not covered here:

  1. Check this skill first — if it's listed as forbidden, stop
  2. If not listed at all, propose an ADR using the software-architect skill
  3. Never adopt a new dependency without explicit approval
  4. When in doubt, use the Cloudflare-native option

Relationship to Other Skills

  • Loaded by: Every agent in the Paperclip org (shared)
  • Overrides: Any agent-specific technology preferences
  • Extended by: software-architect (ADRs for new tech decisions)
  • Enforced by: code-reviewer (stack compliance checks)

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cffrank/paperclip-skills-agents/cloudflare-stack/badge)](https://verified-skill.com/skills/cffrank/paperclip-skills-agents/cloudflare-stack)

Something wrong with this skill or its page? Tell us.