Automating PR Reviews with Blast Radius Analysis: A Deep Dive into the Claude Skills Repository
The Claude Skills repository provides a production‑ready framework for automating PR reviews with blast radius analysis through modular skill packages that integrate into Claude Code, enabling automated detection of cross‑service impacts, security vulnerabilities, and breaking changes.
Automating PR reviews with blast radius analysis ensures that code modifications do not introduce unintended side effects across distributed systems or monorepo architectures. The Claude Skills repository (alirezarezvani/claude-skills) implements this through a modular library of skill packages that transform Claude Code, OpenAI Codex, and OpenClaw agents into domain‑specific experts. Each skill bundle combines declarative metadata, zero‑dependency Python tooling, and CI integration to classify change severity and flag critical modifications before they reach production.
Understanding the PR Review Expert Skill
The PR Review Expert skill, documented in engineering/pr-review-expert/SKILL.md, serves as the concrete implementation of blast‑radius analysis within the repository. This skill executes a multi‑layered analysis workflow that examines file relationships, service boundaries, and shared contracts to quantify the potential impact of every code change.
Detecting File‑Level Impact
The skill uses git diff to enumerate changed files, then searches the codebase for import relationships using pattern matching (e.g., grep -r "from..." or grep -r "import...") to identify dependent modules. This reveals which parts of the system rely on the modified code, creating a dependency graph that visualizes the propagation path of potential bugs.
Mapping Service Boundaries
For monorepo environments, the skill detects cross‑service changes by extracting top‑level directory structures from the diff output. When changes span multiple services—such as modifying a shared library that multiple microservices consume—the skill flags these as high‑risk modifications requiring additional scrutiny.
Classifying Severity Levels
The analysis maps blast radius to four distinct severity tiers: CRITICAL for changes to authentication middleware, database models, or shared core libraries; HIGH for modifications to public APIs or internal service contracts; MEDIUM for isolated feature changes with limited dependencies; and LOW for documentation updates, test files, or cosmetic fixes. This classification appears directly in the PR comment output generated by the skill.
Repository Architecture and Organization
The Claude Skills repository enforces a strict structural standard defined in SKILL‑AUTHORING‑STANDARD.md, ensuring every skill package maintains consistency and composability.
Skill Bundle Components
Every skill resides in a dedicated folder containing four mandatory or optional subdirectories:
SKILL.md– Human‑readable specification containing YAML front‑matter, workflow definitions, and output format templatesscripts/– Zero‑dependency Python CLI tools implementing the skill logic (e.g.,skill_security_auditor.py)references/– Knowledge bases, guidelines, and documentation used by the agent during executionassets/– Static resources such as JSON samples, configuration templates, or schema definitions
Skill Registry and Marketplace Discovery
The .claude-plugin/marketplace.json file acts as the central registry, listing every skill’s identifier, version, and domain classification. Agents consume this registry through the /plugin marketplace add alirezarezvani/claude-skills command, enabling dynamic discovery and installation. Skills organize into nine domains (Engineering, Marketing, Product, etc.), with the Engineering domain hosting the PR Review Expert and Security Auditor tools.
CI Integration and Quality Gates
The repository implements automated quality assurance through .github/workflows/claude-code-review.yml, which triggers the PR Review Expert on every pull request. This workflow executes blast‑radius, security, coverage, and breaking‑change analyses automatically. Supporting workflows in claude.yml, static.yml, and ci-quality-gate.yml enforce linting, JSON schema validation, and Python compilation checks. A kill‑switch mechanism at .github/WORKFLOW_KILLSWITCH allows maintainers to instantly disable all CI jobs if a critical vulnerability is discovered.
Security‑First Design and Validation
Before any skill enters an agent’s toolbox, it undergoes rigorous security validation.
Pre‑Installation Security Auditing
The Skill Security Auditor (engineering/skill-security-auditor/scripts/skill_security_auditor.py) scans skill bundles for command injection vectors, secret leakage patterns, and supply‑chain risks. Executing this script against a skill path returns a PASS, WARN, or FAIL status with specific remediation steps. The audit ensures that all Python scripts remain zero‑dependency, relying exclusively on the standard library to prevent pip‑install attacks in isolated environments.
Workflow Integrity
All Python analysis tools guarantee zero external dependencies, ensuring agents can execute them in sandboxed or air‑gapped environments without network access. The security auditor specifically validates that scripts do not perform network requests, execute shell commands with user‑controlled input, or access files outside their designated skill directory.
Practical Implementation Examples
Installing the Marketplace and PR Review Expert
Add the marketplace and install the engineering skill bundle via Claude Code commands:
# Register the Claude Skills marketplace
/plugin marketplace add alirezarezvani/claude-skills
# Install the Engineering bundle containing PR Review Expert
/plugin install engineering-advanced-skills@claude-code-skills
Running Security Audits Manually
Validate a custom skill before deployment using the security auditor script:
python3 engineering/skill-security-auditor/scripts/skill_security_auditor.py /path/to/new/skill/
Executing Blast‑Radius Analysis via GitHub CLI
Run the PR Review Expert workflow manually for a specific pull request:
PR=123
# Fetch PR metadata and diff
gh pr view $PR --json title,body,labels > /tmp/pr-$PR.json
gh pr diff $PR > /tmp/pr-$PR.diff
# Post analysis results back to the PR
gh pr comment $PR --body-file /tmp/report.md
The skill outputs a structured markdown report containing severity labels, security findings, coverage deltas, and actionable suggestions formatted according to the Output Format section defined in engineering/pr-review-expert/SKILL.md.
Generating Changelogs with Associated Skills
Complement PR reviews with automated changelog generation using the changelog‑generator skill:
python3 engineering/changelog-generator/scripts/generate_changelog.py \
--since v2.0.0 --output CHANGELOG.md
Summary
- Blast‑radius analysis in the Claude Skills repository quantifies PR impact through file‑level dependency tracing, service boundary detection, and severity classification (CRITICAL, HIGH, MEDIUM, LOW).
- The PR Review Expert skill (
engineering/pr-review-expert/SKILL.md) implements this analysis using zero‑dependency Python scripts that integrate into.github/workflows/claude-code-review.yml. - The Skill Security Auditor (
engineering/skill-security-auditor/scripts/skill_security_auditor.py) validates all skills for command injection and secret leakage before installation. - Skills follow a strict bundle structure (
SKILL.md,scripts/,references/,assets/) defined bySKILL‑AUTHORING‑STANDARD.mdand registered in.claude-plugin/marketplace.json. - All tooling maintains zero external dependencies, ensuring secure execution in isolated CI environments and sandboxed agent contexts.
Frequently Asked Questions
What is blast radius analysis in the context of PR reviews?
Blast radius analysis examines the scope of impact for a proposed code change by tracing dependencies, import relationships, and cross‑service boundaries. In the Claude Skills repository, this analysis classifies changes into severity tiers (CRITICAL, HIGH, MEDIUM, LOW) based on whether modifications touch shared libraries, database models, authentication layers, or isolated features.
How does the PR Review Expert skill detect breaking changes?
The skill analyzes git diff output to identify modifications to public interfaces, schemas, and types, then searches the codebase for consumers of those interfaces. When changes affect shared contracts or top‑level service directories in monorepos, the skill flags them as potential breaking changes requiring downstream consumer validation.
Are the Python scripts in Claude Skills dependent on external libraries?
No. All Python scripts in the repository—including skill_security_auditor.py and the PR Review Expert tooling—use only the Python standard library. This zero‑dependency design ensures agents can execute skills in isolated environments without pip install operations, eliminating supply‑chain attack vectors and simplifying CI/CD integration.
How do I integrate the Claude Skills marketplace into my development workflow?
Register the marketplace using the Claude Code command /plugin marketplace add alirezarezvani/claude-skills, then install specific skill bundles (such as engineering-advanced-skills) via /plugin install. The CI workflow in .github/workflows/claude-code-review.yml demonstrates automated integration, executing blast‑radius analysis on every pull request without manual intervention.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →