Agent skill

Cloudflare Workers Observability

This skill should be used when the user asks about "worker logs", "debug worker", "worker errors", "request analytics", "worker metrics", "performance monitoring", "error rate", "invocation logs", "troubleshoot worker", "worker analytics", or needs to debug and monitor Cloudflare Workers.

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/FlorinPopaCodes/claude-marketplace/tree/main/plugins/cloudflare-toolkit/skills/workers-observability

SKILL.md

Cloudflare Workers Observability

Debug and monitor Cloudflare Workers using logs and analytics from the Observability MCP server.

Available Tools

Tool Purpose
query_worker_observability Query logs and metrics from Workers
observability_keys Discover available data fields in logs
observability_values Find available values for specific fields

Query Workflow

1. Discover Available Fields

Use observability_keys to find what data is available:

  • Metadata fields (timestamps, status codes)
  • Worker-specific fields (script name, route)
  • Custom logged fields from console.log

2. Explore Field Values

Use observability_values to find valid values for filtering:

  • Status codes present in logs
  • Script names deployed
  • Custom field values

3. Query Logs and Metrics

Use query_worker_observability to:

  • List recent events/invocations
  • Calculate metrics (error rates, latency)
  • Find specific invocations by criteria

Common Queries

Goal Approach
Recent errors Query for events with error status
Latency analysis Query for execution time metrics
Traffic patterns Query for invocation counts over time
Specific request Query by request ID or timestamp
Script comparison Query metrics grouped by script name

Debugging Workflow

  1. Identify the problem

    • Query recent errors with query_worker_observability
  2. Find patterns

    • Use observability_keys to discover relevant fields
    • Use observability_values to see error types
  3. Narrow down

    • Add filters for specific routes, times, or status codes
  4. Analyze specific invocations

    • Query for detailed logs of problematic requests

Post-Deployment Monitoring

After deploying, check for issues:

  1. Query for errors in the last 5-10 minutes
  2. Compare error rates before/after deployment
  3. Check latency metrics for performance regression

Tips

  • Start broad, then add filters to narrow results
  • Use observability_keys when unsure what fields exist
  • Custom console.log output appears in queryable fields
  • Combine with builds tools to correlate issues with deployments

Expand your agent's capabilities with these related and highly-rated skills.

FlorinPopaCodes/claude-marketplace

always-works-testing

Default testing standard for all implementation work - ensures code actually works through mandatory execution validation before confirming to user. Applies automatically whenever writing, modifying, debugging, or implementing any code (scripts, APIs, UI, configs, data operations, logic changes). This is the baseline expectation, not an optional extra - every implementation must be verified through actual execution, not assumed correct.

0 0
Explore
FlorinPopaCodes/claude-marketplace

Rails Code Generation

This skill should be used when the user asks to "generate Rails code", "create a model", "create a controller", "add a migration", "write Rails tests", "set up background jobs", "configure Rails app", or discusses Rails conventions, best practices, ActiveRecord patterns, Hotwire/Stimulus, ViewComponent, RSpec testing, or Ruby on Rails development. Based on Evil Martians' AGENTS.md.

0 0
Explore
FlorinPopaCodes/claude-marketplace

Cloudflare Documentation Search

This skill should be used when the user asks about "Cloudflare", "Workers", "Pages", "R2", "D1", "KV", "Durable Objects", "Queues", "Vectorize", "AI Gateway", "Hyperdrive", "Cloudflare API", "Wrangler", "Cloudflare documentation", "how to deploy to Cloudflare", "Cloudflare best practices", "Cloudflare pricing", "Cloudflare limits".

0 0
Explore
FlorinPopaCodes/claude-marketplace

Cloudflare Workers Builds

This skill should be used when the user asks about "deploy status", "build failed", "build logs", "deployment history", "worker deployment", "check build", "deployment succeeded", "build error", "CI/CD", "verify deployment", or needs to monitor Cloudflare Workers builds and deployments.

0 0
Explore
FlorinPopaCodes/claude-marketplace

Cloudflare DNS Analytics

This skill should be used when the user asks about "DNS performance", "zone settings", "DNS analytics", "domain configuration", "DNS report", "zone list", "DNS troubleshooting", "DNSSEC", "DNS latency", or needs to monitor and optimize Cloudflare DNS.

0 0
Explore
FlorinPopaCodes/claude-marketplace

Cloudflare Workers Bindings

This skill should be used when the user asks about "KV namespace", "R2 bucket", "D1 database", "Hyperdrive", "create binding", "list workers", "worker code", "storage binding", "database query", "object storage", "key-value store", "connection pooling", or needs to manage Cloudflare Workers storage and compute resources.

0 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results