提交了个pr希望通过


Hope wish 阿门 阿弥托福

感觉我这声明还是很诚恳

## Trae IDE Integration

Hi, I'm a community contributor! I noticed that many Trae users are trying to adopt this amazing framework, so I created this native adaptation. If there is anything that needs to be modified or improved, please let me know and I will gladly update it!

This PR introduces native support for [Trae IDE](https://www.trae.ai) via a .trae installation script, following the established pattern of .opencode and .codex.

### What's included
- .trae/INSTALL.md: Documentation and automated initialization prompt for Trae users
- .trae/rules/superpowers.md: The core rule file adapted for Trae's native toolset

### Why this migration is important

Trae IDE comes with powerful native tools that align perfectly with the core philosophy of Superpowers (systematic execution, verification before completion, etc.). We have fully tested this installation and usage flow, confirming it strictly adheres to these constraints:

1. **No Hooks Required**
   Instead of relying on external shell hooks, this setup utilizes Trae's built-in Memory mechanism and Workspace Rules constraints to enforce behaviors natively.
2. **Flattened Skills Directory**
   The installation process flattens the nested skills into a single .trae/skills/ directory. This is necessary because Trae's native Skill resolution currently requires a flat structure. Our flattened structure ensures Trae accurately discovers and triggers the correct skills at the exact right moment.
3. **Flowcharts -> Trae Todo List**
   Instead of outputting CLI checklists that get lost in the scrollback, step-by-step processes like systematic-debugging and writing-plans are natively mapped to Trae's visual Todo List (TodoWrite tool).
4. **Local Knowledge -> Trae Core Memory (with dynamic updates)**
   Replaces the 
emembering-conversations scripts with Trae's built-in manage_core_memory system. This natively persists architectural decisions and debugging lessons across sessions. More importantly, this framework heavily utilizes Trae's "memory update" mechanism. In practical usage, this dynamic updating capability keeps the AI's context "alive" and highly synchronized, significantly improving the coordination between different IDE features.

### Installation process
The INSTALL.md provides a direct AI prompt so that users can simply ask the AI Assistant in Trae to execute the setup (pulling and flattening the superpowers-skills repository, configuring the rules) and automatically register the manage_core_memory constraints, making the initialization fully autonomous and error-free.

###  Usage Recommendations for Trae Users
- **Use Solo Builder**: We highly recommend running this framework within Trae's **Builder Mode (Solo Builder)** for optimal autonomous execution and tool usage.
- **Context Consumption**: Because the framework relies heavily on dynamic skill loading and continuous memory injection, context window capacity may be consumed faster than usual. We have added warnings in the installation process to ensure users are aware of this.

1 个赞

并非如此简单 还得按要求测试再来

1 个赞

太牛了,cc,发现你的范围也太广了

2 个赞

:saluting_face: 还好啦还好啦 啥都搞搞

1 个赞

按要求测试了重新交了,希望通过。。。:distorted_face:

## What problem are you trying to solve?

Trae users currently do not have a native Superpowers installation entrypoint comparable to `.codex` and `.opencode`. In practice this means users must manually recreate `.trae/rules`, transform nested skills into a flat `.trae/skills/` layout, and remember to persist project workflow constraints through Trae memory. That setup is easy to get wrong, hard to repeat, and does not match the repository's existing editor-specific entrypoint pattern.

## What does this PR change?

This PR adds `.trae/INSTALL.md` and `.trae/rules/superpowers.md` as a Trae-native installation path. The installer prompt creates the runtime `.trae` layout from the project root, flattens `superpowers-skills`, renames `using-skills` to `using-superpowers`, refreshes project-level memory first and falls back to creating it if no matching entry exists, preserves non-conflicting existing content, and stops safely on risky existing `.trae` entries.

## Is this change appropriate for the core library?

I believe it is appropriate if the repository intends `.codex` and `.opencode` to define an editor-specific installation surface for first-party usage. This PR follows that same pattern for another widely used harness rather than adding a project-specific skill or third-party service integration.

If maintainers prefer Trae support to live outside the core repository, I am happy to adapt this into a separate companion repository instead. I chose the in-repo approach because the existing repo already contains editor-specific entrypoints and because the adaptation stays close to the core Superpowers workflow rather than introducing a separate product integration layer.

## What alternatives did you consider?

1. Maintain a separate Trae-only fork or template repository. I rejected this because it increases drift and makes Trae support harder to discover than the existing `.codex` / `.opencode` entrypoints.
2. Copy the full skills tree directly into `.trae`. I rejected this because it duplicates upstream content and makes updates harder to manage than pulling from `superpowers-skills`.
3. Block installation whenever `.trae` contains anything other than `rules/` and `skills/`. I rejected this after evaluation because it was too strict for real projects. The current installer uses a lax mode that preserves empty extra directories, but still blocks on unexpected files or non-empty directories that may require manual review.

## Does this PR contain multiple unrelated changes?

No. All changes are scoped to adding and validating a Trae-native installation entrypoint.

## Existing PRs
- [ ] I have reviewed all open AND closed PRs for duplicates or prior art
- Related PRs: #672, #811

I did review the existing Trae-related prior art I could find in this repository. The main differences in this PR are:
- It uses `.trae/rules/superpowers.md` plus project memory rather than relying on a bootstrap rule or symlink-only setup.
- It explicitly adapts nested `superpowers-skills` into Trae's flatter runtime layout.
- It evaluates safety boundaries around existing `.trae` content, including custom rules, custom skills, empty extra directories, and unexpected risky entries.

## Environment tested

| Harness (e.g. Claude Code, Cursor) | Harness version | Model | Model version/ID |
|-------------------------------------|-----------------|-------|------------------|
| Trae IDE | not recorded | GPT | GPT-5.4 |
| Trae IDE | not recorded | Codex | 5.3 |
| Trae IDE | not recorded | Gemini Pro | 3.1 |

## Evaluation
- Initial prompt: "Add a native `.trae` installation entrypoint for Superpowers that mirrors the `.codex` / `.opencode` pattern, initializes `.trae/rules` and `.trae/skills`, adapts nested skills to Trae's flat resolution model, and persists the project workflow through Trae project memory."
- Eval sessions after the change: 4 major eval rounds plus follow-up reruns while tightening installer safety and lax-mode behavior.
- Outcome changes compared to before:
  - Before: no native Trae entrypoint; setup was manual, inconsistent, and could regress into nested skill layouts or unsafe cleanup behavior.
  - After: the installation flow is documented and repeatedly evaluated across clean init, existing project content, extra rule files, custom skills with same-name and different-name conflicts, lax-mode empty-directory handling, and safe blocking on unexpected files or non-empty directories.
  - The current evaluated behavior is: refresh existing project memory first, add it only if refresh is not possible; preserve custom non-conflicting content; preserve empty unexpected directories in lax mode; and stop safely for manual review when unexpected risky content is present.
  - For pre-merge evaluation, the equivalent rule file was exercised from the PR branch / fork path. The submitted PR content switches the published installer reference to the canonical upstream repository path expected after merge.

## Rigor

- [ ] If this is a skills change: I used `superpowers:writing-skills` and completed adversarial pressure testing (paste results below)
- [x] This change was tested adversarially, not just on the happy path
- [x] I did not modify carefully-tuned content (Red Flags table, rationalizations, "human partner" language) without extensive evals showing the change is an improvement

Adversarial evaluation included:
- clean init
- existing project files already present
- extra `.trae/rules/*.md` content preserved
- existing custom skills preserved when names do not conflict
- existing same-name skills replaced by the Superpowers version
- unexpected empty `.trae` directories preserved in lax mode
- unexpected non-empty directories and unexpected files blocked for manual review

## Human review
- [x] A human has reviewed the COMPLETE proposed diff before submission

Hi, I'm a community contributor. I noticed that many Trae users are trying to adopt this framework, so I prepared this native adaptation. If maintainers want a different structure or narrower scope, I am happy to revise the PR.

### Additional notes for Trae maintainers
- **No Hooks Required**: This adaptation uses Trae memory and workspace rules rather than external shell hooks.
- **Flattened Skills Directory**: Trae currently resolves skills more reliably from a flat `.trae/skills/` layout.
- **Flowcharts -> Todo List**: Guided workflows map well to Trae's Todo List experience rather than terminal-only checklists.
- **Project Memory Update First**: The installer asks Trae to refresh an existing project-level Superpowers memory first and only create a new entry if refresh is not possible. This takes advantage of Trae IDE's memory update mechanism rather than treating memory as write-once state.
- **Solo Builder Recommendation**: This workflow is best suited to Trae's Builder / Solo Builder experience.
- **Context Consumption Warning**: Dynamic skill loading and continuous memory usage can consume context faster than usual, so the installation guide warns users about that tradeoff.
## What problem are you trying to solve?

Trae users currently do not have a native Superpowers installation entrypoint comparable to `.codex` and `.opencode`. In practice this means users must manually recreate `.trae/rules`, transform nested skills into a flat `.trae/skills/` layout, and remember to persist project workflow constraints through Trae memory. That setup is easy to get wrong, hard to repeat, and does not match the repository's existing editor-specific entrypoint pattern.

## What does this PR change?

This PR adds `.trae/INSTALL.md` and `.trae/rules/superpowers.md` as a Trae-native installation path. The installer prompt creates the runtime `.trae` layout from the project root, flattens `superpowers-skills`, renames `using-skills` to `using-superpowers`, refreshes project-level memory first and falls back to creating it if no matching entry exists, preserves non-conflicting existing content, and stops safely on risky existing `.trae` entries.

## Is this change appropriate for the core library?

I believe it is appropriate if the repository intends `.codex` and `.opencode` to define an editor-specific installation surface for first-party usage. This PR follows that same pattern for another widely used harness rather than adding a project-specific skill or third-party service integration.

If maintainers prefer Trae support to live outside the core repository, I am happy to adapt this into a separate companion repository instead. I chose the in-repo approach because the existing repo already contains editor-specific entrypoints and because the adaptation stays close to the core Superpowers workflow rather than introducing a separate product integration layer.

## What alternatives did you consider?

1. Maintain a separate Trae-only fork or template repository. I rejected this because it increases drift and makes Trae support harder to discover than the existing `.codex` / `.opencode` entrypoints.
2. Copy the full skills tree directly into `.trae`. I rejected this because it duplicates upstream content and makes updates harder to manage than pulling from `superpowers-skills`.
3. Block installation whenever `.trae` contains anything other than `rules/` and `skills/`. I rejected this after evaluation because it was too strict for real projects. The current installer uses a lax mode that preserves empty extra directories, but still blocks on unexpected files or non-empty directories that may require manual review.

## Does this PR contain multiple unrelated changes?

No. All changes are scoped to adding and validating a Trae-native installation entrypoint.

## Existing PRs
- [ ] I have reviewed all open AND closed PRs for duplicates or prior art
- Related PRs: #672, #811

I did review the existing Trae-related prior art I could find in this repository. The main differences in this PR are:
- It uses `.trae/rules/superpowers.md` plus project memory rather than relying on a bootstrap rule or symlink-only setup.
- It explicitly adapts nested `superpowers-skills` into Trae's flatter runtime layout.
- It evaluates safety boundaries around existing `.trae` content, including custom rules, custom skills, empty extra directories, and unexpected risky entries.

## Environment tested

| Harness (e.g. Claude Code, Cursor) | Harness version | Model | Model version/ID |
|-------------------------------------|-----------------|-------|------------------|
| Trae IDE | not recorded | GPT | GPT-5.4 |
| Trae IDE | not recorded | Codex | 5.3 |
| Trae IDE | not recorded | Gemini Pro | 3.1 |

## Evaluation
- Initial prompt: "Add a native `.trae` installation entrypoint for Superpowers that mirrors the `.codex` / `.opencode` pattern, initializes `.trae/rules` and `.trae/skills`, adapts nested skills to Trae's flat resolution model, and persists the project workflow through Trae project memory."
- Eval sessions after the change: 4 major eval rounds plus follow-up reruns while tightening installer safety and lax-mode behavior.
- Outcome changes compared to before:
  - Before: no native Trae entrypoint; setup was manual, inconsistent, and could regress into nested skill layouts or unsafe cleanup behavior.
  - After: the installation flow is documented and repeatedly evaluated across clean init, existing project content, extra rule files, custom skills with same-name and different-name conflicts, lax-mode empty-directory handling, and safe blocking on unexpected files or non-empty directories.
  - The current evaluated behavior is: refresh existing project memory first, add it only if refresh is not possible; preserve custom non-conflicting content; preserve empty unexpected directories in lax mode; and stop safely for manual review when unexpected risky content is present.
  - For pre-merge evaluation, the equivalent rule file was exercised from the PR branch / fork path. The submitted PR content switches the published installer reference to the canonical upstream repository path expected after merge.

## Rigor

- [ ] If this is a skills change: I used `superpowers:writing-skills` and completed adversarial pressure testing (paste results below)
- [x] This change was tested adversarially, not just on the happy path
- [x] I did not modify carefully-tuned content (Red Flags table, rationalizations, "human partner" language) without extensive evals showing the change is an improvement

Adversarial evaluation included:
- clean init
- existing project files already present
- extra `.trae/rules/*.md` content preserved
- existing custom skills preserved when names do not conflict
- existing same-name skills replaced by the Superpowers version
- unexpected empty `.trae` directories preserved in lax mode
- unexpected non-empty directories and unexpected files blocked for manual review

## Human review
- [x] A human has reviewed the COMPLETE proposed diff before submission

Hi, I'm a community contributor. I noticed that many Trae users are trying to adopt this framework, so I prepared this native adaptation. If maintainers want a different structure or narrower scope, I am happy to revise the PR.

### Additional notes for Trae maintainers
- **No Hooks Required**: This adaptation uses Trae memory and workspace rules rather than external shell hooks.
- **Flattened Skills Directory**: Trae currently resolves skills more reliably from a flat `.trae/skills/` layout.
- **Flowcharts -> Todo List**: Guided workflows map well to Trae's Todo List experience rather than terminal-only checklists.
- **Project Memory Update First**: The installer asks Trae to refresh an existing project-level Superpowers memory first and only create a new entry if refresh is not possible. This takes advantage of Trae IDE's memory update mechanism rather than treating memory as write-once state.
- **Solo Builder Recommendation**: This workflow is best suited to Trae's Builder / Solo Builder experience.
- **Context Consumption Warning**: Dynamic skill loading and continuous memory usage can consume context faster than usual, so the installation guide warns users about that tradeoff.

1 个赞