Agent skill

Trae Project Setup

by boshi-xixixi in boshi-xixixi/TraeSkill

Trae 项目规范化配置专家。用于快速初始化 Trae 项目配置文件、生成项目规则、用户偏好设置和 Skill 模板。当用户需要:(1) 初始化新项目的 Trae 配置 (2) 生成 .trae 目录结构 (3) 创建 USERPREFERENCES.md 用户偏好文件 (4) 创建 projectrules.md 项目规则文件 (5) 创建新的 Skill 模板 时使用此 Skill。

MITAuto-check: notesAgent Workflows

Install Trae Project Setup

skills CLI
$ npx skills add boshi-xixixi/TraeSkill --skill trae-project-setup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install boshi-xixixi/TraeSkill trae-project-setup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.trae/Skills/99_Meta_TraeProjectSetup .claude/skills/trae-project-setup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
trae-project-setup
GitHub stars
275
Token cost
~708 tokens
SKILL.md length
80 words
Files
9 (incl. scripts, references)
Skills in repo
16
Repo updated
First seen
Licence
MIT

At a glance

Trae 项目规范化配置专家。用于快速初始化 Trae 项目配置文件、生成项目规则、用户偏好设置和 Skill 模板。当用户需要:(1) 初始化新项目的 Trae 配置 (2) 生成 .trae 目录结构 (3) 创建 USERPREFERENCES.md 用户偏好文件 (4) 创建 projectrules.md 项目规则文件 (5) 创建新的 Skill 模板 时使用此 Skill。

  • Tasks that involve Agent instruction files
  • SKILL.md covers Trae 配置体系概述, 快速开始, 核心配置文件详解 and 创建新 Skill, plus 2 more sections
  • Runs Python scripts from its folder; calls python

What it does

Trae Project Setup is an agent skill from boshi-xixixi/TraeSkill. Trae 项目规范化配置专家。用于快速初始化 Trae 项目配置文件、生成项目规则、用户偏好设置和 Skill 模板。当用户需要:(1) 初始化新项目的 Trae 配置 (2) 生成 .trae 目录结构 (3) 创建 USERPREFERENCES.md 用户偏好文件 (4) 创建 projectrules.md 项目规则文件 (5) 创建新的 Skill 模板 时使用此 Skill。

Its SKILL.md is about 710 tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including scripts and reference files (for example `references/skill_development_guide.md`, `references/trae_configuration_spec.md` and `scripts/init_trae_project.py`).

It sits in Agent Workflows, covering Agent instruction files. The repository describes itself as: 为 Trae IDE 打造的全流程标准化 AI 开发技能库,内置调度分发与多角色研发技能,一键导入规范 AI 编码工作流 🚀. The licence is MIT.

When your agent uses it

  • Tasks that involve Agent instruction files

Example prompts

  • “/trae-project-setup”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 9cf38e6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Trae Project Setup loads about 708 tokens when it runs, and up to ~2.9k if it reads all its reference files. Until then it costs about 54 tokens; SKILL.md has 80 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~54
When it runs · the whole SKILL.md, loaded when a task matches
~708
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:70
    *   严禁创建 `.env` 文件

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from boshi-xixixi/TraeSkill at commit 9cf38e6, republished under its MIT licence (© boshi-xixixi). 80 words, ~708 tokens.

Download SKILL.mdSave it as .claude/skills/trae-project-setup/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
trae-project-setup
description
Trae 项目规范化配置专家。用于快速初始化 Trae 项目配置文件、生成项目规则、用户偏好设置和 Skill 模板。当用户需要:(1) 初始化新项目的 Trae 配置 (2) 生成 .trae 目录结构 (3) 创建 USER_PREFERENCES.md 用户偏好文件 (4) 创建 project_rules.md 项目规则文件 (5) 创建新的 Skill 模板 时使用此 Skill。

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 模板

参考文档

详细规范请参阅:

© boshi-xixixi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (scripts, references) in .trae/Skills/99_Meta_TraeProjectSetup of boshi-xixixi/TraeSkill.

  • SKILL.md
  • references/skill_development_guide.md
  • references/trae_configuration_spec.md
  • scripts/init_trae_project.py
  • scripts/validate_trae_project.py
  • templates/AGENTS.md.template
  • templates/SKILL.md.template
  • templates/USER_PREFERENCES.md.template
  • templates/project_rules.md.template

Open the folder on GitHubat commit 9cf38e6

Compare with similar skills

Trae Project Setup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Trae Project Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Trae Project Setup this skillboshi-xixixi/TraeSkill275—~708Automated safety check: NotesMIT
Using Agent Skillsaddyosmani/agent-skills103k4 repos~2.4kAutomated safety check: PassMIT
Claude ReflectBayramAnnakov/claude-reflect1.7k2 repos~627Automated safety check: PassMIT
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Writing For Agentsbestofjs/bestofjs3.1k18 repos~2.7kAutomated safety check: PassMIT
Task Observerrebelytics/one-skill-to-rule-them-all3.2k1 repos~12kAutomated safety check: PassCC-BY-4.0

