skills/amplitude/diff-intake/SKILL.md
Transform code diffs (PRs, branches, files) into structured YAML briefs for analytics instrumentation planning. Minimal MCP usage — primarily code analysis.
npx skillsauth add kienbui1995/magic-powers diff-intakeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Determine what the user has provided and select the right ingestion path:
github.com/.../pull/123) → fetch the diff via GitHub API or gh pr difffeat/checkout-v2) → run git diff main...feat/checkout-v2 to get full changesetOutput of classification: input_type + source_reference + list of files changed.
For each changed file, extract:
Focus on user-facing changes only. Skip internal refactors with no UX impact.
Filter parsed changes down to what matters for analytics:
page_viewed eventsbutton_clicked or action-specific eventsform_started, form_submitted, form_abandoned eventsOutput a YAML document consumed by discover-event-surfaces:
brief:
summary: "One sentence describing the feature change"
pr_reference: "<URL or branch>"
files_changed: 12
new_surfaces:
- type: screen
name: "Checkout Confirmation Page"
file: "src/pages/checkout/confirmation.tsx"
interactions:
- "Continue Shopping button"
- "View Order Details link"
- type: form
name: "Shipping Address Form"
file: "src/components/ShippingForm.tsx"
fields: ["street", "city", "zip", "country"]
removed_surfaces:
- type: screen
name: "Legacy Cart Page"
note: "Replaced by new unified checkout"
changed_behaviors:
- description: "Payment step now skipped for free orders"
files: ["src/flows/checkout.ts"]
impact: "high — affects conversion funnel"
technical_context:
stack: "React + TypeScript"
analytics_sdk: "Amplitude Browser SDK v2"
existing_tracking_file: "src/analytics/events.ts"
This skill uses minimal MCP — primarily local code analysis tools:
mcp__Amplitude__* tools required at this stagediscover-event-surfaces which uses Amplitude toolsA structured YAML brief with these top-level sections:
brief:
summary: <string>
pr_reference: <URL or branch name>
files_changed: <count>
new_surfaces: <list of {type, name, file, interactions}>
removed_surfaces: <list of {type, name, note}>
changed_behaviors: <list of {description, files, impact}>
technical_context: {stack, analytics_sdk, existing_tracking_file}
After producing the YAML, state: "Brief ready. Proceed to discover-event-surfaces to map these surfaces to candidate analytics events."
content-media
Use when designing for XR (AR/VR/MR), choosing interaction modes, or adapting 2D UI patterns for spatial computing
testing
Use when creating new skills, editing existing skills, or verifying skills work before deployment
development
Use when you have a spec or requirements for a multi-step task, before touching code
development
Use when executing a structured workflow — select and run a feature, bugfix, refactor, research, or incident template with correct agent and model assignments per phase.