heymegabyte/agent-skills / 13-observability-and-growth
observability-and-growth
VerifiedFull instrumentation from day one. PostHog consolidates product analytics + feature flags + error tracking (one platform, one bill). GA4 via GTM (14-step automation, custom dimensions over events, server-side tagging). Sentry (deep error tracking + performance). Stripe (webhook-first with idempotent processing). Listmonk on Coolify (newsletters via Amazon SES SMTP relay). PLG 7-layer framework. Programmatic SEO (5 page types). Incident auto-remediation via Sentry→Inngest pipeline. AI search (GEO) awareness. Local business conversions (phone_click, direction_click, form_submit, booking_click) with CRO patterns for both SaaS and local.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.8 KB |
| activation-funnel.md | markdown | 11.0 KB |
| analytics-configuration.md | markdown | 7.2 KB |
| conversion-optimization.md | markdown | 4.9 KB |
| email-marketing-and-listmonk.md | markdown | 8.1 KB |
| feature-flags-and-experiments.md | markdown | 6.6 KB |
| mcp-server-registry.md | markdown | 15.0 KB |
| sentry-alert-rules.md | markdown | 8.7 KB |
| square-payments.md | markdown | 13.3 KB |
| stripe-billing.md | markdown | 9.8 KB |
| user-feedback-collection.md | markdown | 8.9 KB |
| workers-tracing-otlp.md | markdown | 3.0 KB |
workers-tracing-otlp.md
View on GitHub# Workers Tracing + OTLP Export — Observability 2026
Cloudflare Workers automatic tracing is in open beta. Zero-config OpenTelemetry instrumentation for every I/O: KV, R2, D1, DO, fetch, AI binding, Vectorize, Queue.
## Enable
`wrangler.jsonc`:
```jsonc
{
"observability": { "enabled": true }
}
```
Free until **March 1, 2026** — then billed.
## Export to External Backends
### Axiom (Cloudflare partner — cheapest at edge volumes)
```ts
import { setupAxiomOtel } from '@axiomhq/cloudflare-workers';
setupAxiomOtel({
dataset: env.AXIOM_DATASET,
token: env.AXIOM_TOKEN,
});
```
### Honeycomb (best for trace exploration + BubbleUp anomaly detection)
```ts
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
const exporter = new OTLPTraceExporter({
url: 'https://api.honeycomb.io/v1/traces',
headers: { 'x-honeycomb-team': env.HONEYCOMB_API_KEY },
});
```
### Grafana / Datadog
Same OTLP pattern — change URL + auth headers.
## Pillar Roles (avoid duplication)
- **Sentry** (`@sentry/cloudflare` v11, stream trace lifecycle default since 11.0) — **exceptions** only. Use `withSentry` wrapper. Drop the manual breadcrumb scaffolding for I/O; Workers Tracing covers that.
- **Workers Tracing (OTLP)** — **spans** for every I/O, perf timing, "where did time go" debugging.
- **PostHog** — product analytics + session replay + feature flags + frontend error tracking (one platform). New projects can go PostHog-only for frontend, Sentry-only for backend.
- **GA4 / GTM** — marketing + acquisition + conversion funnels.
- **AI Gateway** — every LLM call. Logging + caching + rate-limit + fallback in one binding.
## Sentry v11 + Cloudflare Pattern
```ts
import { withSentry } from '@sentry/cloudflare';
export default withSentry(
(env) => ({
dsn: env.SENTRY_DSN,
tracesSampleRate: 1.0,
sendDefaultPii: false,
release: env.SENTRY_RELEASE,
environment: env.ENVIRONMENT,
}),
{
async fetch(request, env, ctx) {
// your worker
},
},
);
```
Use **OIDC** to mint `CLOUDFLARE_API_TOKEN` in GitHub Actions — never long-lived secret in env.
## PostHog Unified (Frontend)
```ts
posthog.init(env.POSTHOG_TOKEN, {
api_host: 'https://us.i.posthog.com',
persistence: 'memory', // cookie-free
autocapture: true,
capture_pageview: true,
capture_pageleave: true,
enable_recording_console_log: true, // ties errors → session replay
});
```
CSP additions:
```
script-src 'self' https://us.i.posthog.com;
connect-src 'self' https://us.i.posthog.com https://us-assets.i.posthog.com;
```
## CI/CD via GitHub Actions
```yaml
- uses: actions/checkout@v5
- uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# Or OIDC:
# accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
```
Or use **Workers Builds** (native CF CI — auto-detects framework, preview URL per branch via `wrangler versions upload`).
## Pin versions
- `actions/checkout@v5`
- `actions/upload-artifact@v4`
- `actions/setup-node@v4`
- `cloudflare/wrangler-action@v3` (Wrangler 4 default)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |