user-customization
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUser Customization & Preferences
User Customization & Preferences
本 Skill 旨在帮助用户根据个人或团队的需求,定制 Trae 的行为模式。通过创建 ,你可以让所有的 Skill 和 Agent 都遵循你的特定偏好。
USER_PREFERENCES.mdThis Skill is designed to help users customize Trae's behavior based on individual or team needs. By creating , you can make all Skills and Agents adhere to your specific preferences.
USER_PREFERENCES.md⚙️ 配置文件机制
⚙️ Configuration File Mechanism
Trae 会优先寻找并遵循以下位置的配置文件:
- (推荐)
.trae/USER_PREFERENCES.md
Trae will prioritize finding and following configuration files in the following location:
- (Recommended)
.trae/USER_PREFERENCES.md
配置文件模板
Configuration File Template
你可以直接复制以下内容到 :
.trae/USER_PREFERENCES.mdmarkdown
undefinedYou can directly copy the following content to :
.trae/USER_PREFERENCES.mdmarkdown
undefinedUser Preferences
User Preferences
1. 技术栈偏好 (Tech Stack)
1. Tech Stack Preferences
- CSS Framework: Tailwind CSS (严禁使用 CSS Modules 或 Styled Components)
- State Management: Zustand (React), Riverpod (Flutter)
- Testing: Vitest (不使用 Jest)
- Language: TypeScript (Strict Mode enabled)
- CSS Framework: Tailwind CSS (Strictly prohibited to use CSS Modules or Styled Components)
- State Management: Zustand (React), Riverpod (Flutter)
- Testing: Vitest (Do not use Jest)
- Language: TypeScript (Strict Mode enabled)
2. 交互风格 (Communication Style)
2. Communication Style
- Language: 请始终使用中文回复,但技术术语保留英文。
- Detail Level: 我是资深开发者,请直接给代码,少讲废话。
- Emoji: 禁用 Emoji,保持职业化。
- Language: Always respond in Chinese, but retain technical terms in English.
- Detail Level: I am a senior developer, please provide code directly and minimize unnecessary explanations.
- Emoji: Disable emojis and maintain professionalism.
3. 角色覆盖 (Role Overrides)
3. Role Overrides
- @Office Architect:
- 在处理 Excel 时,优先使用 pandas 而不是 openpyxl。
- @DevOps Engineer:
- 生成的 K8s Manifest 必须包含 Resource Limits。
- @Office Architect:
- When handling Excel, prioritize using pandas over openpyxl.
- @DevOps Engineer:
- Generated K8s Manifests must include Resource Limits.
4. 禁令 (Constraints)
4. Constraints
- 严禁使用 类型。
any - 严禁创建 文件(使用 config map)。
.env
undefined- Strictly prohibited to use the type.
any - Strictly prohibited to create files (use config maps instead).
.env
undefined🔄 它是如何工作的?
🔄 How Does It Work?
- 全局生效: 在调度角色时,会先读取此文件。
universal-dev-team - 角色感知: 只要你在 Trae 中定义 Agent 时,在 System Prompt 的开头加上一句:
"Always check .trae/USER_PREFERENCES.md before answering." 那么所有的手动配置 Agent 都会遵循这些规则。
- Global Effect: will read this file first when dispatching roles.
universal-dev-team - Role Awareness: As long as you add the following line at the beginning of the System Prompt when defining an Agent in Trae:
"Always check .trae/USER_PREFERENCES.md before answering." All manually configured Agents will follow these rules.
🛠️ 高级用法:自定义 Skill
🛠️ Advanced Usage: Customize Skills
如果你需要更深度的定制(例如完全重写 React 规范),建议:
- Fork: 复制 目录到
03_Developer_ReactBestPractices。Custom_React_Skills - Modify: 修改其中的 和
SKILL.md。rules/ - Register: 更新 中的路由表,指向你的新目录。
universal-dev-team/SKILL.md
If you need more in-depth customization (such as completely rewriting React specifications), it is recommended to:
- Fork: Copy the directory to
03_Developer_ReactBestPractices.Custom_React_Skills - Modify: Edit the and
SKILL.mdwithin it.rules/ - Register: Update the routing table in to point to your new directory.
universal-dev-team/SKILL.md