Essential productivity tools for Claude Code: expert consultation docs, code extraction, and more
Create comprehensive PR descriptions that document every meaningful change:
- Systematic Review: Inventories ALL changed files and commits
- Multi-Category: Features, bug fixes, tests, docs, config - nothing missed
- Structured Output: Organized sections for user impact and technical details
- GitHub Integration: Updates PR via
gh pr edit
Create comprehensive technical consultation documents for external expert review:
- Code Extraction: Full files, line ranges, or git diffs
- Size Tracking: Real-time progress with 125KB limit warnings
- Multi-file Support: Batch multiple files in single command
- Section Organization: Structured markdown headers
- Git Integration: Extract changes between branches/commits
- Config Files: Reusable extraction plans via JSON
- Add the marketplace:
/plugin marketplace add propstreet/claude-powerpack- Install the plugin:
/plugin install claude-powerpack@propstreetOr use the interactive menu:
/pluginThen browse and select claude-powerpack from the available plugins.
After installation, restart Claude Code to activate the plugin.
Check that the plugin is installed:
/pluginYou should see claude-powerpack in the list of installed plugins.
Ask Claude to update or prepare a PR description. Claude will systematically inventory all changes, categorize them, and create a structured summary. See Skills Included for example prompts.
Ask Claude to create consultation documents for external expert review. Claude will structure the problem, extract relevant code with size tracking, and format everything within the 125KB token limit. See Skills Included for example prompts.
You can also use the extraction script directly:
Basic extraction:
node scripts/extract-code.js \
--track-size --output=doc.md \
src/Component.vue tests/Component.test.tsWith sections:
node scripts/extract-code.js \
--track-size --output=doc.md \
--section="What Changed" \
src/Service.cs:diff \
--section="Implementation" \
src/Service.cs src/Model.csGit diffs:
node scripts/extract-code.js \
--track-size --output=doc.md \
src/Service.cs:diff=master..feature-branchUsing config file:
node scripts/extract-code.js \
--config=extraction-plan.jsonSee skills/ask-expert/EXAMPLES.md for complete usage examples.
- Claude Code with plugin support
- Node.js 18+ (for code extraction script)
- Git (for diff functionality)
- gh CLI (for update-pr skill) - Install
Configure repository-level plugin installation by adding to your project's .claude/settings.json:
{
"plugins": [
"propstreet/claude-powerpack"
]
}Team members who trust the repository folder will automatically have the plugin installed.
- SKILL.md - Complete workflow for Claude
- EXAMPLES.md - Good vs bad PR examples
- README - Quick reference
- SKILL.md - Complete workflow for Claude
- EXAMPLES.md - Usage patterns and workflows
- README - Quick reference
Example prompts:
"Update the PR description"
"Prepare this PR for review"
"Document the changes in this branch"
"Write a comprehensive PR summary"
What it does:
- Inventories ALL changed files and commits systematically
- Categorizes changes: features, bug fixes, tests, docs, config
- Creates structured PR description with user impact section
- Saves to
/tmp/pr-summary.mdand updates PR viagh pr edit
Allowed tools: Bash, Read, Write, Edit, Glob, Grep
Example prompts:
"Create an expert consultation document for our authentication refactor"
"Prepare code for expert review about our API design"
"I need to ask an expert about our database schema"
What it does:
- Structures consultation documents with problem context
- Extracts code with real-time size tracking (125KB limit)
- Supports full files, line ranges, and git diffs
- Formats everything for external expert review
Allowed tools: Bash, Read, Write, Edit
- Verify installation:
/plugin - Restart Claude Code after installing
- Try explicit activation phrases: "create an expert consultation document"
# Verify script exists
ls scripts/extract-code.js
# Check Node.js version
node --version # Should be 18+# Check current directory
pwd
# Use absolute paths for files in your repo
node scripts/extract-code.js \
/absolute/path/to/file.csSee skills/ask-expert/README.md for complete troubleshooting guide.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Contributions welcome! Please see CONTRIBUTING.md for guidelines.
MIT - See LICENSE for details.
Created by Propstreet for the Claude Code community.
Inspired by the need to effectively communicate complex technical context to external experts and AI consultants while respecting token limits.