TraeSkill: Skill for Claude Code

.trae/Skills/99_Meta_TraeProjectSetup/SKILL.md

trae-project-setup is a skill for Claude Code, Codex from boshi-xixixi/TraeSkill. It costs 122 tokens per session (1,182 once invoked), scanned A, original, MIT.

A setup tool for Trae projects, an AI coding environment, that creates standard configuration files, project rules, user preferences, and Skill templates.

In plain words
What is it for?
Use it to initialise a .trae directory, define project rules and coding preferences, create Skill templates, or validate the configuration.
Why use it?
It avoids creating the Trae configuration structure and its starter files by hand, while also providing a command to check an existing setup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

This is boshi-xixixi/TraeSkill's own configuration. It tells Claude Code and Codex how to work on TraeSkill itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything TraeSkill configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/init_trae_skill.py <skill-name> --path .trae/Skills.

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/boshi-xixixi/TraeSkill/main/.trae/Skills/99_Meta_TraeProjectSetup/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for trae-project-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/99_meta_traeprojectsetup/github.svg)](https://agentmods.dev/skills/boshi-xixixi/traeskill/99_meta_traeprojectsetup)
Your own site
<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.

agentmods 80×15 button for trae-project-setup

Your own site · 80×15
<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>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,182 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 8d ago against content hash c7d3aaa51a3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/init_trae_project.py, scripts/validate_trae_project.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.trae/Skills/99_Meta_TraeProjectSetup/SKILL.md · 166 lines

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. 步骤二

Read the full file on GitHub · 166 lines

Changes

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.

  1. 8d ago First seen · 166 lines · 122 tokens per session scan A c7d3aaa51a3a

Subscribe to this mod's changes

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.

Related

trae-project-setup compared with skills from other repositories

trae-project-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
trae-project-setupboshi-xixixi/TraeSkillSkill2889d agoMITA122Claude Code, Codex
<skill-name>Lion-1209/Lion-SkillsSkill55mo agoMITA82Claude Code
spec-writingLion-1209/Lion-SkillsSkill55mo agoMITA25Claude Code
onboarding-unknown-codebaseLion-1209/Lion-SkillsSkill55mo agoMITA21Claude Code
commit-messageLion-1209/Lion-SkillsSkill55mo agoMITA15Claude Code
clarifying-questionsLion-1209/Lion-SkillsSkill55mo agoMITA29Claude Code
debuggingLion-1209/Lion-SkillsSkill55mo agoMITA24Claude Code