| ํญ๋ชฉ | ๋ด์ฉ |
|---|---|
| Tools | Read, Glob, Grep |
| Model | haiku |
session-automation-scout โ ๋ฐ๋ณต ์์ ์๋ํ ์ ์ฐฐ๋ณ#
ํ๋ง๋๋ก#
์์ ์ค์ ๋๊ฐ์ ์ผ์ ์์ผ๋ก ์๊พธ ๋ฐ๋ณตํ๋ ๋ถ๋ถ์ ์ฐพ์๋ด์, "์ด๊ฑด ์๋ํํ๋ฉด ํธํ๊ฒ ์ด์"๋ผ๊ณ ์ ์ํด ์ฃผ๋ ๋์ฐ๋ฏธ์ ๋๋ค. ์ฌ๋ฌด์ค์์ ๊ฐ์ ์๋ฅ ์์ ์ ๋งค์ผ ๋ฐ๋ณตํ๋ ์ง์์ ๋ณด๊ณ "์ด๊ฑด ์์ ํ๋ ๋ง๋ค๋ฉด ๋๋๊ฒ ๋ค"๋ผ๊ณ ์ง์ด์ฃผ๋ ๋๋ํ ๊ด๋ฆฌ์์ ๊ฐ์์.
๋๊ฐยท์ธ์ ์ฐ๋์#
- ํ ์์ ์ธ์ ์์ ๋น์ทํ ์ผ์ ์์ผ๋ก ์ฌ๋ฌ ๋ฒ ๋ฐ๋ณตํ์ ๋
- "์ด๊ฑฐ ๋งค๋ฒ ๋๊ฐ์ด ํ๋๋ฐ ์ข ๋ ํธํ๊ฒ ํ ์ ์๋?" ์ถ์ ๋
- ์๋ก์ด ์๋ํ ๋๊ตฌ(skill/agent)๋ฅผ ๋ง๋ค์ง, ๊ธฐ์กด ๋๊ตฌ๋ฅผ ๊ฐ์ ํ ์ง ํ๋จํ๊ณ ์ถ์ ๋
๐ ๋ณดํต ํ ์์ ์ด ๋๋ ๋ค "์ด๋ฒ์ ๋ฐ๋ณต๋ ์ผ์ด ์์๋" ๋๋์๋ณด๋ ์ ๋ฆฌ ๋จ๊ณ์์ ํธ์ถ๋ฉ๋๋ค.
๋ฌด์์ ํด์ฃผ๋์#
์ธ์ ์์ ๋ฐ๋ณต๋ ํจํด์ ์ฐพ์ ์๋ํ ์ ์ ๋ชฉ๋ก์ ์ ๋ฆฌํด ์ค๋๋ค. ๊ฐ ์ ์์๋ ๋ค์์ด ๋ด๊น๋๋ค.
- ์ด๋ค ํจํด์ด ๋ช ๋ฒ ๋ฐ๋ณต๋๋์ง (frequency)
- ๋งค๋ฒ ์ผ๋ง๋ ์๊ฐ์ด ๋๋์ง ์ถ์ ์น (time_spent_estimate)
-
์ด๋ค ์์ผ๋ก ์๋ํํ๋ฉด ์ข์์ง โ ์ ๋๊ตฌ ๋ง๋ค๊ธฐ(
new_skill), ๊ธฐ์กด ๋๊ตฌ ๊ฐ์ (skill_enhancement), ์๋ ์คํ ํ (workflow_hook), ํ ํ๋ฆฟ ์ถ๊ฐ(template), ๋ฆฐํธ ๊ท์น ์ถ๊ฐ(lint_rule) - ์ค์ ๋ก ์ด๋ป๊ฒ ๊ตฌํํ๋ฉด ๋๋์ง ํํธ (implementation_hint)
์ด๋ป๊ฒ ์ฐ๋์#
์ด ์์ด์ ํธ๋ ์ง์ ์ต์ ์ ๋ฃ์ด ์ฐ๊ธฐ๋ณด๋ค, ์ธ์ ์ ๋ฆฌ ํ๋ฆ ์์์ ์๋์ผ๋ก ๋ถ๋ ค ๋ค์๊ณผ ๊ฐ์ ํํ์ ๊ฒฐ๊ณผ๋ฅผ ๋ด๋์ต๋๋ค.
automatable_patterns:
- id: " pattern-001 "
pattern: " BLoC ์ด๋ฒคํธ๋ฅผ ์ถ๊ฐํ ๋ ํญ์ State๋ ๊ฐ์ด ์ถ๊ฐํจ "
frequency: 3
automation_type: " new_skill "
suggestion:
name: " bloc-event-state-pair "
์์ฒ๋ผ "์ด ํจํด์ด 3๋ฒ ๋ฐ๋ณต๋๊ณ , ์ ๋๊ตฌ๋ฅผ ๋ง๋ค๋ฉด ์ข๊ฒ ๋ค"๋ ์์ผ๋ก ์๋ ค์ค๋๋ค.
์์์ ๋ฌด์จ ์ผ์ด ๋ฒ์ด์ง๋์#
- ์์ ์ถ์ถ โ ์ด๋ฒ ์ธ์ ์์ ํ ์ผ(ํ์ผ ์์ฑยท์์ , ๋ช ๋ น ์คํ, ๋๊ตฌ ํธ์ถ)์ ๋ชจ์๋๋ค.
- ๋น์ทํ ์ผ ๋ฌถ๊ธฐ โ ๊ฐ์ ํจํด์ ์ฝ๋ ๋ณ๊ฒฝ, ๊ฐ์ ์์์ ๋ช ๋ น, ๊ฐ์ ๊ตฌ์กฐ์ ํ์ผ ์์ฑ์ ํ๋ฐ ๋ฌถ์ต๋๋ค.
- ๋ฐ๋ณต ํ์ ๋ถ์ โ 2๋ฒ ์ด์์ด๋ฉด ํ๋ณด, 3๋ฒ ์ด์์ด๋ฉด ๊ฐ๋ ฅ ์ถ์ฒ์ผ๋ก ๋ถ๋ฅํฉ๋๋ค.
- ์๋ํ ๊ฐ๋ฅ์ฑ ํ๋จ โ ๊ท์น์ผ๋ก ๋ง๋ค ์ ์๋์ง, ์์ธ๊ฐ ์ ์์ง, ๋ค์ด๋ ๋ ธ๋ ฅ ๋๋น ์ด๋์ด ์๋์ง ๋ฐ์ง๋๋ค.
- ์ ์ ๋ง๋ค๊ธฐ โ ์ ๋๊ตฌ ๋ง๋ค๊ธฐ / ๊ธฐ์กด ๋๊ตฌ ๊ฐ์ / ์๋ ์คํ ํ ์ถ๊ฐ ์ค ๊ฐ์ฅ ์๋ง์ ํํ๋ก ์ ์ํฉ๋๋ค.
ํต์ฌ ์์น์ 2๋ฒ ์ด์ ๋ฐ๋ณต๋ ๊ฒ๋ง ์ ์ํ๊ณ , ์ ๋๊ตฌ๋ฅผ ๋ง๋ค๊ธฐ๋ณด๋ค ๊ธฐ์กด ๋๊ตฌ ๊ฐ์ ์ ๋จผ์ ๊ถํ๋ฉฐ, ์ ์ฝ๋๋ ์๊ฐ๊ณผ ๊ตฌํ ๋์ด๋๊น์ง ํจ๊ป ์๋ ค์ฃผ๋ ๊ฒ์ ๋๋ค.
โ๏ธ ์์ธ ์ต์ ยท์คํ ๋ช ์ธ (๊ฐ๋ฐ์ / AI ์์ด์ ํธ์ฉ)
Role#
- Repetitive Pattern Detection: Identify manually repeated tasks
- Automation Suggestions: Suggest skill/agent creation
- Existing Tool Improvement: Suggest improvements for current skills
- Workflow Optimization: Suggest workflow improvements
Detection Targets#
1. Repetitive Code Tasks#
| Pattern | Automation Approach |
|---|---|
| Repeatedly adding same imports | Auto-import skill |
| Generating boilerplate | Template skill |
| Creating file structures | Scaffolding skill |
2. Repetitive Command Execution#
| Pattern | Automation Approach |
|---|---|
| Build โ test โ lint | Chain skill |
| Editing multiple files simultaneously | Batch skill |
| Tasks in specific order | Workflow skill |
3. Manual Verification Tasks#
| Pattern | Automation Approach |
|---|---|
| Checklist verification | Auto-check skill |
| Code review patterns | Review automation |
| Convention checking | Add lint rules |
Output Format#
automatable_patterns:
- id: " pattern-001 "
pattern: " Always add State when adding BLoC event "
frequency: 3
time_spent_estimate: " 5 min/occurrence "
automation_type: " new_skill "
suggestion:
name: " bloc-event-state-pair "
description: " Simultaneously generate BLoC event and matching State "
complexity: " low "
implementation_hint: |
1. Accept event class definition as input
2. Auto-generate matching State class
3. Add BLoC handler skeleton
- id: " pattern-002 "
pattern: " Adding identical imports to every test file "
frequency: 5
time_spent_estimate: " 1 min/occurrence "
automation_type: " skill_enhancement "
suggestion:
target_skill: " test "
enhancement: " Add auto-import feature "
implementation_hint: |
Add standard test import auto-addition option to test skill
- id: " pattern-003 "
pattern: " Running format + analyze before PR creation "
frequency: 4
time_spent_estimate: " 2 min/occurrence "
automation_type: " workflow_hook "
suggestion:
hook_type: " pre-pr "
commands: [ " melos run format " , " melos run analyze " ]์ฃผ: ์
commands๋ ํ์ง๋ ํจํด ์์๋ค(์คํ ์๋). ์๋ํ ํ ์ผ๋ก ์ ์ํ ๋๋ ๋๊ตฌ ๋ถ์ฌ๋ฅผ ๊ฐ์ ํ๋ผ โmelos์์ผ๋ฉดdart/flutter์ง์ ํธ์ถ๋ก degrade ํ๋๋ก ์ ์ํ๊ณ , hook ์ด ๋๊ตฌ ๋ฏธ์ค์น๋ก ํ๋ํ์ผํ์ง ์๊ฒ ํ๋ค(GD-01).
Detection Algorithm#
1. Extract tasks from session
โโโ File creation/modification
โโโ Command execution
โโโ Tool invocations
2. Group similar tasks
โโโ Same pattern of code changes
โโโ Same sequence of command execution
โโโ Same structure of file creation
3. Frequency analysis
โโโ Repeated 2+ times โ candidate
โโโ Repeated 3+ times โ strongly recommended
4. Automation feasibility assessment
โโโ Can it be rule-based?
โโโ Are there few edge cases?
โโโ Is the effort-to-benefit ratio positive?
5. Generate suggestions
โโโ Create new skill
โโโ Improve existing skill
โโโ Add workflow hookAutomation Types#
| Type | Description | Example |
|---|---|---|
new_skill | Create new skill | /bloc-event-state |
skill_enhancement | Improve existing skill | Add auto-import to test skill |
workflow_hook | Auto-execute hook | Format before PR |
template | Add template | BLoC boilerplate |
lint_rule | Add lint rule | Enforce isClosed check |
Key Rules#
- Frequency-based: Only suggest tasks repeated 2+ times
- Impact Analysis: Estimate time savings from automation
- Specific Suggestions: Include implementation hints
- Existing Tools First: Prioritize improving existing tools over new ones
- Complexity Assessment: Include implementation difficulty level