trae-project-setup
Trae 项目规范化配置专家。用于快速初始化 Trae 项目配置文件、生成项目规则、用户偏好设置和 Skill 模板。当用户需要:(1) 初始化新项目的 Trae 配置 (2) 生成 .trae 目录结构 (3) 创建 USER_PREFERENCES.md 用户偏好文件 (4) 创建 project_rules.md 项目规则文件 (5) 创建新的 Skill 模板 时使用此 Skill。
Best use case
trae-project-setup is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Trae 项目规范化配置专家。用于快速初始化 Trae 项目配置文件、生成项目规则、用户偏好设置和 Skill 模板。当用户需要:(1) 初始化新项目的 Trae 配置 (2) 生成 .trae 目录结构 (3) 创建 USER_PREFERENCES.md 用户偏好文件 (4) 创建 project_rules.md 项目规则文件 (5) 创建新的 Skill 模板 时使用此 Skill。
Teams using trae-project-setup should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/99_Meta_TraeProjectSetup/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How trae-project-setup Compares
| Feature / Agent | trae-project-setup | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Trae 项目规范化配置专家。用于快速初始化 Trae 项目配置文件、生成项目规则、用户偏好设置和 Skill 模板。当用户需要:(1) 初始化新项目的 Trae 配置 (2) 生成 .trae 目录结构 (3) 创建 USER_PREFERENCES.md 用户偏好文件 (4) 创建 project_rules.md 项目规则文件 (5) 创建新的 Skill 模板 时使用此 Skill。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Trae Project Setup 本 Skill 用于快速生成 Trae 项目所需的规范化配置文件,帮助项目实现标准化开发流程。 ## Trae 配置体系概述 Trae 通过 `.trae` 目录管理项目配置,支持以下核心文件: | 文件路径 | 用途 | 优先级 | |---------|------|--------| | `.trae/USER_PREFERENCES.md` | 用户偏好设置(语言、技术栈、交互风格) | 最高 | | `.trae/rules/project_rules.md` | 项目特定规则(lint、typecheck、构建命令) | 高 | | `.trae/Skills/` | 自定义 Skill 目录 | 中 | ## 快速开始 ### 初始化项目配置 运行初始化脚本,自动创建完整的 `.trae` 目录结构: ```bash python scripts/init_trae_project.py --path /path/to/project ``` 脚本会自动创建: - `.trae/USER_PREFERENCES.md` - 用户偏好模板 - `.trae/rules/project_rules.md` - 项目规则模板 - `.trae/Skills/` - Skill 存放目录 ### 验证项目配置 验证现有配置是否符合规范: ```bash python scripts/validate_trae_project.py --path /path/to/project ``` ## 核心配置文件详解 ### USER_PREFERENCES.md 用户偏好文件,定义全局行为模式。Trae 会在所有操作中优先遵循此文件的设置。 **关键配置项:** ```markdown # User Preferences ## 1. 技术栈偏好 (Tech Stack) * **CSS Framework**: Tailwind CSS * **State Management**: Zustand (React), Riverpod (Flutter) * **Testing**: Vitest * **Language**: TypeScript (Strict Mode) ## 2. 交互风格 (Communication Style) * **Language**: 中文回复,技术术语保留英文 * **Detail Level**: 资深开发者模式,直接给代码 * **Emoji**: 禁用 ## 3. 角色覆盖 (Role Overrides) * **@Backend Developer**: 优先使用 FastAPI ## 4. 禁令 (Constraints) * 严禁使用 `any` 类型 * 严禁创建 `.env` 文件 ``` ### project_rules.md 项目规则文件,定义项目特定的开发规范。 **关键配置项:** ```markdown # Project Rules ## 构建与验证命令 * **Lint**: npm run lint * **TypeCheck**: npm run typecheck * **Test**: npm run test * **Build**: npm run build ## 代码规范 * **函数注释**: 必须添加函数级注释 * **语言**: 中文注释,外链库需在中国可用 ## Git 规范 * **Commit**: 遵循 Conventional Commits * **Branch**: feature/*, fix/*, docs/* ``` ## 创建新 Skill ### 使用初始化脚本 ```bash python scripts/init_trae_skill.py <skill-name> --path .trae/Skills ``` ### Skill 目录结构 ``` skill-name/ ├── SKILL.md # 必需:Skill 主文件 ├── scripts/ # 可选:可执行脚本 ├── references/ # 可选:参考文档 ├── assets/ # 可选:资源文件 └── AGENTS.md # 可选:Agent 定义 ``` ### SKILL.md 格式 ```markdown --- name: skill-name description: Skill 描述,包含触发条件和使用场景 --- # Skill Title ## Overview 简要说明 Skill 功能 ## Workflow 1. 步骤一 2. 步骤二 ``` ### AGENTS.md 格式 ```markdown --- name: agent-name description: Agent 描述 --- # Agent Title ## 角色定义 * **专长**: 描述专业领域 * **风格**: 描述工作风格 ## 工作流程 1. 步骤一 2. 步骤二 ``` ## 模板文件 完整的模板文件存放在 `templates/` 目录: - `USER_PREFERENCES.md.template` - 用户偏好模板 - `project_rules.md.template` - 项目规则模板 - `SKILL.md.template` - Skill 模板 - `AGENTS.md.template` - Agent 模板 ## 参考文档 详细规范请参阅: - [Trae 配置规范](references/trae_configuration_spec.md) - [Skill 开发指南](references/skill_development_guide.md)
Related Skills
skill-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.
user-customization
指导用户如何自定义 Trae Skills 的配置,包括覆盖角色设定、调整技术偏好和定义全局规则。
Operations & Growth Expert
专注于内容创作(文案、运营稿件)、运营数据分析、以及营销活动策划与设置。帮助项目实现从“可用”到“好用”及“增长”的闭环。
AI Engineer
专注于 LLM 应用开发,涵盖 RAG 和 LangChain 架构。
Security Specialist
应用安全专家,专注于认证授权、数据保护和合规性审计。当用户需要:(1) 设计安全的登录认证系统 (2) 进行安全代码审查 (3) 检查 GDPR/隐私合规 (4) 防范常见安全漏洞 (OWASP Top 10) 时使用此 Skill。
seo-technical-expert
技术 SEO 专家,擅长网站性能优化、结构化数据、移动端优化和技术问题诊断。适用于网站技术实现、性能调优和搜索引擎抓取优化时使用。
seo-linkbuilding
链接建设与社交 SEO 专家,擅长外链获取策略、社交媒体优化和品牌建设。适用于提升网站权威度、获取高质量反向链接和社交信号增强时使用。
seo-content-strategy
SEO 内容策略专家,擅长关键词研究、内容规划、长尾词布局和内容营销策略。适用于创建 SEO 友好的文章 landing page 和营销内容时使用。
seo-analytics
SEO 数据分析专家,擅长 Google Search Console、Google Analytics 数据分析、排名追踪和 ROI 计算。适用于 SEO 效果评估、策略调整和数据驱动决策时使用。
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
xlsx
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
docx
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