/btw - By-The-Way Suggestion Collector
작업 중 "이거 스킬로 만들면 좋겠다", "이 패턴 자동화하면 좋겠다" 등의
개선 제안을 즉시 기록하고 관리하는 도구.
Commands
/btw {suggestion} - Record a suggestion
- Read
.bkit/btw-suggestions.json (create if not exists)
- Generate next ID:
btw-NNN (zero-padded, sequential)
- Create suggestion entry:
{
"id": "btw-001",
"timestamp": "ISO-8601",
"suggestion": "{user input}",
"context": {
"file": "{current working file if identifiable}",
"pdcaPhase": "{current PDCA phase from .bkit-memory.json or null}",
"feature": "{current feature or null}"
},
"category": "auto-detect",
"status": "pending",
"promotedTo": null,
"priority": null,
"teamContext": {
"isTeamSession": false,
"phase": "{PDCA phase or null}",
"role": "{teammate role that discovered this, or 'user'}",
"pattern": "{orchestration pattern or null}"
}
}
- Auto-detect category from suggestion text:
skill-request: mentions "skill", "스킬", "자동화", "automate"
bug-pattern: mentions "bug", "버그", "오류", "error", "fix"
improvement: mentions "개선", "improve", "better", "refactor"
documentation: mentions "문서", "doc", "설명", "explain"
general: default
- Update
stats.total count
- Respond: "Recorded btw-{NNN}: {truncated suggestion}. Use
/btw list to view all."
/btw list - List all suggestions
- Read
.bkit/btw-suggestions.json
- Display table:
ID | Status | Category | Suggestion (truncated)
---------|----------|----------------|----------------------
btw-001 | pending | skill-request | @Flow 모델에서 옵션 목록을 자동...
btw-002 | promoted | improvement | DataProxy 패턴에 검증 로직을...
- Show summary: Total: N | Pending: N | Promoted: N | Dismissed: N
/btw analyze - Analyze suggestions for skill candidates
- Read all pending suggestions from
.bkit/btw-suggestions.json
- Group by category and find patterns:
- Cluster similar suggestions (keyword overlap)
- Count frequency of similar topics
- Identify suggestions that map to existing bkit skills vs. new skill needs
- For each skill candidate:
- Estimate skill classification: workflow vs capability
- Suggest skill name and description
- Reference source suggestion IDs
- Output analysis:
Skill Candidates from /btw Analysis
=====================================
1. [NEW SKILL] hunikflow-validation (capability)
Based on: btw-001, btw-005, btw-008
Frequency: 3 mentions
Description: Validation pattern guide for @Flow entities
2. [EXISTING SKILL ENHANCEMENT] code-review
Based on: btw-003
Suggestion: Add DataProxy-specific review rules
- Save analysis timestamp to
stats.lastAnalyzed
/btw promote {id} - Promote suggestion to skill creation
- Find suggestion by ID in
.bkit/btw-suggestions.json
- Validate status is "pending" (cannot promote already promoted/dismissed)
- Update suggestion:
status: "promoted"
promotedTo: skill name (derived from suggestion)
- Trigger skill-create workflow with context from the suggestion:
- Pass suggestion text as skill description seed
- Pass context (file, feature) as project context
- Respond: "Promoted btw-{id} -> skill-create pipeline. Run
/skill-create to continue."
/btw stats - Show statistics
- Read
.bkit/btw-suggestions.json
- Calculate and display:
/btw Statistics
===============
Total suggestions: 12
By status: pending=8, promoted=3, dismissed=1
By category: skill-request=5, improvement=4, bug-pattern=2, general=1
Promotion rate: 25.0%
Last analyzed: 2026-03-13T10:00:00Z
Top keywords: @Flow(3), DataProxy(2), validation(2)
Data File: .bkit/btw-suggestions.json
Initialize with this structure if file does not exist:
{
"version": "1.0",
"suggestions": [],
"stats": {
"total": 0,
"promoted": 0,
"dismissed": 0,
"lastAnalyzed": null
}
}
Category Auto-Detection Rules
| Pattern |
Category |
| skill, 스킬, automate, 자동화, command, 명령 |
skill-request |
| bug, 버그, error, 오류, fix, 수정 |
bug-pattern |
| improve, 개선, better, refactor, 리팩토링, optimize |
improvement |
| doc, 문서, explain, 설명, readme, guide |
documentation |
| (default) |
general |
Integration Points
- PDCA Context: Reads
.bkit-memory.json for current phase/feature
- skill-create:
/btw promote triggers skill-create workflow
- skill-needs-extractor:
/btw analyze results feed into gap analysis
- CTO Team: Phase transition triggers btw summary (see below)
CTO Team Integration
When /btw is used during a CTO Team session (/pdca team):
Auto-Detection
- Check if team session is active via
.bkit/runtime/agent-state.json
- If active: set
teamContext.isTeamSession = true and populate phase/role/pattern
- If not active: set
teamContext.isTeamSession = false (default behavior)
Phase Transition Hook
CTO Lead automatically reads btw-suggestions.json at every phase transition:
- 0 pending: Silent skip (no output, no turns spent)
- 1+ pending: Brief summary (top 3, category counts) in 1-2 turns
- CTO does NOT auto-promote — user decides via
/btw promote {id}
Session End
cto-stop.js hook outputs btw stats at session end:
- Total suggestions collected during session
- Category breakdown
- Promotion rate
teamContext Field
Added to each suggestion entry when recorded during a team session:
"teamContext": {
"isTeamSession": true,
"phase": "do",
"role": "user",
"pattern": "swarm"
}
This enables /btw analyze to group suggestions by PDCA phase and identify phase-specific patterns.
1---2name: btw3description: By-The-Way: capture improvement ideas the moment they surface, without derailing the task in progress. Triggers: /bkit:btw, /bkit:btw list, /bkit:btw analyze, /bkit:btw promote, /bkit:btw stats, btw, suggestion, improve, idea, feedback4---56# /btw - By-The-Way Suggestion Collector78작업 중 "이거 스킬로 만들면 좋겠다", "이 패턴 자동화하면 좋겠다" 등의9개선 제안을 즉시 기록하고 관리하는 도구.1011## Commands1213### `/btw {suggestion}` - Record a suggestion14151. Read `.bkit/btw-suggestions.json` (create if not exists)162. Generate next ID: `btw-NNN` (zero-padded, sequential)173. Create suggestion entry:18 ```json19 {20 "id": "btw-001",21 "timestamp": "ISO-8601",22 "suggestion": "{user input}",23 "context": {24 "file": "{current working file if identifiable}",25 "pdcaPhase": "{current PDCA phase from .bkit-memory.json or null}",26 "feature": "{current feature or null}"27 },28 "category": "auto-detect",29 "status": "pending",30 "promotedTo": null,31 "priority": null,32 "teamContext": {33 "isTeamSession": false,34 "phase": "{PDCA phase or null}",35 "role": "{teammate role that discovered this, or 'user'}",36 "pattern": "{orchestration pattern or null}"37 }38 }39 ```404. Auto-detect category from suggestion text:41 - `skill-request`: mentions "skill", "스킬", "자동화", "automate"42 - `bug-pattern`: mentions "bug", "버그", "오류", "error", "fix"43 - `improvement`: mentions "개선", "improve", "better", "refactor"44 - `documentation`: mentions "문서", "doc", "설명", "explain"45 - `general`: default465. Update `stats.total` count476. Respond: "Recorded btw-{NNN}: {truncated suggestion}. Use `/btw list` to view all."4849### `/btw list` - List all suggestions50511. Read `.bkit/btw-suggestions.json`522. Display table:53 ```54 ID | Status | Category | Suggestion (truncated)55 ---------|----------|----------------|----------------------56 btw-001 | pending | skill-request | @Flow 모델에서 옵션 목록을 자동...57 btw-002 | promoted | improvement | DataProxy 패턴에 검증 로직을...58 ```593. Show summary: Total: N | Pending: N | Promoted: N | Dismissed: N6061### `/btw analyze` - Analyze suggestions for skill candidates62631. Read all pending suggestions from `.bkit/btw-suggestions.json`642. Group by category and find patterns:65 - Cluster similar suggestions (keyword overlap)66 - Count frequency of similar topics67 - Identify suggestions that map to existing bkit skills vs. new skill needs683. For each skill candidate:69 - Estimate skill classification: workflow vs capability70 - Suggest skill name and description71 - Reference source suggestion IDs724. Output analysis:73 ```74 Skill Candidates from /btw Analysis75 =====================================7677 1. [NEW SKILL] hunikflow-validation (capability)78 Based on: btw-001, btw-005, btw-00879 Frequency: 3 mentions80 Description: Validation pattern guide for @Flow entities8182 2. [EXISTING SKILL ENHANCEMENT] code-review83 Based on: btw-00384 Suggestion: Add DataProxy-specific review rules85 ```865. Save analysis timestamp to `stats.lastAnalyzed`8788### `/btw promote {id}` - Promote suggestion to skill creation89901. Find suggestion by ID in `.bkit/btw-suggestions.json`912. Validate status is "pending" (cannot promote already promoted/dismissed)923. Update suggestion:93 - `status`: "promoted"94 - `promotedTo`: skill name (derived from suggestion)954. Trigger skill-create workflow with context from the suggestion:96 - Pass suggestion text as skill description seed97 - Pass context (file, feature) as project context985. Respond: "Promoted btw-{id} -> skill-create pipeline. Run `/skill-create` to continue."99100### `/btw stats` - Show statistics1011021. Read `.bkit/btw-suggestions.json`1032. Calculate and display:104 ```105 /btw Statistics106 ===============107 Total suggestions: 12108 By status: pending=8, promoted=3, dismissed=1109 By category: skill-request=5, improvement=4, bug-pattern=2, general=1110 Promotion rate: 25.0%111 Last analyzed: 2026-03-13T10:00:00Z112 Top keywords: @Flow(3), DataProxy(2), validation(2)113 ```114115## Data File: `.bkit/btw-suggestions.json`116117Initialize with this structure if file does not exist:118119```json120{121 "version": "1.0",122 "suggestions": [],123 "stats": {124 "total": 0,125 "promoted": 0,126 "dismissed": 0,127 "lastAnalyzed": null128 }129}130```131132## Category Auto-Detection Rules133134| Pattern | Category |135|---------|----------|136| skill, 스킬, automate, 자동화, command, 명령 | skill-request |137| bug, 버그, error, 오류, fix, 수정 | bug-pattern |138| improve, 개선, better, refactor, 리팩토링, optimize | improvement |139| doc, 문서, explain, 설명, readme, guide | documentation |140| (default) | general |141142## Integration Points143144- **PDCA Context**: Reads `.bkit-memory.json` for current phase/feature145- **skill-create**: `/btw promote` triggers skill-create workflow146- **skill-needs-extractor**: `/btw analyze` results feed into gap analysis147- **CTO Team**: Phase transition triggers btw summary (see below)148149## CTO Team Integration150151When `/btw` is used during a CTO Team session (`/pdca team`):152153### Auto-Detection154- Check if team session is active via `.bkit/runtime/agent-state.json`155- If active: set `teamContext.isTeamSession = true` and populate phase/role/pattern156- If not active: set `teamContext.isTeamSession = false` (default behavior)157158### Phase Transition Hook159CTO Lead automatically reads btw-suggestions.json at every phase transition:160- **0 pending**: Silent skip (no output, no turns spent)161- **1+ pending**: Brief summary (top 3, category counts) in 1-2 turns162- CTO does NOT auto-promote — user decides via `/btw promote {id}`163164### Session End165`cto-stop.js` hook outputs btw stats at session end:166- Total suggestions collected during session167- Category breakdown168- Promotion rate169170### teamContext Field171Added to each suggestion entry when recorded during a team session:172```json173"teamContext": {174 "isTeamSession": true,175 "phase": "do",176 "role": "user",177 "pattern": "swarm"178}179```180This enables `/btw analyze` to group suggestions by PDCA phase and identify phase-specific patterns.