@lark-apaas/coding-steering 0.1.37 → 0.1.38-alpha.20260821105518
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 +6 -6
- package/steering/design-html/skills/preflight/scripts/probe.sh +0 -0
- package/steering/nestjs-react-fullstack/skills/coding-guide/SKILL.md +0 -10
- package/steering/nestjs-react-fullstack/skills/nestjs-cache/SKILL.md +1 -0
- package/steering/nestjs-react-fullstack/skills_local/coding-guide/SKILL.md +7 -5
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/coding-steering",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.38-alpha.20260821105518",
|
|
4
4
|
"description": "Stack-specific steering content for miaoda-coding templates",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"steering"
|
|
8
8
|
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"lint:md": "markdownlint 'steering/**/*.md' --ignore 'steering/**/skills/**' --ignore 'steering/**/skills_common/**' --ignore 'steering/**/skills_local/**'"
|
|
11
|
+
},
|
|
9
12
|
"devDependencies": {
|
|
10
13
|
"markdownlint-cli": "^0.47.0"
|
|
11
14
|
},
|
|
@@ -17,8 +20,5 @@
|
|
|
17
20
|
"miaoda",
|
|
18
21
|
"coding-steering"
|
|
19
22
|
],
|
|
20
|
-
"license": "MIT"
|
|
21
|
-
|
|
22
|
-
"lint:md": "markdownlint 'steering/**/*.md' --ignore 'steering/**/skills/**' --ignore 'steering/**/skills_common/**' --ignore 'steering/**/skills_local/**'"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
23
|
+
"license": "MIT"
|
|
24
|
+
}
|
|
File without changes
|
|
@@ -513,8 +513,6 @@ async createArticle(@Req() req: Request, @Body() dto: CreateArticleDto) {
|
|
|
513
513
|
| 语音识别、音频转文字、STT | AI语音转文字 |
|
|
514
514
|
| 插件实例、PluginInstance、Capability | 通用插件调用 |
|
|
515
515
|
|
|
516
|
-
> ⚠️ **语义检索 / 相似推荐场景例外**:若需求是对**应用自有数据**做语义检索、向量检索、相似推荐、相关推荐、按内容找相似,**不要**用上表的「AI搜索总结 / AI文本转JSON / AI智能生文」等通用插件替代,必须召回 `/semantic-search`。上表的 AI 搜索/文本插件用于公网搜索、文本生成、结构化抽取,**不具备对自有数据库的向量检索能力**。
|
|
517
|
-
|
|
518
516
|
### 关键区分:多维表格 vs 数据库表
|
|
519
517
|
|
|
520
518
|
| 场景 | 判断 | 操作 |
|
|
@@ -617,14 +615,6 @@ import { axiosForBackend } from '@lark-apaas/client-toolkit/utils/getAxiosForBac
|
|
|
617
615
|
|
|
618
616
|
禁止未调用 Skill 直接编写表单/图表/表格代码。
|
|
619
617
|
|
|
620
|
-
### 检索 Skill 召回规则(强制执行)
|
|
621
|
-
|
|
622
|
-
| 场景 | Skill | 说明 |
|
|
623
|
-
|------|-------|------|
|
|
624
|
-
| 语义检索、向量检索、相似推荐、相关推荐、相似内容、按内容找相似、猜你喜欢 | `/semantic-search` | 对应用自有数据库的数据做向量检索 / 相似召回 |
|
|
625
|
-
|
|
626
|
-
禁止未调用 Skill 直接用「AI搜索总结 / AI文本转JSON / AI智能生文」等通用插件实现对自有数据的语义检索。
|
|
627
|
-
|
|
628
618
|
### 组件使用规范
|
|
629
619
|
|
|
630
620
|
- 优先使用 `client/src/components` 下已有组件(Card/Button/Badge 等)
|
|
@@ -443,7 +443,7 @@ NestJS 自己不读 env。直连 NestJS 端口 → header 缺失 → `req.userCo
|
|
|
443
443
|
|
|
444
444
|
- **框架**: React 19 + TypeScript
|
|
445
445
|
- **路由**: React Router DOM v6
|
|
446
|
-
- **样式**:
|
|
446
|
+
- **样式**: tailwindcss(语义化 token)为主,复杂 CSS 用 CSS Modules(`*.module.css`),动态计算值用行内 `style`
|
|
447
447
|
- **UI 组件库**: shadcn/ui — Use components for functionality, heavily style them
|
|
448
448
|
- **图表**: ReactECharts,**开发前必须调用 `/charts-skill`**
|
|
449
449
|
- **图标**: Lucide React(唯一图标库,禁止 Emoji 和其他图标库)
|
|
@@ -535,7 +535,7 @@ import { axiosForBackend } from '@lark-apaas/client-toolkit/utils/getAxiosForBac
|
|
|
535
535
|
```
|
|
536
536
|
需要写样式?
|
|
537
537
|
├─ 基础布局/间距/颜色 → Tailwind ✅
|
|
538
|
-
├─ 复杂动画/伪元素/高级CSS →
|
|
538
|
+
├─ 复杂动画/伪元素/高级CSS → CSS Modules(`*.module.css`)✅
|
|
539
539
|
└─ JS动态计算值 → 行内 style ✅
|
|
540
540
|
```
|
|
541
541
|
|
|
@@ -548,10 +548,12 @@ import { axiosForBackend } from '@lark-apaas/client-toolkit/utils/getAxiosForBac
|
|
|
548
548
|
- **arbitrary values 中空格用下划线**:`from-[hsl(215_60%_18%)]` 非 `from-[hsl(215 60% 18%)]`
|
|
549
549
|
- `tailwind-theme.css` 自定义属性用 `hsl(H, S%, L%)` 格式(非 `23 10% 23%`)
|
|
550
550
|
|
|
551
|
-
###
|
|
551
|
+
### CSS Modules 规范
|
|
552
552
|
|
|
553
|
-
-
|
|
554
|
-
-
|
|
553
|
+
- 文件名:`ComponentName.module.css`,与组件同目录
|
|
554
|
+
- 导入用 `import styles from './ComponentName.module.css'`,通过 `className={styles.foo}` 引用
|
|
555
|
+
- 类名用 camelCase,避免使用连字符(`styles.myClass` 而非 `styles['my-class']`)
|
|
556
|
+
- 全局样式(如动画 keyframes、CSS 变量)放在 `client/src/index.css` 或 `tailwind-theme.css`
|
|
555
557
|
|
|
556
558
|
### 布局/排版
|
|
557
559
|
|