diff-intake
Analyze code changes (PR or branch diff) and produce a structured YAML summary for downstream instrumentation skills.
What it does
- Gets the diff (from PR or branch)
- Categorizes changes (feat, fix, refactor, etc.)
- Identifies user-facing vs internal changes
- Scans for existing analytics patterns
- Outputs
change_briefYAML
Output Format
Produces a YAML block:
change_brief:
primary: feat
analytics_scope: high # high, medium, low, none
classification:
types: [feat, refactor]
file_summary_map:
src/checkout/PaymentForm.tsx:
layer: presentation
summary: Added new payment method selection UI
existing_instrumentation:
- mixpanel.track('Payment Method Selected')
Usage
Invoked by add-analytics-instrumentation as Step 1.
Downstream: discover-event-surfaces consumes this YAML.