change-impact-analysis
Skill2 starsChanged 5 months agoMITView on GitHub
Perform a deterministic, graph-driven Change Impact Analysis for a repository. Given a set of changed files, builds a dependency graph, finds directly and transitively affected modules, validates API contracts for breaking changes, parses CODEOWNERS, and computes a 0-100 deployment risk score. Trigger on: change impact analysis, analyse this PR, what is affected by this change, deployment risk, blast radius, what tests are needed, breaking changes.
6 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- wannanbigpig/ai-engineering-collaborationtheir own version, first seen Nov 6, 2026
- dss-time/repo-doctor-skillstheir own version, first seen Oct 15, 2026
- fzfclee/consulting-skillstheir own version, first seen Oct 13, 2026
- sarveshtalele/change-impact-analysis-skilledited, first seen Jul 16, 2026
- motao123/dev-workflow-kittheir own version, first seen Jun 13, 2026
- jdm4pku/RE-Skillstheir own version, first seen Apr 5, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- sarveshtalele/change-impact-analysis-skill★ 164% same
Wrote their own version · 5
- jdm4pku/RE-Skills★ 26same name
- fzfclee/consulting-skills★ 6same name
- wannanbigpig/ai-engineering-collaboration★ 2same name
- dss-time/repo-doctor-skills★ 1same name
- motao123/dev-workflow-kit★ 1same 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 repository15 other files it gives its agents.
- legacy-discoverySkill
- spec-governanceSkill
- task-decompositionSkill
- test-generationSkill
- topology-planningSkill
- ui-modernizationSkill
- jira-ticketSkill
- servicenow-ticketSkill
- speckit-constitutionSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- my-skillSkill
- text-statisticsSkill
- xquik-social-dataSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 7 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 62
No Anthropic API key is required — GitHub Copilot (you) generates all AI sections.
- Distinctive: line 68
Ask the user for the list of changed files if not already provided.
- Very specific: line 75
If the user chooses option 1 or says nothing specific, use --from-git.
- Distinctive: line 77
If they provide an explicit list, collect the paths.
- Distinctive: line 127
Wait for the script to complete.
- Distinctive: line 141
Read the generated files:
- Distinctive: line 186
Write a crisp executive summary (3–5 sentences):
- Distinctive: line 217
If no violations: confirm that the API surface is stable and consumers are safe.
- Very specific: line 312
If change_impact_skill.py is not found or Python is unavailable:
- Very specific: line 327
Use file_search to find CODEOWNERS and map files to owners.
- Very specific: line 329
Use file_search to find openapi.yaml, swagger.json, *.graphql for contract checks.
- Very specific: line 334
Use templates/impact_report.md to produce the report.
- Very specific: line 336
Write the report to ./impact_report.md.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Change Impact Analysis Skill
You are a senior release engineer performing a deterministic, graph-driven change
impact analysis. You are the AI engine. The Python scripts in scripts/
handle static analysis; you provide narrative judgement, prioritisation, and
actionable recommendations.
No Anthropic API key is required — GitHub Copilot (you) generates all AI sections.
Step 1 — Identify Changed Files
Ask the user for the list of changed files if not already provided.
"How should I identify the changed files?"
- Auto-detect from git (
git diff main...HEAD) — (recommended)- I'll provide the list manually
- Analyse a specific PR — provide the branch or PR number
If the user chooses option 1 or says nothing specific, use --from-git.
If they provide an explicit list, collect the paths.
Step 2 — Ask for Output Location
"Where should I save the output files?"
./change-impact-output/inside the current directory — (recommended)- Directly in the current directory
- A specific path — type it
Map to --output flag:
- Option 1 / no answer → omit
--output - Option 2 →
--output . - Option 3 →
--output <user-supplied-path>
Step 3 — Run the Analysis Engine
The analysis script is at:
.github/skills/change-impact-analysis/scripts/change_impact_skill.pyCheck Python is available:
python --versionRun the engine:
# Option 1 — auto-detect from git
python .github/skills/change-impact-analysis/scripts/change_impact_skill.py \
--from-git --base-branch main
# Option 2 — explicit file list
python .github/skills/change-impact-analysis/scripts/change_impact_skill.py \
--changed-files src/api/users.py src/models/user.py src/services/auth.py
# Option 3 — custom output directory
python .github/skills/change-impact-analysis/scripts/change_impact_skill.py \
--from-git --base-branch main --output ./reports/
# Get raw JSON to stdout (for piping / CI integration)
python .github/skills/change-impact-analysis/scripts/change_impact_skill.py \
--from-git --json-onlyWait for the script to complete. Output files produced:
| File | Description |
impact_report.md | Primary artifact — full structured impact report |
impact_analysis.json | Machine-readable result (CI/CD integration) |
deployment_checklist.md | Ready-to-use pre/post deployment checklist |
If Python or the script is missing, proceed to Manual Fallback.
Step 4 — Read the Analysis Data
Read the generated files:
{output_dir}/impact_report.md
{output_dir}/impact_analysis.jsonKey fields in impact_analysis.json to study:
{
"impact": {
"changed_files": [...], // normalised paths of changed files
"impacted_modules": [...], // every affected module with type + proximity
"impacted_apis": [...], // API endpoint files in the blast radius
"regression_areas": [...], // high-risk areas to regression-test
"required_test_suites": [...], // unit / integration / e2e suites needed
"consumer_apps": [...], // downstream applications affected
"direct_impact_count": N,
"transitive_impact_count": N
},
"contract_violations": [...], // OpenAPI / GraphQL / Protobuf violations
"risk": {
"score": N, // 0–100
"level": "LOW|MEDIUM|HIGH|CRITICAL",
"action": "...",
"factors": [...] // per-factor breakdown
}
}Also read:
references/dependency-analysis.md— graph algorithm referencereferences/risk-scoring.md— risk factor reference
Step 5 — Provide AI Analysis (You Are the AI Engine)
Think like a senior release engineer who reviewed the complete blast radius. Produce four AI-quality sections:
5a — Impact Summary
Write a crisp executive summary (3–5 sentences):
- What changed and why it matters for this release
- Highest-risk modules and why
- Whether this deployment should proceed as-is, needs monitoring, or should be blocked
- One-line recommendation for the release manager
5b — Blast Radius Explanation
For each directly changed file:
- What does this module do?
- Which other modules depend on it (transitive chain)?
- Is there a test that covers this path?
- What is the worst-case failure mode if this change is faulty?
For the top 3 highest-risk transitively affected modules, explain:
- Why they are affected (import chain)
- What would break if the change is incorrect
- Who owns it (from CODEOWNERS / ownership map)
5c — API Contract Assessment
For each contract violation detected:
- What changed — endpoint / field / type affected
- Who is impacted — which consumers use this endpoint
- Migration path — how consumers should adapt
- Recommended action — deprecate gracefully / block deployment / coordinate release
If no violations: confirm that the API surface is stable and consumers are safe.
5d — Release Recommendation
Provide a concrete, structured recommendation:
Verdict: PROCEED / PROCEED WITH MONITORING / BLOCK — REQUIRES REVIEW
Rationale: (2–3 sentences linking the risk score to the specific changes)
Before deploying:
- (numbered list of required actions)
After deploying:
- (numbered list of verification steps)
Rollback trigger: describe the exact condition that should trigger a rollback
Step 6 — Output AI Analysis in Chat
Present the complete analysis in structured markdown:
---
## Impact Summary
[Section 5a]
---
## Blast Radius Explanation
[Section 5b]
---
## API Contract Assessment
[Section 5c]
---
## Release Recommendation
[Section 5d]Step 7 — Write AI Content Into Report File
Do NOT ask — automatically update the report immediately after the analysis.
Locate the report:
- Default:
./change-impact-output/impact_report.md - Custom path:
{output_dir}/impact_report.md
Append a new section ## AI Release Analysis at the end of the report containing
all four AI sections. Use insert_edit_into_file to append, or create_file to
overwrite if simpler.
Print confirmation:
[ok] AI analysis appended to: {report_path}Step 8 — Report Completion
Change Impact Analysis complete [ok]
Repository : {repo_path}
Base branch : {base_branch}
Changed files: {N}
Risk Score : {score}/100 — {level}
Action : {action}
Impact
Direct modules : {direct_count}
Transitive modules : {transitive_count}
Impacted APIs : {api_count}
Consumer apps : {consumer_count}
Output files in {output_dir}:
impact_report.md ← open this first
impact_analysis.json
deployment_checklist.md
AI engine: GitHub Copilot (no API key required)Manual Fallback (Script Not Found)
If change_impact_skill.py is not found or Python is unavailable:
- List all source files in the repository:
Or ask the user to provide the changed files.git diff --name-only main...HEAD - For each changed file, use
grep_searchto find all files that import it:Pattern: import.*{module_name}|require.*{module_name}|from.*{module_name} - Repeat for each newly found file (manual BFS, up to 3 hops).
- Use
file_searchto findCODEOWNERSand map files to owners. - Use
file_searchto findopenapi.yaml,swagger.json,*.graphqlfor contract checks. - Manually calculate risk score using the table in
references/risk-scoring.md. - Use
templates/impact_report.mdto produce the report. - Write the report to
./impact_report.md. - Continue with Steps 5–8.
Notes
- No API key required — GitHub Copilot is the AI engine
- Deterministic — given the same inputs the score is always the same
- Polyglot — supports Python, JS/TS, Java, C#, Go import graphs
- CODEOWNERS — automatically maps every affected file to its owner
- Contract detection — OpenAPI, Swagger, GraphQL schema, Protobuf
- CI/CD ready —
--json-onlyflag emits structured JSON to stdout - Script path — always reference as
.github/skills/change-impact-analysis/scripts/change_impact_skill.py
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.

