-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add Trae IDE support via native skills symlink #672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pratyush618
wants to merge
3
commits into
obra:main
Choose a base branch
from
pratyush618:trae-ide-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+357
−1
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,114 @@ | ||
| # Installing Superpowers for Trae IDE | ||
|
|
||
| > **Windows users:** These instructions use bash and Unix paths. For PowerShell/Command Prompt steps, see [docs/README.trae.md](https://github.com/obra/superpowers/blob/main/docs/README.trae.md#windows). | ||
| ## Prerequisites | ||
|
|
||
| - [Trae IDE](https://www.trae.ai) installed | ||
| - Git installed | ||
|
|
||
| ## Installation Steps (macOS / Linux) | ||
|
|
||
| ### 1. Clone Superpowers | ||
|
|
||
| ```bash | ||
| git clone https://github.com/obra/superpowers.git ~/.trae/superpowers | ||
| ``` | ||
|
|
||
| ### 2. Symlink Skills | ||
|
|
||
| Create a symlink so Trae's native skill discovery finds superpowers skills: | ||
|
|
||
| ```bash | ||
| mkdir -p ~/.trae/skills | ||
|
|
||
| # Safe removal: unlink only if it's already a symlink | ||
| if [ -L ~/.trae/skills/superpowers ]; then | ||
| rm ~/.trae/skills/superpowers | ||
| elif [ -e ~/.trae/skills/superpowers ]; then | ||
| echo "ERROR: ~/.trae/skills/superpowers exists and is not a symlink. Remove it manually." >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| ln -s ~/.trae/superpowers/skills ~/.trae/skills/superpowers | ||
| ``` | ||
|
|
||
| ### 3. Restart Trae IDE | ||
|
|
||
| Restart Trae IDE. Skills will be auto-discovered from `~/.trae/skills/superpowers/`. | ||
|
|
||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Verify by asking: "do you have superpowers?" | ||
|
|
||
| ## Usage | ||
|
|
||
| ### Finding Skills | ||
|
|
||
| Trae automatically discovers and suggests skills based on context. You can also explicitly request them: | ||
|
|
||
| ```text | ||
| use the brainstorming skill | ||
| ``` | ||
|
|
||
| ### Personal Skills | ||
|
|
||
| Create your own skills in `~/.trae/skills/`: | ||
|
|
||
| ```bash | ||
| mkdir -p ~/.trae/skills/my-skill | ||
| ``` | ||
|
|
||
| Create `~/.trae/skills/my-skill/SKILL.md`: | ||
|
|
||
| ```markdown | ||
| --- | ||
| name: my-skill | ||
| description: Use when [condition] - [what it does] | ||
| --- | ||
|
|
||
| # My Skill | ||
|
|
||
| [Your skill content here] | ||
| ``` | ||
|
|
||
| ### Project Skills | ||
|
|
||
| Create project-specific skills in `.trae/skills/` within your project: | ||
|
|
||
| ```bash | ||
| mkdir -p .trae/skills/my-project-skill | ||
| ``` | ||
|
|
||
| **Skill Priority:** Project skills > Personal skills > Superpowers skills | ||
|
|
||
| ## Updating | ||
|
|
||
| ```bash | ||
| cd ~/.trae/superpowers | ||
| git pull | ||
| ``` | ||
|
|
||
| ## Troubleshooting | ||
|
|
||
| ### Skills not found | ||
|
|
||
| 1. Check symlink: `ls -l ~/.trae/skills/superpowers` | ||
| 2. Verify it points to: `~/.trae/superpowers/skills` | ||
| 3. Restart Trae IDE — skills are discovered at startup | ||
|
|
||
| ### Skills not triggering automatically | ||
|
|
||
| Add a User Rule in Trae IDE via **Settings > Rules & Skills > User Rules** with the following content: | ||
|
|
||
| ```text | ||
| You have access to superpowers skills located at ~/.trae/skills/superpowers/. | ||
| Before responding to any task, check if a superpowers skill applies. | ||
| To load a skill, read the SKILL.md file from ~/.trae/skills/superpowers/{skill-name}/SKILL.md | ||
| Key skills available: brainstorming, writing-plans, subagent-driven-development, | ||
| test-driven-development, systematic-debugging, requesting-code-review. | ||
| Always use the using-superpowers skill guidelines when deciding whether to invoke a skill. | ||
| ``` | ||
|
|
||
| ## Getting Help | ||
|
|
||
| - Report issues: https://github.com/obra/superpowers/issues | ||
| - Full documentation: https://github.com/obra/superpowers/blob/main/docs/README.trae.md | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,233 @@ | ||
| # Superpowers for Trae IDE | ||
|
|
||
| Complete guide for using Superpowers with [Trae IDE](https://www.trae.ai). | ||
|
|
||
| ## Quick Install | ||
|
|
||
| Tell Trae's AI agent: | ||
|
|
||
| ```text | ||
| Fetch and follow instructions from https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.trae/INSTALL.md | ||
| ``` | ||
|
|
||
| ## Manual Installation | ||
|
|
||
| ### Prerequisites | ||
|
|
||
| - [Trae IDE](https://www.trae.ai) installed | ||
| - Git installed | ||
|
|
||
| ### macOS / Linux | ||
|
|
||
| ```bash | ||
| # 1. Install Superpowers (or update existing) | ||
| if [ -d ~/.trae/superpowers ]; then | ||
| cd ~/.trae/superpowers && git pull | ||
| else | ||
| git clone https://github.com/obra/superpowers.git ~/.trae/superpowers | ||
| fi | ||
|
|
||
| # 2. Create skills directory | ||
| mkdir -p ~/.trae/skills | ||
|
|
||
| # 3. Remove old symlink if it exists (safe: fails loudly if it's a real directory) | ||
| if [ -L ~/.trae/skills/superpowers ]; then | ||
| rm ~/.trae/skills/superpowers | ||
| elif [ -e ~/.trae/skills/superpowers ]; then | ||
| echo "ERROR: ~/.trae/skills/superpowers exists and is not a symlink. Remove it manually." >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| # 4. Create symlink | ||
| ln -s ~/.trae/superpowers/skills ~/.trae/skills/superpowers | ||
|
|
||
| # 5. Restart Trae IDE | ||
| ``` | ||
|
|
||
| #### Verify Installation | ||
|
|
||
| ```bash | ||
| ls -l ~/.trae/skills/superpowers | ||
| ``` | ||
|
|
||
| Should show a symlink pointing to `~/.trae/superpowers/skills`. | ||
|
|
||
| ### Windows | ||
|
|
||
| **Prerequisites:** | ||
| - Git installed | ||
| - Either **Developer Mode** enabled OR **Administrator privileges** | ||
| - Windows 10: Settings → Update & Security → For developers | ||
| - Windows 11: Settings → System → For developers | ||
|
|
||
| #### PowerShell | ||
|
|
||
| Run as Administrator, or with Developer Mode enabled: | ||
|
|
||
| ```powershell | ||
| # 1. Install Superpowers | ||
| git clone https://github.com/obra/superpowers.git "$env:USERPROFILE\.trae\superpowers" | ||
|
|
||
| # 2. Create skills directory | ||
| New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.trae\skills" | ||
|
|
||
| # 3. Remove existing link (safe for reinstalls) | ||
| Remove-Item "$env:USERPROFILE\.trae\skills\superpowers" -Force -ErrorAction SilentlyContinue | ||
|
|
||
| # 4. Create skills junction (works without special privileges) | ||
| New-Item -ItemType Junction -Path "$env:USERPROFILE\.trae\skills\superpowers" -Target "$env:USERPROFILE\.trae\superpowers\skills" | ||
|
|
||
| # 5. Restart Trae IDE | ||
| ``` | ||
|
|
||
| #### Command Prompt | ||
|
|
||
| Run as Administrator, or with Developer Mode enabled: | ||
|
|
||
| ```cmd | ||
| :: 1. Install Superpowers | ||
| git clone https://github.com/obra/superpowers.git "%USERPROFILE%\.trae\superpowers" | ||
|
|
||
| :: 2. Create skills directory | ||
| mkdir "%USERPROFILE%\.trae\skills" 2>nul | ||
|
|
||
| :: 3. Remove existing link (safe for reinstalls) | ||
| rmdir "%USERPROFILE%\.trae\skills\superpowers" 2>nul | ||
|
|
||
| :: 4. Create skills junction | ||
| mklink /J "%USERPROFILE%\.trae\skills\superpowers" "%USERPROFILE%\.trae\superpowers\skills" | ||
|
|
||
| :: 5. Restart Trae IDE | ||
| ``` | ||
|
|
||
| #### Verify Installation (Windows) | ||
|
|
||
| ```powershell | ||
| Get-ChildItem "$env:USERPROFILE\.trae\skills" | Where-Object { $_.LinkType } | ||
| ``` | ||
|
|
||
| Look for `<JUNCTION>` in the output. | ||
|
|
||
| ## Usage | ||
|
|
||
| ### How Skills Are Discovered | ||
|
|
||
| Trae IDE natively scans `~/.trae/skills/` for skills at startup. Each skill's `SKILL.md` frontmatter is indexed, and Trae's AI activates skills based on context and descriptions. | ||
|
|
||
| The `using-superpowers` skill (description: *"Use when starting any conversation"*) guides the AI to check for relevant skills before every task. | ||
|
|
||
| ### Loading Skills Explicitly | ||
|
|
||
| You can always request a skill directly: | ||
|
|
||
| ```text | ||
| use the brainstorming skill | ||
| use the test-driven-development skill | ||
| use the systematic-debugging skill | ||
| ``` | ||
|
|
||
| ### Personal Skills | ||
|
|
||
| Create your own skills in `~/.trae/skills/`: | ||
|
|
||
| ```bash | ||
| mkdir -p ~/.trae/skills/my-skill | ||
| ``` | ||
|
|
||
| Create `~/.trae/skills/my-skill/SKILL.md`: | ||
|
|
||
| ```markdown | ||
| --- | ||
| name: my-skill | ||
| description: Use when [condition] - [what it does] | ||
| --- | ||
|
|
||
| # My Skill | ||
|
|
||
| [Your skill content here] | ||
| ``` | ||
|
|
||
| ### Project Skills | ||
|
|
||
| Create project-specific skills in `.trae/skills/` within your project: | ||
|
|
||
| ```bash | ||
| mkdir -p .trae/skills/my-project-skill | ||
| ``` | ||
|
|
||
| **Skill Priority:** Project skills > Personal (global) skills > Superpowers skills | ||
|
|
||
| ## Skill Locations | ||
|
|
||
| Trae IDE discovers skills from these locations (highest to lowest priority): | ||
|
|
||
| 1. **Project skills** (`.trae/skills/`) — Highest priority | ||
| 2. **Personal skills** (`~/.trae/skills/`) | ||
| 3. **Superpowers skills** (`~/.trae/skills/superpowers/`) — via symlink | ||
|
|
||
| ## Ensuring Bootstrap Context | ||
|
|
||
| For the best experience, add a User Rule in Trae IDE via **Settings > Rules & Skills > User Rules**: | ||
|
|
||
| ```text | ||
| You have access to superpowers skills at ~/.trae/skills/superpowers/. | ||
| Before responding to any task, check if a relevant skill applies. | ||
| Read skill files from ~/.trae/skills/superpowers/{skill-name}/SKILL.md to load them. | ||
| Key skills: brainstorming, writing-plans, subagent-driven-development, | ||
| test-driven-development, systematic-debugging, requesting-code-review. | ||
| Follow the using-superpowers skill guidelines when deciding whether to invoke a skill. | ||
| ``` | ||
|
|
||
| This ensures the AI knows about superpowers in every conversation, even before it reads the `using-superpowers` skill. | ||
|
|
||
| ## Features | ||
|
|
||
| ### Native Skills Integration | ||
|
|
||
| Superpowers uses Trae's native skill discovery. The SKILL.md format used by superpowers matches Trae's expected format exactly — no conversion needed. | ||
|
|
||
| ### Tool Mapping | ||
|
|
||
| Skills written for Claude Code use Claude Code tool names. In Trae IDE, use these equivalents: | ||
|
|
||
| | Claude Code Tool | Trae IDE Equivalent | | ||
| |-----------------|---------------------| | ||
| | `Skill` tool | Ask AI to read the SKILL.md file | | ||
| | `TodoWrite` | Trae's built-in task/plan features | | ||
| | `Task` with subagents | Trae's agent system | | ||
| | `Read`, `Write`, `Edit` | Trae's native file tools | | ||
| | `Bash` | Trae's terminal integration | | ||
|
|
||
| ## Updating | ||
|
|
||
| ```bash | ||
| cd ~/.trae/superpowers | ||
| git pull | ||
| ``` | ||
|
|
||
| Skills update instantly through the symlink. Restart Trae IDE to reload. | ||
|
|
||
| ## Troubleshooting | ||
|
|
||
| ### Skills not showing up | ||
|
|
||
| 1. Verify symlink: `ls -la ~/.trae/skills/superpowers` | ||
| 2. Check source exists: `ls ~/.trae/superpowers/skills` | ||
| 3. Restart Trae IDE — skills are discovered at startup | ||
|
|
||
| ### AI not invoking skills automatically | ||
|
|
||
| The `using-superpowers` skill guides the AI to check for skills before every task. If it's not triggering: | ||
|
|
||
| 1. Explicitly say: `"use the using-superpowers skill"` | ||
| 2. Add a User Rule (see [Ensuring Bootstrap Context](#ensuring-bootstrap-context)) | ||
|
|
||
| ### Windows junction issues | ||
|
|
||
| Junctions normally work without special permissions. If creation fails, try running PowerShell as Administrator. | ||
|
|
||
| ## Getting Help | ||
|
|
||
| - Report issues: https://github.com/obra/superpowers/issues | ||
| - Main documentation: https://github.com/obra/superpowers | ||
| - Trae IDE docs: https://docs.trae.ai |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.