All skills
simota avatar

/pulse

@c805268
by shingo imotasimota/agent-skills85 stars
15

Defining KPIs, tracking events, and dashboards: North Star Metric, funnel and cohort analysis, test-intelligence views. GA4/Amplitude/Mixpanel/PostHog. Use when metrics design is needed.

Use this Skill: https://skilld.dev/gh/simota/agent-skills/pulse

This session only. Nothing lands on disk.

referenceevent-schema.md

≈876 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Event Schema Design

Naming Conventions

[object]_[action]

Examples:
- user_signed_up
- item_added_to_cart
- checkout_completed
- article_viewed
- subscription_started

Event Structure Template

interface AnalyticsEvent {
  // Required
  event_name: string;           // e.g., "checkout_completed"
  timestamp: string;            // ISO 8601 format
  user_id?: string;             // Authenticated user ID
  anonymous_id: string;         // Device/session identifier

  // Context (auto-captured)
  context: {
    page_url: string;
    page_title: string;
    referrer: string;
    user_agent: string;
    locale: string;
    timezone: string;
  };

  // Event-specific properties
  properties: Record<string, unknown>;
}

Common Event Examples

// User Signup
{
  event_name: "user_signed_up",
  properties: {
    signup_method: "email" | "google" | "apple",
    referral_source: string,
    plan_type: "free" | "pro" | "enterprise"
  }
}

// Purchase Completed
{
  event_name: "purchase_completed",
  properties: {
    order_id: string,
    total_amount: number,
    currency: "JPY" | "USD",
    item_count: number,
    payment_method: string,
    coupon_code?: string
  }
}

// Feature Used
{
  event_name: "feature_used",
  properties: {
    feature_name: string,
    feature_version: string,
    duration_seconds?: number,
    success: boolean
  }
}

// Content Viewed
{
  event_name: "content_viewed",
  properties: {
    content_id: string,
    content_type: "article" | "video" | "product",
    content_title: string,
    view_duration_seconds: number,
    scroll_depth_percent: number
  }
}

Tracking Plan as Code (2026)

For multi-platform stacks, do not maintain the tracking plan in a wiki — keep it versioned and machine-readable:

Tool Role 2025-2026 status
Avo Tracking-plan repo with type generation, branch workflow, publishes to GA4/Amplitude/Mixpanel/Segment Active; "Publish to Amplitude Data" integration (Avo docs)
Amplitude Data Amplitude's own tracking-plan product — formerly Iteratively, acquired 2021; Avo publishes into it Active inside Amplitude
RudderStack — Tracking Plan as Code IaC-driven (Terraform-style) governance; manage tracking plans + data catalog declaratively Launched 2025 (RudderStack IaC governance)
dbt Semantic Layer Defines metrics (not events) once, queryable from Tableau, Power BI, Google Sheets, Trino GA Oct 2024; Power BI preview 2025 (dbt SL docs)
Cube Open-source warehouse-native semantic layer; alternative to dbt SL Active
Snowplow Iglu JSON-Schema registry for self-describing events (license is now SLULA, not Apache 2.0 since 2024-01-08) OSS now restricted; consider OpenSnowcat fork for Apache 2.0 (Snowplow license change)

Rule of thumb: the event layer (what users do) belongs in a tracking-plan tool (Avo / Amplitude Data / RudderStack). The metric layer (what the business decides on) belongs in a semantic layer (dbt SL / Cube). Do not redefine weekly_active_users in five BI tools.

Source: SKILL.md on GitHub

1 warning13d5 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The 'pulse' skill is a metrics design and analytics architecture framework that emphasizes privacy, data quality, and actionable KPIs. It provides implementation templates for trusted platforms (GA4, Amplitude, Mixpanel) and includes robust patterns for PII removal and consent management. No security risks or malicious behaviors were detected.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • Runlayer6mo

    1/11 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at c805268. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/pulse