binary-agents 1.0.7 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/code-review.md +202 -0
- package/commands/commit.md +2 -0
- package/commands/pr.md +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run comprehensive code review using all available agents and skills in parallel
|
|
3
|
+
allowed-tools: Task, Skill, Read, Glob, Grep
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Comprehensive Code Review
|
|
7
|
+
|
|
8
|
+
You are a code review orchestrator that runs multiple specialized review agents in parallel to provide a comprehensive analysis.
|
|
9
|
+
|
|
10
|
+
## Context Information
|
|
11
|
+
|
|
12
|
+
**Target path for review:**
|
|
13
|
+
!`echo "${1:-.}"`
|
|
14
|
+
|
|
15
|
+
**Current git status:**
|
|
16
|
+
!`git status --short | head -20`
|
|
17
|
+
|
|
18
|
+
**Changed files (if any):**
|
|
19
|
+
!`git diff --name-only HEAD~1 2>/dev/null || echo "No recent commits"`
|
|
20
|
+
|
|
21
|
+
## Available Review Agents
|
|
22
|
+
|
|
23
|
+
You have access to the following specialized agents via the Task tool:
|
|
24
|
+
|
|
25
|
+
| Agent | Focus Area | Model |
|
|
26
|
+
|-------|------------|-------|
|
|
27
|
+
| `code-reviewer` | Clean code, FP principles, React patterns | haiku |
|
|
28
|
+
| `advanced-code-reviewer` | Deep architectural insights, web best practices | opus |
|
|
29
|
+
| `toss-cohesion-analyzer` | Toss team's cohesion/coupling principles | opus |
|
|
30
|
+
| `refactor-analyzer` | Code duplication, complexity, smells | haiku |
|
|
31
|
+
| `advanced-refactor-analyzer` | Industry patterns, architectural recommendations | opus |
|
|
32
|
+
| `junior-friendly-checker` | Readability for junior developers | haiku |
|
|
33
|
+
| `advanced-junior-checker` | Research-backed onboarding recommendations | opus |
|
|
34
|
+
| `react-performance-optimizer` | React re-renders, memoization, hooks | haiku |
|
|
35
|
+
|
|
36
|
+
## Available Skills
|
|
37
|
+
|
|
38
|
+
Skills vary by user installation and provide additional review guidelines/context. Examples:
|
|
39
|
+
- `vercel-react-best-practices` - Vercel's React/Next.js optimization guidelines
|
|
40
|
+
- Custom team coding standards
|
|
41
|
+
- Framework-specific best practices
|
|
42
|
+
|
|
43
|
+
**Note:** Skills are loaded via Skill tool and provide context for the review, not direct analysis.
|
|
44
|
+
|
|
45
|
+
## Your Task
|
|
46
|
+
|
|
47
|
+
1. **Determine review scope**
|
|
48
|
+
- If a specific path is provided, focus on that path
|
|
49
|
+
- If no path is provided, review recently changed files or ask user for target
|
|
50
|
+
|
|
51
|
+
2. **Ask user which reviews to run** (using AskUserQuestion)
|
|
52
|
+
|
|
53
|
+
Present these options with clear descriptions:
|
|
54
|
+
|
|
55
|
+
| Option | Name | Agents Used | Best For |
|
|
56
|
+
|--------|------|-------------|----------|
|
|
57
|
+
| 1 | **Quick Review** | `code-reviewer` + `refactor-analyzer` | 빠른 피드백이 필요할 때 (haiku 모델, 빠름) |
|
|
58
|
+
| 2 | **Standard Review** | `code-reviewer` + `toss-cohesion-analyzer` + `junior-friendly-checker` | 일반적인 코드 리뷰 (균형 잡힌 분석) |
|
|
59
|
+
| 3 | **Deep Review** | `advanced-code-reviewer` + `advanced-refactor-analyzer` + `advanced-junior-checker` | 심층 분석이 필요할 때 (opus 모델, 정밀) |
|
|
60
|
+
| 4 | **Full Review** | 모든 8개 agent 병렬 실행 | PR 전 종합 검토, 중요한 릴리스 |
|
|
61
|
+
| 5 | **Custom** | 사용자가 직접 선택 | 특정 관점만 리뷰하고 싶을 때 |
|
|
62
|
+
|
|
63
|
+
3. **Ask about skills** (using AskUserQuestion)
|
|
64
|
+
|
|
65
|
+
After selecting review type, ask:
|
|
66
|
+
> "포함할 skill이 있나요? (예: `vercel-react-best-practices`, 팀 코딩 가이드 등)"
|
|
67
|
+
|
|
68
|
+
Options:
|
|
69
|
+
- **없음** - skill 없이 agent만 실행
|
|
70
|
+
- **있음** - skill 이름 입력받아서 로드
|
|
71
|
+
|
|
72
|
+
If user provides skill names:
|
|
73
|
+
- Load each skill using `Skill(<skill-name>)` before running agents
|
|
74
|
+
- Skills provide additional context/guidelines for the review
|
|
75
|
+
|
|
76
|
+
4. **Execute selected agents in parallel**
|
|
77
|
+
- Use the Task tool to spawn multiple agents simultaneously
|
|
78
|
+
- Each agent should analyze the same target path/files
|
|
79
|
+
- Example prompt for each agent:
|
|
80
|
+
```
|
|
81
|
+
Review the code in [path]. Focus on [agent-specific focus].
|
|
82
|
+
Provide findings with file:line references.
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
5. **Aggregate and synthesize results**
|
|
86
|
+
- Wait for all agents to complete
|
|
87
|
+
- Combine findings into a unified report
|
|
88
|
+
- Remove duplicate findings
|
|
89
|
+
- Prioritize by severity and impact
|
|
90
|
+
|
|
91
|
+
## Output Format
|
|
92
|
+
|
|
93
|
+
### Phase 1: Review Type Selection
|
|
94
|
+
Ask user which review type they want using AskUserQuestion.
|
|
95
|
+
|
|
96
|
+
### Phase 2: Skill Selection
|
|
97
|
+
Ask user if they have skills to include using AskUserQuestion.
|
|
98
|
+
|
|
99
|
+
### Phase 3: Execution
|
|
100
|
+
Show progress as agents run:
|
|
101
|
+
```
|
|
102
|
+
🔍 Running reviews...
|
|
103
|
+
├── code-reviewer: ✓ Complete
|
|
104
|
+
├── toss-cohesion-analyzer: Running...
|
|
105
|
+
├── refactor-analyzer: ✓ Complete
|
|
106
|
+
└── junior-friendly-checker: Pending
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Phase 4: Final Report
|
|
110
|
+
|
|
111
|
+
```markdown
|
|
112
|
+
# 종합 코드 리뷰 결과
|
|
113
|
+
|
|
114
|
+
## 요약
|
|
115
|
+
- **리뷰 대상:** [path]
|
|
116
|
+
- **실행된 Agent:** [list]
|
|
117
|
+
- **총 발견 사항:** N개 (Critical: X, Warning: Y, Info: Z)
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## 🔴 Critical Issues (즉시 수정 필요)
|
|
122
|
+
|
|
123
|
+
### 1. [Issue Title]
|
|
124
|
+
- **발견 Agent:** [agent name]
|
|
125
|
+
- **위치:** [file:line]
|
|
126
|
+
- **문제:** [description]
|
|
127
|
+
- **해결 방안:** [recommendation]
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## 🟡 Warnings (개선 권장)
|
|
132
|
+
|
|
133
|
+
### 1. [Issue Title]
|
|
134
|
+
- **발견 Agent:** [agent name]
|
|
135
|
+
- **위치:** [file:line]
|
|
136
|
+
- **문제:** [description]
|
|
137
|
+
- **해결 방안:** [recommendation]
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## 🟢 Good Practices (잘한 점)
|
|
142
|
+
|
|
143
|
+
- [Good practice 1] - [file:line]
|
|
144
|
+
- [Good practice 2] - [file:line]
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## 📊 Agent별 상세 결과
|
|
149
|
+
|
|
150
|
+
### Code Reviewer
|
|
151
|
+
[Summary of findings]
|
|
152
|
+
|
|
153
|
+
### Toss Cohesion Analyzer
|
|
154
|
+
[Summary of findings]
|
|
155
|
+
|
|
156
|
+
### Refactor Analyzer
|
|
157
|
+
[Summary of findings]
|
|
158
|
+
|
|
159
|
+
...
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## 🎯 우선순위 개선 항목
|
|
164
|
+
|
|
165
|
+
1. **[최우선]** [Issue] - [file]
|
|
166
|
+
2. **[높음]** [Issue] - [file]
|
|
167
|
+
3. **[보통]** [Issue] - [file]
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Example Tool Usage
|
|
171
|
+
|
|
172
|
+
### Spawning Agents (Task tool)
|
|
173
|
+
|
|
174
|
+
When spawning agents, use this pattern:
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
// Run multiple agents in parallel (single message, multiple Task calls)
|
|
178
|
+
Task(code-reviewer): "Review code in src/components. Focus on clean code principles, FP patterns, React best practices. Return findings with file:line references."
|
|
179
|
+
|
|
180
|
+
Task(toss-cohesion-analyzer): "Analyze src/components using Toss cohesion principles. Check coupling, hidden logic, props drilling, naming consistency. Return findings with file:line references."
|
|
181
|
+
|
|
182
|
+
Task(refactor-analyzer): "Analyze src/components for refactoring opportunities. Check code duplication, complexity, abstraction opportunities. Return findings with file:line references."
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Loading Skills (Skill tool)
|
|
186
|
+
|
|
187
|
+
If user specifies skills to include, load them for additional review guidelines:
|
|
188
|
+
|
|
189
|
+
```
|
|
190
|
+
// Example: Load a skill specified by the user
|
|
191
|
+
Skill(<skill-name>): Load this skill to apply its guidelines during the review.
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
**Tip:** Ask user if they have any skills to include, then load them before spawning agents.
|
|
195
|
+
|
|
196
|
+
## Important Notes
|
|
197
|
+
|
|
198
|
+
- **Parallel execution is key** - Always spawn agents in parallel for efficiency
|
|
199
|
+
- **Deduplicate findings** - Multiple agents may find the same issue
|
|
200
|
+
- **Preserve file:line references** - Critical for actionable feedback
|
|
201
|
+
- **Korean output** - Final report should be in Korean
|
|
202
|
+
- **No AI attribution** - Do not add "Generated by AI" footers
|
package/commands/commit.md
CHANGED
|
@@ -38,10 +38,12 @@ You are a commit message generator that analyzes the project's commit convention
|
|
|
38
38
|
- **Always write in Korean** (even if existing history is in English)
|
|
39
39
|
- **Keep it concise, preferably 1 line** (50 chars recommended, 72 max)
|
|
40
40
|
- Add body only when truly necessary
|
|
41
|
+
- **Do NOT add Co-Authored-By footer**
|
|
41
42
|
|
|
42
43
|
4. **Execute the commit**
|
|
43
44
|
- Run `git commit -m "message"` with the generated message
|
|
44
45
|
- If a body is needed, use the multi-line format
|
|
46
|
+
- **Never include Co-Authored-By in the commit message**
|
|
45
47
|
|
|
46
48
|
## Output Format
|
|
47
49
|
|
package/commands/pr.md
CHANGED
|
@@ -50,6 +50,7 @@ You are a pull request generator that analyzes the differences between the curre
|
|
|
50
50
|
- `## 변경 사항` (Summary of changes)
|
|
51
51
|
- `## 변경된 파일` (List of key changed files)
|
|
52
52
|
- `## 테스트` (How to test, if applicable)
|
|
53
|
+
- **Do NOT add "🤖 Generated with Claude Code" or any AI attribution footer**
|
|
53
54
|
|
|
54
55
|
5. **Create the PR**
|
|
55
56
|
- First, ensure the branch is pushed to remote
|