- Home
- Skills
- Code Quality & Review
- Change Risk Review — Contracts, Decisions And Blast Radius
Works with the AI Agents you already use
Change Risk Review — Contracts, Decisions And Blast Radius
Review code changes for breaking API contracts, ADR violations, and structural blast radius.
$12
Change Risk Review — Contracts, Decisions And Blast Radius
Example session with this skill installed
Review my staged changes against the main branch. Check for any contract breaks or decision violations in the modules I modified.
- Read your context and instructions
- Compiled the change risk review
I have completed the risk review for the 4 files changed in the working tree compared to main.
Change Risk Review: Risky
Executive Summary: This change is classified as
Risky due to a confirmed public contract break in the core payment module and two untested exports.
The Change at a Glance
- Base:
main(commit 8f2a1d) - Head: Working Tree (staged)
- Files Touched:
src/payments/engine.ts,src/payments/types.ts,src/utils/logger.ts
Findings
| Label | Finding | Source |
|---|---|---|
| Confirmed | Removed exported function calculateTax | src/payments/engine.ts:42 |
| Confirmed | Contradicts ADR-004: "All payment methods must implement Recoverable" | docs/adr/004-payment-recovery.md |
| Likely | Untested public export validateGatewayResponse | src/payments/engine.ts:88 |
Contract Changes
The removal of calculateTax is a breaking change. The agent-context explain command reports
12 consumers across 3 modules (billing-service, invoice-gen, and portal-api) that currently import this symbol.
Decision and Convention Violations
- Violation: The new
CryptoProviderclass does not implement theRecoverableinterface. - Rule: ADR-004 (Explicit) requires all providers in
src/payments/to support idempotent recovery.
Blast Radius
- Primary Module:
src/payments/engine.ts - Total Consumers: 18 files.
- Risk: High. Changing the internal state machine here affects the entire checkout flow.
Next steps
- Restore the
calculateTaxexport or provide a deprecated alias to avoid breaking thebilling-service. - Update
CryptoProviderto implement theRecoverableinterface as per ADR-004. - Add unit tests for the newly exported
validateGatewayResponsefunction.
Connects securely to your tools. The creator never sees your data.
About this skill
Standard code reviews catch bugs and style issues, but they often miss systemic risks like broken public contracts, violated architectural decisions, or hidden blast radii. This skill performs a deep-impact analysis on changes already made to a repository to identify the failures that pass every linter yet break production.
What it does
- Public contract validation checks if the change removes or renames symbols that external consumers depend on.
- Decision enforcement verifies the diff against established Architecture Decision Records (ADRs) to flag rule violations.
- Blast radius mapping calculates exactly how many files and consumers are affected by changes to a specific module.
- Structural exposure analysis identifies if the change introduces layering violations or circular dependencies.
- Test coverage auditing flags new public exports that lack corresponding test files.
How it works
- Frame the review by identifying the working tree, specific commit, or branch to be analyzed.
- Collect context using
gitand the optionalai-agent-contextCLI to build a dependency graph and load team conventions. - Execute checks against the diff to find contract breaks, ADR contradictions, and structural risks.
- Deliver a verdict of Safe, Safe with Caveats, or Risky based on the evidence found.
Frameworks & tools
The skill primarily utilizes git for diff analysis and file inspection. It enhances results using the ai-agent-context CLI for structural mapping and decision tracking.
Why this beats prompting it yourself
Generic prompts miss the "invisible" dependencies and team-specific rules stored in ADRs. This skill enforces a rigorous six-check framework that forces the agent to prove every finding with file-level evidence and consumer counts.
Use cases
- Reviewing a pull request for breaking API changes before a release.
- Checking a branch against existing ADRs to ensure architectural compliance.
- Assessing the merge risk of a large refactor by mapping its full blast radius.
- Auditing the working tree to find untested exports before staging.
Known limitations
The skill is read-only and will not fix the code it reviews. Structural exposure analysis (Check 4) requires the ai-agent-context CLI and is unavailable in the git-only fallback mode.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scanned
Verified clean today
- Passed all security checks, Safe to install
Requires