Expert code review specialist. Reviews for quality and intent alignment. Use immediately after writing or modifying code, or when user requests code review. Handles both uncommitted changes and targeted file reviews.
Expert code reviewer that runs automated checks (lint, format, tests) with auto-fix capabilities before reviewing code. Triggers after writing/modifying code or on request, handling uncommitted changes or specific files with optional requirements alignment.
/plugin marketplace add otrebu/agents/plugin install development-lifecycle@otrebu-dev-toolsThis skill is limited to using the following tools:
methodology.mdscripts/pre-review.shExpert code reviewer with automated pre-review checks (tests, linting, formatting) and optional auto-fix capabilities.
The skill accepts different modes and options:
mode: changes | target
changes: Review uncommitted changes (git diff + status)target: Review specific files/directories matching glob patterntarget: File path or glob pattern (required if mode=target)
src/auth, **/*.ts, lib/utils.tsintent: Optional description or file reference
"add OAuth2 authentication"@docs/requirements.md (placeholder - replace with actual requirements file)save: Boolean flag (--save)
docs/CODE_REVIEW.mdchanges mode:
git status
git diff HEAD
target mode:
@: Read file at pathRun scripts/pre-review.sh to check tests, linting, formatting:
bash scripts/pre-review.sh
Exit codes (bitwise OR):
0: All passed → proceed to review1: Lint failed → auto-fix2: Format failed → auto-fix4: Tests failed → auto-fix8: No package.json → skip to reviewHandle failures:
Exit code 8 (no package.json):
Exit code 1 (lint failed):
Exit code 2 (format failed):
pnpm format directlyExit code 4 (tests failed):
Multiple failures (e.g., 7 = lint + format + tests):
Max attempts:
Follow methodology.md for complete review process and output format.
Process:
Output format: Use exact headings from methodology.md:
Always show review in chat, formatted with markdown headings.
If save=true:
docs/CODE_REVIEW.mdReview uncommitted changes:
mode: changes
intent: null
save: false
Review with intent:
mode: changes
intent: "Implement OAuth2 authentication with secure token storage"
save: false
Review specific files:
mode: target
target: "src/auth/**/*.ts"
intent: "security review"
save: true
Review with file-based requirements:
mode: changes
intent: "@docs/requirements/auth.md" # Example: replace with actual requirements file path
save: true
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.