wiki-ingest batch: n8n Docker / Cloud Operating Model / MinIO+Zipline / Trae Remote SSH (2026-04-15 PM)
This commit is contained in:
36
wiki/concepts/项目规则.md
Normal file
36
wiki/concepts/项目规则.md
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
title: "项目规则"
|
||||
type: concept
|
||||
tags: [cursor, ai, code-editor, rules]
|
||||
last_updated: 2026-04-15
|
||||
---
|
||||
|
||||
## 定义
|
||||
可自定义的配置文件(.cursorrules 等),用于约束 AI 代码生成行为,实现团队代码规范自动化。
|
||||
|
||||
## 实现方式
|
||||
在项目根目录创建规则文件,写入期望 AI 遵守的行为规范。
|
||||
|
||||
## 示例
|
||||
```markdown
|
||||
// .cursorrules
|
||||
Always generate doc strings for functions
|
||||
Use TypeScript strict mode
|
||||
Follow the team's naming conventions
|
||||
```
|
||||
|
||||
## 应用场景
|
||||
- 强制为函数生成 Doc 注释(规范文档)
|
||||
- 约束代码风格(命名/缩进/类型)
|
||||
- 定义项目特定的处理逻辑
|
||||
|
||||
## 关联
|
||||
- [[Cursor]] 的自定义规则机制
|
||||
- [[AI代码编辑器]] 的安全和质量控制层
|
||||
- [[Vibe Coding]] 规范化的工具保障
|
||||
|
||||
## Aliases
|
||||
- .cursorrules
|
||||
- Cursor 项目规则
|
||||
- AI 代码规范
|
||||
|
||||
Reference in New Issue
Block a user