diff-intake
Skill0 starsChanged 8 months agoMITView on GitHub
Transform code diffs (PRs, branches, files) into structured YAML briefs for analytics instrumentation planning. Minimal MCP usage — primarily code analysis.
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
- discover-analytics-patternsSkill
- discover-event-surfacesSkill
- 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
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 94
If the input is a GitHub PR URL, use web fetch or GitHub CLI to retrieve the diff
- Very specific: line 119
After producing the YAML, state: "Brief ready.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Diff Intake
When to Use
- Starting an instrumentation workflow from a pull request URL or branch name
- Auditing what analytics-relevant changes exist in a feature branch before it ships
- Converting a vague feature description into a concrete list of trackable interactions
- Feeding downstream skills (discover-event-surfaces, instrument-events) with structured input
- Reviewing merged PRs retroactively to find missed instrumentation
Core Jobs
1. Classify Input Type
Determine what the user has provided and select the right ingestion path:
- PR URL (
github.com/.../pull/123) → fetch the diff via GitHub API orgh pr diff - Branch name (
feat/checkout-v2) → rungit diff main...feat/checkout-v2to get full changeset - File or directory path → read the files directly and look for new/changed code
- Feature description (free text) → search the codebase for relevant files using keywords
Output of classification: input_type + source_reference + list of files changed.
2. Parse Changes
For each changed file, extract:
- What was added (new functions, components, API routes, state variables)
- What was removed (deleted screens, deprecated flows, removed UI elements)
- What was modified (changed behavior in existing flows — renamed fields, reordered steps)
- New UI surfaces: screens, modals, drawers, tooltips, banners
- User interactions: buttons, forms, links, gestures, keyboard shortcuts
- Data flows: new API calls, changed request/response shapes, new data dependencies
Focus on user-facing changes only. Skip internal refactors with no UX impact.
3. Extract Analytics-Relevant Changes
Filter parsed changes down to what matters for analytics:
- New screens → candidate
page_viewedevents - New buttons/CTAs → candidate
button_clickedor action-specific events - New forms → candidate
form_started,form_submitted,form_abandonedevents - New API endpoints exposed to users → candidate conversion or action events
- State changes with business significance → candidate status-change events
- Removed features → events that may need deprecation
- Changed flows → events that may need property updates
4. Produce Structured YAML Brief
Output 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"MCP Tools
This skill uses minimal MCP — primarily local code analysis tools:
- No
mcp__Amplitude__*tools required at this stage - The output YAML is the input to
discover-event-surfaceswhich uses Amplitude tools - If the input is a GitHub PR URL, use web fetch or GitHub CLI to retrieve the diff
Key Concepts
- Analytics brief: The YAML document produced by this skill — the contract between diff analysis and event discovery
- New surface: Any new user-facing UI element that a user can interact with or see
- Changed behavior: An existing flow that works differently — may require property updates on existing events
- Technical context: Stack, SDK, and conventions that downstream skills need to write correct tracking code
- Funnel-critical change: A change that adds or removes a step in acquisition, activation, or conversion — highest priority for tracking
Output Format
A 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."
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.

