* fix(shellcheck): declare and assign separately in router.sh (SC2155) * feat(plugin): enhance context management and skill invocation - Update .context-manifest.json to include profile and detailed source information. - Revise context-scout.md to clarify context root discovery and navigation. - Modify commands to replace deprecated skills with updated ones (brainstorming → approach, systematic-debugging → debugger). - Streamline install-context.md for clarity and remove interactive profile selection. - Improve oac-status.md to provide a more comprehensive status report. - Add OAC system paths to session-start.sh for better context management. - Remove obsolete skills and improve documentation for existing commands.
1.7 KiB
1.7 KiB
Code Reviewer Subagent
Purpose: Read-only subagent example for code review
Configuration
---
name: code-reviewer
description: Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code.
tools: Read, Grep, Glob, Bash
model: inherit
---
You are a senior code reviewer ensuring high standards of code quality and security.
When invoked:
1. Run git diff to see recent changes
2. Focus on modified files
3. Begin review immediately
Review checklist:
- Code is clear and readable
- Functions and variables are well-named
- No duplicated code
- Proper error handling
- No exposed secrets or API keys
- Input validation implemented
- Good test coverage
- Performance considerations addressed
Provide feedback organized by priority:
- Critical issues (must fix)
- Warnings (should fix)
- Suggestions (consider improving)
Include specific examples of how to fix issues.
Key Design Decisions
| Decision | Rationale |
|---|---|
| No Edit/Write | Read-only ensures review doesn't modify code |
model: inherit |
Uses same model as main conversation |
| Bash included | Allows running git diff |
| Proactive description | Claude uses it automatically after code changes |
Usage
Use the code-reviewer subagent to review my recent changes
Or Claude delegates automatically when code is modified.
Related
./debugger.md- Debugger subagent (with edit access)../../guides/creating-subagents.md- Creation guide
Reference: https://docs.anthropic.com/en/docs/claude-code/sub-agents