- Add install.sh for Trae IDE integration - Add uninstall.sh with manifest-based safe removal - Add README.md (English) - Add README.zh-CN.md (Chinese) - Support local and global installation - Support TRAE_ENV=cn for CN environment - Non-destructive installation (won't overwrite existing files) - Manifest-based uninstallation (preserves user files) Change-Id: I9870874e272fffd9e1966d9bc40d20142314b969
5.4 KiB
Everything Claude Code for Trae
Bring Everything Claude Code (ECC) workflows to Trae IDE. This repository provides custom commands, agents, skills, and rules that can be installed into any Trae project with a single command.
Quick Start
Option 1: Local Installation (Current Project Only)
# Install to current project
cd /path/to/your/project
TRAE_ENV=cn .trae/install.sh
This creates .trae-cn/ in your project directory.
Option 2: Global Installation (All Projects)
# Install globally to ~/.trae-cn/
cd /path/to/your/project
TRAE_ENV=cn .trae/install.sh ~
# Or from the .trae folder directly
cd /path/to/your/project/.trae
TRAE_ENV=cn ./install.sh ~
This creates ~/.trae-cn/ which applies to all Trae projects.
Option 3: Quick Install to Current Directory
# If already in project directory with .trae folder
cd .trae
./install.sh
The installer uses non-destructive copy - it will not overwrite your existing files.
Installation Modes
Local Installation
Install to the current project's .trae-cn directory:
cd /path/to/your/project
TRAE_ENV=cn .trae/install.sh
This creates /path/to/your/project/.trae-cn/ with all ECC components.
Global Installation
Install to your home directory's .trae-cn directory (applies to all Trae projects):
# From project directory
TRAE_ENV=cn .trae/install.sh ~
# Or directly from .trae folder
cd .trae
TRAE_ENV=cn ./install.sh ~
This creates ~/.trae-cn/ with all ECC components. All Trae projects will use these global installations.
Note: Global installation is useful when you want to maintain a single copy of ECC across all your projects.
Environment Support
- Default: Uses
.traedirectory - CN Environment: Uses
.trae-cndirectory (set viaTRAE_ENV=cn)
Force Environment
# Force CN environment (global setting)
TRAE_ENV=cn ./install.sh
# Use default environment (default)
./install.sh
Note: TRAE_ENV is a global environment variable that applies to the entire installation session.
Uninstall
The uninstaller uses a manifest file (.ecc-manifest) to track installed files, ensuring safe removal:
# Uninstall from current directory (if already inside .trae or .trae-cn)
cd .trae-cn
./uninstall.sh
# Or uninstall from project root
cd /path/to/your/project
TRAE_ENV=cn .trae/uninstall.sh
# Uninstall globally from home directory
TRAE_ENV=cn .trae/uninstall.sh ~
# Will ask for confirmation before uninstalling
Uninstall Behavior
- Safe removal: Only removes files tracked in the manifest (installed by ECC)
- User files preserved: Any files you added manually are kept
- Non-empty directories: Directories containing user-added files are skipped
- Manifest-based: Requires
.ecc-manifestfile (created during install)
Environment Support
Uninstall respects the same TRAE_ENV environment variable as install:
# Uninstall from .trae-cn (CN environment)
TRAE_ENV=cn ./uninstall.sh
# Uninstall from .trae (default environment)
./uninstall.sh
Note: If no manifest file is found (old installation), the uninstaller will ask whether to remove the entire directory.
What's Included
Commands
Commands are on-demand workflows invocable via the / menu in Trae chat. All commands are reused directly from the project root's commands/ folder.
Agents
Agents are specialized AI assistants with specific tool configurations. All agents are reused directly from the project root's agents/ folder.
Skills
Skills are on-demand workflows invocable via the / menu in chat. All skills are reused directly from the project's skills/ folder.
Rules
Rules provide always-on rules and context that shape how the agent works with your code. All rules are reused directly from the project root's rules/ folder.
Usage
- Type
/in chat to open the commands menu - Select a command or skill
- The agent will guide you through the workflow with specific instructions and checklists
Project Structure
.trae/ (or .trae-cn/)
├── commands/ # Command files (reused from project root)
├── agents/ # Agent files (reused from project root)
├── skills/ # Skill files (reused from skills/)
├── rules/ # Rule files (reused from project root)
├── install.sh # Install script
├── uninstall.sh # Uninstall script
└── README.md # This file
Customization
All files are yours to modify after installation. The installer never overwrites existing files, so your customizations are safe across re-installs.
Note: The install.sh and uninstall.sh scripts are automatically copied to the target directory during installation, so you can run these commands directly from your project.
Recommended Workflow
- Start with planning: Use
/plancommand to break down complex features - Write tests first: Invoke
/tddcommand before implementing - Review your code: Use
/code-reviewafter writing code - Check security: Use
/code-reviewagain for auth, API endpoints, or sensitive data handling - Fix build errors: Use
/build-fixif there are build errors
Next Steps
- Open your project in Trae
- Type
/to see available commands - Enjoy the ECC workflows!