@leejungkiin/awkit 1.0.0

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.
Files changed (139) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +146 -0
  3. package/VERSION +1 -0
  4. package/bin/awf.js +549 -0
  5. package/bin/awk.js +1759 -0
  6. package/core/AGENTS.md +39 -0
  7. package/core/GEMINI.md +202 -0
  8. package/core/GEMINI.md.bak +244 -0
  9. package/core/orchestrator.md +58 -0
  10. package/package.json +46 -0
  11. package/schemas/brain.schema.json +342 -0
  12. package/schemas/preferences.schema.json +95 -0
  13. package/schemas/session.schema.json +112 -0
  14. package/skill-packs/neural-memory/README.md +111 -0
  15. package/skill-packs/neural-memory/pack.json +35 -0
  16. package/skill-packs/neural-memory/schemas/brain-snapshot.json +167 -0
  17. package/skill-packs/neural-memory/skills/nm-memory-audit/SKILL.md +157 -0
  18. package/skill-packs/neural-memory/skills/nm-memory-evolution/SKILL.md +202 -0
  19. package/skill-packs/neural-memory/skills/nm-memory-intake/SKILL.md +135 -0
  20. package/skill-packs/neural-memory/skills/nm-memory-sync/SKILL.md +184 -0
  21. package/skill-packs/neural-memory/workflows/nm-import.md +73 -0
  22. package/skill-packs/neural-memory/workflows/nm-recall.md +67 -0
  23. package/skill-packs/neural-memory/workflows/nm-snapshot.md +69 -0
  24. package/skills/adaptive-language/SKILL.md +189 -0
  25. package/skills/ambient-brain/SKILL.md +314 -0
  26. package/skills/ambient-brain/brain-router.md +185 -0
  27. package/skills/ambient-brain/brain-templates.md +201 -0
  28. package/skills/auto-save/SKILL.md +223 -0
  29. package/skills/awf-adaptive-language/SKILL.md +189 -0
  30. package/skills/awf-context-help/SKILL.md +180 -0
  31. package/skills/awf-error-translator/SKILL.md +153 -0
  32. package/skills/awf-session-restore/SKILL.md +270 -0
  33. package/skills/awf-version-tracker/SKILL.md +32 -0
  34. package/skills/awf-version-tracker/scripts/snapshot.sh +22 -0
  35. package/skills/beads-manager/SKILL.md +323 -0
  36. package/skills/brainstorm-agent/SKILL.md +295 -0
  37. package/skills/context-help/SKILL.md +180 -0
  38. package/skills/error-translator/SKILL.md +153 -0
  39. package/skills/ios-engineer/SKILL.md +101 -0
  40. package/skills/memory-sync/SKILL.md +378 -0
  41. package/skills/memory-sync/memory-router.md +185 -0
  42. package/skills/memory-sync/memory-templates.md +201 -0
  43. package/skills/orchestrator/SKILL.md +193 -0
  44. package/skills/session-restore/SKILL.md +240 -0
  45. package/templates/CODEBASE.md +80 -0
  46. package/templates/brain.example.json +321 -0
  47. package/templates/preferences.example.json +21 -0
  48. package/templates/project-identity/android.json +28 -0
  49. package/templates/project-identity/backend-nestjs.json +24 -0
  50. package/templates/project-identity/expo.json +27 -0
  51. package/templates/project-identity/ios.json +27 -0
  52. package/templates/project-identity/web-nextjs.json +24 -0
  53. package/templates/session.example.json +53 -0
  54. package/templates/specs/design-template.md +166 -0
  55. package/templates/specs/requirements-template.md +65 -0
  56. package/templates/specs/tasks-template.md +132 -0
  57. package/templates/structures/android.txt +10 -0
  58. package/templates/structures/backend-nestjs.txt +6 -0
  59. package/templates/structures/expo.txt +9 -0
  60. package/templates/structures/ios.txt +9 -0
  61. package/templates/structures/web-nextjs.txt +6 -0
  62. package/templates/workflow_dual_mode_template.md +87 -0
  63. package/workflows/_uncategorized/README.md +339 -0
  64. package/workflows/_uncategorized/ads-creative.md +357 -0
  65. package/workflows/_uncategorized/ads-full-optimization.md +308 -0
  66. package/workflows/_uncategorized/ads-plan.md +247 -0
  67. package/workflows/_uncategorized/ads-user-analysis.md +337 -0
  68. package/workflows/_uncategorized/skill-health.md +35 -0
  69. package/workflows/_uncategorized/skill-rollback.md +35 -0
  70. package/workflows/ads/admob.md +62 -0
  71. package/workflows/ads/ads-analyst.md +201 -0
  72. package/workflows/ads/ads-audit.md +106 -0
  73. package/workflows/ads/ads-optimize.md +97 -0
  74. package/workflows/ads/ads-targeting.md +241 -0
  75. package/workflows/ads/adsExpert.md +160 -0
  76. package/workflows/ads/smali-ads-config.md +400 -0
  77. package/workflows/ads/smali-ads-flow.md +331 -0
  78. package/workflows/ads/smali-ads-interstitial.md +377 -0
  79. package/workflows/ads/smali-ads-native.md +382 -0
  80. package/workflows/context/auto-execution-workflow.md +291 -0
  81. package/workflows/context/auto-implement.md +211 -0
  82. package/workflows/context/codebase-sync.md +163 -0
  83. package/workflows/context/logic-reasoning-workflow.md +260 -0
  84. package/workflows/context/next.md +195 -0
  85. package/workflows/context/recap.md +212 -0
  86. package/workflows/context/save-brain.md +285 -0
  87. package/workflows/context/user-intent-analysis-workflow.md +206 -0
  88. package/workflows/expert/codeExpert.md +126 -0
  89. package/workflows/expert/debugExpert.md +136 -0
  90. package/workflows/expert/planExpert.md +112 -0
  91. package/workflows/git/cloudflare-tunnel.md +135 -0
  92. package/workflows/git/git-commit-workflow.md +75 -0
  93. package/workflows/git/hotfix.md +357 -0
  94. package/workflows/git/release-notes.md +160 -0
  95. package/workflows/git/rollback.md +52 -0
  96. package/workflows/git/smart-git-ops.md +103 -0
  97. package/workflows/lifecycle/brainstorm.md +377 -0
  98. package/workflows/lifecycle/code.md +663 -0
  99. package/workflows/lifecycle/debug.md +116 -0
  100. package/workflows/lifecycle/deploy.md +95 -0
  101. package/workflows/lifecycle/init.md +152 -0
  102. package/workflows/lifecycle/master-code-workflow.md +300 -0
  103. package/workflows/lifecycle/migration.md +196 -0
  104. package/workflows/lifecycle/plan.md +91 -0
  105. package/workflows/lifecycle/refactor.md +165 -0
  106. package/workflows/lifecycle/run.md +52 -0
  107. package/workflows/lifecycle/test.md +91 -0
  108. package/workflows/meta/customize.md +346 -0
  109. package/workflows/meta/file-protection-rules.md +129 -0
  110. package/workflows/meta/help.html +350 -0
  111. package/workflows/meta/project-identity-enforcement.md +180 -0
  112. package/workflows/mobile/app-analysis.md +64 -0
  113. package/workflows/mobile/maestro-qa-workflow.md +470 -0
  114. package/workflows/mobile/maestro-test-workflow.md +84 -0
  115. package/workflows/mobile/structure-clean-architect.md +271 -0
  116. package/workflows/mobile/turbo-mobile-build.md +190 -0
  117. package/workflows/quality/accessibility-audit.md +311 -0
  118. package/workflows/quality/audit.md +217 -0
  119. package/workflows/quality/bug-hunter.md +243 -0
  120. package/workflows/quality/code-janitor.md +209 -0
  121. package/workflows/quality/code-quality-rules.md +132 -0
  122. package/workflows/quality/performance-audit.md +343 -0
  123. package/workflows/quality/project-audit.md +61 -0
  124. package/workflows/quality/self-healing-test.md +192 -0
  125. package/workflows/quality/ui-review.md +130 -0
  126. package/workflows/quality/ux-audit.md +213 -0
  127. package/workflows/quality/visual-debug.md +34 -0
  128. package/workflows/roles/oracle.md +267 -0
  129. package/workflows/roles/product-manager-workflow.md +52 -0
  130. package/workflows/roles/qa-engineer-workflow.md +41 -0
  131. package/workflows/roles/tech-lead-workflow.md +45 -0
  132. package/workflows/roles/ui-ux-designer-workflow.md +42 -0
  133. package/workflows/roles/vibe-coding-master-workflow.md +52 -0
  134. package/workflows/ui/app-screen-analyzer.md +152 -0
  135. package/workflows/ui/create-feature.md +332 -0
  136. package/workflows/ui/create-spec-architect.md +184 -0
  137. package/workflows/ui/design-to-ui.md +308 -0
  138. package/workflows/ui/ui-first-methodology.md +279 -0
  139. package/workflows/ui/visualize.md +298 -0
