Claude-skill-registry diff-analysis
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/diff-analysis" ~/.claude/skills/majiayu000-claude-skill-registry-diff-analysis-7915c5 && rm -rf "$T"
skills/data/diff-analysis/SKILL.mdTable of Contents
Diff Analysis Methodology
Overview
Structured method for analyzing changesets: categorize changes, assess risks, generate insights. Works for git diffs, configuration changes, API migrations, schema updates, or document revisions.
When to Use
- Extracting insights from raw change data
- Categorizing and prioritizing changes before code reviews
- Preparing release notes or changelogs
- Assessing migration scope and risk
Activation Patterns
Trigger Keywords: diff, changes, release notes, changelog, migration, impact, risk assessment
Auto-Load When: Git diffs present, change analysis requested, impact assessment needed.
Progressive Loading
Load modules based on workflow stage:
Always Load
for change categorization workflowmodules/semantic-categorization.md
Conditional Loading
when risk assessment is neededmodules/risk-assessment-framework.md
when working with git repositoriesmodules/git-diff-patterns.md
Integration
- Use
for git data gatheringsanctum:git-workspace-review - Use
for capturing analysis evidenceimbue:evidence-logging - Use
for formatting final deliverablesimbue:structured-output
Required TodoWrite Items
diff-analysis:baseline-establisheddiff-analysis:changes-categorizeddiff-analysis:risks-assesseddiff-analysis:summary-prepared
Mark each item complete as you finish the corresponding step.
4-Step Methodology
Step 1: Establish Baseline (diff-analysis:baseline-established
)
diff-analysis:baseline-establishedDefine comparison scope: what states are being compared, boundary of analysis, and scale metrics.
For git contexts, load
modules/git-diff-patterns.md. For other contexts, compare relevant artifacts.
Step 2: Categorize Changes (diff-analysis:changes-categorized
)
diff-analysis:changes-categorizedGroup changes by semantic type. Load
modules/semantic-categorization.md for change categories, semantic categories, and prioritization.
Step 3: Assess Risks (diff-analysis:risks-assessed
)
diff-analysis:risks-assessedEvaluate impact. Load
modules/risk-assessment-framework.md for risk indicators, levels, and scoring methodology.
Step 4: Prepare Summary (diff-analysis:summary-prepared
)
diff-analysis:summary-preparedSynthesize findings: theme, scope with counts, risk level, review focus, dependencies. Format for downstream consumption (PR descriptions, release notes, reviews).
Exit Criteria
- All TodoWrite items completed with categorized changes and risk assessment
- Downstream workflows have semantic understanding of the changeset
- Summary ready for appropriate consumption (review, release notes, planning)
Troubleshooting
Common Issues
Command not found Ensure all dependencies are installed and in PATH
Permission errors Check file permissions and run with appropriate privileges
Unexpected behavior Enable verbose logging with
--verbose flag