diff-audit

Categorize PR diff files and flag out-of-scope edits.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/MajorLift/metamask-extension-skills --skill diff-audit
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: diff-audit
Source: https://github.com/MajorLift/metamask-extension-skills/tree/main/domains/pr-workflow/skills/diff-audit
Command: npx skills add https://github.com/MajorLift/metamask-extension-skills --skill diff-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Systematic file-by-file PR diff review helps teams enforce scope and ensure changes stay aligned with ticket goals by providing structured categorization and justification for each file change.

Core Features & Use Cases

  • Per-file categorization: Classify each changed file into in-scope, mechanical update, test, etc., to surface scope issues.
  • Justification & flagging: Capture rationale for each flag and highlight out-of-scope changes for revert or discussion.
  • Review workflow enhancement: Produce a concise triage report that accelerates reviewer decisions on large diffs and bulk PRs.

Quick Start

Run the diff-audit process on a PR to generate a categorized, justified list of changes and flags for out-of-scope edits.

Frequently Asked Questions about diff-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I categorize PR diffs to enforce scope during code review?▼

To categorize PR diffs and enforce scope, you audit changes on a per-file basis, classifying each file as in-scope, mechanical update, or test. This structured triage surfaces out-of-scope edits for reviewers to flag or revert.

What is the best way to review large PR diffs for out-of-scope changes?▼

The best way to review large PR diffs is to generate a concise triage report that provides per-file categorization and justification notes. This accelerates reviewer decisions by highlighting scope issues across bulk PRs.

How do I flag scope issues in feature and maintenance PRs?▼

You flag scope issues in feature and maintenance PRs by capturing rationale for each flagged file change during the diff audit. This enforces scope discipline by highlighting out-of-scope edits for team discussion.

Can I use diff triage to generate justification notes for code review artifacts?▼

Yes, you can use diff triage to generate justification notes for code review artifacts. The audit process captures the rationale for each file categorization, creating a structured record for review decisions.

Does diff auditing work for mechanical updates and test files in a PR?▼

Diff auditing works for mechanical updates and test files by specifically categorizing them during the review process. This classification helps distinguish necessary structural changes from actual feature scope deviations.