# Swift Review

> Use this skill for PR safety and risk analysis. It analyzes the risk and blast radius of a PR using git diff. Use before committing changes, reviewing pull requests, or assessing the impact of code modifications — even if they don't mention "review" but describe checking change safety or understanding what a diff affects.

- Skill: `swiftzilla/swift-review` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add swiftzilla/swift-review`
- Raw SKILL.md: https://api.skillmd.com/api/skills/swiftzilla/swift-review/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: Proprietary
- Author: swiftzilla (https://skillmd.com/u/swiftzilla)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/swiftzilla/swift-review

---


# Swift Review: PR Safety & Risk Analysis

Analyze the semantic impact of your changes and catch potential regressions before they land.

## Commands

```bash
# Review diff against current HEAD
scripts/swift_review

# Review diff against a specific target branch
scripts/swift_review --target <BRANCH>
```

## Workflow

1. **Analyze**: Run `scripts/swift_review` to see the semantic impact of your changes
2. **Assess risk**: Look for "High Impact" warnings (high Fan-In files) — these are the most dangerous changes to get wrong
3. **Verify**: For each file mentioned in the "Impacted Files" list, run its specific tests to confirm nothing broke
4. **Proceed**: Only commit when high-risk areas are covered by tests

## Gotchas

- Always run this BEFORE committing — not after. The tool analyzes uncommitted changes by default.
- "High Impact" means the file has many dependents (high Fan-In). Changes to these files have a larger blast radius and need more careful testing.
- If no tests exist for an impacted file, flag it for manual review — the tool cannot verify correctness without tests.
- When using `--target`, make sure the target branch is up to date locally — stale branches produce misleading diffs.

