code-review-trigger
Type: ANALYSIS-ONLY
DAIC Modes: DISCUSS, ALIGN, IMPLEMENT, CHECK (all modes)
Priority: High
Trigger Reference
This skill activates on:
- Keywords: "review code", "code review", "check for bugs", "validate code", "find issues", "analyze code", "check quality", "code quality", "review this", "check this code", "inspect code", "audit code", "review changes", "review file"
- Intent Patterns:
(review|check|validate|analyze).*?(code|file|changes|this), (find|detect|look for).*?(bug|issue|problem|error), code.*?quality, (inspect|audit).*?(code|file|changes)
From: skill-rules.json - code-review-trigger configuration
Purpose
Automatically trigger the /code-review slash command when users express intent to review code, check for bugs, or validate code quality using natural language. This skill eliminates the need to remember the exact /code-review syntax.
Core Behavior
In any DAIC mode:
Natural Language Detection
- Detect when user wants code review without using slash command
- Examples: "Review this code", "Check for bugs", "Is this code good?"
- Automatically invoke
/code-review with appropriate arguments
Context Extraction
- Extract what should be reviewed from user's message
- Examples: "Review src/auth.js" → args: "src/auth.js"
- "Check for bugs in recent changes" → args: "recent changes"
- "Review this" (with file in context) → args: infer from context
Slash Command Invocation
- Call
/code-review command with extracted arguments
- Pass through to multi-aspect parallel code review system
- Return results to user
Natural Language Examples
Triggers this skill:
- ✓ "Review this code"
- ✓ "Check for bugs in src/"
- ✓ "Validate code quality"
- ✓ "Find issues in my changes"
- ✓ "Analyze this file for problems"
- ✓ "Code review the recent commits"
- ✓ "Inspect the authentication logic"
- ✓ "Audit the API endpoints"
Does NOT trigger (too generic):
- ✗ "Code" (just mentions code)
- ✗ "Files" (no review intent)
- ✗ "What changed?" (status check, not review)
Safety Guardrails
ANALYSIS-ONLY RULES:
- ✓ NEVER call write tools (Edit, Write, MultiEdit)
- ✓ Only invokes /code-review command which is read-only
- ✓ Safe to run in any DAIC mode
- ✓ Provides analysis and suggestions only
Invocation Rules:
- Only invoke /code-review when clear review intent detected
- Extract specific targets from natural language when possible
- Default to reviewing recent changes if no target specified
- Never auto-fix issues (code-review is analysis-only)
Implementation Notes
This skill acts as a natural language wrapper around /code-review. The actual code review logic lives in .claude/commands/code-review.md, which:
- Launches parallel code-review-expert agents
- Analyzes code quality, security, performance, etc.
- Returns comprehensive review findings
This skill simply detects the intent and routes to that command.
1---2name: code-review-trigger3description: Natural language wrapper for code review - automatically triggers /code-review when users express intent to review code, check for bugs, or validate code quality4---5
6# code-review-trigger
7
8**Type:** ANALYSIS-ONLY
9**DAIC Modes:** DISCUSS, ALIGN, IMPLEMENT, CHECK (all modes)
10**Priority:** High
11
12## Trigger Reference
13
14This skill activates on:
15- **Keywords:** "review code", "code review", "check for bugs", "validate code", "find issues", "analyze code", "check quality", "code quality", "review this", "check this code", "inspect code", "audit code", "review changes", "review file"
16- **Intent Patterns:** `(review|check|validate|analyze).*?(code|file|changes|this)`, `(find|detect|look for).*?(bug|issue|problem|error)`, `code.*?quality`, `(inspect|audit).*?(code|file|changes)`
17
18From: `skill-rules.json` - code-review-trigger configuration
19
20## Purpose
21
22Automatically trigger the `/code-review` slash command when users express intent to review code, check for bugs, or validate code quality using natural language. This skill eliminates the need to remember the exact `/code-review` syntax.
23
24## Core Behavior
25
26In any DAIC mode:
27
281. **Natural Language Detection**
29 - Detect when user wants code review without using slash command
30 - Examples: "Review this code", "Check for bugs", "Is this code good?"
31 - Automatically invoke `/code-review` with appropriate arguments
32
332. **Context Extraction**
34 - Extract what should be reviewed from user's message
35 - Examples: "Review src/auth.js" → args: "src/auth.js"
36 - "Check for bugs in recent changes" → args: "recent changes"
37 - "Review this" (with file in context) → args: infer from context
38
393. **Slash Command Invocation**
40 - Call `/code-review` command with extracted arguments
41 - Pass through to multi-aspect parallel code review system
42 - Return results to user
43
44## Natural Language Examples
45
46**Triggers this skill:**
47- ✓ "Review this code"
48- ✓ "Check for bugs in src/"
49- ✓ "Validate code quality"
50- ✓ "Find issues in my changes"
51- ✓ "Analyze this file for problems"
52- ✓ "Code review the recent commits"
53- ✓ "Inspect the authentication logic"
54- ✓ "Audit the API endpoints"
55
56**Does NOT trigger (too generic):**
57- ✗ "Code" (just mentions code)
58- ✗ "Files" (no review intent)
59- ✗ "What changed?" (status check, not review)
60
61## Safety Guardrails
62
63**ANALYSIS-ONLY RULES:**
64- ✓ NEVER call write tools (Edit, Write, MultiEdit)
65- ✓ Only invokes /code-review command which is read-only
66- ✓ Safe to run in any DAIC mode
67- ✓ Provides analysis and suggestions only
68
69**Invocation Rules:**
70- Only invoke /code-review when clear review intent detected
71- Extract specific targets from natural language when possible
72- Default to reviewing recent changes if no target specified
73- Never auto-fix issues (code-review is analysis-only)
74
75## Implementation Notes
76
77This skill acts as a natural language wrapper around `/code-review`. The actual code review logic lives in `.claude/commands/code-review.md`, which:
78- Launches parallel code-review-expert agents
79- Analyzes code quality, security, performance, etc.
80- Returns comprehensive review findings
81
82This skill simply detects the intent and routes to that command.