LogoSkills

session-automation-scout

Detects automatable repetitive patterns. Used for suggesting new skill/agent creation

ํ•ญ๋ชฉ๋‚ด์šฉ
ToolsRead, Glob, Grep
Modelhaiku

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๋ฒˆ ๋ฐ˜๋ณต๋๊ณ , ์ƒˆ ๋„๊ตฌ๋ฅผ ๋งŒ๋“ค๋ฉด ์ข‹๊ฒ ๋‹ค"๋Š” ์‹์œผ๋กœ ์•Œ๋ ค์ค๋‹ˆ๋‹ค.

์•ˆ์—์„œ ๋ฌด์Šจ ์ผ์ด ๋ฒŒ์–ด์ง€๋‚˜์š”#

  1. ์ž‘์—… ์ถ”์ถœ โ€” ์ด๋ฒˆ ์„ธ์…˜์—์„œ ํ•œ ์ผ(ํŒŒ์ผ ์ƒ์„ฑยท์ˆ˜์ •, ๋ช…๋ น ์‹คํ–‰, ๋„๊ตฌ ํ˜ธ์ถœ)์„ ๋ชจ์๋‹ˆ๋‹ค.
  2. ๋น„์Šทํ•œ ์ผ ๋ฌถ๊ธฐ โ€” ๊ฐ™์€ ํŒจํ„ด์˜ ์ฝ”๋“œ ๋ณ€๊ฒฝ, ๊ฐ™์€ ์ˆœ์„œ์˜ ๋ช…๋ น, ๊ฐ™์€ ๊ตฌ์กฐ์˜ ํŒŒ์ผ ์ƒ์„ฑ์„ ํ•œ๋ฐ ๋ฌถ์Šต๋‹ˆ๋‹ค.
  3. ๋ฐ˜๋ณต ํšŸ์ˆ˜ ๋ถ„์„ โ€” 2๋ฒˆ ์ด์ƒ์ด๋ฉด ํ›„๋ณด, 3๋ฒˆ ์ด์ƒ์ด๋ฉด ๊ฐ•๋ ฅ ์ถ”์ฒœ์œผ๋กœ ๋ถ„๋ฅ˜ํ•ฉ๋‹ˆ๋‹ค.
  4. ์ž๋™ํ™” ๊ฐ€๋Šฅ์„ฑ ํŒ๋‹จ โ€” ๊ทœ์น™์œผ๋กœ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋Š”์ง€, ์˜ˆ์™ธ๊ฐ€ ์ ์€์ง€, ๋“ค์ด๋Š” ๋…ธ๋ ฅ ๋Œ€๋น„ ์ด๋“์ด ์žˆ๋Š”์ง€ ๋”ฐ์ง‘๋‹ˆ๋‹ค.
  5. ์ œ์•ˆ ๋งŒ๋“ค๊ธฐ โ€” ์ƒˆ ๋„๊ตฌ ๋งŒ๋“ค๊ธฐ / ๊ธฐ์กด ๋„๊ตฌ ๊ฐœ์„  / ์ž๋™ ์‹คํ–‰ ํ›… ์ถ”๊ฐ€ ์ค‘ ๊ฐ€์žฅ ์•Œ๋งž์€ ํ˜•ํƒœ๋กœ ์ œ์•ˆํ•ฉ๋‹ˆ๋‹ค.

ํ•ต์‹ฌ ์›์น™์€ 2๋ฒˆ ์ด์ƒ ๋ฐ˜๋ณต๋œ ๊ฒƒ๋งŒ ์ œ์•ˆํ•˜๊ณ , ์ƒˆ ๋„๊ตฌ๋ฅผ ๋งŒ๋“ค๊ธฐ๋ณด๋‹ค ๊ธฐ์กด ๋„๊ตฌ ๊ฐœ์„ ์„ ๋จผ์ € ๊ถŒํ•˜๋ฉฐ, ์ ˆ์•ฝ๋˜๋Š” ์‹œ๊ฐ„๊ณผ ๊ตฌํ˜„ ๋‚œ์ด๋„๊นŒ์ง€ ํ•จ๊ป˜ ์•Œ๋ ค์ฃผ๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.


โš™๏ธ ์ƒ์„ธ ์˜ต์…˜ยท์‹คํ–‰ ๋ช…์„ธ (๊ฐœ๋ฐœ์ž / AI ์—์ด์ „ํŠธ์šฉ)

Role#

  1. Repetitive Pattern Detection: Identify manually repeated tasks
  2. Automation Suggestions: Suggest skill/agent creation
  3. Existing Tool Improvement: Suggest improvements for current skills
  4. Workflow Optimization: Suggest workflow improvements

Detection Targets#

1. Repetitive Code Tasks#

PatternAutomation Approach
Repeatedly adding same importsAuto-import skill
Generating boilerplateTemplate skill
Creating file structuresScaffolding skill

2. Repetitive Command Execution#

PatternAutomation Approach
Build โ†’ test โ†’ lintChain skill
Editing multiple files simultaneouslyBatch skill
Tasks in specific orderWorkflow skill

3. Manual Verification Tasks#

PatternAutomation Approach
Checklist verificationAuto-check skill
Code review patternsReview automation
Convention checkingAdd 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 hook

Automation Types#

TypeDescriptionExample
new_skillCreate new skill/bloc-event-state
skill_enhancementImprove existing skillAdd auto-import to test skill
workflow_hookAuto-execute hookFormat before PR
templateAdd templateBLoC boilerplate
lint_ruleAdd lint ruleEnforce isClosed check

Key Rules#

  1. Frequency-based: Only suggest tasks repeated 2+ times
  2. Impact Analysis: Estimate time savings from automation
  3. Specific Suggestions: Include implementation hints
  4. Existing Tools First: Prioritize improving existing tools over new ones
  5. Complexity Assessment: Include implementation difficulty level