instrument-feature
Design and implement product analytics for a feature — a tracking plan with event names, properties and funnel definitions, wired into the analytics tool the project already uses (PostHog, Amplitude, Segment, Mixpanel, GA4, RudderStack, Snowplow or an in-house wrapper), then verified to fire once wi…
Install / Use
npx skills add Trystan-SA/product-engineer-skills --skill instrument-featureInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Data & AnalyticsSupported Platforms
Our assessment of instrument-feature
instrument-feature scores 83/100 on our quality scale, 500th of 606 Data & Analytics skills we index.
Its SKILL.md is 5.0 KB long, well organised into 8 sections and no code examples: a solid amount of guidance for an agent.
With 2,066 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 4 days ago, so instrument-feature is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-11-28. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
instrument-feature compared with similar skills
All 4 of these similar skills score higher than instrument-feature; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| instrument-feature (this skill)by Trystan-SA | 83 | 2.1k | 4d ago | SKILL.md |
| taste-skillby Leonxlnx | 100 | 122.3k | 1d ago | CLAUDE.md |
| archifyby tt-a1i | 100 | 101.0k | today | CLAUDE.md |
| Claude-Code-Game-Studiosby Donchitos | 100 | 41.2k | 18d ago | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 2mo ago | SKILL.md |
Frequently asked questions
- How do I install instrument-feature?
- Run
npx skills add Trystan-SA/product-engineer-skills --skill instrument-feature. The install tabs above show the steps for each supported agent. - Which AI agents does instrument-feature work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is instrument-feature safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is instrument-feature still maintained?
- The repository was last updated 4 days ago, so instrument-feature is actively maintained.
Skill content
View source on GitHubname: instrument-feature description: Design and implement product analytics for a feature — a tracking plan with event names, properties and funnel definitions, wired into the analytics tool the project already uses (PostHog, Amplitude, Segment, Mixpanel, GA4, RudderStack, Snowplow or an in-house wrapper), then verified to fire once with the right data. Use when a feature needs metrics, when asked to add tracking, analytics or events, or when a brief, adoption plan or A/B test needs events that don't exist yet.
Instrument Feature
You can't improve what you can't see, and you can't trust data that was tracked carelessly. This skill writes a small tracking plan tied to the questions the team needs answered, implements it with the project's existing tools and conventions, and checks that it works.
Phase 1: Find the analytics setup
Search the codebase for the tracking layer: SDK calls (posthog.capture, amplitude.track, analytics.track, mixpanel.track, gtag('event', rudderanalytics.track, Snowplow trackers), server-side SDKs, and above all the project's own wrapper (a track() helper, a useAnalytics hook, an events.ts file). If there's a wrapper, always go through it.
Read 10 to 20 existing events to learn the conventions: naming style (Invoice Sent, invoice_sent, invoice:sent), standard properties, how user and account identity are set (identify, group), and where events are typed or documented.
If the project has no analytics at all, stop and ask which tool to use. Adding a tracking vendor is a product, legal and privacy decision.
Phase 2: Start from the questions
List the questions the data must answer, from brief.md, adoption-plan.md and experiment.md in the feature folder (docs/product/<feature-slug>/) when they exist:
- The primary and guardrail metrics from the brief
- Each funnel stage from the adoption plan (exposed, tried, activated, repeated)
- Which entry point brought the user
- Where users leave the flow, and which errors they hit
- Exposure to each experiment variant
Every event must answer at least one question. "Track everything" produces a lot of data and few answers.
Phase 3: Write the tracking plan
| Event | Fires when (exact trigger) | Where in code | Properties | Answers |
|---|---|---|---|---|
| Invoice Creation Started | User opens the new-invoice form | InvoiceForm.tsx, once per visit | entry_point, client_count | Tried; entry-point split |
| Invoice Sent | Server confirms the invoice was sent | invoices.service.ts, after send succeeds | amount_bucket, currency, is_first_invoice | Value moment (activation) |
| Invoice Send Failed | Send rejected | same, error branch | error_code, step | Drop-offs |
Rules:
- Follow the project's naming convention. Without one, use
Object Actionin the past tense (Invoice Sent), Title Case, with the noun the product UI uses. - Track outcomes where they happen. Fire value moments server-side after success when possible: reliable, unaffected by ad blockers, and not double-counted by re-renders. Track UI intent (opened, clicked) client-side.
- Properties serve the breakdowns you'll need:
entry_point, plan, variant, platform. Prefer enums and buckets to free text. - No personal data: no emails, names, free-text input, or anything the privacy policy doesn't cover. Use IDs.
- Identity: events must attach to the same user — and account, for B2B — as the product's other events.
Phase 4: Implement
Add events through the project's wrapper, with types if the project types its events (extend the event union or schema). Put UI events in event handlers or in effects that run once per occurrence — never in render bodies, where re-renders and development double-mounts duplicate them. Put server events after the operation commits, not before.
If an experiment is running or planned, log exposure when the user actually sees the variant, not when the flag is evaluated at app start. Many flag SDKs log exposure automatically on evaluation; check before adding a duplicate.
Phase 5: Verify
Trigger each event and confirm it fires once, with the right properties and identity:
- Use the SDK's debug mode, the tool's live event view, or a test that spies on the wrapper.
- Check double clicks, back navigation, and retries after errors.
- If the project tests its analytics wrapper, add assertions for the new events.
Phase 6: Define the analysis
Write funnel and metric definitions precise enough to build in the tool: steps, conversion window, counting unit (users or accounts), and filters (eligible users only). If the analytics tool is reachable from your environment (an API, a CLI or a connected integration), offer to create the funnel and dashboard; otherwise give the exact configuration.
Output
Write tracking-plan.md to the feature folder (the table, funnel definitions and verification notes), along with the code changes. Summarize: events added, how each was verified, and the questions the data still can't answer.
Related Skills
taste-skill
122.3kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
archify
101.0kTurn any idea, plan, or codebase into an interactive diagram or one-page answer: 10 diagram types, Architecture Diagnosis, Story video and PR walkthroughs. An Agent Skill for Claude Code, Codex, Cursor and more.
Claude-Code-Game-Studios
41.2kTurn Claude Code into a full game dev studio — 49 AI agents, 75 workflow skills, and a complete coordination system mirroring real studio hierarchy.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
