amplitude avatar

Diff Intake Skill

Installs
72.6k
Repo stars
49
Security scans passed
2/3
Repo updated
Nov 25, 2026

TL;DR

diff-intake is a skill that reads a PR or branch diff and outputs a YAML change brief with file categories, user-facing changes, and an analytics scope for later instrumentation steps.

Install if

Developers who start an analytics review from a PR link, branch comparison, or raw diff and need a clean machine-readable summary.

Skip if

Skip it when you have no diff to read, or when you want the full tracking plan in one run, which add-analytics-instrumentation does.

npx skills add https://github.com/amplitude/mcp-marketplace --skill diff-intake
On this page
  1. What diff-intake covers
  2. diff-intake by the numbers
  3. What does the Diff Intake skill produce?
  4. What files ship with diff-intake?
  5. Which skills are related to diff-intake?
  6. How does diff-intake compare?
  7. Diff Intake skill FAQ
  8. More in this repo

What diff-intake covers

  • Fetches changed files from a PR URL or branch with gh and git
  • Sorts each file into Core Logic, Generated, Testing, Config, Docs or Noise
  • Scores each file's analytics likelihood from 1 to 5
  • Emits only a YAML change brief with analytics_scope none, low, medium or high

diff-intake by the numbers

All-time installs72,612 (72.6k)skills.sh registry
Repo stars★ 49GitHub
Security audit2 / 3 scanners passedskills.sh audit
Repo last updatedNovember 25, 2026GitHub
Repositoryamplitude/mcp-marketplace ↗

Data as of Nov 29, 2026 (Skillselion catalog sync)

  • 6 file categories from Core Logic to Noise
  • 4 analytics_scope levels: none, low, medium, high
From the docs

What diff-intake says it does

You are step 1 of the analytics instrumentation workflow. Produce a compact
SKILL.md
Read every single **Core Logic** file and create the file summary map.
SKILL.md
`analytics_scope` = highest implication present:
SKILL.md

What does the Diff Intake skill produce?

You get one YAML change_brief with the change type, analytics scope, user-facing changes, surfaces, and a per-file summary map.

  • A change_brief YAML block
  • A file_summary_map for Core Logic files

What files ship with diff-intake?

SKILL.mdMarkdownGitHub ↗

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 generated in 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,headRefOid Using the response, get a detailed diff git 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 changed
  • stack — 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 name
  • file — repo-relative path
  • change — added, modified, or deleted

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:

TypeAnalytics implication
featHigh — new surfaces likely need tracking
fixLow–Medium — may affect existing event conditions
refactorLow — tracking paths may move, regression risk
perfLow — usually no tracking impact
revertMedium — need to check what tracking was lost
style / docs / test / build / ci / choreNone — skip analytics analysis

analytics_scope = highest implication present:

  • none — only no-impact types
  • low — only perf/refactor
  • medium — fix
  • high — 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

Which skills are related to diff-intake?

How does diff-intake compare?

Use it instead of skimming a diff by hand, because it applies a fixed file-category and analytics-scope scheme every time.

Diff Intake skill FAQ

Who is the Diff Intake skill for?

Developers who start an analytics review from a PR link, branch comparison, or raw diff and need a clean machine-readable summary. Skip it when you have no diff to read, or when you want the full tracking plan in one run, which add-analytics-instrumentation does.

When should I use diff-intake?

A user shares a PR link, branch comparison, or diff and asks what changed, what needs tracking, or to review analytics coverage.

What does diff-intake output?

It outputs only a YAML change_brief block with the change type, analytics scope, summary, user-facing changes, touched surfaces, and a per-file summary map. It adds no prose around it.

How does it set analytics_scope?

It takes the highest impact present: none for docs, style or chore, low for perf or refactor, medium for fix, and high for any feature or capability addition.

Which files does it summarize?

Only Core Logic files. It reads each one, while generated files, tests, config, docs, and noise like lock files are categorized but not summarized.

Is Diff Intake safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Add a diff-intake badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Get the embed code
Git & Pull Requestsgitintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.