@leejungkiin/awkit 1.5.4 → 1.5.6

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 (110) hide show
  1. package/bin/awk.js +188 -8
  2. package/core/GEMINI.md +22 -14
  3. package/core/work-modes.json +45 -0
  4. package/package.json +1 -1
  5. package/skill-packs/cocos2d/pack.json +8 -0
  6. package/skill-packs/cocos2d/skills/cocos2d-x/LICENSE.txt +8 -0
  7. package/skill-packs/cocos2d/skills/cocos2d-x/SKILL.md +168 -0
  8. package/skill-packs/cocos2d/skills/cocos2d-x/examples/core/action.md +278 -0
  9. package/skill-packs/cocos2d/skills/cocos2d-x/examples/core/animation.md +220 -0
  10. package/skill-packs/cocos2d/skills/cocos2d-x/examples/core/event.md +133 -0
  11. package/skill-packs/cocos2d/skills/cocos2d-x/examples/core/input.md +291 -0
  12. package/skill-packs/cocos2d/skills/cocos2d-x/examples/core/label.md +184 -0
  13. package/skill-packs/cocos2d/skills/cocos2d-x/examples/core/node-scene.md +212 -0
  14. package/skill-packs/cocos2d/skills/cocos2d-x/examples/core/scene.md +228 -0
  15. package/skill-packs/cocos2d/skills/cocos2d-x/examples/core/sprite.md +206 -0
  16. package/skill-packs/cocos2d/skills/cocos2d-x/examples/core/texture.md +186 -0
  17. package/skill-packs/cocos2d/skills/cocos2d-x/examples/getting-started/about-engine.md +53 -0
  18. package/skill-packs/cocos2d/skills/cocos2d-x/examples/getting-started/installation.md +203 -0
  19. package/skill-packs/cocos2d/skills/cocos2d-x/examples/getting-started/quick-start.md +134 -0
  20. package/skill-packs/electron/pack.json +9 -0
  21. package/skill-packs/electron/skills/electron/LICENSE.txt +202 -0
  22. package/skill-packs/electron/skills/electron/SKILL.md +160 -0
  23. package/skill-packs/electron/skills/electron/api/app.md +83 -0
  24. package/skill-packs/electron/skills/electron/api/browser-window.md +84 -0
  25. package/skill-packs/electron/skills/electron/examples/advanced/packaging.md +140 -0
  26. package/skill-packs/electron/skills/electron/examples/api/browser-window.md +182 -0
  27. package/skill-packs/electron/skills/electron/examples/api/menu.md +187 -0
  28. package/skill-packs/electron/skills/electron/examples/getting-started/installation.md +88 -0
  29. package/skill-packs/electron/skills/electron/examples/getting-started/quick-start.md +104 -0
  30. package/skill-packs/electron/skills/electron/examples/processes/ipc-communication.md +140 -0
  31. package/skill-packs/electron/skills/electron/examples/processes/main-process.md +121 -0
  32. package/skill-packs/electron/skills/electron/templates/main-process.md +105 -0
  33. package/skill-packs/electron/skills/electron/templates/preload-script.md +84 -0
  34. package/skill-packs/electron/skills/electron-egg/LICENSE.txt +202 -0
  35. package/skill-packs/electron/skills/electron-egg/SKILL.md +154 -0
  36. package/skill-packs/electron/skills/electron-egg/api/config-api.md +62 -0
  37. package/skill-packs/electron/skills/electron-egg/api/ipc-api.md +55 -0
  38. package/skill-packs/electron/skills/electron-egg/api/main-api.md +54 -0
  39. package/skill-packs/electron/skills/electron-egg/api/renderer-api.md +62 -0
  40. package/skill-packs/electron/skills/electron-egg/api/window-api.md +64 -0
  41. package/skill-packs/electron/skills/electron-egg/examples/features/ipc-communication.md +84 -0
  42. package/skill-packs/electron/skills/electron-egg/examples/features/main-process.md +89 -0
  43. package/skill-packs/electron/skills/electron-egg/examples/features/renderer-process.md +74 -0
  44. package/skill-packs/electron/skills/electron-egg/examples/guide/build.md +77 -0
  45. package/skill-packs/electron/skills/electron-egg/examples/guide/configuration.md +88 -0
  46. package/skill-packs/electron/skills/electron-egg/examples/guide/installation.md +66 -0
  47. package/skill-packs/electron/skills/electron-egg/examples/guide/intro.md +47 -0
  48. package/skill-packs/electron/skills/electron-egg/examples/guide/project-structure.md +73 -0
  49. package/skill-packs/electron/skills/electron-egg/examples/guide/quick-start.md +78 -0
  50. package/skill-packs/electron/skills/electron-egg/templates/configuration.md +63 -0
  51. package/skill-packs/electron/skills/electron-egg/templates/installation.md +42 -0
  52. package/skill-packs/electron/skills/electron-egg/templates/project-setup.md +75 -0
  53. package/skill-packs/flutter/pack.json +9 -0
  54. package/skill-packs/flutter/skills/flutter/LICENSE.txt +202 -0
  55. package/skill-packs/flutter/skills/flutter/SKILL.md +127 -0
  56. package/skill-packs/flutter/skills/flutter-project-creater/LICENSE.txt +202 -0
  57. package/skill-packs/flutter/skills/flutter-project-creater/SKILL.md +106 -0
  58. package/skill-packs/threejs/pack.json +25 -0
  59. package/skill-packs/threejs/skills/README.md +95 -0
  60. package/skill-packs/threejs/skills/threejs-animation/SKILL.md +86 -0
  61. package/skill-packs/threejs/skills/threejs-animation/examples/workflow-mixer-action.md +20 -0
  62. package/skill-packs/threejs/skills/threejs-animation/references/official-sections.md +19 -0
  63. package/skill-packs/threejs/skills/threejs-audio/SKILL.md +112 -0
  64. package/skill-packs/threejs/skills/threejs-audio/examples/workflow-positional-audio.md +15 -0
  65. package/skill-packs/threejs/skills/threejs-audio/references/official-sections.md +16 -0
  66. package/skill-packs/threejs/skills/threejs-camera/SKILL.md +96 -0
  67. package/skill-packs/threejs/skills/threejs-camera/examples/workflow-perspective-resize.md +13 -0
  68. package/skill-packs/threejs/skills/threejs-controls/SKILL.md +101 -0
  69. package/skill-packs/threejs/skills/threejs-controls/examples/workflow-orbit-damping.md +15 -0
  70. package/skill-packs/threejs/skills/threejs-dev-setup/SKILL.md +102 -0
  71. package/skill-packs/threejs/skills/threejs-dev-setup/examples/workflow-scaffold.md +24 -0
  72. package/skill-packs/threejs/skills/threejs-geometries/SKILL.md +108 -0
  73. package/skill-packs/threejs/skills/threejs-geometries/examples/workflow-extrude-shape.md +13 -0
  74. package/skill-packs/threejs/skills/threejs-helpers/SKILL.md +103 -0
  75. package/skill-packs/threejs/skills/threejs-helpers/examples/workflow-light-camera-helpers.md +13 -0
  76. package/skill-packs/threejs/skills/threejs-lights/SKILL.md +103 -0
  77. package/skill-packs/threejs/skills/threejs-lights/examples/workflow-directional-shadow.md +17 -0
  78. package/skill-packs/threejs/skills/threejs-loaders/SKILL.md +89 -0
  79. package/skill-packs/threejs/skills/threejs-loaders/examples/workflow-gltf-draco.md +22 -0
  80. package/skill-packs/threejs/skills/threejs-loaders/references/official-sections.md +27 -0
  81. package/skill-packs/threejs/skills/threejs-materials/SKILL.md +102 -0
  82. package/skill-packs/threejs/skills/threejs-materials/examples/workflow-pbr-transparent.md +15 -0
  83. package/skill-packs/threejs/skills/threejs-math/SKILL.md +102 -0
  84. package/skill-packs/threejs/skills/threejs-math/examples/workflow-ray-aabb.md +11 -0
  85. package/skill-packs/threejs/skills/threejs-node-tsl/SKILL.md +83 -0
  86. package/skill-packs/threejs/skills/threejs-node-tsl/examples/workflow-tsl-entry.md +13 -0
  87. package/skill-packs/threejs/skills/threejs-node-tsl/references/official-links.md +8 -0
  88. package/skill-packs/threejs/skills/threejs-node-tsl/references/tsl-vs-classic.md +23 -0
  89. package/skill-packs/threejs/skills/threejs-objects/SKILL.md +111 -0
  90. package/skill-packs/threejs/skills/threejs-objects/examples/workflow-raycaster-pick.md +17 -0
  91. package/skill-packs/threejs/skills/threejs-postprocessing/SKILL.md +116 -0
  92. package/skill-packs/threejs/skills/threejs-postprocessing/examples/workflow-composer-bloom.md +15 -0
  93. package/skill-packs/threejs/skills/threejs-renderers/SKILL.md +91 -0
  94. package/skill-packs/threejs/skills/threejs-renderers/examples/workflow-renderer-resize.md +21 -0
  95. package/skill-packs/threejs/skills/threejs-renderers/references/official-sections.md +14 -0
  96. package/skill-packs/threejs/skills/threejs-scenes/SKILL.md +90 -0
  97. package/skill-packs/threejs/skills/threejs-scenes/examples/workflow-fog-background.md +13 -0
  98. package/skill-packs/threejs/skills/threejs-textures/SKILL.md +83 -0
  99. package/skill-packs/threejs/skills/threejs-textures/examples/workflow-pmrem-env.md +19 -0
  100. package/skill-packs/threejs/skills/threejs-webxr/SKILL.md +104 -0
  101. package/skill-packs/threejs/skills/threejs-webxr/examples/workflow-xr-button.md +15 -0
  102. package/skills/codex-conductor/SKILL.md +4 -4
  103. package/skills/gemini-conductor/SKILL.md +3 -2
  104. package/skills/telegram-notify/SKILL.md +1 -0
  105. package/skills/trello-sync/SKILL.md +7 -0
  106. package/templates/project-identity/android.json +26 -1
  107. package/templates/project-identity/backend-nestjs.json +26 -1
  108. package/templates/project-identity/expo.json +26 -1
  109. package/templates/project-identity/ios.json +26 -1
  110. package/templates/project-identity/web-nextjs.json +26 -1
