What is the Diff Intake skill?
Diff Intake is a coding skill by amplitude for Claude Code, Cursor, Codex and other AI coding agents. Reads a PR or branch diff and produces a structured YAML change brief for downstream analytics instrumentation skills. Use this as the first step whenever a user shares a PR link, branch comparison, or raw diff and wants to understand what changed, what needs tracking, or how to instrument a feature.
Follow this skill step by step. You are step 1 of the analytics instrumentation workflow. Produce a compact YAML change brief that downstream skills (discover-event-surfaces, instrument-events) will consume. Keep the output machine-readable and precise — no prose around the YAML block.
What the SKILL.md covers
- Step 1: Gather changed files and categorize
- Fetching changes
- Categorize files
- Step 2: Build the file summary map
- Fetching detailed diffs
- For each file, record
- Also derive user-facing changes and touched surfaces
- Step 3: Classify the overall change
- Step 4: Emit the YAML brief
- Author
- amplitude
- Pack
- amplitude/mcp-marketplace (30 skills)
- Category
- Coding, #1460 of 1826
- Alyn Score
- 55 / 99
- Files
- 1
- License
- MIT
- Last updated
- 5 days ago
- Works with
- Claude Code, Claude, Cursor, Codex, Gemini CLI, Copilot
Diff Intake compared to similar skills
| Skill | Alyn Score | GitHub stars | Updated |
|---|---|---|---|
| Diff Intake · amplitude | 55 | 48 | 5 days ago |
| Cfe Diff · Nikolay-Shirokov | 58 | 823 | 10 days ago |
| Dsh Code Review · qufei1993 | 47 | 1.9k | 3 days ago |
| Cs Backend Review · alirezarezvani | 63 | 30k | 3 days ago |
Install Diff Intake
Pick your agent. Every command is ready to paste.
npx alyn-cli add diff-intakeDetects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
npx skills add amplitude/mcp-marketplace --skill diff-intakeOr use the open skills CLI directly.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads diff-intake when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the diff-intake skill”. In Codex, type $diff-intake.
diff-intake
Follow this skill step by step. You are step 1 of the analytics instrumentation workflow. Produce a compact YAML change brief that downstream skills (discover-event-surfaces, instrument-events) will consume. Keep the output machine-readable and precise — no prose around the YAML block.
Step 1: Gather changed files and categorize
Fetch the list of changed files from the source, then categorize each one.
Fetching changes
- PR URL
gh pr view <number-or-url>gh pr view <pr-number> --json files --jq '.files[] | "\(.path)\t+\(.additions) -\(.deletions)\t"' - Branch comparison
git log <main|master>..<branch>git diff --stat <main|master>..<branch> - Ambiguous mention (PR number, branch name): infer the right form and fetch without asking unless auth fails.
Categorize files
Assign each file to a category based on its path:
- Core Logic: application source (e.g. src/auth/login.py, database/models.ts)
- Generated: anything with
generatedin its path - Testing: test files
- Config / Dependencies: package.json, docker-compose.yml, etc.
- Documentation: READMEs, docs/
- Noise: lock-files, .svg, auto-generated migrations
For each file, record: path, category, change type (Added / Modified / Deleted), and analytics likelihood (1–5).
Step 2: Build the file summary map
Read every single Core Logic file and create the file summary map. Only process and include Core Logic files.
Fetching detailed diffs
- PR
gh pr view <number-or-url> --json baseRefOid,headRefOidUsing the response, get a detailed diffgit diff <baseRefOid>...<headRefOid> -- <file1> <file2> <file_n> - Branch comparison
git diff main..feature/foo -- <file1> <file2> <file_n>
For each file, record
summary— 2-line summary of what changedstack— frontend, backend, or shared
Also derive user-facing changes and touched surfaces
While reading the diff and the changed files, also produce the higher-level signals that downstream event discovery needs:
user_facing_changes— a flat list of concrete behavior changes that matter to a user, PM, or analyst. Each item should describe what a user can now do, see, or experience differently. Omit purely internal refactors.surfaces.components— the UI components, routes, pages, handlers, or other interaction surfaces directly involved in those user-facing changes. Prefer likely instrumentation points over low-level helpers.
For each surface, record:
name— component, route, page, hook, or surface namefile— repo-relative pathchange—added,modified, ordeleted
If the change is backend-only or has no clear interactive surface, omit
surfaces.components rather than inventing one.
Step 3: Classify the overall change
Infer the change type and analytics scope:
| Type | Analytics implication |
|---|---|
| feat | High — new surfaces likely need tracking |
| fix | Low–Medium — may affect existing event conditions |
| refactor | Low — tracking paths may move, regression risk |
| perf | Low — usually no tracking impact |
| revert | Medium — need to check what tracking was lost |
| style / docs / test / build / ci / chore | None — skip analytics analysis |
analytics_scope = highest implication present:
none— only no-impact typeslow— only perf/refactormedium— fixhigh— any feature or capability addition
If analytics_scope is none, emit the brief and note that downstream skills are not needed.
Step 4: Emit the YAML brief
Output only the YAML block — no prose before or after. Follow the format exactly. List each file individually in file_summary_map (no globs).
change_brief:
classification:
primary: feat # dominant conventional commit type
types: [feat, fix] # all types detected
analytics_scope: high # none | low | medium | high
stack: frontend # frontend | backend | fullstack
summary: "One sentence describing the overall change"
user_facing_changes:
- "Users can now upload an avatar with drag-and-drop and preview it before saving."
surfaces:
components:
- name: "AvatarUpload"
file: "src/components/AvatarUpload.tsx"
change: modified
file_summary_map: # each entry includes a layer field
- file: "src/components/AvatarUpload.tsx"
summary: "New component for avatar upload with drag-and-drop and preview"
layer: frontend # frontend | backend | shared
- file: "src/api/upload.ts"
summary: "Upload endpoint handler, validates file type and persists to S3"
layer: backend
Tips for Diff Intake
- • Start a fresh session after installing so your agent picks up the new skill.
- • It is part of a pack with 30 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Diff Intake
What does the Diff Intake skill do?
Reads a PR or branch diff and produces a structured YAML change brief for downstream analytics instrumentation skills. Use this as the first step whenever a user shares a PR link, branch comparison, or raw diff and wants to understand what changed, what needs tracking, or how to instrument a feature.
How do I install Diff Intake?
Run "npx alyn-cli add diff-intake" in your project. The Alyn CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Diff Intake work in Cursor and Codex?
Yes. Diff Intake uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
What is inside the Diff Intake skill?
The SKILL.md covers Step 1: Gather changed files and categorize, Fetching changes, Categorize files, Step 2: Build the file summary map, Fetching detailed diffs, For each file, record.
What is a good alternative to Diff Intake?
Cfe Diff by Nikolay-Shirokov is the highest-ranked similar skill from another creator, with an Alyn Score of 58 compared to 55 for Diff Intake.
Is Diff Intake free?
Diff Intake is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.
Who made Diff Intake?
Diff Intake is published by amplitude in the amplitude/mcp-marketplace repository, together with 29 other skills.



