Loading...
Loading...
Trae project standardized configuration expert. It is used to quickly initialize Trae project configuration files, generate project rules, user preference settings and Skill templates. Use this Skill when you need to: (1) Initialize Trae configuration for a new project (2) Generate .trae directory structure (3) Create USER_PREFERENCES.md user preference file (4) Create project_rules.md project rule file (5) Create a new Skill template.
npx skill4agent add boshi-xixixi/traeskill trae-project-setup.trae| File Path | Purpose | Priority |
|---|---|---|
| User preference settings (language, tech stack, interaction style) | Highest |
| Project-specific rules (lint, typecheck, build commands) | High |
| Custom Skill directory | Medium |
.traepython scripts/init_trae_project.py --path /path/to/project.trae/USER_PREFERENCES.md.trae/rules/project_rules.md.trae/Skills/python scripts/validate_trae_project.py --path /path/to/project# 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
## 构建与验证命令
* **Lint**: npm run lint
* **TypeCheck**: npm run typecheck
* **Test**: npm run test
* **Build**: npm run build
## 代码规范
* **函数注释**: 必须添加函数级注释
* **语言**: 中文注释,外链库需在中国可用
## Git 规范
* **Commit**: 遵循 Conventional Commits
* **Branch**: feature/*, fix/*, docs/*python scripts/init_trae_skill.py <skill-name> --path .trae/Skillsskill-name/
├── SKILL.md # 必需:Skill 主文件
├── scripts/ # 可选:可执行脚本
├── references/ # 可选:参考文档
├── assets/ # 可选:资源文件
└── AGENTS.md # 可选:Agent 定义---
name: skill-name
description: Skill 描述,包含触发条件和使用场景
---
# Skill Title
## Overview
简要说明 Skill 功能
## Workflow
1. 步骤一
2. 步骤二---
name: agent-name
description: Agent 描述
---
# Agent Title
## 角色定义
* **专长**: 描述专业领域
* **风格**: 描述工作风格
## 工作流程
1. 步骤一
2. 步骤二templates/USER_PREFERENCES.md.templateproject_rules.md.templateSKILL.md.templateAGENTS.md.template