plugins/agent-execution-disciplines/skills/requesting-code-review/SKILL.md
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
npx skillsauth add richfrem/agent-plugins-skills requesting-code-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Source: Ported from obra/superpowers by Jesse Vincent. Adapted for the
agent-plugins-skillsecosystem. Original concepts and Iron Laws credit belongs to Jesse.
Dispatch the code-reviewer agent to catch issues before they cascade. The reviewer gets precisely
crafted context for evaluation - never your session's history. This keeps the reviewer focused on
the work product, not your thought process, and preserves your own context for continued work.
Core principle: Review early, review often.
Mandatory:
Optional but valuable:
1. Get git SHAs:
BASE_SHA=$(git rev-parse HEAD~1) # or origin/main
HEAD_SHA=$(git rev-parse HEAD)
2. Dispatch code-reviewer agent:
Use the Agent tool with subagent_type code-reviewer, providing:
WHAT_WAS_IMPLEMENTED - What you just builtPLAN_OR_REQUIREMENTS - What it should do (link to spec or plan)BASE_SHA - Starting commitHEAD_SHA - Ending commitDESCRIPTION - Brief summary of the diff3. Act on feedback:
[Just completed: Add verification function]
BASE_SHA=$(git log --oneline | grep "previous task" | head -1 | awk '{print $1}')
HEAD_SHA=$(git rev-parse HEAD)
[Dispatch code-reviewer agent]
WHAT_WAS_IMPLEMENTED: Verification and repair functions for conversation index
PLAN_OR_REQUIREMENTS: Task 2 from plan.md - verifyIndex() and repairIndex()
BASE_SHA: a7981ec
HEAD_SHA: 3df7661
DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
[Agent returns]:
Strengths: Clean architecture, real tests
Issues:
Important: Missing progress indicators
Minor: Magic number (100) for reporting interval
Assessment: Ready to proceed
[Fix progress indicators]
[Continue to next task]
Multi-task implementation:
Single feature:
Never:
If reviewer wrong:
In agent-agentic-os with the concurrent-agent-loop pattern, dispatch the code-reviewer
as a PEER_AGENT via the kernel event bus: emit task.assigned, receive task.complete.
This integrates review into the ORCHESTRATOR/INNER_AGENT/PEER_AGENT topology and makes
review quality a measurable signal in the improvement loop.
tools
Ingests repository files into the ChromaDB vector store. Builds or updates the vector index from a manifest or directory scan using ingest.py. Use when new files need to be indexed or the vector store is out of date. <example> user: "Index these new plugin files into the vector database" assistant: "I'll use vector-db-ingest to add them to the vector store." </example> <example> user: "The vector store is missing recent files -- update it" assistant: "I'll use vector-db-ingest to re-index the changes." </example>
data-ai
Removes stale and orphaned chunks from the ChromaDB vector store for files that have been deleted or renamed. Use after files are removed or moved to keep the vector index in sync with the filesystem. <example> user: "Clean up the vector store after I deleted some files" assistant: "I'll use vector-db-cleanup to remove orphaned chunks." </example> <example> user: "The vector database has chunks for files that no longer exist" assistant: "I'll run vector-db-cleanup to prune them." </example>
testing
Audit Vector DB coverage -- compares the live filesystem manifest against the ChromaDB index to identify coverage gaps.
development
3-Phase Knowledge Search strategy for the RLM Factory ecosystem. Auto-invoked when tasks involve finding code, documentation, or architecture context in the repository. Enforces the optimal search order: RLM Summary Scan (O(1)) -> Vector DB Semantic Search -> Grep/Exact Match. Never skip phases.