From claude-powerpack
Creates expert consultation documents with code extraction, git diffs, and size tracking (125KB limit). Use when user asks to "create an expert consultation document", "prepare code for expert review", "gather architecture context", or needs comprehensive technical documentation for external analysis. Requires Node.js 18+.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-powerpack:ask-expertThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create comprehensive technical consultation documents by extracting code, diffs, and architectural context within LLM token limits (125KB).
Create comprehensive technical consultation documents by extracting code, diffs, and architectural context within LLM token limits (125KB).
Create a descriptive file like {topic}-consultation.md with the problem context, your solution, concerns, alternatives, and an architecture overview.
Use the bundled extraction script with size tracking. The script accepts multiple files in one call — batch for efficiency.
node scripts/extract-code.js \
--track-size --output=doc.md \
--section="Core Files" \
file1.ts file2.ts file3.ts \
--section="Tests" \
test1.ts test2.ts
File format options:
src/Service.cssrc/Service.cs:100-200 or src/Service.cs:1-30,100-150src/Service.cs:diff or src/Service.cs:diff=master..HEADGit diff options (all changes):
--staged--commit=abc123 or --commit=HEAD~1Branch-level options (PR consultations):
--branch-diff=master (auto-resolves merge base)--new-files-from=master (syntax-highlighted, not diff format)Prefer FULL files over chunks for better expert analysis. Use chunks only for very large files.
Append an "Expert Guidance Request" section to the end of the document with:
This section is critical — without it, the expert has no actionable request.
Check the file size — it should be 100-125 KB. DO NOT read the full file back (exceeds context).
See EXAMPLES.md for detailed usage patterns.
With 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.cs
Using config file:
node scripts/extract-code.js \
--config=extraction-plan.json
Staged or commit changes:
node scripts/extract-code.js \
--staged --track-size --output=doc.md
node scripts/extract-code.js \
--commit=abc123 --track-size --output=doc.md
PR consultation (single command for all branch changes):
node scripts/extract-code.js \
--branch-diff=master --track-size --output=consultation.md
# With full source of new files (syntax-highlighted, not diff format)
node scripts/extract-code.js \
--branch-diff=master --new-files-from=master \
--track-size --output=consultation.md
{
"output": "consultation.md",
"trackSize": true,
"sections": [
{
"header": "What Changed",
"files": ["src/Service.cs:diff"]
},
{
"header": "Core Implementation",
"files": ["src/Service.cs", "src/Model.cs"]
}
]
}
Must include:
Skip if tight on space:
--track-size to stay within the limit$() and variable assignments in Bash calls can trigger permission prompts. Prefer simple, single-command calls when possible.npx claudepluginhub propstreet/claude-powerpack --plugin claude-powerpackCreates long-form technical documentation from existing codebases by analyzing architecture, patterns, and implementation details.
Generates post-development recap documents with file-level walkthroughs, design intent analysis, spec drift detection, blind spots, and anticipated questions after AI/Codex feature implementation.
Explains complex code, files, or concepts using structural search and mermaid diagrams. Useful for architecture, data flow, and design analysis.