@@ -0,0 +1,104 @@
1
+ ---
2
+ name: threejs-webxr
3
+ description: "WebXR integration for three.js: WebXRManager and XRManager on the renderer, session initialization patterns, VRButton and ARButton helpers, XRControllerModelFactory and hand model families, XREstimatedLight, XRPlanes, and related addon Webxr utilities. Use for immersive sessions and controller/hand tracking—not for standard desktop camera projection (threejs-camera) or composer post effects (threejs-postprocessing)."
4
+ ---
5
+
6
+ ## When to use this skill
7
+
8
+ **ALWAYS use this skill when the user mentions:**
9
+
10
+ - Entering VR/AR, `navigator.xr`, reference spaces, session `requestAnimationFrame` loop via renderer
11
+ - `VRButton`, `ARButton`, `XRButton` creation patterns from examples
12
+ - Controller models, hand tracking meshes, estimated real-world lighting probes
13
+
14
+ **IMPORTANT: webxr vs renderers vs camera**
15
+
16
+ | Topic | Skill |
17
+ |-------|--------|
18
+ | Enable XR on renderer, sizing | **threejs-renderers** (basics) + **threejs-webxr** (session) |
19
+ | Desktop projection | **threejs-camera** |
20
+
21
+ **Trigger phrases include:**
22
+
23
+ - "WebXR", "VRButton", "ARButton", "XRControllerModelFactory", "hand tracking"
24
+ - "虚拟现实", "增强现实", "沉浸式"
25
+
26
+ ## How to use this skill
27
+
28
+ 1. **HTTPS** requirement and feature detection for XR availability.
29
+ 2. **Buttons**: use official button factories to create DOM entry points; handle session end.
30
+ 3. **Renderer**: call `renderer.xr.enabled = true` patterns per docs; prefer `setAnimationLoop` for XR loops.
31
+ 4. **Controllers**: attach models via factories; read gamepad axes/buttons carefully with fallbacks.
32
+ 5. **Hands**: opt-in hand models when runtime supports; performance implications.
33
+ 6. **Lighting**: `XREstimatedLight` for AR realism—combine with **threejs-lights** cautiously.
34
+ 7. **Exit**: restore non-XR render loop and resize handling on session end.
35
+
36
+ ### Example: VR session with error handling
37
+
38
+ ```javascript
39
+ import { VRButton } from 'three/addons/webxr/VRButton.js';
40
+
41
+ // Feature detection and session start
42
+ if ('xr' in navigator) {
43
+ renderer.xr.enabled = true;
44
+ document.body.appendChild(VRButton.createButton(renderer));
45
+
46
+ renderer.xr.addEventListener('sessionstart', () => {
47
+ console.log('XR session started');
48
+ });
49
+ renderer.xr.addEventListener('sessionend', () => {
50
+ console.log('XR session ended — restoring desktop view');
51
+ });
52
+ } else {
53
+ console.warn('WebXR not supported in this browser');
54
+ }
55
+ ```
56
+
57
+ See [examples/workflow-xr-button.md](examples/workflow-xr-button.md).
58
+
59
+ ## Doc map (official)
60
+
61
+ | Docs section | Representative links |
62
+ |--------------|----------------------|
63
+ | Renderer XR | https://threejs.org/docs/WebXRManager.html |
64
+ | Webxr addons | https://threejs.org/docs/VRButton.html |
65
+ | Webxr addons | https://threejs.org/docs/ARButton.html |
66
+ | Webxr addons | https://threejs.org/docs/XRControllerModelFactory.html |
67
+
68
+ ## Scope
69
+
70
+ - **In scope:** Documented WebXR manager + listed addons for buttons/controllers/hands/planes.
71
+ - **Out of scope:** Store submission, OpenXR runtime specifics, custom native layers.
72
+
73
+ ## Common pitfalls and best practices
74
+
75
+ - Desktop testing requires XR emulation or hardware; fail gracefully.
76
+ - Mismatched reference space causes floor offset—validate stage vs local-floor.
77
+ - Heavy post chains may not meet VR frame time—profile aggressively.
78
+
79
+ ## Documentation and version
80
+
81
+ WebXR entry points span **Addons → Webxr** and renderer [`WebXRManager`](https://threejs.org/docs/WebXRManager.html) in [three.js docs](https://threejs.org/docs/). Browser and device capabilities vary—answers should cite the official example name and three.js version when possible.
82
+
83
+ ## Agent response checklist
84
+
85
+ When answering under this skill, prefer responses that:
86
+
87
+ 1. Link `WebXRManager`, `VRButton`, `ARButton`, or controller factories as relevant.
88
+ 2. Use `setAnimationLoop` patterns with **threejs-renderers** for XR render loops.
89
+ 3. Avoid duplicating desktop **threejs-camera** projection advice for XR eyes.
90
+ 4. Mention reference space choice (local-floor, etc.) at a high level with docs link.
91
+ 5. Flag performance interaction with **threejs-postprocessing** in VR.
92
+
93
+ ## References
94
+
95
+ - https://threejs.org/docs/WebXRManager.html
96
+ - https://threejs.org/docs/VRButton.html
97
+ - https://threejs.org/docs/ARButton.html
98
+ - https://threejs.org/docs/XRControllerModelFactory.html
99
+
100
+ ## Keywords
101
+
102
+ **English:** webxr, vr, ar, xr session, controller, hand tracking, three.js
103
+
104
+ **中文:** WebXR、VR、AR、VRButton、手柄、手部追踪、沉浸式、three.js
@@ -0,0 +1,15 @@
1
+ # Workflow: VR entry button
2
+
3
+ ## Steps
4
+
5
+ 1. Ensure site served over HTTPS and `navigator.xr` checked.
6
+
7
+ 2. `document.body.appendChild(VRButton.createButton(renderer));` per [VRButton](https://threejs.org/docs/VRButton.html) for your three version.
8
+
9
+ 3. `renderer.xr.enabled = true;` Use `renderer.setAnimationLoop` callback for render + updates.
10
+
11
+ 4. Handle session end to restore window `resize` behavior if needed.
12
+
13
+ 5. For AR passthrough use `ARButton` instead—see **threejs-webxr** doc map.
14
+
15
+ Always verify against the official example that matches your three.js revision.
@@ -38,7 +38,7 @@ Codex CLI = Inspector — debug, review, verify, test
38
38
 
39
39
  ```bash
40
40
  which codex || command -v codex
41
- # If not installed: npm i -g @openai/codex
41
+ # NOTE: If not installed, IMMEDIATELY fallback to IDE context. DO NOT ask user to install.
42
42
  ```
43
43
 
44
44
  ## 🎯 Trigger Conditions
@@ -88,9 +88,9 @@ cd <PROJECT_ROOT> && timeout 180 codex exec \
88
88
  | Event | Action |
89
89
  |-------|--------|
90
90
  | Success | Parse → save report → summarize → suggest fixes |
91
- | Timeout | "⏳ Timed out (>120s)" → fallback Antigravity-only |
92
- | Error | Check `codex --version` suggest install |
93
- | Not installed | Ask user to install |
91
+ | Timeout | "⏳ Timed out (>120s)" → fallback Antigravity-only smoothly |
92
+ | Error | Fallback Antigravity-only smoothly. Do NOT ask user to install |
93
+ | Not installed | Fallback Antigravity-only smoothly. Do NOT ask user to install |
94
94
 
95
95
  ## 📁 Report Structure
96
96
 
@@ -194,8 +194,9 @@ on_timeout:
194
194
  - Fall back to Antigravity-only analysis
195
195
 
196
196
  on_error:
197
- - Log: "⚠️ CLI invocation failed, continuing without conductor"
198
- - Do NOT block the workflow — CLI is enhancement, not dependency
197
+ - Log: "⚠️ CLI invocation failed or not set up, continuing without conductor"
198
+ - IMMEDIATELY fallback to Antigravity-only mode
199
+ - Do NOT ask the user to install or authenticate the CLI. It is strictly optional
199
200
  ```
200
201
 
201
202
  ---
@@ -55,3 +55,4 @@ awkit tg send --chat -100xxx --topic 456 --parse-mode md "**Done!**"
55
55
  3. **Use Markdown** for formatted messages (`--parse-mode md`)
56
56
  4. **Config location**: `~/.gemini/antigravity/.tg_config.json`
57
57
  5. If `awkit tg send` returns error about config, tell user to run `awkit tg setup`
58
+ 6. **Per-Project Automation**: AWKit CLI automatically reads `.project-identity` > `automation.telegram` to override `chatId`/`topicId` per project, or completely skip sending if `enabled: false`.
@@ -90,6 +90,13 @@ Lần 3 (vẫn lỗi): báo user "Trello chưa được cấu hình. Vui lòng c
90
90
  ### Tự Động Hóa Qua `awkit trello` (BẮT BUỘC)
91
91
 
92
92
  AI không cần tự inject ENV hay tìm kiếm cấu hình. Công cụ lệnh `awkit trello` v1.3.0+ sẽ TỰ ĐỘNG đọc từ env vars và `.project-identity`. MỌI thao tác Trello phải đi qua `awkit trello`.
93
+
94
+ > **Proactive Auto-Sync Rule:** Nếu `.project-identity` có `automation.trello.autoSync: true`, AI **BẮT BUỘC** tự động gọi lệnh Trello tại các trigger points mà không cần user yêu cầu:
95
+ > - Từng task complete → `awkit trello complete "<tên>"` + comment progress.
96
+ > - Đạt milestone (chuyển Gate, đạt 40/60/80%) → `awkit trello comment`.
97
+ > - Gặp lỗi Blocked → `awkit trello block`.
98
+ > *(Nếu `autoSync: false` hoặc không có config, AI tiếp tục chế độ bị động).*
99
+
93
100
  ---
94
101
 
95
102
  ## 📚 Command Reference
@@ -24,5 +24,30 @@
24
24
  "lineLength": 120
25
25
  },
26
26
  "createdDate": "{{DATE}}",
27
- "lastUpdated": "{{DATE}}"
27
+ "lastUpdated": "{{DATE}}",
28
+ "automation": {
29
+ "telegram": {
30
+ "enabled": true,
31
+ "chatId": "",
32
+ "topicId": "",
33
+ "triggers": {
34
+ "git_push": true,
35
+ "task_complete": false,
36
+ "deploy": true
37
+ }
38
+ },
39
+ "trello": {
40
+ "enabled": true,
41
+ "autoSync": true,
42
+ "triggers": {
43
+ "task_complete": true,
44
+ "milestone": true,
45
+ "blocked": true
46
+ }
47
+ },
48
+ "git": {
49
+ "autoCommit": true,
50
+ "autoPush": true
51
+ }
52
+ }
28
53
  }
@@ -20,5 +20,30 @@
20
20
  "lineLength": 100
21
21
  },
22
22
  "createdDate": "{{DATE}}",
23
- "lastUpdated": "{{DATE}}"
23
+ "lastUpdated": "{{DATE}}",
24
+ "automation": {
25
+ "telegram": {
26
+ "enabled": true,
27
+ "chatId": "",
28
+ "topicId": "",
29
+ "triggers": {
30
+ "git_push": true,
31
+ "task_complete": false,
32
+ "deploy": true
33
+ }
34
+ },
35
+ "trello": {
36
+ "enabled": true,
37
+ "autoSync": true,
38
+ "triggers": {
39
+ "task_complete": true,
40
+ "milestone": true,
41
+ "blocked": true
42
+ }
43
+ },
44
+ "git": {
45
+ "autoCommit": true,
46
+ "autoPush": true
47
+ }
48
+ }
24
49
  }
@@ -23,5 +23,30 @@
23
23
  "lineLength": 100
24
24
  },
25
25
  "createdDate": "{{DATE}}",
26
- "lastUpdated": "{{DATE}}"
26
+ "lastUpdated": "{{DATE}}",
27
+ "automation": {
28
+ "telegram": {
29
+ "enabled": true,
30
+ "chatId": "",
31
+ "topicId": "",
32
+ "triggers": {
33
+ "git_push": true,
34
+ "task_complete": false,
35
+ "deploy": true
36
+ }
37
+ },
38
+ "trello": {
39
+ "enabled": true,
40
+ "autoSync": true,
41
+ "triggers": {
42
+ "task_complete": true,
43
+ "milestone": true,
44
+ "blocked": true
45
+ }
46
+ },
47
+ "git": {
48
+ "autoCommit": true,
49
+ "autoPush": true
50
+ }
51
+ }
27
52
  }
@@ -23,5 +23,30 @@
23
23
  "lineLength": 120
24
24
  },
25
25
  "createdDate": "{{DATE}}",
26
- "lastUpdated": "{{DATE}}"
26
+ "lastUpdated": "{{DATE}}",
27
+ "automation": {
28
+ "telegram": {
29
+ "enabled": true,
30
+ "chatId": "",
31
+ "topicId": "",
32
+ "triggers": {
33
+ "git_push": true,
34
+ "task_complete": false,
35
+ "deploy": true
36
+ }
37
+ },
38
+ "trello": {
39
+ "enabled": true,
40
+ "autoSync": true,
41
+ "triggers": {
42
+ "task_complete": true,
43
+ "milestone": true,
44
+ "blocked": true
45
+ }
46
+ },
47
+ "git": {
48
+ "autoCommit": true,
49
+ "autoPush": true
50
+ }
51
+ }
27
52
  }
@@ -20,5 +20,30 @@
20
20
  "lineLength": 100
21
21
  },
22
22
  "createdDate": "{{DATE}}",
23
- "lastUpdated": "{{DATE}}"
23
+ "lastUpdated": "{{DATE}}",
24
+ "automation": {
25
+ "telegram": {
26
+ "enabled": true,
27
+ "chatId": "",
28
+ "topicId": "",
29
+ "triggers": {
30
+ "git_push": true,
31
+ "task_complete": false,
32
+ "deploy": true
33
+ }
34
+ },
35
+ "trello": {
36
+ "enabled": true,
37
+ "autoSync": true,
38
+ "triggers": {
39
+ "task_complete": true,
40
+ "milestone": true,
41
+ "blocked": true
42
+ }
43
+ },
44
+ "git": {
45
+ "autoCommit": true,
46
+ "autoPush": true
47
+ }
48
+ }
24
49
  }