Agent skill
review-package
Create a self-contained review package of current work for external review by another AI model or human reviewer. Bundles relevant files with a contextual README and instructional prompt. Triggers: "review package", "create review package", "hand off for review", "get a second opinion", "external code review", "cross-model review", "package for review", "prepare code review". Accepts an optional focus area argument to scope the analysis.
Install this agent skill to your Project
npx add-skill https://github.com/petekp/agent-skills/tree/main/skills/review-package
SKILL.md
Review Package Creator
Bundle current work into a self-contained zip with a contextual README and review prompt, ready to hand off to any external reviewer.
Phase 1: Gather Requirements
Ask the user two questions using AskUserQuestion:
Question 1: Review Type
- Header: "Review type"
- Question: "What type of review do you need?"
- Options:
- Code review — Line-by-line feedback on implementation, bugs, edge cases, best practices
- Architecture review — High-level feedback on patterns, structure, design decisions
- Both — Comprehensive review covering code and architecture
Question 2: Specific Concerns
- Header: "Focus areas"
- Question: "Any specific concerns you want the reviewer to address?"
- multiSelect: true
- Options:
- General review — No specific focus, broad feedback welcome
- Performance — Efficiency, optimization opportunities
- Security — Vulnerabilities, input validation, auth patterns
- Maintainability — Code clarity, complexity, future extensibility
Wait for responses before proceeding.
Phase 2: Analyze Codebase
Spawn the analyzer agent:
- subagent_type:
review-package-analyzer - prompt: Include focus area ($ARGUMENTS or "current work"), review type from Phase 1, and project root (cwd).
Wait for the agent to return its structured analysis.
Phase 3: Generate README
Generate a unique suffix for temp files (e.g., timestamp: date +%s). Use this for all temp paths in subsequent phases.
Read references/readme-guide.md for structure guidelines. Write the README to /tmp/review-readme-{suffix}.md.
Adapt the README to the project — don't fill in a rigid template mechanically. The guide provides the sections and priorities; use judgment about what to emphasize based on the review type and analysis results.
Phase 4: Create File List
Extract all file paths from the analysis (Core, Related, Tests, Config). Write one path per line to /tmp/review-filelist-{suffix}.txt.
Phase 5: Create Package
Locate the packaging script:
find ~/.claude -path "*/review-package/scripts/create-review-zip.sh" -type f 2>/dev/null | head -1
Run it:
/path/to/create-review-zip.sh \
"$(pwd)" \
"/tmp/review-readme-{suffix}.md" \
"/tmp/review-filelist-{suffix}.txt" \
"review-package-$(date +%Y%m%d-%H%M%S)"
Phase 6: Generate Instructional Prompt
Read references/prompt-guide.md for the template. Customize based on review type, focus areas, and concerns from the analysis.
Write to /tmp/review-prompt-{suffix}.md and copy to clipboard:
cat /tmp/review-prompt-{suffix}.md | pbcopy
Phase 7: Report
Tell the user: zip location, file counts (core/related/tests), display the instructional prompt inline, and list next steps (open a new chat with any AI model, paste prompt, upload zip). Mention the prompt is on the clipboard and saved to the temp path.
Clean up temp files (keep the prompt file):
rm -f /tmp/review-readme-{suffix}.md /tmp/review-filelist-{suffix}.txt
Notes
- If $ARGUMENTS is empty, the analyzer auto-detects current work from git status and recent changes
- For non-git projects, the analyzer falls back to recently-modified files
- The package is self-contained — the reviewer needs no other context
- Files are copied with directory structure preserved
- Binary files and build artifacts are excluded automatically
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
multi-model-meta-analysis
Synthesize outputs from multiple AI models into a comprehensive, verified assessment. Use when: (1) User pastes feedback/analysis from multiple LLMs (Claude, GPT, Gemini, etc.) about code or a project, (2) User wants to consolidate model outputs into a single reliable document, (3) User needs conflicting model claims resolved against actual source code. This skill verifies model claims against the codebase, resolves contradictions with evidence, and produces a more reliable assessment than any single model.
capture-learning
Analyze recent conversation context and capture learnings to project knowledge files (for project-specific insights) or skills/commands/subagents (for cross-project patterns). Use when the user asks to "capture this learning", "update the docs with this", "remember this for next time", "document this issue", "add this to CLAUDE.md", "save this knowledge", or "update project knowledge". Also triggers after resolving build/setup issues, discovering non-obvious patterns, or completing debugging sessions with valuable insights.
optimize-agent-docs
Build a retrieval-optimized knowledge layer over agent documentation in dotfiles (.claude, .codex, .cursor, .aider). Use when asked to "optimize docs", "improve agent knowledge", "make docs more efficient", or when documentation has accumulated and retrieval feels inefficient. Generates a manifest mapping task-contexts to knowledge chunks, optimizes information density, and creates compiled artifacts for efficient agent consumption.
agent-changelog
Compile an agent-optimized changelog by cross-referencing git history with plans and documentation. Use when asked to "update changelog", "compile history", "document project evolution", or proactively after major milestones, architectural changes, or when stale/deprecated information is detected that could confuse coding agents.
literate-guide
Create a narrative guide to a codebase or feature in the style of Knuth's Literate Programming — code and prose interwoven as a single essay, ordered for human understanding rather than compiler needs. Use when the user asks to 'explain this codebase as a story', 'write a literate guide', 'create a narrative walkthrough', 'tell the story of this code', 'Knuth-style documentation', 'weave a guide for this feature', or when they want deep, readable documentation that treats the program as literature. Also trigger when someone wants a document that a thoughtful reader could follow from start to finish and come away understanding both WHAT the code does and WHY every design choice was made.
autonomous-agent-readiness
Assess a codebase's readiness for autonomous agent development and provide tailored recommendations. Use when asked to evaluate how well a project supports unattended agent execution, assess development practices for agent autonomy, audit infrastructure for agent reliability, or improve a codebase for autonomous agent workflows. Triggers on requests like "assess this project for agent readiness", "how autonomous-ready is this codebase", "evaluate agent infrastructure", or "improve development practices for agents".
Didn't find tool you were looking for?