@@ -0,0 +1,166 @@
1
+ # [Feature Name] Design Document
2
+
3
+ ## Overview
4
+
5
+ [High-level description of the feature architecture - describe the overall approach, key design decisions, and how it fits into the larger system]
6
+
7
+ ## Architecture
8
+
9
+ [Description of architectural approach and patterns used]
10
+
11
+ ### Component Hierarchy
12
+
13
+ ```
14
+ [FeatureName]View (Root)
15
+ ├── [HeaderComponent] (Navigation and context)
16
+ ├── [MainContainer] (Primary content)
17
+ │ ├── [ContentSection1]
18
+ │ │ ├── [SubComponent1]
19
+ │ │ └── [SubComponent2]
20
+ │ ├── [ContentSection2]
21
+ │ │ └── [SubComponent3]
22
+ │ └── [ActionSection]
23
+ │ └── [ActionButtons]
24
+ ├── [FloatingElements] (Overlays, FABs)
25
+ └── [ModalComponents] (Sheets, Dialogs)
26
+ ```
27
+
28
+ ## Components and Interfaces
29
+
30
+ ### [MainComponent]
31
+ - **Purpose**: [What this component does and why]
32
+ - **Platform-Specific Design**:
33
+ - iOS: [Apple HIG considerations, SF Symbols, native patterns]
34
+ - Android: [Material Design 3 components, patterns]
35
+ - **Key Features**:
36
+ - [Feature 1 with implementation detail]
37
+ - [Feature 2 with implementation detail]
38
+ - [Animations and transitions]
39
+
40
+ ### [SubComponent1]
41
+ - **Purpose**: [Component purpose]
42
+ - **Visual Design**:
43
+ - [Layout specifications]
44
+ - [Color and typography]
45
+ - [Spacing and sizing]
46
+ - **Interaction Design**:
47
+ - [Touch/click behavior]
48
+ - [Hover states (if applicable)]
49
+ - [Animation specs]
50
+
51
+ ## Data Models
52
+
53
+ ### [PrimaryModel]
54
+ ```swift
55
+ // iOS
56
+ struct [ModelName]: Codable, Identifiable {
57
+ let id: UUID
58
+ let property1: String
59
+ let property2: Int
60
+ let optionalProperty: String?
61
+ let nestedObject: [NestedType]
62
+ let createdAt: Date
63
+ let updatedAt: Date
64
+
65
+ enum CodingKeys: String, CodingKey {
66
+ case id
67
+ case property1 = "property_1"
68
+ // ... mapping for API compatibility
69
+ }
70
+ }
71
+ ```
72
+
73
+ ```kotlin
74
+ // Android
75
+ data class [ModelName](
76
+ val id: String,
77
+ val property1: String,
78
+ val property2: Int,
79
+ val optionalProperty: String?,
80
+ val nestedObject: List<NestedType>,
81
+ val createdAt: Instant,
82
+ val updatedAt: Instant
83
+ )
84
+ ```
85
+
86
+ ### [StateModel]
87
+ ```swift
88
+ // iOS - ViewModel State
89
+ enum [Feature]ViewState {
90
+ case idle
91
+ case loading
92
+ case loaded([DataModel])
93
+ case error(Error)
94
+ case empty
95
+ }
96
+ ```
97
+
98
+ ```kotlin
99
+ // Android - UI State
100
+ sealed interface [Feature]UiState {
101
+ data object Loading : [Feature]UiState
102
+ data class Success(val data: List<DataModel>) : [Feature]UiState
103
+ data class Error(val message: String) : [Feature]UiState
104
+ data object Empty : [Feature]UiState
105
+ }
106
+ ```
107
+
108
+ ## Correctness Properties
109
+
110
+ *Properties serve as the bridge between requirements and verifiable correctness guarantees.*
111
+
112
+ **Property 1: [Property Name]**
113
+ *For any* [scenario/input], the system should [expected behavior across all conditions]
114
+ **Validates: Requirements 1.1, 1.2, 1.3**
115
+
116
+ **Property 2: [Property Name]**
117
+ *For any* [scenario/input], the system should [expected behavior]
118
+ **Validates: Requirements 2.1, 2.2**
119
+
120
+ **Property 3: Error Handling Correctness**
121
+ *For any* error condition, the system should [graceful handling, user feedback, recovery options]
122
+ **Validates: Requirements 3.1, 3.2, 3.3**
123
+
124
+ ## UI/UX Design Specifications
125
+
126
+ ### Visual Design System
127
+
128
+ **Colors:**
129
+ | Token | Light Mode | Dark Mode | Usage |
130
+ |-------|------------|-----------|-------|
131
+ | Primary | #[hex] | #[hex] | [usage] |
132
+ | Secondary | #[hex] | #[hex] | [usage] |
133
+ | Background | #[hex] | #[hex] | [usage] |
134
+
135
+ **Typography:**
136
+ | Style | Font | Size | Weight | Usage |
137
+ |-------|------|------|--------|-------|
138
+ | Title | [font] | 24pt | Bold | [usage] |
139
+ | Body | [font] | 16pt | Regular | [usage] |
140
+
141
+ **Spacing:**
142
+ | Token | Value | Usage |
143
+ |-------|-------|-------|
144
+ | xs | 4pt | [usage] |
145
+ | sm | 8pt | [usage] |
146
+ | md | 16pt | [usage] |
147
+
148
+ ### Animation Specifications
149
+
150
+ | Animation | Duration | Easing | Description |
151
+ |-----------|----------|--------|-------------|
152
+ | Appear | 300ms | easeOut | [description] |
153
+ | Disappear | 200ms | easeIn | [description] |
154
+ | Spring | 0.5s/0.7 | spring | [response/damping] |
155
+
156
+ ## Performance Considerations
157
+
158
+ - **Lazy Loading**: [What should be lazy loaded]
159
+ - **Caching Strategy**: [How data should be cached]
160
+ - **Memory Management**: [Memory considerations]
161
+
162
+ ## Security Considerations
163
+
164
+ - **Data Encryption**: [What needs encryption]
165
+ - **Input Validation**: [Validation requirements]
166
+ - **Authentication**: [Auth requirements]
@@ -0,0 +1,65 @@
1
+ # [Feature Name] Requirements Document
2
+
3
+ ## Introduction
4
+
5
+ [Brief description of the feature and its purpose - 2-3 sentences explaining what problem it solves and why it's important to users]
6
+
7
+ ## Glossary
8
+
9
+ - **[Term_1]**: [Clear definition of domain-specific term]
10
+ - **[Term_2]**: [Clear definition of domain-specific term]
11
+ - **[System_Component]**: [Description of system component mentioned in requirements]
12
+
13
+ ## Requirements
14
+
15
+ ### Requirement 1
16
+
17
+ **User Story:** As a [user type], I want to [action/capability], so that [benefit/value].
18
+
19
+ #### Acceptance Criteria
20
+
21
+ 1. WHEN [triggering condition], THE [System_Component] SHALL [expected behavior]
22
+ 2. WHEN [triggering condition], THE [System_Component] SHALL [expected behavior]
23
+ 3. WHILE [ongoing context], THE [System_Component] SHALL [maintained behavior]
24
+ 4. IF [condition], THE [System_Component] SHALL [conditional behavior]
25
+ 5. WHEN [edge case], THE [System_Component] SHALL [edge case handling]
26
+
27
+ ### Requirement 2
28
+
29
+ **User Story:** As a [user type], I want to [action/capability], so that [benefit/value].
30
+
31
+ #### Acceptance Criteria
32
+
33
+ 1. WHEN [condition], THE [System_Component] SHALL [behavior]
34
+ 2. WHEN [condition], THE [System_Component] SHALL [behavior]
35
+ 3. WHILE [context], THE [System_Component] SHALL [behavior]
36
+
37
+ ### Requirement 3 (Error Handling)
38
+
39
+ **User Story:** As a [user type], I want [error recovery capability], so that [resilience benefit].
40
+
41
+ #### Acceptance Criteria
42
+
43
+ 1. WHEN [error condition], THE [System_Component] SHALL [error handling]
44
+ 2. WHEN [network failure], THE [System_Component] SHALL [offline handling]
45
+ 3. WHEN [invalid input], THE [System_Component] SHALL [validation feedback]
46
+
47
+ ### Requirement 4 (Security)
48
+
49
+ **User Story:** As a [user type], I want [security feature], so that [security benefit].
50
+
51
+ #### Acceptance Criteria
52
+
53
+ 1. WHEN [sensitive data access], THE [System_Component] SHALL [security measure]
54
+ 2. WHEN [authentication required], THE [System_Component] SHALL [auth flow]
55
+ 3. WHILE [session active], THE [System_Component] SHALL [session management]
56
+
57
+ ### Requirement 5 (Accessibility)
58
+
59
+ **User Story:** As a [user with accessibility needs], I want [accessibility feature], so that [inclusive benefit].
60
+
61
+ #### Acceptance Criteria
62
+
63
+ 1. WHEN [using screen reader], THE [System_Component] SHALL [accessibility support]
64
+ 2. WHEN [using keyboard only], THE [System_Component] SHALL [keyboard navigation]
65
+ 3. WHILE [displaying content], THE [System_Component] SHALL [contrast/sizing support]
@@ -0,0 +1,132 @@
1
+ # [Feature Name] Implementation Plan
2
+
3
+ ## Overview
4
+ This implementation plan converts the [Feature Name] design into incremental coding tasks. Each task builds upon previous work and focuses on delivering functional code that meets all requirements.
5
+
6
+ ## Meta
7
+ - **Design:** ./design.md
8
+ - **Requirements:** ./requirements.md
9
+ - **Platform:** [iOS/Android/Expo/Web]
10
+
11
+ ## Implementation Tasks
12
+
13
+ ### Phase A: Foundation
14
+
15
+ - [ ] **A1: Set up core data models**
16
+ - Create [Model1], [Model2] data models
17
+ - Implement repository interfaces in Domain layer
18
+ - Set up dependency injection for feature
19
+ - _Requirements: 1.1, 1.2_
20
+
21
+ - [ ] **A1.1: Write property test for [Property 1]**
22
+ - **Property 1: [Property Name]**
23
+ - **Validates: Requirements 1.1, 1.2, 1.3**
24
+
25
+ - [ ] **A2: Implement data layer**
26
+ - Create local data source
27
+ - Create remote data source with API integration
28
+ - Implement repository with proper caching
29
+ - Add error handling and offline support
30
+ - _Requirements: 3.1, 3.2_
31
+
32
+ ### Phase B: Core UI
33
+
34
+ - [ ] **B1: Create main feature view**
35
+ - Build [FeatureName]View with component hierarchy
36
+ - Implement [HeaderComponent] with navigation
37
+ - Apply design system tokens (colors, typography, spacing)
38
+ - Ensure responsive layout for all screen sizes
39
+ - _Requirements: 1.1, 5.3_
40
+
41
+ - [ ] **B2: Implement primary content section**
42
+ - Build [ContentSection1] with sub-components
43
+ - Add loading states with skeleton views
44
+ - Implement empty states with helpful messaging
45
+ - Add pull-to-refresh functionality
46
+ - _Requirements: 1.3, 1.4_
47
+
48
+ ### Phase C: Interactions & Logic
49
+
50
+ - [ ] **C1: Implement ViewModel/State management**
51
+ - Create [Feature]ViewModel with state handling
52
+ - Connect to repository layer
53
+ - Implement data loading and error states
54
+ - Add business logic validation
55
+ - _Requirements: 1.2, 2.1_
56
+
57
+ - [ ] **C2: Build action components**
58
+ - Create [ActionButtons] with proper styling
59
+ - Implement touch feedback and animations
60
+ - Add haptic feedback for key actions
61
+ - Handle navigation flows
62
+ - _Requirements: 2.2, 2.3_
63
+
64
+ ### Phase D: Advanced Features
65
+
66
+ - [ ] **D1: Implement security measures**
67
+ - Add input validation for all user inputs
68
+ - Implement secure data handling
69
+ - Add authentication checks where required
70
+ - Apply proper access control
71
+ - _Requirements: 4.1, 4.2, 4.3_
72
+
73
+ - [ ] **D2: Add accessibility features**
74
+ - Implement VoiceOver/TalkBack labels
75
+ - Add keyboard navigation support
76
+ - Ensure proper color contrast
77
+ - Add Dynamic Type/Font scaling support
78
+ - _Requirements: 5.1, 5.2, 5.3_
79
+
80
+ ### Phase E: Polish & Optimization
81
+
82
+ - [ ] **E1: Add animations and micro-interactions**
83
+ - Implement appear/disappear animations
84
+ - Add spring effects for interactive elements
85
+ - Create smooth transitions between states
86
+ - Ensure 60fps performance
87
+
88
+ - [ ] **E2: Implement localization**
89
+ - Extract all user-facing strings
90
+ - Create localization keys
91
+ - Add default English translations
92
+ - Verify no hardcoded strings remain
93
+
94
+ - [ ] **E3: Performance optimization**
95
+ - Implement lazy loading for lists
96
+ - Add proper caching
97
+ - Optimize memory usage
98
+ - Profile and fix performance issues
99
+
100
+ ### Phase F: Testing & Validation
101
+
102
+ - [ ] **F1: Unit Tests**
103
+ - Write unit tests for ViewModel
104
+ - Write unit tests for Repository
105
+ - Write unit tests for Use Cases
106
+ - Ensure >80% code coverage
107
+
108
+ - [ ] **F2: Integration Tests**
109
+ - Test data flow from API to UI
110
+ - Test offline functionality
111
+ - Test error recovery scenarios
112
+ - Validate all user flows work correctly
113
+
114
+ - [ ] **F3: Final Checkpoint**
115
+ - Ensure all tests pass
116
+ - Verify all requirements are met
117
+ - Validate accessibility compliance
118
+ - Confirm security measures are working
119
+ - Test on multiple device sizes
120
+
121
+ ## Progress Tracking
122
+
123
+ | Phase | Status | Completion |
124
+ |-------|--------|------------|
125
+ | A: Foundation | ⬜ Not Started | 0% |
126
+ | B: Core UI | ⬜ Not Started | 0% |
127
+ | C: Interactions | ⬜ Not Started | 0% |
128
+ | D: Advanced | ⬜ Not Started | 0% |
129
+ | E: Polish | ⬜ Not Started | 0% |
130
+ | F: Testing | ⬜ Not Started | 0% |
131
+
132
+ **Status Legend:** ⬜ Not Started | 🔄 In Progress | ✅ Complete | ⚠️ Blocked
@@ -0,0 +1,10 @@
1
+ app/
2
+ ├── src/main/
3
+ │ ├── features/
4
+ │ ├── shared/
5
+ │ │ ├── ui/
6
+ │ │ ├── services/
7
+ │ │ ├── models/
8
+ ├── tests/
9
+ ├── docs/
10
+ ├── .project-identity
@@ -0,0 +1,6 @@
1
+ src/
2
+ ├── modules/
3
+ ├── shared/
4
+ ├── tests/
5
+ ├── docs/
6
+ ├── .project-identity
@@ -0,0 +1,9 @@
1
+ app/
2
+ ├── (tabs)/
3
+ ├── features/
4
+ ├── components/
5
+ ├── services/
6
+ ├── hooks/
7
+ ├── constants/
8
+ ├── docs/
9
+ ├── .project-identity
@@ -0,0 +1,9 @@
1
+ App/
2
+ ├── Features/
3
+ ├── Shared/
4
+ │ ├── UI/
5
+ │ ├── Services/
6
+ │ ├── Models/
7
+ ├── Tests/
8
+ ├── docs/
9
+ ├── .project-identity
@@ -0,0 +1,6 @@
1
+ app/
2
+ ├── components/
3
+ ├── lib/
4
+ ├── services/
5
+ ├── docs/
6
+ ├── .project-identity
@@ -0,0 +1,87 @@
1
+ ---
2
+ description: [Short description of the workflow]
3
+ ---
4
+
5
+ # WORKFLOW: /[command] - Dual-Mode (v5.0)
6
+
7
+ > **Mode A (Expert):** `/[command] [args] [flags]` -> Execute immediately.
8
+ > **Mode B (Guided):** `/[command]` -> Interactive step-by-step wizard.
9
+
10
+ ---
11
+
12
+ ## 🅰️ Expert Mode (Direct Execution)
13
+
14
+ **Flags:**
15
+ - `--auto`: Auto-confirm all prompts.
16
+ - `--fast`: Skip detailed improvements/reviews.
17
+ - `--verbose`: Show detailed logs.
18
+
19
+ **Usage:**
20
+ ```bash
21
+ /[command] "Title" --auto
22
+ ```
23
+
24
+ **Logic:**
25
+ 1. Parse arguments.
26
+ 2. If critical info missing -> Error.
27
+ 3. If valid -> Execute core logic silently.
28
+ 4. Report final result.
29
+
30
+ ---
31
+
32
+ ## 🅱️ Guided Mode (Interactive Wizard)
33
+
34
+ ### Phase 1: Context & Setup
35
+ 1. **Understand Intent:**
36
+ - "Bạn muốn làm gì với [Command]?"
37
+ - (AI analyzes context from `.project-identity` & `.beads`)
38
+
39
+ 2. **Configuration:**
40
+ - [Question 1]
41
+ - [Question 2]
42
+
43
+ 3. **Menu:**
44
+ ```markdown
45
+ 1️⃣ Tiếp tục (Start Phase 2)
46
+ 2️⃣ Thay đổi cấu hình
47
+ 3️⃣ Hủy bỏ
48
+ ```
49
+
50
+ ### Phase 2: Execution & Analysis
51
+ 1. **Core Action:**
52
+ - performing_step_1...
53
+ - performing_step_2...
54
+
55
+ 2. **Progress Update:**
56
+ - "Đang thực hiện..."
57
+
58
+ 3. **Menu:**
59
+ ```markdown
60
+ 1️⃣ Xem kết quả chi tiết
61
+ 2️⃣ Tiếp tục sang Phase 3
62
+ 3️⃣ Retry (Thử lại)
63
+ ```
64
+
65
+ ### Phase 3: Completion & Handoff
66
+ 1. **Final Report:**
67
+ - Summary of changes.
68
+ - Locations of artifacts.
69
+
70
+ 2. **Memory Sync:**
71
+ - Auto-sync with Beads (Task) & Brain (Knowledge).
72
+
73
+ 3. **Next Steps Menu:**
74
+ ```markdown
75
+ 1️⃣ ✅ Hoàn tất & Lưu (`/done`)
76
+ 2️⃣ 🚀 Tiếp tục task khác (`/next`)
77
+ 3️⃣ 🔄 Chạy lại (`/redo`)
78
+ ```
79
+
80
+ ---
81
+
82
+ ## 🧠 Brain & Beads Integration
83
+
84
+ - **Input:** Check `bd list --status in_progress` to resume context.
85
+ - **Output:**
86
+ - Create/Update Beads task.
87
+ - Create Brain memory file if knowledge is valuable.