Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
product-on-purpose avatar

Measure Instrumentation Spec

  • 500 installs
  • 518 repo stars
  • Updated August 4, 2026
  • product-on-purpose/pm-skills

measure-instrumentation-spec is an agent skill from product-on-purpose/pm-skills that helps developers and PMs draft analytics instrumentation specs for AI and agent product features.

About

measure-instrumentation-spec is a Claude Code skill in the product-on-purpose/pm-skills collection focused on AI and agent building instrumentation planning. It guides teams through defining what to measure, which events to emit, and how success metrics map to product behavior before engineering implements tracking. Developers and PMs reach for measure-instrumentation-spec when shipping agent workflows and need a structured spec for analytics hooks, funnel events, and evaluation signals instead of ad-hoc logging added after release.

  • measure-instrumentation-spec
  • AI & Agent Building
  • AI-coding skill

Measure Instrumentation Spec by the numbers

  • 500 all-time installs (skills.sh)
  • +31 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #1,769 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/product-on-purpose/pm-skills --skill measure-instrumentation-spec

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs500
repo stars518
Last updatedAugust 4, 2026
Repositoryproduct-on-purpose/pm-skills

How do you spec analytics for an AI agent feature?

Helps with ai & agent building tasks.

Who is it for?

PMs and tech leads defining analytics requirements before implementing agent feature tracking.

Skip if: Engineers who only need SDK installation docs for a specific analytics vendor.

When should I use this skill?

A team is planning measurement for a new AI or agent feature and needs an instrumentation spec document.

What you get

An instrumentation specification with event names, properties, success metrics, and evaluation signals.

  • instrumentation specification document
  • event and metric inventory

Files

SKILL.mdMarkdownGitHub ↗

<!-- PM-Skills | https://github.com/product-on-purpose/pm-skills | Apache 2.0 -->

Instrumentation Spec

An instrumentation spec defines what analytics events to track, when to fire them, and what properties to include. It serves as a contract between product and engineering, ensuring consistent data collection that enables accurate measurement. Good instrumentation specs prevent the "we can't answer that question because we didn't track it" problem.

When to Use

  • Before engineering implements a new feature
  • When defining analytics requirements for experiments
  • When auditing existing tracking for gaps or inconsistencies
  • When onboarding a new analytics tool
  • Before launch to ensure measurement is in place

When NOT to Use

  • You are specifying the dashboard built on top of the events -> use measure-dashboard-requirements
  • You need experiment-specific metrics and variants, not product-wide tracking -> use measure-experiment-design
  • The feature itself is not yet specified (no flows to instrument) -> use deliver-prd first
  • You are analyzing data you already collect -> use measure-experiment-results or measure-survey-analysis

Instructions

When asked to create an instrumentation spec, follow these steps:

1. Define Analytics Goals Start with the questions you need to answer. What will you measure? What decisions will this data inform? This prevents over-instrumentation while ensuring nothing important is missed.

2. Identify Events to Track List each user action or system event that should be tracked. Follow consistent naming conventions (typically noun_verb or verb_noun in snake_case). Each event should represent a distinct, meaningful action.

3. Specify Event Triggers For each event, describe exactly when it fires. Be precise: "When user clicks Submit button" vs. "When form is submitted successfully." These are different events with different meanings.

4. Define Event Properties List the properties (attributes) attached to each event. Include property name, data type, description, and example values. Properties provide context that makes events useful.

5. Document User Properties Identify persistent user-level attributes that should be associated with all events (e.g., subscription tier, account creation date). These enable segmentation in analysis.

6. Address PII and Privacy Flag any properties that contain personally identifiable information. Document how PII should be handled - hashing, encryption, or exclusion.

7. Create Testing Checklist Define how QA should verify that tracking is implemented correctly. Include steps to validate events fire at the right times with correct properties.

Output Format

Use the template in references/TEMPLATE.md to structure the output. A complete spec fills every template section: Overview; Event Inventory; User Properties; PII & Privacy Considerations; Implementation Notes; and Testing Checklist.

Quality Checklist

Before finalizing, verify:

  • [ ] Event names follow consistent naming convention
  • [ ] Each event has a clear, unambiguous trigger
  • [ ] Properties include data types and example values
  • [ ] PII is identified and handling is documented
  • [ ] Events map to the analytics questions you need to answer
  • [ ] Testing checklist enables QA verification

Examples

See references/EXAMPLE.md for a completed example.

Related skills

FAQ

What does measure-instrumentation-spec produce?

measure-instrumentation-spec helps teams output a structured instrumentation specification covering event names, properties, funnel steps, and success metrics for AI and agent features before engineers wire analytics SDKs.

When should teams use measure-instrumentation-spec?

measure-instrumentation-spec fits the build phase when agent behavior is defined but tracking is undefined—creating a PM-ready spec so implementation and analytics stay aligned from the first release.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.