@leejungkiin/awkit 1.0.7 → 1.0.8
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/core/GEMINI.md.bak +168 -181
- package/package.json +2 -2
- package/schemas/brain-snapshot.json +167 -0
- package/skills/CATALOG.md +70 -0
- package/skills/beads-manager/SKILL.md +20 -1
- package/skills/memory-sync/SKILL.md +20 -2
- package/skills/nm-memory-audit/SKILL.md +157 -0
- package/skills/nm-memory-evolution/SKILL.md +202 -0
- package/skills/nm-memory-intake/SKILL.md +135 -0
- package/skills/nm-memory-sync/SKILL.md +184 -0
- package/skills/orchestrator/SKILL.md +41 -50
- package/skills/schemas/brain-snapshot.json +167 -0
- package/skills/skills/nm-memory-audit/SKILL.md +157 -0
- package/skills/skills/nm-memory-evolution/SKILL.md +202 -0
- package/skills/skills/nm-memory-intake/SKILL.md +135 -0
- package/skills/skills/nm-memory-sync/SKILL.md +184 -0
- package/skills/smali-to-kotlin/SKILL.md +331 -85
- package/skills/smali-to-kotlin/phase-0-discovery.md +93 -94
- package/skills/smali-to-kotlin/phase-1-architecture.md +67 -58
- package/skills/smali-to-kotlin/phase-2-blueprint.md +228 -0
- package/skills/smali-to-kotlin/phase-3-build.md +248 -0
- package/skills/smali-to-kotlin/templates/app-map.md +101 -0
- package/skills/smali-to-kotlin/templates/architecture.md +142 -0
- package/skills/smali-to-kotlin/templates/blueprint.md +145 -0
- package/skills/smali-to-swift/SKILL.md +532 -91
- package/skills/smali-to-swift/phase-0-discovery.md +101 -118
- package/skills/smali-to-swift/phase-1-architecture.md +62 -67
- package/skills/smali-to-swift/phase-2-blueprint.md +173 -0
- package/skills/smali-to-swift/phase-3-build.md +257 -0
- package/skills/smali-to-swift/templates/app-map.md +82 -0
- package/skills/smali-to-swift/templates/architecture.md +97 -0
- package/skills/smali-to-swift/templates/blueprint.md +82 -0
- package/skills/workflows/nm-import.md +73 -0
- package/skills/workflows/nm-recall.md +67 -0
- package/skills/workflows/nm-snapshot.md +69 -0
- package/workflows/_uncategorized/nm-import.md +73 -0
- package/workflows/_uncategorized/nm-recall.md +67 -0
- package/workflows/_uncategorized/nm-snapshot.md +69 -0
- package/workflows/_uncategorized/reverse-android-build.md +222 -0
- package/workflows/_uncategorized/reverse-android-design.md +139 -0
- package/workflows/_uncategorized/reverse-android-discover.md +150 -0
- package/workflows/_uncategorized/reverse-android-scan.md +158 -0
- package/workflows/_uncategorized/reverse-android.md +143 -0
- package/workflows/_uncategorized/reverse-ios-build.md +240 -0
- package/workflows/_uncategorized/reverse-ios-design.md +112 -0
- package/workflows/_uncategorized/reverse-ios-discover.md +120 -0
- package/workflows/_uncategorized/reverse-ios-scan.md +155 -0
- package/workflows/_uncategorized/reverse-ios.md +152 -0
- package/skills/adaptive-language/SKILL.md +0 -189
- package/skills/ambient-brain/SKILL.md +0 -314
- package/skills/ambient-brain/brain-router.md +0 -185
- package/skills/ambient-brain/brain-templates.md +0 -201
- package/skills/context-help/SKILL.md +0 -180
- package/skills/error-translator/SKILL.md +0 -153
- package/skills/session-restore/SKILL.md +0 -240
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: awf-session-restore
|
|
3
|
-
description: Auto-restore context from Beads + Brain on session start
|
|
4
|
-
trigger: session_start
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# AWF Session Restore (v5.0 - Beads + Brain)
|
|
8
|
-
|
|
9
|
-
> **Purpose:** Tự động khôi phục context khi user quay lại sau khi nghỉ.
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## Trigger
|
|
14
|
-
|
|
15
|
-
Skill này tự động chạy khi:
|
|
16
|
-
- User mở session mới
|
|
17
|
-
- User gõ `/recap`
|
|
18
|
-
- AI detect context loss (conversation reset)
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## Execution Flow
|
|
23
|
-
|
|
24
|
-
### 1. Multi-Source Context Check
|
|
25
|
-
|
|
26
|
-
**Priority 1: Beads (Task State)**
|
|
27
|
-
```bash
|
|
28
|
-
bd list --status in_progress
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Output:**
|
|
32
|
-
- Tasks đang làm dở
|
|
33
|
-
- Tasks blocked
|
|
34
|
-
- Tasks ready to start
|
|
35
|
-
|
|
36
|
-
**Priority 2: Brain (Knowledge & Plans)**
|
|
37
|
-
```bash
|
|
38
|
-
# Check active plans
|
|
39
|
-
cat brain/active_plans.json
|
|
40
|
-
|
|
41
|
-
# Check recent memories
|
|
42
|
-
ls -lt brain/ | head -5
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
**Output:**
|
|
46
|
-
- Plan đang active
|
|
47
|
-
- Phase hiện tại
|
|
48
|
-
- Recent decisions/knowledge
|
|
49
|
-
|
|
50
|
-
**Priority 3: Git (Code State)**
|
|
51
|
-
```bash
|
|
52
|
-
git status
|
|
53
|
-
git log -1
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
**Output:**
|
|
57
|
-
- Files đang thay đổi
|
|
58
|
-
- Commit gần nhất
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
### 2. Context Synthesis
|
|
63
|
-
|
|
64
|
-
Kết hợp 3 nguồn để tạo summary:
|
|
65
|
-
|
|
66
|
-
```markdown
|
|
67
|
-
🧠 **SESSION RESTORED**
|
|
68
|
-
|
|
69
|
-
📿 **Beads Context:**
|
|
70
|
-
- In Progress: Task #123 "Implement Login API" (started 2h ago)
|
|
71
|
-
- Blocked: Task #125 (waiting for #120)
|
|
72
|
-
- Ready: 3 tasks
|
|
73
|
-
|
|
74
|
-
🧠 **Brain Context:**
|
|
75
|
-
- Active Plan: plans/260130-1025-shopping-cart/
|
|
76
|
-
- Current Phase: Phase 02 - Backend (50% complete)
|
|
77
|
-
- Last Save: 30 minutes ago
|
|
78
|
-
|
|
79
|
-
📂 **Git Context:**
|
|
80
|
-
- Changed Files: 3 files (src/api/auth/*.ts)
|
|
81
|
-
- Last Commit: "feat: add user model" (1 hour ago)
|
|
82
|
-
|
|
83
|
-
➡️ **SUGGESTED NEXT STEP:**
|
|
84
|
-
Continue task #123? `/codeExpert` or `/code`
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
### 3. Smart Suggestions
|
|
90
|
-
|
|
91
|
-
Based on context, suggest appropriate action:
|
|
92
|
-
|
|
93
|
-
**Case 1: Task In-Progress**
|
|
94
|
-
```
|
|
95
|
-
➡️ Tiếp tục task #123?
|
|
96
|
-
`/codeExpert` (Fast) or `/code` (Guided)
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
**Case 2: Task Blocked**
|
|
100
|
-
```
|
|
101
|
-
⚠️ Task #125 bị block bởi #120
|
|
102
|
-
|
|
103
|
-
➡️ Làm task #120 trước?
|
|
104
|
-
`/codeExpert` or switch to another task
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
**Case 3: No Active Task**
|
|
108
|
-
```
|
|
109
|
-
📋 Có 3 tasks ready to start
|
|
110
|
-
|
|
111
|
-
➡️ Bắt đầu task mới?
|
|
112
|
-
`/next` để xem gợi ý
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
**Case 4: Fresh Start**
|
|
116
|
-
```
|
|
117
|
-
🆕 Chưa có context
|
|
118
|
-
|
|
119
|
-
➡️ Bắt đầu dự án mới?
|
|
120
|
-
`/planExpert "Feature"` or `/brainstorm`
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
---
|
|
124
|
-
|
|
125
|
-
### 4. Memory Persistence
|
|
126
|
-
|
|
127
|
-
Update session state:
|
|
128
|
-
|
|
129
|
-
```json
|
|
130
|
-
// brain/session.json
|
|
131
|
-
{
|
|
132
|
-
"last_session": "2026-01-30T10:00:00Z",
|
|
133
|
-
"working_on": {
|
|
134
|
-
"feature": "Shopping Cart",
|
|
135
|
-
"plan_path": "plans/260130-1025-shopping-cart/",
|
|
136
|
-
"current_phase": "phase-02",
|
|
137
|
-
"current_task": {
|
|
138
|
-
"id": 123,
|
|
139
|
-
"name": "Implement Login API",
|
|
140
|
-
"status": "in_progress"
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
"context_sources": {
|
|
144
|
-
"beads": true,
|
|
145
|
-
"brain": true,
|
|
146
|
-
"git": true
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
---
|
|
152
|
-
|
|
153
|
-
## Error Handling
|
|
154
|
-
|
|
155
|
-
### Beads Unavailable
|
|
156
|
-
```
|
|
157
|
-
⚠️ Beads không khả dụng
|
|
158
|
-
|
|
159
|
-
Fallback: Dùng Brain + Git context
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
### Brain Empty
|
|
163
|
-
```
|
|
164
|
-
⚠️ Brain chưa có context
|
|
165
|
-
|
|
166
|
-
Gợi ý: `/plan` để tạo context mới
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
### All Sources Fail
|
|
170
|
-
```
|
|
171
|
-
❌ Không thể khôi phục context
|
|
172
|
-
|
|
173
|
-
➡️ Bắt đầu lại:
|
|
174
|
-
1. `/recap` để quét dự án
|
|
175
|
-
2. `/plan` để tạo plan mới
|
|
176
|
-
3. Kể cho em biết đang làm gì
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
---
|
|
180
|
-
|
|
181
|
-
## Integration with Workflows
|
|
182
|
-
|
|
183
|
-
### Auto-Trigger in Workflows
|
|
184
|
-
|
|
185
|
-
Các workflows tự động gọi session restore:
|
|
186
|
-
|
|
187
|
-
```markdown
|
|
188
|
-
# In /code workflow
|
|
189
|
-
1. Check session.json
|
|
190
|
-
2. If no context → Trigger awf-session-restore
|
|
191
|
-
3. Resume from restored context
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
### Manual Trigger
|
|
195
|
-
|
|
196
|
-
User có thể gọi thủ công:
|
|
197
|
-
|
|
198
|
-
```bash
|
|
199
|
-
/recap # Alias for session restore
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
---
|
|
203
|
-
|
|
204
|
-
## Performance
|
|
205
|
-
|
|
206
|
-
- **Execution Time:** < 1 second
|
|
207
|
-
- **Sources Checked:** 3 (Beads, Brain, Git)
|
|
208
|
-
- **Output:** Concise summary (< 10 lines)
|
|
209
|
-
|
|
210
|
-
---
|
|
211
|
-
|
|
212
|
-
## Example Output
|
|
213
|
-
|
|
214
|
-
```
|
|
215
|
-
🧠 **WELCOME BACK!**
|
|
216
|
-
|
|
217
|
-
📿 **Beads:** Task #123 "Login API" (in_progress, 2h ago)
|
|
218
|
-
🧠 **Brain:** Plan "Shopping Cart" - Phase 02 (50%)
|
|
219
|
-
📂 **Git:** 3 files changed
|
|
220
|
-
|
|
221
|
-
➡️ **NEXT:** Continue coding? `/codeExpert`
|
|
222
|
-
|
|
223
|
-
💡 **TIP:** Gõ `/next` để xem chi tiết hơn
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
---
|
|
227
|
-
|
|
228
|
-
## Configuration
|
|
229
|
-
|
|
230
|
-
User có thể customize trong `brain/preferences.json`:
|
|
231
|
-
|
|
232
|
-
```json
|
|
233
|
-
{
|
|
234
|
-
"session_restore": {
|
|
235
|
-
"auto_trigger": true,
|
|
236
|
-
"verbosity": "concise", // concise | detailed
|
|
237
|
-
"sources": ["beads", "brain", "git"]
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
```
|