Skip to content
Skills Library
Data & analytics · Planning

telemetry-design

/telemetry-design

Define product analytics events, structured logs, system metrics, and error boundaries for a feature. Use when designing telemetry, observability, tracking plans, or verifying event emissions in tests.

Repository
skills ↗
Licence
MIT
Last repository change
11.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 11.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Define product analytics events, structured logs, system metrics, and error boundaries for a feature. Use when designing telemetry, observability, tracking plans, or verifying event emissions in tests.

Original author description

Define product analytics events, structured logs, system metrics, and error boundaries for a feature. Use when designing telemetry, observability, tracking plans, or verifying event emissions in tests.

How it works

  1. The Four Observability Pillars
  2. Output Template
Original SKILL.md headings · 67 lines, 538 words
SKILL.md preview
---
name: telemetry-design
description: "Define product analytics events, structured logs, system metrics, and error boundaries for a feature. Use when designing telemetry, observability, tracking plans, or verifying event emissions in tests."
---

# Telemetry Design

If you cannot observe how a feature behaves in production, you cannot know whether it solved the user's problem or degraded system stability. This skill specifies the telemetry and observability requirements for any new capability or architectural change.

## The Four Observability Pillars

Every feature specification or technical plan should define its telemetry across four pillars:

### 1. Product Analytics & Behavioral Events
Track user actions and funnel progression to measure feature adoption and success metrics.

- **Naming Taxonomy**: Use lowercase `noun_action` or `object_action` format (e.g. `checkout_started`, `filter_applied`, `invite_sent`).
- **Trigger Condition**: Exactly when the event is emitted (e.g. when the button is pressed versus when the server confirms the mutation).
- **Required Properties**: Explicit context required for every event (e.g. `user_id`, `organization_id`, `feature_variant`, `item_count`).
- **Data Privacy**: Never include Personally Identifiable Information (PII) such as plaintext email addresses, passwords, social security numbers, or raw credit card data in analytics payloads. Use anonymized or hashed identifiers.

### 2. Structured Application Logging
Provide searchable, machine-readable log lines for debugging operational failures.

- **Log Level**: Strict guidelines for levels:
  - `DEBUG`: Verbose diagnostics disabled in production by default.
  - `INFO`: Normal lifecycle events (e.g. worker started, job completed, transaction processed).
  - `WARN`: Recoverable anomalies or degraded operations (e.g. cache miss fallback, rate limit approaching).
  - `ERROR`: Unrecoverable failures affecting a user transaction or background job.
- **Context Keys**: Every log line must include structured metadata keys (e.g. `correlation_id`, `trace_id`, `tenant_id`, `duration_ms`).
- **Sanitization Invariant**: Redact credentials, session tokens, and secrets before log emission.

### 3. Service Level Metrics (SLIs)
Define numeric time-series metrics to monitor system health and performance:

- **Counters**: Monotonically increasing numbers (e.g. `feature_invocations_total`, `payment_failures_total`).
- **Histograms & Timers**: Request and processing latency distributions (e.g. `api_request_duration_seconds{endpoint="upload"}`).
- **Gauges**: Current state measurements (e.g. `active_websocket_connections`, `queue_depth`).
- **SLO & Alert Thresholds**: Concrete thresholds that trigger paging alerts (e.g. error rate exceeding 1% over a 5-minute rolling window, p95 latency exceeding 500ms).

### 4. Error Boundaries & Alerting
- Define how unexpected exceptions are grouped and reported to error monitoring services (e.g. Sentry, Datadog).
- Tag errors with component names, deployment versions, and user impact levels.

## Output Template

When designing telemetry for a spec or feature, format the output as follows:

```markdown
### Telemetry & Success Metrics Specification

#### Behavioral Analytics Events
| Event Name | Trigger Moment | Required Properties | Success Metric Target |
| --- | --- | --- | --- |
| `export_requested` | User clicks Export button | `format: "csv" \| "json"`, `item_count: number` | Track feature usage volume |
| `export_completed` | File generation completes | `duration_ms: number`, `byte_size: number` | P95 latency < 3000ms |
| `export_failed` | Generation errors out | `error_code: string`, `retry_count: number` | Error rate < 0.5% |

#### Structured Logs
- `INFO`: `export.started` with `{ export_id, user_id, format }`
- `ERROR`: `export.failed` with `{ export_id, error_code, stack_trace, duration_ms }`

#### Service Metrics & Alert Rules
- Metric: `exports_processed_total{status="success|failure", format="csv|json"}`
- Metric: `export_processing_seconds` (Histogram with buckets `[0.1, 0.5, 1, 2, 5, 10]`)
- Alert: Trigger P2 alert when `rate(exports_processed_total{status="failure"}[5m]) / rate(exports_processed_total[5m]) > 0.02`.

#### TDD Seam Verification
In test suites, assert that `analytics.track` and `logger.error` are invoked with exact payloads when testing the execution seam.
```
Files in this package (2)
  • SKILL.md 4 KB
  • agents/openai.yaml 1 KB

Versions

The database has no other skills named telemetry-design.

Database snapshot: 13.11.2026 · package version 11937775731f (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90telemetry-canary
    Observability and structured logging canary — checks for structured logs (JSON), OpenTelemetry metrics/traces, proper error stack traces, and flags empty catches or silent log swallowing. Triggers on keywords: "/telemetry-canary", "telemetry-canary", "observability audit",…
  • 100product-tracking-design-tracking-plan
    Design an opinionated target tracking plan and produce an explicit delta from current state to target. Combines the product model, current-state audit, and telemetry best practices to decide what events, properties, entities, and group hierarchies should exist. Outputs…
  • 90deploy-telemetry
    Set up analytics and tracking infrastructure for growth loops. Use when the user says "deploy telemetry", "set up analytics", "tracking", "events", "push to supabase", or "skene push".
  • 95product-tracking-design-tracking-plan
    Design an opinionated target tracking plan and produce an explicit delta from current state to target. Combines the product model, current-state audit, and telemetry best practices to decide what events, properties, entities, and group hierarchies should exist. Outputs…
  • 90mobile-analytics
    Designs and reviews product analytics across Flutter, Android, iOS, React Native and Kotlin Multiplatform. Use for tracking plans, event names and properties, funnels and conversion events, screen tracking, analytics identity across sign-in and sign-out, consent-gated collection…
  • 100product-tracking-model-product
    Build a structured product model by scanning the codebase and talking to the user. Produces .telemetry/product.md — a description of what the product does, who uses it, how value flows, and what entities exist. Use when starting telemetry work on a new codebase, when the user…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.