@leejungkiin/awkit 1.1.2 → 1.1.3

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 (44) hide show
  1. package/bin/awk.js +215 -72
  2. package/bin/cline-generators.js +73 -0
  3. package/bin/codex-generators.js +108 -0
  4. package/package.json +2 -2
  5. package/skill-packs/superpowers/README.md +59 -0
  6. package/skill-packs/superpowers/pack.json +15 -0
  7. package/skill-packs/superpowers/skills/brainstorming/SKILL.md +96 -0
  8. package/skill-packs/superpowers/skills/executing-plans/SKILL.md +100 -0
  9. package/skill-packs/superpowers/skills/finishing-a-development-branch/SKILL.md +213 -0
  10. package/skill-packs/superpowers/skills/receiving-code-review/SKILL.md +213 -0
  11. package/skill-packs/superpowers/skills/requesting-code-review/SKILL.md +115 -0
  12. package/skill-packs/superpowers/skills/requesting-code-review/code-reviewer.md +146 -0
  13. package/skill-packs/superpowers/skills/single-flow-task-execution/SKILL.md +359 -0
  14. package/skill-packs/superpowers/skills/single-flow-task-execution/code-quality-reviewer-prompt.md +20 -0
  15. package/skill-packs/superpowers/skills/single-flow-task-execution/implementer-prompt.md +78 -0
  16. package/skill-packs/superpowers/skills/single-flow-task-execution/spec-reviewer-prompt.md +61 -0
  17. package/skill-packs/superpowers/skills/systematic-debugging/CREATION-LOG.md +119 -0
  18. package/skill-packs/superpowers/skills/systematic-debugging/SKILL.md +296 -0
  19. package/skill-packs/superpowers/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  20. package/skill-packs/superpowers/skills/systematic-debugging/condition-based-waiting.md +115 -0
  21. package/skill-packs/superpowers/skills/systematic-debugging/defense-in-depth.md +122 -0
  22. package/skill-packs/superpowers/skills/systematic-debugging/find-polluter.sh +63 -0
  23. package/skill-packs/superpowers/skills/systematic-debugging/root-cause-tracing.md +169 -0
  24. package/skill-packs/superpowers/skills/systematic-debugging/test-academic.md +14 -0
  25. package/skill-packs/superpowers/skills/systematic-debugging/test-pressure-1.md +58 -0
  26. package/skill-packs/superpowers/skills/systematic-debugging/test-pressure-2.md +68 -0
  27. package/skill-packs/superpowers/skills/systematic-debugging/test-pressure-3.md +69 -0
  28. package/skill-packs/superpowers/skills/test-driven-development/SKILL.md +371 -0
  29. package/skill-packs/superpowers/skills/test-driven-development/testing-anti-patterns.md +299 -0
  30. package/skill-packs/superpowers/skills/using-git-worktrees/SKILL.md +223 -0
  31. package/skill-packs/superpowers/skills/using-superpowers/SKILL.md +97 -0
  32. package/skill-packs/superpowers/skills/verification-before-completion/SKILL.md +139 -0
  33. package/skill-packs/superpowers/skills/writing-plans/SKILL.md +108 -0
  34. package/skill-packs/superpowers/skills/writing-skills/SKILL.md +716 -0
  35. package/skill-packs/superpowers/skills/writing-skills/antigravity-best-practices.md +1173 -0
  36. package/skill-packs/superpowers/skills/writing-skills/examples/AGENTS_MD_TESTING.md +189 -0
  37. package/skill-packs/superpowers/skills/writing-skills/graphviz-conventions.dot +172 -0
  38. package/skill-packs/superpowers/skills/writing-skills/persuasion-principles.md +187 -0
  39. package/skill-packs/superpowers/skills/writing-skills/render-graphs.js +175 -0
  40. package/skill-packs/superpowers/skills/writing-skills/testing-skills-with-subagents.md +384 -0
  41. package/skills/CATALOG.md +7 -0
  42. package/core/AGENTS.md +0 -38
  43. package/skills/beads-manager/SKILL.md +0 -459
  44. package/workflows/_uncategorized/AGENTS.md +0 -38
