From change-walkthrough
Generates detailed Markdown walkthroughs of git code changes (uncommitted, staged, commits, branches) with summaries, file tables, explanations, snippets, and testing notes. Saves to tmp dir.
npx claudepluginhub sawyerhood/sawyer-martThis skill uses the workspace's default tool permissions.
Generate a detailed, well-formatted markdown walkthrough of code changes with automatic HTML conversion and browser preview.
Generates markdown report of git-tracked codebase changes from session: files added/modified/deleted, commit history, and summary for reviews or handoffs.
Interactively walks through local git diffs chunk-by-chunk, simulating a colleague explaining changes with context, pausing for questions or flags before advancing.
Visualizes git diffs with syntax highlighting and split views in terminal UI or web preview. Provides AI-powered code reviews and explanations for changes, commits, and branches.
Share bugs, ideas, or general feedback.
Generate a detailed, well-formatted markdown walkthrough of code changes with automatic HTML conversion and browser preview.
Ask or determine what changes the user wants documented:
If not specified, default to uncommitted changes.
Based on the scope, run appropriate git commands:
# Uncommitted changes
git diff --stat && git diff
# Staged changes
git diff --staged --stat && git diff --staged
# Last N commits
git log --oneline -n N && git diff HEAD~N..HEAD
# Branch comparison
git diff main..HEAD --stat && git diff main..HEAD
Also gather context by reading changed files to understand the full picture.
Create a comprehensive markdown document:
# Change Walkthrough: {Descriptive Title}
**Date:** YYYY-MM-DD
**Scope:** {uncommitted/staged/commits/etc}
**Total Files:** N files changed (+additions/-deletions)
## Summary
{2-3 sentence overview explaining what changed and why}
## Files Changed
| File | Changes | Description |
|------|---------|-------------|
| `path/to/file.ts` | +15/-3 | Brief description |
## Detailed Walkthrough
### {Feature or Component Name}
#### `path/to/file.ts:10-25`
**What changed:** {Explanation}
\`\`\`typescript
// Code snippet with syntax highlighting
\`\`\`
**Why:** {Reasoning behind this change}
## Testing Notes
- {What should be tested}
- {Potential edge cases}
---
*Generated by change-walkthrough skill*
Create a descriptive filename based on the changes:
{action}-{subject}-{YYYY-MM-DD}.mdExamples:
add-user-authentication-2025-12-22.mdfix-login-validation-2025-12-22.mdrefactor-database-queries-2025-12-22.mdWrite the walkthrough to the skill's tmp directory. All generated files should be stored within the skill folder, not in the user's project directory.
The skill's base directory is shown at the top when the skill loads as "Base directory for this skill: ...". Use this path to construct the output location:
{SKILL_BASE_DIR}/tmp/{filename}.md
Write the generated markdown using the absolute path to the skill's tmp directory.
The conversion script requires npm dependencies. Run all commands from the skill's base directory (shown at the top when the skill loads as "Base directory for this skill: ...").
# Change to skill directory and install dependencies (only needed once per cache)
cd {SKILL_BASE_DIR} && npm install
# Convert markdown to HTML (use ABSOLUTE paths for input/output)
node scripts/md-to-html.js {SKILL_BASE_DIR}/tmp/{filename}.md
# Open in default browser
open {SKILL_BASE_DIR}/tmp/{filename}.html
Replace {SKILL_BASE_DIR} with the skill's base directory path. The script accepts absolute paths for the input file and automatically creates the .html file alongside it in the skill's tmp directory.
Report to the user the paths to both files and confirm the browser opened.