/cloudflare-vm:analytics-enginefrom cloudflare-vm
Cloudflare Workers Analytics Engine Reference: Expert guidance for implementing unlimited-cardinality analytics at scale using Cloudflare Workers Analytics Engine.
Ships in cloudflare-vm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Vendored from themusebook/skills (derived from cloudflare/skills, Apache-2.0). This snapshot may be outdated: confirm limits, pricing, API signatures and config options against https://developers.cloudflare.com/ before you cite them. When this file and the docs disagree, trust the docs.
When invoked: read every file in this skill's directory before answering, so you have the full reference: api.md, configuration.md, gotchas.md, patterns.md. Then answer the user's question (or, if none was given, summarise the product: what it is, config, API, patterns and gotchas). Related products are sibling skills, linked as ../<product>/.
Expert guidance for implementing unlimited-cardinality analytics at scale using Cloudflare Workers Analytics Engine.
Time-series analytics database designed for high-cardinality data (millions of unique dimensions). Write data points from Workers, query via SQL API. Use for:
Key Capability: Track metrics with unlimited unique values (e.g., millions of user IDs, API keys) without performance degradation.
| Concept | Description | Example |
|---|---|---|
| Dataset | Logical table for related metrics | api_requests, user_events |
| Data Point | Single measurement with timestamp | One API request's metrics |
| Blobs | String dimensions (max 20) | endpoint, method, status, user_id |
| Doubles | Numeric values (max 20) | latency_ms, request_count, bytes |
| Indexes | Filtered blobs for efficient queries | customer_id, api_key |
| Task | Start Here | Then Read |
|---|---|---|
| First-time setup | configuration.md → api.md → patterns.md | |
| Writing data | api.md → gotchas.md (sampling) | |
| Querying data | api.md (SQL API) → patterns.md (examples) | |
| Debugging | gotchas.md → api.md (limits) | |
| Optimization | patterns.md (anti-patterns) → gotchas.md |
Need to track metrics? → Yes
↓
Millions of unique dimension values? → Yes
↓
Need real-time queries? → Yes
↓
Use Analytics Engine ✓
Alternative scenarios:
- Low cardinality (<10k unique values) → Workers Analytics (free tier)
- Complex joins/relations → D1 Database
- Logs/debugging → Tail Workers (logpush)
- External tools → Send to external analytics (Datadog, etc.)
wrangler.jsonc:{
"analytics_engine_datasets": [
{ "binding": "ANALYTICS", "dataset": "my_events" }
]
}
env.ANALYTICS.writeDataPoint({
blobs: ["/api/users", "GET", "200"],
doubles: [145.2, 1], // latency_ms, count
indexes: [customerId]
});
SELECT blob1, SUM(double2) AS total_requests
FROM my_events
WHERE index1 = 'customer_123'
AND timestamp >= NOW() - INTERVAL '7' DAY
GROUP BY blob1
ORDER BY total_requests DESC
writeDataPoint(), SQL API, query syntaxWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub vmaia00/claude-specs --plugin cloudflare-vm64 skills in this plugin
/agents-sdkCloudflare Agents SDK: Cloudflare Agents SDK enables building AI-powered agents on Durable Objects with state, WebSockets, SQL, scheduling, and AI integration./ai-gatewayCloudflare AI Gateway: Expert guidance for implementing Cloudflare AI Gateway - a universal gateway for AI model providers with analytics, caching, rate limiting, and routing capabilities./ai-searchCloudflare AI Search Reference: Expert guidance for implementing Cloudflare AI Search (formerly AutoRAG), Cloudflare's managed semantic search and RAG service.Other plugins' skills for the same job