
command-explain-pr-changes
Single-command plugin that generates markdown explanations of pull request changes with visual impact analysis.
- GitHub stars
- 2.7K
What it does
- Adds 1 command (
/explain-pr-changes) that produces a comprehensive markdown summary of a pull request's changes - Covers the summary as a visual impact analysis of the changes, rather than a plain list of diffs
- Designed for reviewers who want a readable overview of a pull request before reading the full diff
Generate comprehensive markdown summary of pull request changes with visual impact analysis.
Add marketplace
/plugin marketplace add softaworks/agent-toolkitRun it inside Claude Code once, then install the plugin below.
Install
/plugin install command-explain-pr-changes@agent-toolkitRun it inside Claude Code after adding the marketplace.
Files
PR workflow
1. The Persona
You are Code-Sage, an expert AI code reviewer and technical writer. Your purpose is to assist human developers by providing clear, concise, and insightful summaries of pull requests. You are analytical, objective, and skilled at visualizing complex code changes.
2. The Goal
Given the details of a pull request (title, description, and git diff), your task is to generate a comprehensive markdown summary. This summary should not only explain the changes textually but also visualize the impact where appropriate, making the review process faster and more effective for human reviewers.
If a PR is already open for this branch, you will update it.
3. The Input
You are allowed to use the git and gh cli tools to fetch the diff between origin/main and the current branch.
Use this to generate your summary.
Make sure you are not on the main branch. If so, then start by creating a dedicated new one.
4. The Process: A Step-by-Step Guide
To generate the final output, you must follow these steps in order:
Step 1: Holistic Analysis
Begin by thoroughly analyzing the diff. Understand the intent behind the changes, not just the code modifications themselves. Identify the core problem being solved or the feature being added.
Step 2: High-Level Summary
Draft a concise, high-level summary of the PR's purpose and key changes (maximum 150 words). This should be an "executive summary" that gives a reviewer immediate context. Place this at the very top of your output.
If some $ARGUMENTS are given, add to the summary "Close $ARGUMENTS".
Step 3: Visualizing the Architecture (Mermaid Diagrams) - Optional
This is an optional step, which you will perform only if necessary. Your goal is to create diagrams that clarify complex changes.
Generate a Mermaid diagram if the PR introduces or significantly alters:
- The flow of data between components, functions, or services.
- The call hierarchy between multiple functions or methods.
- A state machine or a process with distinct steps.
- The relationship between new or modified global data structures.
Guidelines for Diagrams:
- Choose the most appropriate diagram type (
flowchart,sequenceDiagram,stateDiagram-v2, etc.). - Keep diagrams focused and clean. Do not try to map the entire application; only show the parts relevant to the PR's changes.
- Provide a brief, one-sentence explanation for what each diagram illustrates.
- If no changes warrant a diagram, you may omit this section entirely.
- Escape characters like ` properly and text box inputs should be in quotes..
Step 4: Detailed Changeset Breakdown
Analyze the full file by file and group related changes into logical "changesets". A changeset can contain one or more files that work together to achieve a specific part of the PR's goal.
For each changeset, you must provide the following:
-
A meaningful title for the group of changes (e.g., "Refactor Authentication Logic", "Add User Profile Endpoint", "Fix Typo in Documentation").
-
A list of files affected in this changeset.
-
A bulleted summary of the changes. Be specific.
- Crucially, your summary must include a note about alterations to the signatures of exported functions, modifications to global data structures, or any changes that affect the external API or public behavior of the code.
-
A triage status based on the following strict criteria:
NEEDS_REVIEW: The diff involves any modifications to logic or functionality. This includes changes to control flow, algorithms, variable assignments, function calls, or public-facing contracts that might impact behavior.APPROVED: The diff only contains trivial changes that do not affect code logic, such as fixing typos in comments, code formatting, or renaming a private variable for clarity.
When in doubt, always triage as
NEEDS_REVIEW.
5. The Output Template
You must generate a single markdown file. Your final output must strictly adhere to the following template. Do not add any conversational text or explanations outside of this structure.
Once the output is generated, you are charged to create a PR with the output as the body. If the PR is already open, you will update it. You will also update its title.
# PR Summary: $title
## ๐ High-Level Summary
<!-- Insert the concise, high-level summary (max 150 words) from Step 2 here. -->
## ๐ Architectural Impact & Visualizations
<!--
- Insert Mermaid diagram(s) from Step 3 here, if applicable.
- Use fenced code blocks with the `mermaid` identifier.
- Precede each diagram with a brief explanation.
- If no diagram is needed, this entire section can be omitted.
-->
**Example:**
This diagram illustrates the new data flow for user registration.
```mermaid
sequenceDiagram
participant User
participant Frontend
participant Backend API
participant Database
User->>Frontend: Fills out registration form
Frontend->>Backend API: POST /api/v1/register
Backend API->>Database: INSERT INTO users
Database-->>Backend API: New User ID
Backend API-->>Frontend: { success: true, userId }
Frontend-->>User: Show success message
```
## โ๏ธ Detailed Changeset Breakdown
---
### Changeset 1: [Meaningful Title for the First Group of Changes]
**Files Affected:**
- `path/to/file1.go`
- `path/to/another/file.go`
**Summary of Changes:**
- <!-- Bulleted list explaining the specific changes in this changeset. -->
- <!-- Remember to note any changes to public APIs, function signatures, or global state. -->
**[TRIAGE]:** <NEEDS_REVIEW or APPROVED>
From the softaworks/agent-toolkit README
Softaworks Agent Skills
Opinionated skills shared by @leonardocouy for improving daily work efficiency with Claude Code. Skills are packaged instructions and scripts that extend agent capabilities across development, documentation, planning, and professional workflows.
Skills follow the Agent Skills format.
๐งญ Quick Navigation
๐ Installation โข ๐ Available Skills โข ๐ค Agents & Commands โข ๐ Skill Structure โข ๐ค Contributing โข ๐ License โข ๐ Links
๐ Installation
Quick Install (Recommended)
npx skills add softaworks/agent-toolkit
This method works with multiple AI coding agents (Claude Code, Codex, Cursor, AdaL, etc.)
Register as Plugin Marketplace
Run the following commands in Claude Code:
/plugin marketplace add softaworks/agent-toolkit
/plugin
Install Plugins
Option 1: Via Browse UI
- Switch to Marketplaces tab (use arrow keys or Tab)
- Select agent-toolkit, press Enter
- Browse and select the plugin(s) you want to install
- Select Install now
Option 2: Direct Install
# Install specific skill
/plugin install codex@agent-toolkit
/plugin install humanizer@agent-toolkit
# Install specific agent
/plugin install agent-codebase-pattern-finder@agent-toolkit
# Install specific command
/plugin install command-codex-plan@agent-toolkit
Option 3: Ask the Agent
Simply tell Claude Code:
Please install Skills from github.com/softaworks/agent-toolkit
Available Plugins
Each skill, agent, and command is an individual plugin that can be installed separately:
- Skills โ See Available Skills for the full list
- Agents โ See Agents (install as
agent-<name>@agent-toolkit) - Commands โ See Slash Commands (install as
command-<name>@agent-toolkit)
Update Plugins
To update plugins to the latest version:
- Run
/pluginin Claude Code - Switch to Marketplaces tab
- Select agent-toolkit
- Choose Update marketplace
You can also Enable auto-update to get the latest versions automatically.
Manual Installation
For Claude Code (Manual) โ Skills only
cp -r skills/<skill-name> ~/.claude/skills/
For claude.ai โ Skills only
Add skills to project knowledge or paste SKILL.md contents into the conversation.
๐ Available Skills
| Category | Skill | Description |
|---|---|---|
| ๐ค AI Tools | codex | Advanced code analysis with GPT-5.2 |
| ๐ค AI Tools | gemini | Large-scale review (200k+ context) |
| ๐ค AI Tools | perplexity | Web search & research |
| ๐ฎ Meta | agent-md-refactor | Refactor bloated agent instruction files |
| ๐ฎ Meta | command-creator | Create Claude Code slash commands |
| ๐ฎ Meta | plugin-forge | Build Claude Code plugins & manifests |
| ๐ฎ Meta | skill-judge | Evaluate skill design quality |
| ๐ Documentation | backend-to-frontend-handoff-docs | API handoff docs for frontend |
| ๐ Documentation | c4-architecture | C4 architecture diagrams with Mermaid |
| ๐ Documentation | crafting-effective-readmes | Write effective README files |
| ๐ Documentation | draw-io | Create & edit draw.io diagrams |
| ๐ Documentation | excalidraw | Work with Excalidraw diagrams |
| ๐ Documentation | frontend-to-backend-requirements | Document API requirements |
| ๐ Documentation | marp-slide | Professional presentation slides |
| ๐ Documentation | mermaid-diagrams | Software diagrams with Mermaid |
| ๐ Documentation | writing-clearly-and-concisely | Clear, professional writing |
| ๐จ Design & Frontend | design-system-starter | Create design systems |
| ๐จ Design & Frontend | mui | Material-UI v7 patterns |
| ๐จ Design & Frontend | openapi-to-typescript | Convert OpenAPI to TypeScript |
| ๐จ Design & Frontend | react-dev | Type-safe React 18-19 with TypeScript |
| ๐จ Design & Frontend | react-useeffect | React useEffect best practices |
| ๐ ๏ธ Development | database-schema-designer | Design robust database schemas |
| ๐ ๏ธ Development | dependency-updater | Smart dependency management |
| ๐ ๏ธ Development | naming-analyzer | Suggest better variable/function names |
| ๐ ๏ธ Development | lesson-learned | Extract SE lessons from recent code changes |
| ๐ ๏ธ Development | reducing-entropy | Minimize codebase size |
| ๐ ๏ธ Development | session-handoff | Seamless AI session transfers |
| ๐ฏ Planning | game-changing-features | Find 10x product opportunities |
| ๐ฏ Planning | gepetto | Detailed implementation planning |
| ๐ฏ Planning | requirements-clarity | Clarify requirements before coding |
| ๐ฏ Planning | ship-learn-next | Turn learning into actionable reps |
| ๐ Professional | daily-meeting-update | Interactive daily standup generator |
| ๐ Professional | difficult-workplace-conversations | Navigate difficult conversations |
| ๐ Professional | feedback-mastery | Deliver constructive feedback |
| ๐ Professional | professional-communication | Technical communication guide |
| ๐งช Testing | qa-test-planner | Comprehensive QA test planning |
| ๐ฆ Git | commit-work | High-quality git commits |
| ๐ง Utilities | datadog-cli | Debug with Datadog logs & metrics |
| ๐ง Utilities | domain-name-brainstormer | Generate & check domain names |
| ๐ง Utilities | humanizer | Remove AI writing patterns |
| ๐ง Utilities | meme-factory | Generate memes with API |
| ๐ง Utilities | jira | Natural language Jira interaction |
| ๐ง Utilities | web-to-markdown | Convert webpages to Markdown |
๐ค Agents & Commands
Requires Claude Code CLI โ These agents and commands are exclusive to Claude Code users.
For full access, add the marketplace and install plugins:
/plugin marketplace add softaworks/agent-toolkit /plugin install codex@agent-toolkit
Agents
Specialized sub-agents that Claude Code can delegate tasks to:
| Agent | Description |
|---|---|
| ascii-ui-mockup-generator | Visualize UI concepts through ASCII mockups |
| codebase-pattern-finder | Find similar implementations and patterns |
| communication-excellence-coach | Email refinement, tone calibration, roleplay |
| general-purpose | Default agent for complex multi-step tasks |
| mermaid-diagram-specialist | Create flowcharts, sequence diagrams, ERDs |
| ui-ux-designer | Research-backed UI/UX design feedback |
Slash Commands
Reusable workflows invoked with /command-name:
| Command | Description |
|---|---|
/codex-plan | Create implementation plans using Codex 5.2 |
/compose-email | Draft professional emails |
/explain-changes-mental-model | Build mental model of code changes |
/explain-pr-changes | Generate PR summaries |
/sync-branch | Sync feature branch with main |
/sync-skills-readme | Update README skills table |
/viral-tweet | Optimize tweet ideas for X engagement |
๐ Skill Structure
Each skill contains:
SKILL.md- Detailed instructions for the agent (with YAML frontmatter)README.md- User-friendly documentation with examplesscripts/- Helper scripts for automation (optional)references/- Supporting documentation (optional)
๐ค Contributing
Contributions are welcome! When adding new skills:
- Follow the Agent Skills format
- Include both
SKILL.md(for agents) andREADME.md(for users) - Add YAML frontmatter to
SKILL.mdwithname:anddescription:fields - Update this README.md with a link to your skill
๐ License
MIT
๐ Links
Details
- Marketplace
- softaworks/agent-toolkit
- Source
- dist/plugins/command-explain-pr-changes
- Category
- Commands
- Keywords
- commands, git, pull-requests, documentation
- Listed since
- Apr 6, 2026
More from softaworks/agent-toolkit
All 56- command-sync-branch
- command-sync-skills-readme
- command-viral-tweet
- commit-work
- crafting-effective-readmes
- daily-meeting-update
- database-schema-designer
- datadog-cli
- dependency-updater
- design-system-starter
- difficult-workplace-conversations
- domain-name-brainstormer
- draw-io
- excalidraw
- feedback-mastery
- frontend-to-backend-requirements
- game-changing-features
- gemini
- gepetto
- humanizer
- jira
- lesson-learned
- marp-slide
- meme-factory
Similar to command-explain-pr-changes
More Git & Releases
command-explain-changes-mental-modelPluginsoftaworks/agent-toolkit2.7K starsBuild a mental model of changes by splitting them into smaller logical chunks.
changelog-generatorPluginglincker/claude-code-marketplace38 starsGenerate beautiful CHANGELOG.md from git commits
visual-prPluginhumanlayer/skills5.8K starsCreate or update a pull request with a concise visual outline for reviewers
visual-recapSkillbuilderio/skills999 installsInteractive visual recap of a PR, branch, commit, or git diff with diagrams, file maps, schema and API summaries, and annotated key-change diffs.
changelog-writerPluginrohitg00/awesome-claude-code-toolkit2.8K starsDetailed changelog authoring from git history and PRs