claude-powerpack
by propstreetv1.4.2
Essential productivity tools for Claude Code: expert consultation docs, code extraction, PR workflows, and more
Keywords
documentationcode-extractionexpert-consultationproductivitycode-reviewpr-descriptionrequirements-gatheringprdsimplify
Documentation
# Claude Powerpack
> Essential productivity tools for Claude Code: expert consultation docs, code extraction, PR workflows, and more
[](https://opensource.org/licenses/MIT)
[](https://github.com/propstreet/claude-powerpack/releases)
## Features
### Deep Interview Skill
Structured requirements gathering via interactive interviews:
- **7-Phase Process**: Context → Scope → Approach → Priority → Details → Technical → Timeline
- **GitHub Integration**: Pulls issue context before asking questions
- **PRD Generation**: Auto-generates PRD with decision log and implementation checklist
- **Best Practices**: Multi-select questions, tradeoff presentation, stakeholder probing
### Simplify Skill
Pre-merge PR cleanup to trim accumulated complexity:
- **Cruft Detection**: Debug logging, commented code, unused imports, TODOs for done work
- **Over-Engineering Check**: Premature abstractions, dead code paths, speculative features
- **Framework-Agnostic**: Auto-detects Node.js, Python, Go, Rust for verification
- **Risk-Rated Output**: Change summary with Low/Medium/High risk assessment
### Update PR Skill
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`
### Ask Expert Skill
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
## Installation
### Quick Install
1. **Add the marketplace**:
```shell
/plugin marketplace add propstreet/claude-powerpack
```
2. **Install the plugin**:
```shell
/plugin install claude-powerpack@propstreet
```
Or use the interactive menu:
```shell
/plugin
```
Then browse and select `claude-powerpack` from the available plugins.
After installation, restart Claude Code to activate the plugin.
### Verify Installation
Check that the plugin is installed:
```shell
/plugin
```
You should see `claude-powerpack` in the list of installed plugins.
## Usage
### Deep Interview Skill
Ask Claude to interview you about a feature before implementation. Claude will research context, ask structured questions, and generate a PRD. See [Skills Included](#skills-included) for example prompts.
### Simplify Skill
Ask Claude to simplify your PR before merging. Claude will identify accumulated cruft, over-engineering, and suggest cleanups with risk ratings. See [Skills Included](#skills-included) for example prompts.
### Update PR Skill
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](#skills-included) for example prompts.
### Ask Expert Skill
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](#skills-included) for example prompts.
### Manual Code Extraction
You can also use the extraction script directly:
**Basic extraction:**
```bash
node scripts/extract-code.js \
--track-size --output=doc.md \
src/Component.vue tests/Component.test.ts
```
**With sections:**
```bash
node scripts/extract-code.js \
--track-size --output=doc.md \
--section="What Changed" \
src/Service.cs:diff \
--section="Implementation" \
src/Service.cs src/Model.cs
```
**Git diffs:**
```bash
node scripts/extract-code.js \
--track-size --output=doc.md \
src/Service.cs:diff=master..feature-branch
```
**Using config file:**
```bash
node scripts/extract-code.js \
--config=extraction-plan.json
```
See [skills/ask-expert/EXAMPLES.md](skills/ask-expert/EXAMPLES.md) for complete usage examples.
## Requirements
- **Claude Code** with plugin support
- **Node.js** 18+ (for code extraction script)
- **Git** (for diff functionality)
- **gh CLI** (for update-pr skill) - [Install](https://cli.github.com/)
## Team Setup
Configure repository-level plugin installation by adding to your project's `.claude/settings.json`:
```json
{
"plugins": [
"propstreet/claude-powerpack"
]
}
```
Team members who trust the repository folder will automatically have the plugin installed.
## Documentation
### Deep Interview Skill
- **[SKILL.md](skills/deep-interview/SKILL.md)** - Complete interview workflow
### Simplify Skill
- **[SKILL.md](skills/simplify/SKILL.md)** - Complete cleanup workflow
### Update PR Skill
- **[SKILL.md](skills/update-pr/SKILL.md)** - Complete workflow for Claude
- **[EXAMPLES.md](skills/update-pr/EXAMPLES.md)** - Good vs bad PR examples
- **[README](skills/update-pr/README.md)** - Quick reference
### Ask Expert Skill
- **[SKILL.md](skills/ask-expert/SKILL.md)** - Complete workflow for Claude
- **[EXAMPLES.md](skills/ask-expert/EXAMPLES.md)** - Usage patterns and workflows
- **[README](skills/ask-expert/README.md)** - Quick reference
## Skills Included
### deep-interview (v1.4.0)
**Example prompts:**
```
"Interview me about this feature before we start"
"Let's do a deep interview for issue #531"
"Help me gather requirements for the new authentication flow"
"Start a structured interview for this PRD"
```
**What it does:**
- Gathers context from GitHub issues and existing docs
- Asks structured questions through 7 phases
- Generates PRD with decision log and implementation checklist
- Probes for existing patterns and stakeholder knowledge
**Allowed tools:** Bash(git, gh), Read, Glob, Grep, AskUserQuestion, Write, Task
### simplify (v1.4.0)
**Example prompts:**
```
"Simplify this PR before merging"
"Clean up the accumulated cruft in this branch"
"Check for over-engineering before I merge"
"Review this PR for unnecessary complexity"
```
**What it does:**
- Identifies debug logging, commented code, unused imports
- Detects over-engineering and premature abstractions
- Auto-detects project type for verification commands
- Outputs risk-rated change summary table
**Allowed tools:** Bash(git, gh), Read, Edit, Glob, Grep
### update-pr (v1.1.0)
**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.md` and updates PR via `gh pr edit`
**Allowed tools:** Bash, Read, Write, Edit, Glob, Grep
### ask-expert (v1.0.0)
**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
## Troubleshooting
### Plugin not activating
1. Verify installation: `/plugin`
2. Restart Claude Code after installing
3. Try explicit activation phrases: "create an expert consultation document"
### Script not found
```bash
# Verify script exists
ls scripts/extract-code.js
# Check Node.js version
node --version # Should be 18+
```
### File not found errors
```bash
# Check current directory
pwd
# Use absolute paths for files in your repo
node scripts/extract-code.js \
/absolute/path/to/file.cs
```
See [skills/ask-expert/README.md](skills/ask-expert/README.md#troubleshooting) for complete troubleshooting guide.
## Support
- **Issues**: [GitHub Issues](https://github.com/propstreet/claude-powerpack/issues)
- **Discussions**: [GitHub Discussions](https://github.com/propstreet/claude-powerpack/discussions)
## Contributing
Contributions welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
## License
MIT - See [LICENSE](LICENSE) for details.
## Credits
Created by [Propstreet](https://github.com/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.