@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,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,106 @@
1
+ ---
2
+ name: flutter-project-creater
3
+ description: "Provides one-command project creation for Flutter including project initialization, configuration, and template generation. Use when the user asks about creating Flutter projects, needs to initialize a new Flutter project, or generate Flutter project structure."
4
+ license: Complete terms in LICENSE.txt
5
+ ---
6
+
7
+ ## When to use this skill
8
+
9
+ Use this skill whenever the user wants to:
10
+ - Create a new Flutter project from scratch
11
+ - Choose target platforms (Android, iOS, web, desktop)
12
+ - Configure organization name and package identifier
13
+ - Set up the initial project structure with dependencies
14
+ - Generate a Flutter project with a specific template
15
+
16
+ ## How to use this skill
17
+
18
+ ### Workflow
19
+
20
+ 1. **Gather requirements**: project name, organization, target platforms, and any preferred packages
21
+ 2. **Run `flutter create`** with the appropriate flags
22
+ 3. **Configure `pubspec.yaml`** with initial dependencies and assets
23
+ 4. **Verify** the project builds and runs with `flutter run`
24
+
25
+ ### 1. Project Creation
26
+
27
+ ```bash
28
+ # Basic project creation
29
+ flutter create my_app
30
+
31
+ # With organization and platform selection
32
+ flutter create my_app --org com.example --platforms android,ios,web
33
+
34
+ # Create a package or plugin
35
+ flutter create --template=package my_package
36
+ flutter create --template=plugin my_plugin --platforms android,ios
37
+ ```
38
+
39
+ ### 2. Project Structure
40
+
41
+ ```
42
+ my_app/
43
+ ├── lib/
44
+ │ └── main.dart # Entry point
45
+ ├── test/
46
+ │ └── widget_test.dart # Widget tests
47
+ ├── android/ # Android native code
48
+ ├── ios/ # iOS native code
49
+ ├── pubspec.yaml # Dependencies and metadata
50
+ └── README.md
51
+ ```
52
+
53
+ ### 3. Configure pubspec.yaml
54
+
55
+ ```yaml
56
+ name: my_app
57
+ description: A new Flutter application.
58
+ version: 1.0.0+1
59
+
60
+ environment:
61
+ sdk: '>=3.0.0 <4.0.0'
62
+
63
+ dependencies:
64
+ flutter:
65
+ sdk: flutter
66
+
67
+ dev_dependencies:
68
+ flutter_test:
69
+ sdk: flutter
70
+ flutter_lints: ^3.0.0
71
+
72
+ flutter:
73
+ uses-material-design: true
74
+ assets:
75
+ - assets/images/
76
+ ```
77
+
78
+ ### 4. Initial Run
79
+
80
+ ```bash
81
+ # Install dependencies
82
+ flutter pub get
83
+
84
+ # Run on connected device
85
+ flutter run
86
+
87
+ # Build release APK
88
+ flutter build apk --release
89
+ ```
90
+
91
+ ## Best Practices
92
+
93
+ - Use a consistent organization name (`--org`) across projects
94
+ - Lock dependency versions in `pubspec.yaml` for reproducible builds
95
+ - Remove default comments and sample code before expanding the project
96
+ - Run `flutter doctor` to verify the development environment is set up correctly
97
+ - Set up CI with `flutter test` and `flutter build` early in the project lifecycle
98
+
99
+ ## Resources
100
+
101
+ - Getting started: https://docs.flutter.dev/get-started
102
+ - CLI reference: https://docs.flutter.dev/reference/flutter-cli
103
+
104
+ ## Keywords
105
+
106
+ flutter create, project creation, initialization, cross-platform, pubspec, scaffolding, Flutter CLI
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "threejs",
3
+ "auto_install": false,
4
+ "description": "Comprehensive 3D web rendering capabilities using Three.js",
5
+ "skills": [
6
+ "threejs-animation",
7
+ "threejs-audio",
8
+ "threejs-camera",
9
+ "threejs-controls",
10
+ "threejs-dev-setup",
11
+ "threejs-geometries",
12
+ "threejs-helpers",
13
+ "threejs-lights",
14
+ "threejs-loaders",
15
+ "threejs-materials",
16
+ "threejs-math",
17
+ "threejs-node-tsl",
18
+ "threejs-objects",
19
+ "threejs-postprocessing",
20
+ "threejs-renderers",
21
+ "threejs-scenes",
22
+ "threejs-textures",
23
+ "threejs-webxr"
24
+ ]
25
+ }
@@ -0,0 +1,95 @@
1
+ # threejs-skills
2
+
3
+ 基于 [three.js 官方文档](https://threejs.org/docs/)(Core / Addons / TSL / Global)与 [Manual](https://threejs.org/manual/) 的 Agent Skills 族。结构与**叙述深度**对齐本仓库 [document-skills/mermaid/SKILL.md](../document-skills/mermaid/SKILL.md):长 `description`、分层触发词、**与兄弟技能的分流规则**、分步骤工作流、`examples/` 与 `references/` 渐进式披露;每个 `SKILL.md` 另含 **Documentation and version**、**Agent response checklist** 及 **中英 Keywords**(与 mermaid 的英文/中文关键词风格一致)。元数据与目录约定见 [agent-skills-spec.md](../../spec/agent-skills-spec.md)。
4
+
5
+ ## 深度标准(与 mermaid 对齐)
6
+
7
+ | 要素 | 要求 |
8
+ |------|------|
9
+ | YAML `description` | 多句英文,含关键 API 族名、触发场景、与相邻技能一句区分;**≤1024 字符** |
10
+ | When to use | `ALWAYS` / `Use when`、中英文触发短语、**IMPORTANT** 分流(如 materials vs node-tsl) |
11
+ | How to use | ≥5 步或分场景子步骤;显式指向本目录 `examples/` 中具体文件(若已建) |
12
+ | Doc map | 表格:**官方侧栏分组 + ≥3 条** `https://threejs.org/docs/` 链接 |
13
+ | Scope | In / Out;Out 指向应使用的 `threejs-*` 技能 id |
14
+ | Common pitfalls | 3–5 条易错点(color space、透明排序、mixer.update、WebGPU 路径等按主题选) |
15
+ | Documentation and version | 与 [three.js docs](https://threejs.org/docs/) 及用户 lockfile 版本对齐;大版本升级查 release notes |
16
+ | Agent response checklist | 与 [document-skills/mermaid/SKILL.md](../document-skills/mermaid/SKILL.md) 的「输出要求」类似:链官方页、分流兄弟技能、dispose、不臆造 API |
17
+ | Keywords | **English** + **中文** 两行,便于中英检索 |
18
+ | References(分层) | Manual 入口、`docs/` 侧栏分组、`#` 锚点、必要时 [Global](https://threejs.org/docs/#Global) 常量;长表放 `references/` |
19
+ | 篇幅 | 单 `SKILL.md` 建议 ≤200–350 行;类名长表放 `references/official-sections.md` |
20
+
21
+ ## 文件约定
22
+
23
+ ```
24
+ threejs-<topic>/
25
+ ├── SKILL.md
26
+ ├── examples/
27
+ │ └── workflow-<scenario>.md # 步骤 + 片段 + 指向官方示例(不整库粘贴)
28
+ └── references/
29
+ ├── official-sections.md # 按需:docs 类名与链接表(animation/loaders/renderers/audio 等)
30
+ └── ... # 如 node-tsl 的 tsl-vs-classic.md、official-links.md
31
+ ```
32
+
33
+ ## 技能数量:18(合并策略)
34
+
35
+ | 决策 | 说明 |
36
+ |------|------|
37
+ | **并入 `threejs-objects`** | `Raycaster`、`Layers`、`EventDispatcher` 与拾取流程在本技能中成章 |
38
+ | **并入 `threejs-geometries`** | `Curve` / `Path` / `Shape` / `ExtrudeGeometry`、Addons NURBS 等在 Scope 与 Doc map 中覆盖 |
39
+ | **独立 `threejs-webxr`** | 不并入 `threejs-renderers`,便于沉浸式任务发现 |
40
+
41
+ ## 技能索引
42
+
43
+ | # | 目录名 | 主题 |
44
+ |---|--------|------|
45
+ | 1 | [threejs-dev-setup](threejs-dev-setup/SKILL.md) | 构建、导入、Manual、TypeScript、`examples/jsm` |
46
+ | 2 | [threejs-scenes](threejs-scenes/SKILL.md) | `Scene`、`Fog`、`background` |
47
+ | 3 | [threejs-camera](threejs-camera/SKILL.md) | 相机与投影 |
48
+ | 4 | [threejs-lights](threejs-lights/SKILL.md) | 光源与阴影 |
49
+ | 5 | [threejs-materials](threejs-materials/SKILL.md) | 经典材质(非 Node) |
50
+ | 6 | [threejs-node-tsl](threejs-node-tsl/SKILL.md) | Nodes、TSL、`NodeMaterial` |
51
+ | 7 | [threejs-textures](threejs-textures/SKILL.md) | 纹理与采样、PMREM |
52
+ | 8 | [threejs-geometries](threejs-geometries/SKILL.md) | 几何体、Buffer、曲线/挤出 |
53
+ | 9 | [threejs-math](threejs-math/SKILL.md) | 数学类型与空间查询 |
54
+ | 10 | [threejs-objects](threejs-objects/SKILL.md) | 场景图、Mesh、**交互拾取** |
55
+ | 11 | [threejs-animation](threejs-animation/SKILL.md) | 动画混合与轨道 |
56
+ | 12 | [threejs-audio](threejs-audio/SKILL.md) | 空间音频 |
57
+ | 13 | [threejs-loaders](threejs-loaders/SKILL.md) | 加载与导出 |
58
+ | 14 | [threejs-renderers](threejs-renderers/SKILL.md) | WebGL/WebGPU、RenderTarget |
59
+ | 15 | [threejs-postprocessing](threejs-postprocessing/SKILL.md) | EffectComposer 管线 |
60
+ | 16 | [threejs-helpers](threejs-helpers/SKILL.md) | 调试辅助体 |
61
+ | 17 | [threejs-controls](threejs-controls/SKILL.md) | Orbit / Transform 等控件 |
62
+ | 18 | [threejs-webxr](threejs-webxr/SKILL.md) | WebXR |
63
+
64
+ ## 技能互查(分流速览)
65
+
66
+ | 若用户任务偏向… | 优先技能 | 勿与谁混淆 |
67
+ |------------------|----------|------------|
68
+ | 着色图节点 / TSL / WebGPU 材质 | `threejs-node-tsl` | `threejs-materials`(仅经典材质) |
69
+ | 经典 PBR / ShaderMaterial | `threejs-materials` | `threejs-node-tsl` |
70
+ | 屏幕空间后期(composer passes) | `threejs-postprocessing` | `threejs-renderers`(核心渲染器设置) |
71
+ | 节点化后期(core PostProcessing) | `threejs-node-tsl` + `threejs-renderers` | 仅 composer 的 addon 文档 |
72
+ | HDR / KTX2 / Draco / glTF 进出 | `threejs-loaders` | `threejs-textures`(GPU 纹理对象本身) |
73
+ | 纹理参数 / PMREM | `threejs-textures` | `threejs-loaders`(解码器与文件 IO) |
74
+ | 雾与背景概念 | `threejs-scenes` | 完整 HDR 工作流需 loaders + textures |
75
+ | 射线拾取 / 图层 | `threejs-objects` | `threejs-math`(仅数学对象) |
76
+ | VR/AR 会话与手柄 | `threejs-webxr` | `threejs-camera`(非 XR 投影细节) |
77
+ | 插值与关键帧轨道 | `threejs-animation` | `threejs-math`(Interpolant 归属动画) |
78
+
79
+ ## 验收标准(与规划一致)
80
+
81
+ 每个 `SKILL.md` 应满足:
82
+
83
+ - **description**:饱满、≤1024 字符;含关键 API 族名与相邻技能一句区分。
84
+ - **When to use**:含至少一处与兄弟技能的分流规则(IMPORTANT 表或段落)。
85
+ - **Doc map**:表格含 **≥3 条** 官方链接(`threejs.org/docs/`、`#` 锚点或 Manual 入口均可;`threejs-dev-setup` 可含 npm Manual)。
86
+ - **How to use**:**≥5 步** 或分场景子列表;显式指向本目录 `examples/*.md`(若存在)。
87
+ - **Scope**:In / Out;Out 中对应能力指向应使用的 `threejs-*` 技能 id。
88
+ - **篇幅**:单文件建议 **约 200–350 行**;类名长表放入 `references/official-sections.md` 等。
89
+
90
+ ## 外部规范链接
91
+
92
+ - [Agent Skills – Specification](https://agentskills.io/specification)
93
+ - [Claude – 如何创建自定义 Skills](https://support.claude.com/zh-CN/articles/12512198-如何创建自定义-skills)
94
+ - [three.js docs](https://threejs.org/docs/)
95
+ - [three.js manual](https://threejs.org/manual/)
@@ -0,0 +1,86 @@
1
+ ---
2
+ name: threejs-animation
3
+ description: "three.js keyframe animation system: AnimationMixer, AnimationClip, AnimationAction, KeyframeTrack variants, PropertyBinding, PropertyMixer, AnimationObjectGroup, AnimationUtils; mixing and crossfading clips, loop modes, timeScale, weight; addon AnimationClipCreator and CCDIKSolver for procedural rigs. Use when playing glTF clips, blending actions, or authoring procedural tracks; for skin deformation rigging on meshes see threejs-objects; for math interpolants without clips see threejs-math only when not tied to AnimationMixer."
4
+ ---
5
+
6
+ ## When to use this skill
7
+
8
+ **ALWAYS use this skill when the user mentions:**
9
+
10
+ - `AnimationMixer.update`, `AnimationAction` play/pause/stop, crossfade, synchronized clips
11
+ - `AnimationClip` from glTF or `AnimationClipCreator`, retargeting caveats at API level
12
+ - Keyframe tracks: position/rotation/scale/color tracks, boolean/string tracks where applicable
13
+ - IK: `CCDIKSolver` / `CCDIKHelper` from addons
14
+
15
+ **IMPORTANT: animation vs objects**
16
+
17
+ - **threejs-animation** = time evaluation and tracks.
18
+ - **threejs-objects** = `SkinnedMesh`/`Skeleton` attachment, bind pose—mesh side.
19
+
20
+ **Trigger phrases include:**
21
+
22
+ - "AnimationMixer", "AnimationAction", "AnimationClip", "crossFade", "KeyframeTrack"
23
+ - "动画混合", "骨骼动画", "剪辑", "淡入淡出"
24
+
25
+ ## How to use this skill
26
+
27
+ 1. **Collect clips** from `gltf.animations` or create with utilities / `AnimationClipCreator`.
28
+ 2. **Create mixer** bound to root object (often `scene` or rig root).
29
+ 3. **Create actions** per clip via `mixer.clipAction(clip)`; configure loop mode (`LoopOnce`, `LoopRepeat`, `LoopPingPong`).
30
+ 4. **Per frame**: compute delta seconds (use `Clock` from core—documented under Core in docs index), call `mixer.update(delta)`.
31
+ 5. **Blending**: adjust `weight`, `crossFadeTo`, `enabled` flags; watch for additive vs full replacement semantics per docs.
32
+ 6. **PropertyBinding**: understand path strings targeting bones/morphs—errors often from wrong object names.
33
+ 7. **IK addon**: attach solver after base animation if using CCD IK from examples.
34
+
35
+ See [examples/workflow-mixer-action.md](examples/workflow-mixer-action.md).
36
+
37
+ ## Doc map (official)
38
+
39
+ | Docs section | Representative links |
40
+ |--------------|----------------------|
41
+ | Animation (index) | https://threejs.org/docs/#Animation |
42
+ | Action | https://threejs.org/docs/AnimationAction.html |
43
+ | Mixer | https://threejs.org/docs/AnimationMixer.html |
44
+ | Clip | https://threejs.org/docs/AnimationClip.html |
45
+ | Tracks | https://threejs.org/docs/KeyframeTrack.html |
46
+
47
+ More: [references/official-sections.md](references/official-sections.md).
48
+
49
+ ## Scope
50
+
51
+ - **In scope:** Core Animation module, keyframe pipeline, listed addons for clip creation and IK.
52
+ - **Out of scope:** DCC export best practices; physics ragdoll; audio sync (link conceptually only).
53
+
54
+ ## Common pitfalls and best practices
55
+
56
+ - Forgetting `mixer.update` freezes animation; double `update` per frame speeds up.
57
+ - Mixing clips with incompatible hierarchies causes violent pops—validate bind pose.
58
+ - Root motion must be handled in game logic if not baked—document explicitly.
59
+ - Large track counts cost CPU—strip unused tracks in preprocessing when possible.
60
+
61
+ ## Documentation and version
62
+
63
+ Behavior of `AnimationMixer`, tracks, and glTF animation import can change between three.js majors. Treat the [Animation](https://threejs.org/docs/#Animation) section of the [docs index](https://threejs.org/docs/) as authoritative for the user’s installed version; when upgrading, check the three.js repository release notes and migration notes for renamed properties or loader output.
64
+
65
+ ## Agent response checklist
66
+
67
+ When answering under this skill, prefer responses that:
68
+
69
+ 1. Cite the exact class (`AnimationMixer`, `AnimationAction`, etc.) or addon (`CCDIKSolver`) from the official docs.
70
+ 2. Include at least one `https://threejs.org/docs/...` link (e.g. [AnimationAction](https://threejs.org/docs/AnimationAction.html)).
71
+ 3. Relate clips to `SkinnedMesh` / skeleton via **threejs-objects** when deformation is involved.
72
+ 4. Mention `mixer.update(delta)` and a stable time source (`Clock`) explicitly.
73
+ 5. Reference official **examples** by name only (no full file paste).
74
+
75
+ ## References
76
+
77
+ - https://threejs.org/docs/#Animation
78
+ - https://threejs.org/docs/AnimationMixer.html
79
+ - https://threejs.org/docs/AnimationAction.html
80
+ - https://threejs.org/docs/PropertyBinding.html
81
+
82
+ ## Keywords
83
+
84
+ **English:** animationmixer, animationaction, animationclip, keyframetrack, crossfade, skinning, propertybinding, three.js
85
+
86
+ **中文:** 动画混合、AnimationMixer、AnimationAction、关键帧、骨骼动画、剪辑、淡入淡出、three.js
@@ -0,0 +1,20 @@
1
+ # Workflow: play one glTF clip
2
+
3
+ ## Steps
4
+
5
+ 1. After **threejs-loaders** provides `gltf` with `animations` array non-empty.
6
+
7
+ 2. `const mixer = new THREE.AnimationMixer(gltf.scene);`
8
+
9
+ 3. `const clip = gltf.animations[0]; const action = mixer.clipAction(clip); action.play();`
10
+
11
+ 4. In the render loop: `const delta = clock.getDelta(); mixer.update(delta);` then render (**threejs-renderers**).
12
+
13
+ 5. To switch clips, prepare second `clipAction`, then `action.crossFadeTo(nextAction, duration, false)` per docs.
14
+
15
+ 6. Dispose mixer when discarding the rig if your app hot-swaps characters.
16
+
17
+ ## Anchor
18
+
19
+ - https://threejs.org/docs/AnimationMixer.html
20
+ - https://threejs.org/docs/AnimationAction.html
@@ -0,0 +1,19 @@
1
+ # Animation module (core)
2
+
3
+ - https://threejs.org/docs/AnimationAction.html
4
+ - https://threejs.org/docs/AnimationClip.html
5
+ - https://threejs.org/docs/AnimationMixer.html
6
+ - https://threejs.org/docs/AnimationObjectGroup.html
7
+ - https://threejs.org/docs/AnimationUtils.html
8
+ - https://threejs.org/docs/KeyframeTrack.html
9
+ - https://threejs.org/docs/VectorKeyframeTrack.html
10
+ - https://threejs.org/docs/QuaternionKeyframeTrack.html
11
+ - https://threejs.org/docs/PropertyBinding.html
12
+ - https://threejs.org/docs/PropertyMixer.html
13
+
14
+ **Addons**
15
+
16
+ - https://threejs.org/docs/AnimationClipCreator.html
17
+ - https://threejs.org/docs/CCDIKSolver.html
18
+
19
+ See https://threejs.org/docs/#Animation
@@ -0,0 +1,112 @@
1
+ ---
2
+ name: threejs-audio
3
+ description: "three.js audio spatialization: AudioListener attached to camera rig, Audio and PositionalAudio sources, AudioAnalyser for FFT/time-domain data, and integration with Web Audio API contexts; AudioLoader is referenced from threejs-loaders for file decoding. Use when placing 3D sound, configuring panner parameters, or building audio visualization; not a replacement for full game audio middleware."
4
+ ---
5
+
6
+ ## When to use this skill
7
+
8
+ **ALWAYS use this skill when the user mentions:**
9
+
10
+ - `AudioListener` on `Camera`, `Audio` vs `PositionalAudio`, distance models, refDistance/maxDistance/rolloff
11
+ - `AudioAnalyser` for visualization bars/spectrum
12
+ - Browser autoplay policies blocking audio start
13
+
14
+ **IMPORTANT: audio vs loaders**
15
+
16
+ | Step | Skill |
17
+ |------|--------|
18
+ | Decode mp3/ogg buffer | **threejs-loaders** (`AudioLoader`) |
19
+ | Spatial playback API | **threejs-audio** |
20
+
21
+ **Trigger phrases include:**
22
+
23
+ - "PositionalAudio", "AudioListener", "AudioAnalyser", "panner"
24
+ - "空间音频", "音量衰减", "频谱"
25
+
26
+ ## How to use this skill
27
+
28
+ 1. **Attach listener** to camera object so head-related audio follows view.
29
+ 2. **Validate AudioContext state** — check `listener.context.state` before playback; resume if suspended.
30
+ 3. **Create context** compatible with user gesture unlock patterns in browsers.
31
+ 4. **PositionalAudio** — set `refDistance`, `maxDistance`, `rolloffFactor`, `distanceModel` per docs.
32
+ 5. **Load buffer** via `AudioLoader` (**threejs-loaders**), then `positionalAudio.setBuffer`.
33
+ 6. **Analyser** — connect graph `listener.context.createAnalyser()` pathways per examples; watch performance.
34
+ 7. **Update** — audio nodes usually need no per-frame update unless following moving sources manually.
35
+
36
+ ### Example: PositionalAudio with context validation
37
+
38
+ ```javascript
39
+ import * as THREE from 'three';
40
+
41
+ const listener = new THREE.AudioListener();
42
+ camera.add(listener);
43
+
44
+ // Validate AudioContext state before attempting playback
45
+ function ensureAudioContext() {
46
+ if (listener.context.state === 'suspended') {
47
+ listener.context.resume();
48
+ }
49
+ }
50
+
51
+ // Resume on user gesture (required by browser autoplay policy)
52
+ document.addEventListener('click', ensureAudioContext, { once: true });
53
+
54
+ const sound = new THREE.PositionalAudio(listener);
55
+ const loader = new THREE.AudioLoader();
56
+ loader.load('sound.mp3', (buffer) => {
57
+ sound.setBuffer(buffer);
58
+ sound.setRefDistance(20);
59
+ sound.setRolloffFactor(1);
60
+ });
61
+ mesh.add(sound); // Attach to a scene object for spatial positioning
62
+ ```
63
+
64
+ See [examples/workflow-positional-audio.md](examples/workflow-positional-audio.md).
65
+
66
+ ## Doc map (official)
67
+
68
+ | Docs section | Representative links |
69
+ |--------------|----------------------|
70
+ | Audio | https://threejs.org/docs/AudioListener.html |
71
+ | Audio | https://threejs.org/docs/Audio.html |
72
+ | Audio | https://threejs.org/docs/PositionalAudio.html |
73
+ | Audio | https://threejs.org/docs/AudioAnalyser.html |
74
+
75
+ Extended list: [references/official-sections.md](references/official-sections.md).
76
+
77
+ ## Scope
78
+
79
+ - **In scope:** Core Audio classes, spatialization parameters, analyser usage overview.
80
+ - **Out of scope:** FMOD/Wwise-style authoring tools.
81
+
82
+ ## Common pitfalls and best practices
83
+
84
+ - Autoplay restrictions require user interaction to resume AudioContext.
85
+ - Too many positional sources hurt CPU—pool or LOD audio.
86
+ - Ensure world units match distance model expectations.
87
+
88
+ ## Documentation and version
89
+
90
+ Audio classes are under [Audio](https://threejs.org/docs/#Audio) in [three.js docs](https://threejs.org/docs/). Decoding buffers uses `AudioLoader`—see **threejs-loaders**. Browser Web Audio policies are external but must be mentioned when `AudioContext` is suspended.
91
+
92
+ ## Agent response checklist
93
+
94
+ When answering under this skill, prefer responses that:
95
+
96
+ 1. Link `AudioListener`, `PositionalAudio`, or `AudioAnalyser` as relevant.
97
+ 2. Delegate file loading of sound buffers to **threejs-loaders** (`AudioLoader`).
98
+ 3. Note autoplay / user-gesture requirements for resuming context.
99
+ 4. Relate distance attenuation to world units and **threejs-objects** placement.
100
+ 5. Avoid promising DAW-level mixing—stay within three.js audio scope.
101
+
102
+ ## References
103
+
104
+ - https://threejs.org/docs/#Audio
105
+ - https://threejs.org/docs/AudioListener.html
106
+ - https://threejs.org/docs/PositionalAudio.html
107
+
108
+ ## Keywords
109
+
110
+ **English:** audio, positional audio, listener, analyser, spatial sound, web audio, three.js
111
+
112
+ **中文:** 音频、空间音频、AudioListener、PositionalAudio、Web Audio、three.js