discover-event-surfaces
Skill0 starsChanged 8 months agoMITView on GitHub
Step 2 of instrumentation workflow — identify candidate analytics events from code change briefs. Uses mcp__Amplitude__get_event_properties, mcp__Amplitude__get_context.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- rittmananalytics/wire-plugintheir own version, first seen Jun 10, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- rittmananalytics/wire-plugin★ 9same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository190 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibility-auditSkill
- accessibility-complianceSkill
- ado-api-cliSkill
- ado-artifactsSkill
- ado-container-deploymentsSkill
- ado-organizationSkill
- ado-pipeline-designSkill
- ado-pipeline-optimizationSkill
- ado-pipeline-securitySkill
- ado-pipelines-opsSkill
- ado-release-managementSkill
- ado-security-policiesSkill
- ado-work-trackingSkill
- adr-writingSkill
- agentic-ai-patternsSkill
- agentic-evalSkill
- agentic-memorySkill
- agentic-reliabilitySkill
- agentic-securitySkill
- ai-data-moatSkill
- ai-harnessSkill
- ai-product-designSkill
- ai-product-monetizationSkill
- ai-product-positioningSkill
- ai-product-retentionSkill
- ai-product-validationSkill
- ai-safety-guardrailsSkill
- add-analytics-instrumentationSkill
- analyze-account-healthSkill
- analyze-ai-topicsSkill
- analyze-chartSkill
- analyze-dashboardSkill
- analyze-experimentSkill
- analyze-feedbackSkill
- compare-user-journeysSkill
- create-chartSkill
- create-dashboardSkill
- daily-briefSkill
- debug-replaySkill
- diagnose-errorsSkill
- diff-intakeSkill
- discover-analytics-patternsSkill
- discover-opportunitiesSkill
- instrument-eventsSkill
- investigate-ai-sessionSkill
- monitor-ai-qualitySkill
- monitor-reliabilitySkill
- replay-ux-auditSkill
- review-agent-insightsSkill
- taxonomySkill
- weekly-briefSkill
- what-would-lenny-doSkill
- analytics-reportingSkill
- api-contract-testingSkill
- api-designSkill
- authentication-patternsSkill
- blockchain-auditSkill
- brainstormingSkill
- brand-voiceSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 9 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
After running diff-intake and receiving a structured YAML brief
- Distinctive: line 11
When auditing a new feature for analytics coverage before it ships
- Distinctive: line 12
When a PM asks "are we tracking everything important in this release?"
- Distinctive: line 13
When mapping user flows to their corresponding analytics events
- Distinctive: line 14
When defining what events need to be added vs.
- Very specific: line 22
Verify brief has: new_surfaces, changed_behaviors, technical_context.
- Distinctive: line 26
Before creating new events, check what already exists in Amplitude:
- Very specific: line 28
Use mcp__Amplitude__get_event_properties to pull existing event schemas
- Very specific: line 29
Use mcp__Amplitude__get_context to understand the project context
- Very specific: line 30
Search for events that may already cover the same action (e.g., checkout_completed may already exist)
- Very specific: line 50
All event names must follow: verb_noun in snake_case.
- Very specific: line 60
Check technical_context.existing_tracking_file for the project's actual convention — match it if it differs.
- Distinctive: line 75
Ask: *What question would a PM ask about this event in 6 months?* Make sure the properties answer it.
- Distinctive: line 83
Conversion funnel: every step in purchase or upgrade flow
- Distinctive: line 103
No naming conflicts (same action, different name)
- Distinctive: line 104
No semantic duplicates (two events that mean the same thing)
- Very specific: line 160
After output, state: "Found N candidate events.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Discover Event Surfaces
When to Use
- After running
diff-intakeand receiving a structured YAML brief - When auditing a new feature for analytics coverage before it ships
- When a PM asks "are we tracking everything important in this release?"
- When mapping user flows to their corresponding analytics events
- When defining what events need to be added vs. updated vs. deprecated
Core Jobs
1. Receive Brief from Diff-Intake
Accept the YAML brief from diff-intake. If no brief exists, ask for one or invoke diff-intake first.
Verify brief has: new_surfaces, changed_behaviors, technical_context.
2. Check Existing Events (No Duplicates)
Before creating new events, check what already exists in Amplitude:
- Use
mcp__Amplitude__get_event_propertiesto pull existing event schemas - Use
mcp__Amplitude__get_contextto understand the project context - Search for events that may already cover the same action (e.g.,
checkout_completedmay already exist) - Flag existing events that need property additions rather than new event creation
Rule: always prefer updating an existing event over creating a new one if the semantic intent is the same.
3. Map Each New Surface to Event Candidates
For each item in new_surfaces, derive one or more candidate events:
| Surface Type | Primary Event | Secondary Events |
| New screen | <screen_name>_viewed | — |
| Button / CTA | <action>_clicked | — |
| Form | <form_name>_started, <form_name>_submitted | <form_name>_abandoned |
| Modal / drawer | <modal_name>_opened, <modal_name>_closed | — |
| API-triggered action | <resource>_<past_tense_verb> | — |
| Feature toggle | <feature>_enabled, <feature>_disabled | — |
4. Apply Naming Convention (Verb-Noun Pattern)
All event names must follow: verb_noun in snake_case.
Valid examples:
page_viewed✓checkout_completed✓filter_applied✓userClickedCheckout✗ (camelCase)CheckoutCompleted✗ (PascalCase)checkout-click✗ (kebab-case)
Check technical_context.existing_tracking_file for the project's actual convention — match it if it differs.
5. Identify Required Properties for Each Event
For each candidate event, list the properties needed to answer future analytics questions:
Universal properties (should be on every event):
user_id,session_id,platform,app_version,timestamp
Contextual properties (what makes this event useful for analysis):
- Screen context:
page_name,page_section,referrer_page - Item context:
item_id,item_type,item_name,price - Action context:
button_label,form_fields_completed,error_message - Experiment context:
experiment_id,variant(if A/B test)
Ask: What question would a PM ask about this event in 6 months? Make sure the properties answer it.
6. Flag Funnel-Critical Events
Identify events in the critical business funnel and mark them HIGH priority:
- Acquisition funnel:
signup_started→signup_completed→onboarding_completed - Activation funnel: first meaningful action per your product's activation metric
- Conversion funnel: every step in purchase or upgrade flow
- Retention signals: session started, core feature used, notification engaged
Rule: every conversion step needs tracking; every intermediate step enables drop-off analysis.
Flag any missing step in a funnel as CRITICAL — you can't compute conversion without it.
7. Prioritize by Business Value
Assign priority to each candidate event:
critical: funnel step, revenue event, or legal/compliance requirementhigh: key feature engagement, activation signal, retention indicatormedium: secondary engagement, UX feedback signallow: diagnostic, debug, or informational event
8. Check Existing Amplitude Schema for Naming Consistency
Query existing events via mcp__Amplitude__get_event_properties to verify:
- No naming conflicts (same action, different name)
- No semantic duplicates (two events that mean the same thing)
- Property names match existing conventions (e.g.,
user_idvsuserId)
9. Output Event Candidate List
Produce a YAML list of candidate events:
candidates:
- name: checkout_confirmation_viewed
trigger: "User lands on /checkout/confirmation page"
priority: critical
properties:
- order_id: string
- order_total: number
- payment_method: string
- items_count: number
status: new # or: update_existing, deprecate
existing_event_ref: null # or: "checkout_complete" if updating
- name: shipping_address_submitted
trigger: "User clicks 'Save Address' on ShippingForm"
priority: high
properties:
- address_country: string
- is_default_address: boolean
status: new
existing_event_ref: nullMCP Tools
mcp__Amplitude__get_event_properties— pull existing event schemas to avoid duplicates and match conventionsmcp__Amplitude__get_context— get project context (project ID, organization, active events)
Key Concepts
- Event candidate: A proposed analytics event not yet implemented — may become a new event or an update to existing
- Verb-noun pattern: The standard naming convention for analytics events (
action_objectin snake_case) - Funnel-critical: An event that, if missing, breaks conversion rate calculation for a key business funnel
- Semantic duplicate: Two events that track the same user action under different names — a taxonomy problem
- Universal property: A property that should appear on every event to enable cross-event analysis
Output Format
A YAML document with candidates array, each entry containing:
name: <snake_case event name>
trigger: <human description of when this fires>
priority: <critical|high|medium|low>
properties: <list of {name: type} pairs>
status: <new|update_existing|deprecate>
existing_event_ref: <existing event name if updating, null if new>After output, state: "Found N candidate events. Proceed to instrument-events to generate implementation specs, or to taxonomy to validate naming against existing schema."
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

