user-customization
User Customization & Preferences
本 Skill 旨在帮助用户根据个人或团队的需求,定制 Trae 的行为模式。通过创建 USER_PREFERENCES.md,你可以让所有的 Skill 和 Agent 都遵循你的特定偏好。
⚙️ 配置文件机制
Trae 会优先寻找并遵循以下位置的配置文件:
.trae/USER_PREFERENCES.md(推荐)
配置文件模板
你可以直接复制以下内容到 .trae/USER_PREFERENCES.md:
# User Preferences
## 1. 技术栈偏好 (Tech Stack)
* **CSS Framework**: Tailwind CSS (严禁使用 CSS Modules 或 Styled Components)
* **State Management**: Zustand (React), Riverpod (Flutter)
* **Testing**: Vitest (不使用 Jest)
* **Language**: TypeScript (Strict Mode enabled)
## 2. 交互风格 (Communication Style)
* **Language**: 请始终使用**中文**回复,但技术术语保留英文。
* **Detail Level**: 我是资深开发者,请直接给代码,少讲废话。
* **Emoji**: 禁用 Emoji,保持职业化。
## 3. 角色覆盖 (Role Overrides)
* **@Office Architect**:
* 在处理 Excel 时,优先使用 pandas 而不是 openpyxl。
* **@DevOps Engineer**:
* 生成的 K8s Manifest 必须包含 Resource Limits。
## 4. 禁令 (Constraints)
* 严禁使用 `any` 类型。
* 严禁创建 `.env` 文件(使用 config map)。
🔄 它是如何工作的?
- 全局生效:
universal-dev-team在调度角色时,会先读取此文件。 - 角色感知: 只要你在 Trae 中定义 Agent 时,在 System Prompt 的开头加上一句:
"Always check .trae/USER_PREFERENCES.md before answering." 那么所有的手动配置 Agent 都会遵循这些规则。
🛠️ 高级用法:自定义 Skill
如果你需要更深度的定制(例如完全重写 React 规范),建议:
- Fork: 复制
03_Developer_ReactBestPractices目录到Custom_React_Skills。 - Modify: 修改其中的
SKILL.md和rules/。 - Register: 更新
universal-dev-team/SKILL.md中的路由表,指向你的新目录。
More from boshi-xixixi/traeskill
universal-dev-team
一个适合初学者的全能开发团队,包含产品经理、架构师、设计师、开发者和测试人员,指导你完成从想法到上线的全过程。
26skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
24gitee workflow automation
深度集成 Gitee MCP,实现 Issue 管理、PR 自动化提交、代码审查和版本发布的全流程自动化。
21api-design-principles
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.
21git-workflow
Git 版本控制与协作专家,涵盖 GitHub/Gitee 平台操作、Conventional Commits 规范及 PR/MR 最佳实践。
20docx
Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks
19