Borrowing it
Nothing to install: this file belongs to boshi-xixixi/TraeSkill. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/boshi-xixixi/TraeSkill/main/.trae/Skills/99_Meta_TraeProjectSetup/SKILL.mdgit clone --depth 1 https://github.com/boshi-xixixi/TraeSkillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/boshi-xixixi/traeskill/99_meta_traeprojectsetup)<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/99_meta_traeprojectsetup"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/99_meta_traeprojectsetup/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/99_meta_traeprojectsetup"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/99_meta_traeprojectsetup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00122 | $0.01182 |
| Opus 5.5 | $0.00049 | $0.00473 |
| Sonnet 5.5 | $0.00024 | $0.00236 |
| Haiku 4.5 | $0.00012 | $0.00118 |
Grade A, and why
trae-project-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Trae Project Setup
本 Skill 用于快速生成 Trae 项目所需的规范化配置文件,帮助项目实现标准化开发流程。
Trae 配置体系概述
Trae 通过 .trae 目录管理项目配置,支持以下核心文件:
| 文件路径 | 用途 | 优先级 |
|---|---|---|
.trae/USER_PREFERENCES.md |
用户偏好设置(语言、技术栈、交互风格) | 最高 |
.trae/rules/project_rules.md |
项目特定规则(lint、typecheck、构建命令) | 高 |
.trae/Skills/ |
自定义 Skill 目录 | 中 |
快速开始
初始化项目配置
运行初始化脚本,自动创建完整的 .trae 目录结构:
python scripts/init_trae_project.py --path /path/to/project
脚本会自动创建:
.trae/USER_PREFERENCES.md- 用户偏好模板.trae/rules/project_rules.md- 项目规则模板.trae/Skills/- Skill 存放目录
验证项目配置
验证现有配置是否符合规范:
python scripts/validate_trae_project.py --path /path/to/project
核心配置文件详解
USER_PREFERENCES.md
用户偏好文件,定义全局行为模式。Trae 会在所有操作中优先遵循此文件的设置。
关键配置项:
# 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
项目规则文件,定义项目特定的开发规范。
关键配置项:
# 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
使用初始化脚本
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 格式
---
name: skill-name
description: Skill 描述,包含触发条件和使用场景
---
# Skill Title
## Overview
简要说明 Skill 功能
## Workflow
1. 步骤一
2. 步骤二
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- AGENTS.md 2.7 KB
- metadata.json 395 B
- references/skill_development_guide.md 4.6 KB
- references/trae_configuration_spec.md 4.2 KB
- scripts/init_trae_project.py 10 KB runs code
- scripts/validate_trae_project.py 8.6 KB runs code
- templates/AGENTS.md.template 629 B
- templates/project_rules.md.template 1.3 KB
- templates/SKILL.md.template 500 B
- templates/USER_PREFERENCES.md.template 1.3 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 166 lines · 122 tokens per session scan A c7d3aaa51a3a
trae-project-setup is a skill published in the GitHub repository boshi-xixixi/TraeSkill (288 stars, last pushed 9d ago), licensed MIT. It adds 122 tokens to every session and 1,182 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.
trae-project-setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| trae-project-setupboshi-xixixi/TraeSkill | Skill | 288 | 9d ago | MIT | A | 122 | Claude Code, Codex |
| <skill-name>Lion-1209/Lion-Skills | Skill | 5 | 5mo ago | MIT | A | 82 | Claude Code |
| spec-writingLion-1209/Lion-Skills | Skill | 5 | 5mo ago | MIT | A | 25 | Claude Code |
| onboarding-unknown-codebaseLion-1209/Lion-Skills | Skill | 5 | 5mo ago | MIT | A | 21 | Claude Code |
| commit-messageLion-1209/Lion-Skills | Skill | 5 | 5mo ago | MIT | A | 15 | Claude Code |
| clarifying-questionsLion-1209/Lion-Skills | Skill | 5 | 5mo ago | MIT | A | 29 | Claude Code |
| debuggingLion-1209/Lion-Skills | Skill | 5 | 5mo ago | MIT | A | 24 | Claude Code |