@lark-apaas/coding-steering 0.1.4 → 0.1.5
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/package.json
CHANGED
|
@@ -103,6 +103,14 @@ import { ErrorBoundary } from 'react-error-boundary'
|
|
|
103
103
|
3. **小写元素 = three.js 类**: `<mesh>` / `<boxGeometry>` / `<ambientLight>` 是 R3F 内置 (small-case = three.js constructor).
|
|
104
104
|
4. **大写元素 = React 组件**: `<OrbitControls>` / `<Float>` / `<Stars>` 是 drei 提供的封装.
|
|
105
105
|
|
|
106
|
+
## 🔴 加载本 skill 后, MUST 先读 references 再写代码
|
|
107
|
+
|
|
108
|
+
**本文件只是索引 + 通用铁律, 真正的 API 用法 / 实现细节都在 `references/*.md`.**
|
|
109
|
+
|
|
110
|
+
⛔ **严禁只读本文件就开始写 3D 代码** — 你对 R3F / drei 的训练数据可能过时或不全, 直接写大概率 API 用错 / 踩 React 19 坑 / 做出来不达预期 (例: 做"3D 游戏"却写成俯视平面 = 2D 观感).
|
|
111
|
+
|
|
112
|
+
写任何 3D 代码前, MUST 按下方「快速决策表」用 `read_file` 读当前场景对应的 references (**至少 `fundamentals.md` + 场景相关的 1-2 个**), 确认 API 与范式后再写. 读 references 是写代码的前置步骤, 不是出问题后才补.
|
|
113
|
+
|
|
106
114
|
## Reference 文档索引 — 按需读取
|
|
107
115
|
|
|
108
116
|
各 reference 文档在以下场景**必须先读取再编写代码**, 避免凭训练数据写过时 API:
|