SuperAPI AI Directory

user-customization

General & other

View repository

Updated 10-15 17:28

About this skill

User Customization & Preferences

This Skill is designed to help users customize Trae's behavior patterns according to personal or team needs. By creating USER_PREFERENCES.md, you can make all Skills and Agents follow your specific preferences.

⚙️ Configuration File Mechanism

Trae will prioritize finding and following configuration files in the following locations:

  • .trae/USER_PREFERENCES.md (Recommended)

Configuration File Template

You can directly copy the following content to .trae/USER_PREFERENCES.md:

# User Preferences

1. Tech Stack Preferences (Tech Stack)

  • CSS Framework: Tailwind CSS (strictly prohibited from using 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 (Communication Style)

  • Language: Please always useChineseto reply, but keep technical terms in English.
  • Detail Level: I am a senior developer, please provide code directly and keep the talk minimal.
  • Emoji: Disable Emoji, keep it professional.

3. Role Overrides (Role Overrides)

  • @Office Architect:
    • When handling Excel, prioritize using pandas instead of openpyxl.
  • @DevOps Engineer:
    • Generated K8s Manifests must include Resource Limits.

4. Constraints (Constraints)

  • Strictly prohibited from using the any type.
  • Strictly prohibited from creating .env files (use config map).

## 🔄 它是如何工作的?

1.  **全局生效**: `universal-dev-team` 在调度角色时,会先读取此文件。
2.  **角色感知**: 只要你在 Trae 中定义 Agent 时,在 System Prompt 的开头加上一句:
    > "Always check .trae/USER_PREFERENCES.md before answering."
    那么所有的手动配置 Agent 都会遵循这些规则。

## 🛠️ 高级用法:自定义 Skill

如果你需要更深度的定制(例如完全重写 React 规范),建议:
1.  **Fork**: 复制 `03_Developer_ReactBestPractices` 目录到 `Custom_React_Skills`。
2.  **Modify**: 修改其中的 `SKILL.md` 和 `rules/`。
3.  **Register**: 更新 `universal-dev-team/SKILL.md` 中的路由表,指向你的新目录。

---