@@ -1,459 +0,0 @@
1
- ---
2
- name: beads-manager
3
- description: "⚠️ DEPRECATED — Replaced by symphony-orchestrator. Do NOT use this skill."
4
- version: 6.6.0
5
- trigger: never
6
- invocation-type: auto
7
- ---
8
-
9
- # Beads Manager Skill (v6.6) — Hierarchical Epic Architecture
10
-
11
- > **Purpose:** Quản lý tasks trong Beads với 3-level hierarchy (Epic → Phase → Subtask),
12
- > Brain context awareness, và structured JSON output.
13
- >
14
- > **Requires:** Beads CLI v0.47+ (`bd version` to check)
15
-
16
- ---
17
-
18
- ## Architecture Overview
19
-
20
- ```
21
- 🏔️ EPIC (bd create -t epic) ← 1 per /plan or /planExpert
22
- ├── 📦 Phase Task (--parent <epic>) ← Groups of related work
23
- │ ├── 📝 Subtask (--parent <phase>) ← Atomic unit of work (~15-30 min)
24
- │ ├── 📝 Subtask
25
- │ └── 📝 Subtask
26
- ├── 📦 Phase Task
27
- │ ├── 📝 Subtask
28
- │ └── 📝 Subtask
29
- └── ...
30
- ```
31
-
32
- **Key Principles:**
33
- - 1 Epic = 1 Feature/Plan
34
- - Phase = sequential group (dependencies between phases)
35
- - Subtask = smallest unit AI executes in 1 session
36
- - All commands use `--json` for structured output
37
- - `bd ready --parent <epic>` = intelligent task selection
38
-
39
- ---
40
-
41
- ## Core Functions
42
-
43
- ### 1. `plan_to_beads()` — Plan → Beads Sync
44
-
45
- **Trigger:** When `/planExpert` or `/plan` finishes generating plan files.
46
-
47
- **Process:**
48
-
49
- ```bash
50
- # Step 1: Create epic (root node)
51
- EPIC_ID=$(bd create "Feature Name" -t epic -p 1 \
52
- --description "Full feature description" \
53
- --acceptance "High-level acceptance criteria" \
54
- --design "Architecture approach (Clean Arch, MVVM, etc.)" \
55
- --json | jq -r '.id')
56
-
57
- # Step 2: Create phase tasks as children of epic
58
- PHASE1_ID=$(bd create "Phase 1: Setup & Config" \
59
- --parent $EPIC_ID -p 1 \
60
- --description "Project scaffolding and configuration" \
61
- --json | jq -r '.id')
62
-
63
- PHASE2_ID=$(bd create "Phase 2: Backend API" \
64
- --parent $EPIC_ID -p 1 \
65
- --description "RESTful API endpoints" \
66
- --json | jq -r '.id')
67
-
68
- # Step 3: Create subtasks as children of phases
69
- bd create "Setup project structure" \
70
- --parent $PHASE1_ID -p 2 \
71
- --acceptance "Directory structure matches architecture" \
72
- --json
73
-
74
- bd create "Configure database" \
75
- --parent $PHASE1_ID -p 2 \
76
- --acceptance "DB configured, migrations ready" \
77
- --json
78
-
79
- # Step 4: Set inter-phase dependencies
80
- bd dep add $PHASE2_ID $PHASE1_ID # Phase 2 depends on Phase 1
81
- bd dep add $PHASE3_ID $PHASE2_ID # Phase 3 depends on Phase 2
82
-
83
- # Step 5: Save to brain
84
- # → Update brain/active_plans.json with epic mapping
85
- ```
86
-
87
- **Rules:**
88
- - Mỗi `/planExpert` hoặc `/plan` tạo **đúng 1 epic**
89
- - Epic chứa metadata tổng quan (acceptance + design)
90
- - Caps: max 8 phases/epic, max 5 subtasks/phase
91
- - Every subtask MUST have `--acceptance` criteria
92
-
93
- **Output Report:**
94
- ```
95
- ✅ PLAN CREATED — "Shopping Cart Feature"
96
-
97
- 🏔️ Epic: bd-a3f8 (Shopping Cart Feature)
98
- ├── 📦 bd-b1c2 Phase 1: Setup & Config (3 subtasks)
99
- ├── 📦 bd-d3e4 Phase 2: Backend API (3 subtasks)
100
- ├── 📦 bd-f5g6 Phase 3: Frontend UI (2 subtasks)
101
- └── 📦 bd-h7i8 Phase 4: Testing (2 subtasks)
102
-
103
- 📊 Total: 1 epic, 4 phases, 10 subtasks
104
- 📿 Dependencies: Phase 1 → 2 → 3 → 4
105
-
106
- ➡️ Next: /codeExpert (starts first ready subtask)
107
- ```
108
-
109
- ---
110
-
111
- ### 2. `smart_pick()` — Intelligent Task Selection
112
-
113
- **Trigger:** Session start, `/codeExpert`, `/next`
114
-
115
- **Process:**
116
-
117
- ```bash
118
- # Step 1: Get current epic from brain
119
- EPIC_ID=$(cat brain/active_plans.json | jq -r '.current.epic_id')
120
-
121
- # Step 2: Check in-progress first
122
- IN_PROGRESS=$(bd list --status in_progress --parent $EPIC_ID --json)
123
- if [ "$IN_PROGRESS" != "[]" ]; then
124
- # Resume existing task
125
- echo "🔁 Resuming: $(echo $IN_PROGRESS | jq -r '.[0].title')"
126
- exit 0
127
- fi
128
-
129
- # Step 3: Get ready (unblocked) tasks
130
- READY=$(bd ready --parent $EPIC_ID --json --limit 5)
131
-
132
- # Step 4: Auto-claim first ready task
133
- TASK_ID=$(echo $READY | jq -r '.[0].id')
134
- bd update $TASK_ID --claim
135
- ```
136
-
137
- **Output:**
138
- ```
139
- 🎯 Working on: bd-x1y2 "Configure database"
140
- 📦 Phase: Phase 1: Setup & Config
141
- ✅ Acceptance: DB configured, migrations ready
142
- 📋 Design: Use Room/SQLite with migration support
143
- ```
144
-
145
- **Fallback (no epic):**
146
- ```bash
147
- # Legacy flat mode for backward compatibility
148
- bd list --status in_progress --json
149
- # or
150
- bd ready --json --limit 5
151
- ```
152
-
153
- ---
154
-
155
- ### 3. `cascade_complete()` — Smart Completion
156
-
157
- **Trigger:** When a task/subtask is completed.
158
-
159
- **Process:**
160
-
161
- ```bash
162
- # Step 1: Close the subtask
163
- bd close <subtask-id> --reason "Completed" --suggest-next
164
-
165
- # Step 2: Check if parent phase can be auto-closed
166
- bd epic close-eligible
167
- # → Auto-detects and closes phases/epics where all children are done
168
-
169
- # Step 3: Update brain/active_plans.json
170
- # → Mark completed phases, update progress
171
- ```
172
-
173
- **Example Cascade:**
174
- ```
175
- Close bd-z1 (last subtask of Phase 1)
176
- ✅ bd-z1 closed — "Setup project structure"
177
- ✅ bd-b1c2 auto-closed — Phase 1: Setup & Config (all 3/3 subtasks done)
178
- → Next ready: bd-x2y3 "Create Cart model" (Phase 2, now unblocked)
179
- ```
180
-
181
- **Rules:**
182
- - Auto-close phase when ALL its subtasks are done
183
- - Auto-close epic when ALL its phases are done
184
- - Always `--suggest-next` to show what's unblocked
185
- - No user confirmation needed (low friction)
186
-
187
- ---
188
-
189
- ### 4. `progress_dashboard()` — Visual Progress
190
-
191
- **Trigger:** `/todo`, session start, after each task completion.
192
-
193
- **Process:**
194
-
195
- ```bash
196
- # Get epic status
197
- bd epic status --json
198
- # Get hierarchy tree
199
- bd list --parent $EPIC_ID --tree
200
- ```
201
-
202
- **Output:**
203
- ```
204
- 🏔️ Shopping Cart Feature [████████░░] 60%
205
-
206
- ✅ Phase 1: Setup & Config [3/3] — DONE
207
- 🔵 Phase 2: Backend API [1/3] — IN PROGRESS
208
- ✅ bd-x2y3 Create Cart model
209
- 🔵 bd-x3y4 Cart CRUD API ← CURRENT
210
- ⬜ bd-x4y5 Payment integration
211
- ⬜ Phase 3: Frontend UI [0/2] — BLOCKED (by Phase 2)
212
- ⬜ Phase 4: Testing [0/2] — BLOCKED (by Phase 3)
213
- ```
214
-
215
- **Fallback (no epic):**
216
- ```bash
217
- # Legacy mode
218
- bd list --status open --limit 10
219
- bd list --status in_progress
220
- ```
221
-
222
- ---
223
-
224
- ### 5. `track_metadata()` — Rich Task Data
225
-
226
- **Trigger:** When creating or updating any task.
227
-
228
- **Fields to use:**
229
-
230
- | Flag | Purpose | Example |
231
- |------|---------|---------|
232
- | `--description` | Detailed task description | "Implement REST endpoints for cart CRUD" |
233
- | `--acceptance` | Definition of Done (DoD) | "All 4 endpoints return correct status codes" |
234
- | `--design` | Architecture / implementation approach | "Repository pattern + Use Cases" |
235
- | `--notes` | Runtime findings, blockers | "Found N+1 query issue, need optimization" |
236
- | `--body-file` | Link to detailed spec file | "docs/specs/cart-api.md" |
237
-
238
- **Example:**
239
- ```bash
240
- bd create "Implement Cart API" \
241
- --parent $PHASE_ID -p 1 \
242
- --description "REST endpoints: GET/POST/PUT/DELETE /api/cart" \
243
- --acceptance "All CRUD ops work, validation on input, 401 for unauth" \
244
- --design "Repository pattern, DTOs for request/response" \
245
- --json
246
- ```
247
-
248
- ---
249
-
250
- ## Integration with Workflows
251
-
252
- ### `/planExpert` Integration
253
-
254
- ```bash
255
- # After plan generation — replaces flat loop
256
- 1. bd create "<feature>" -t epic -p 1 --json # Create epic
257
- 2. For each phase: bd create "<phase>" --parent <epic> --json # Phases
258
- 3. For each task: bd create "<task>" --parent <phase> --acceptance "..." --json # Subtasks
259
- 4. bd dep add <phase-N+1> <phase-N> # Sequential deps
260
- 5. Save epic mapping → brain/active_plans.json
261
- 6. Report tree view
262
- ```
263
-
264
- ### `/codeExpert` Integration
265
-
266
- ```bash
267
- # Before coding — replaces manual bd list
268
- 1. smart_pick() → Get current or next ready task from epic
269
- 2. Load acceptance criteria as DoD
270
- 3. Code against acceptance criteria
271
-
272
- # After coding — replaces bd update --status done
273
- 1. cascade_complete() → Close task + auto-close parent if eligible
274
- 2. Suggest next ready task
275
- ```
276
-
277
- ### `/plan` (Guided Mode) Integration
278
-
279
- Same as `/planExpert` but phases/tasks created incrementally as user confirms each phase.
280
-
281
- ---
282
-
283
- ## Brain Integration
284
-
285
- ### `active_plans.json` Schema (v6.5)
286
-
287
- ```json
288
- {
289
- "current": {
290
- "epic_id": "bd-a3f8",
291
- "feature": "Shopping Cart",
292
- "plan_path": "plans/260301-2109-shopping-cart/",
293
- "phases": [
294
- {
295
- "beads_id": "bd-b1c2",
296
- "name": "Phase 1: Setup & Config",
297
- "subtasks": ["bd-c1d2", "bd-c3d4", "bd-c5d6"],
298
- "status": "done",
299
- "depends_on": null
300
- },
301
- {
302
- "beads_id": "bd-d3e4",
303
- "name": "Phase 2: Backend API",
304
- "subtasks": ["bd-e1f2", "bd-e3f4", "bd-e5f6"],
305
- "status": "in_progress",
306
- "depends_on": "bd-b1c2"
307
- }
308
- ]
309
- },
310
- "plans": []
311
- }
312
- ```
313
-
314
- ### Task-Knowledge Linking
315
-
316
- ```bash
317
- # When saving knowledge during a task
318
- /save-brain "How to fix N+1 query"
319
- → Save to: brain/solutions/n1-query-fix.md
320
- → Update task notes: bd update <id> --notes "Solution: brain/solutions/..."
321
- ```
322
-
323
- ---
324
-
325
- ## Gate Updates Reference
326
-
327
- ### Gate 0 — Session Start
328
-
329
- ```bash
330
- # Check active epic
331
- EPIC_ID=$(cat brain/active_plans.json | jq -r '.current.epic_id // empty')
332
-
333
- if [ -n "$EPIC_ID" ]; then
334
- # Hierarchical mode
335
- bd epic status --json # Epic progress
336
- bd list --parent $EPIC_ID --tree # Tree view
337
- else
338
- # Legacy flat mode
339
- bd list --status in_progress
340
- bd list --status open --limit 3
341
- fi
342
- ```
343
-
344
- ### Gate 1 — Before Coding
345
-
346
- ```bash
347
- if [ -n "$EPIC_ID" ]; then
348
- smart_pick() # From epic hierarchy
349
- else
350
- # Legacy: create flat task
351
- bd create "[task summary]" --priority 1
352
- bd update <id> --status in_progress
353
- fi
354
- ```
355
-
356
- ### Gate 2 — After Completion
357
-
358
- ```bash
359
- if [ -n "$EPIC_ID" ]; then
360
- cascade_complete() # Close + auto-cascade + suggest next
361
- else
362
- bd update <id> --status done
363
- bd list --status open --limit 3
364
- fi
365
- ```
366
-
367
- ---
368
-
369
- ## Backward Compatibility
370
-
371
- ```
372
- Detection logic:
373
- 1. Read brain/active_plans.json
374
- 2. If "current.epic_id" exists → Hierarchical mode (v6.5)
375
- 3. If "current.epic_id" missing → Legacy flat mode (v5.0)
376
- 4. All legacy bd commands continue to work
377
-
378
- No breaking changes. Existing flat tasks are unaffected.
379
- ```
380
-
381
- ---
382
-
383
- ## Error Handling
384
-
385
- ### Beads Not Available
386
-
387
- ```bash
388
- if ! command -v bd &> /dev/null; then
389
- echo "⚠️ Beads CLI not installed"
390
- echo "Fallback: Brain-only mode (active_plans.json tracking)"
391
- fi
392
- ```
393
-
394
- ### Beads Version Too Old
395
-
396
- ```bash
397
- BD_VERSION=$(bd version 2>/dev/null | grep -oP '\d+\.\d+\.\d+')
398
- # Require 0.47+ for --parent, -t epic, --json, bd epic
399
- if [ "$(printf '%s\n' "0.47.0" "$BD_VERSION" | sort -V | head -n1)" != "0.47.0" ]; then
400
- echo "⚠️ Beads $BD_VERSION too old. Need 0.47+. Falling back to flat mode."
401
- fi
402
- ```
403
-
404
- ### No Active Epic
405
-
406
- ```bash
407
- # Graceful fallback to legacy flat mode
408
- # All functions check for epic_id first, fall back to flat commands
409
- ```
410
-
411
- ---
412
-
413
- ## Commands Quick Reference
414
-
415
- | Command | v5.0 (Old) | v6.5 (New) |
416
- |---------|------------|------------|
417
- | Create plan tasks | `bd create` loop | `bd create -t epic` + `--parent` hierarchy |
418
- | Pick next task | `bd list --status open` | `bd ready --parent <epic> --json` |
419
- | Claim task | `bd update --status in_progress` | `bd update --claim` |
420
- | Complete task | `bd update --status done` | `bd close --reason --suggest-next` |
421
- | Close phase | Manual | `bd epic close-eligible` (auto) |
422
- | View progress | `bd list` | `bd list --parent <epic> --tree` |
423
- | Epic status | N/A | `bd epic status --json` |
424
-
425
- ---
426
-
427
- ## Configuration
428
-
429
- ```json
430
- // brain/preferences.json
431
- {
432
- "beads": {
433
- "auto_create": true,
434
- "auto_update": true,
435
- "default_priority": 2,
436
- "max_phases_per_epic": 8,
437
- "max_subtasks_per_phase": 5,
438
- "use_hierarchy": true,
439
- "labels": ["feature", "bug", "refactor", "chore"]
440
- }
441
- }
442
- ```
443
-
444
- ---
445
-
446
- ## Self-Evolution Protocol
447
-
448
- After each session, if a task management pattern was suboptimal or a new workflow integration was discovered:
449
- 1. Append finding to the Learnings section below
450
- 2. Update gate references or command patterns if needed
451
- 3. Never remove existing learnings — only add or refine
452
-
453
- ## Learnings
454
-
455
- _Findings from past sessions. Add new entries as bullet points._
456
-
457
- - `invocation-type: auto` field added to frontmatter for CATALOG.md skill classification.
458
- - Legacy flat mode fallback still needed — not all projects use epics yet.
459
- - `bd close --suggest-next` output should be incorporated into next task pick for seamless flow.
@@ -1,38 +0,0 @@
1
- # Agent Instructions
2
-
3
- This project uses **Symphony** for task management and issue tracking.
4
-
5
- ## Quick Reference
6
-
7
- ```bash
8
- symphony_available_tasks # Find available work
9
- symphony_claim_task <id> # Claim a task
10
- symphony_report_progress <id> # Report progress
11
- symphony_complete_task <id> # Complete work
12
- symphony_status # Check system status
13
- ```
14
-
15
- ## Landing the Plane (Session Completion)
16
-
17
- **When ending a work session**, you MUST complete ALL steps below. Work is NOT complete until `git push` succeeds.
18
-
19
- **MANDATORY WORKFLOW:**
20
-
21
- 1. **File issues for remaining work** — Create tasks for anything that needs follow-up
22
- 2. **Run quality gates** (if code changed) — Tests, linters, builds
23
- 3. **Update task status** — Complete finished work, update in-progress items
24
- 4. **PUSH TO REMOTE** — This is MANDATORY:
25
- ```bash
26
- git pull --rebase
27
- git push
28
- git status # MUST show "up to date with origin"
29
- ```
30
- 5. **Clean up** — Clear stashes, prune remote branches
31
- 6. **Verify** — All changes committed AND pushed
32
- 7. **Hand off** — Provide context for next session
33
-
34
- **CRITICAL RULES:**
35
- - Work is NOT complete until `git push` succeeds
36
- - NEVER stop before pushing — that leaves work stranded locally
37
- - NEVER say "ready to push when you are" — YOU must push
38
- - If push fails, resolve and retry until it succeeds