Similar skills

  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    103k GitHub starsUsed in 4 repos~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Claude Reflect

    BayramAnnakov/claude-reflect

    Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md.

    1.7k GitHub starsUsed in 2 repos~627 tokens
    Agent WorkflowsAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check passed
  • Writing For Agents

    bestofjs/bestofjs

    Writing documents for agents. An agent skill from bestofjs/bestofjs.

    3.1k GitHub starsUsed in 18 repos~2.7k tokens
    Agent WorkflowsAuto-check passed
  • Task Observer

    rebelytics/one-skill-to-rule-them-all

    Monitors task execution for skill improvement opportunities.

    3.2k GitHub starsUsed in 1 repo~12k tokens
    Agent WorkflowsAuto-check passed
  • SkillOpt Sleep Cycle

    microsoft/SkillOpt

    Official

    Runs an on-demand or nightly sleep cycle that reviews past Claude Code sessions and proposes validated updates to CLAUDE.md and skills.

    18k GitHub stars~2.3k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed

More from boshi-xixixi/TraeSkill

All 16 skills in this repo
  • AI Team Orchestration

    boshi-xixixi/TraeSkill

    Bootstrap and run a multi-agent AI development team. An agent skill from boshi-xixixi/TraeSkill.

    275 GitHub stars~1.4k tokensUpdated 4 mo ago
    Auto-check passed
  • Arize Instrumentation

    boshi-xixixi/TraeSkill

    INVOKE THIS SKILL when adding Arize AX tracing or observability to an app for the first time, or when the user wants to instrument their LLM app or get started with LLM observability.

    275 GitHub stars~5.1k tokensUpdated 4 mo ago
    Auto-check: notes
  • Dotnet MCP Builder

    boshi-xixixi/TraeSkill

    Build Model Context Protocol (MCP) servers in C/.NET against the current ModelContextProtocol 1.x NuGet packages.

    275 GitHub stars~1.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Skill Creator

    boshi-xixixi/TraeSkill

    当用户需要创建新 Skill 或更新现有 Skill 时使用。此 Skill 提供技能创建的完整工作流指导,包括需求分析、编写规范、工程化构建、质量评估和迭代优化。

    275 GitHub stars~3.9k tokensUpdated 4 mo ago
    Auto-check passed
  • Web Coder

    boshi-xixixi/TraeSkill

    Expert 10x engineer with comprehensive knowledge of web development, internet protocols, and web standards.

    275 GitHub starsUsed in 1 repo~5.2k tokens
    Auto-check passed
  • Winapp CLI

    boshi-xixixi/TraeSkill

    Windows App Development CLI (winapp) for building, packaging, signing, debugging, and UI-automating Windows applications.

    275 GitHub stars~1.9k tokensUpdated 4 mo ago
    Auto-check passed

Categories

Questions about Trae Project Setup

What does Trae Project Setup do?

Trae 项目规范化配置专家。用于快速初始化 Trae 项目配置文件、生成项目规则、用户偏好设置和 Skill 模板。当用户需要:(1) 初始化新项目的 Trae 配置 (2) 生成 .trae 目录结构 (3) 创建 USERPREFERENCES.md 用户偏好文件 (4) 创建 projectrules.md 项目规则文件 (5) 创建新的 Skill 模板 时使用此 Skill。. Trae Project Setup is an agent skill from boshi-xixixi/TraeSkill.

When should I use Trae Project Setup?

Trae Project Setup fits situations like: tasks that involve Agent instruction files.

How do I install Trae Project Setup in Claude Code?

Run `npx skills add boshi-xixixi/TraeSkill --skill trae-project-setup -a claude-code`. Or copy the skill folder (.trae/Skills/99_Meta_TraeProjectSetup in boshi-xixixi/TraeSkill) into .claude/skills/trae-project-setup in your project. Claude Code loads it when a task matches its description.

How do I install Trae Project Setup in Codex?

Run `npx skills add boshi-xixixi/TraeSkill --skill trae-project-setup -a codex`. Or copy the skill folder (.trae/Skills/99_Meta_TraeProjectSetup in boshi-xixixi/TraeSkill) into .agents/skills/trae-project-setup in your project. Codex loads it when a task matches its description.

Can I use Trae Project Setup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add boshi-xixixi/TraeSkill --skill trae-project-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/trae-project-setup, .gemini/skills/trae-project-setup, .github/skills/trae-project-setup and .opencode/skills/trae-project-setup in your project.

What does Trae Project Setup need to run?

Going by SKILL.md and its folder, Trae Project Setup needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Trae Project Setup access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Trae Project Setup safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Trae Project Setup use?

Trae Project Setup is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Trae Project Setup use?

About 708 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.2k tokens, read only when the agent opens those files.

What are the alternatives to Trae Project Setup?

Skills that share tags, products or a category with Trae Project Setup: Using Agent Skills (addyosmani/agent-skills, 103k stars), Claude Reflect (BayramAnnakov/claude-reflect, 1.7k stars), Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars) and Writing For Agents (bestofjs/bestofjs, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Trae Project Setup?

boshi-xixixi (a GitHub user) maintains it in boshi-xixixi/TraeSkill, which has 275 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on May 12, 2026.

Source: boshi-xixixi/TraeSkill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.