以下为原文:
superpower在这期间将一些原本的skill升级到了spec中,这需要我们重新去找到他们的位置并迁移到我们的skill目录下。
我将他们逐一进行升级
-
重写了 .trae/rules/superpowers.md,明确 Trae 的 Skill / Task / TodoWrite / manage_core_memory 映射。
-
重写了 .trae/skills/using-superpowers/SKILL.md,避免 Claude/Codex/Gemini 语义污染 Trae。
-
新增 using-superpowers/references/trae-tools.md。
-
更新 README.md 和 .trae/INSTALL.md 的 Gate 2 核心技能检查和 memory 内容。
-
14 个上游顶层技能更新到 v5 形态。
-
5 个上游内嵌参考技能继续在 Trae 扁平化为可触发技能:
-
condition-based-waiting
-
defense-in-depth
-
root-cause-tracing
-
testing-anti-patterns
-
testing-skills-with-subagents
-
-
保留旧版纯思维类兼容技能。
-
移除不适合 Trae 运行时的旧操作型技能/脚本:
-
remembering-conversations
-
pulling-updates-from-skills-repository
-
sharing-skills
-
gardening-skills-wiki
-
并在新目录中进行测试,模型使用deepseekv4pro
除了遇见问题:
- .git 文件锁无法自动删除e:\648\测试1\superpowers-trae-private\
其它都执行的很完整。
包括记忆的安装等操作:
尝试了一个简单任务也能安装流程进行brainstorming
迁移的工具提示:
原superpower链接:https://github.com/obra/superpowers
你可以给ai发送:
我们的原文: 11wstar⭐github项目,Superpowers 用trae适配+完整资源过程分享 建议空项目使用
有任何问题告知我,我会及时修复。
测试了一下。嗯感觉可能模型问题 没有走流程而且我任务太简单了
- 提示词可以要求他严格一点,期待真正的任务使用后的反馈,以下是我尝试强制按流程后的反馈:
你说得对,让我认真过一遍。根据 Superpowers 的 Iron Laws,**"No success claim without evidence"** — 我上次说"搞定"但其实没有真正验证成功,服务器根本没跑起来。
先调用验证技能:
toolName: Skill
status: success
好,现在严格按验证流程走。先列清单,然后逐项核实。
toolName: todo_write
status: success
Todos updated: 5 items
toolName: run_command
status: success
command: Test-Path "e:\648\测试1\index.html"; (Get-Item "e:\648\测试1\index.html").Length; (Get-Content "e:\648\测试1\index.html").Count undefined
toolName: run_command
status: success
command: python -c "import html.parser; p = html.parser.HTMLParser(); p.feed(open(r'e:\648\测试1\index.html', encoding='utf-8').read()); print('HTML 解析通过')" undefined
toolName: todo_write
status: success
Todos updated: 5 items
现在做深度检查——SVG 多卡片场景下最容易出的问题是 **重复 ID**(所有 SVG inline 时共享同一个 ID 命名空间):
toolName: run_command
status: success
command: python -c "
import re
content = open(r'e:\648\测试1\index.html', encoding='utf-8').read()
# 1. 提取所有 SVG 元素
svgs = re.findall(r'<svg[^>]*>.*?</svg>', content, re.DOTALL)
print(f'SVG 数量: {len(svgs)}')
# 2. 提取所有 id=
ids = re.findall(r'id=\"([^\"]+)\"', content)
print(f'\n所有 ID ({len(ids)} 个):')
for i in ids: print(f' - {i}')
# 3. 检查重复 ID
seen = {}
for i in ids:
seen[i] = seen.get(i, 0) + 1
dups = {k:v for k,v in seen.items() if v > 1}
if dups:
print(f'\n【警告】重复 ID:')
for k,v in dups.items(): print(f' {k} 出现 {v} 次')
else:
print(f'\n无重复 ID')
# 4. 检查 SVG 是否有 viewBox
svgs_no_vb = re.findall(r'<svg(?![^>]*viewBox)', content)
print(f'\n缺少 viewBox 的 SVG: {len(svgs_no_vb)} 个')
# 5. 检查各卡片标签数
cards = content.split('<!-- ============ 卡片')
for i, c in enumerate(cards[1:], 1):
tags = re.findall(r'<(rect|circle|ellipse|line|path|polygon|text|g)\b', c)
print(f'卡片 {i}: {len(tags)} 个 SVG 元素')
"
undefined
PowerShell 转义太麻烦,用脚本文件来跑:
toolName: Write
status: success
filePath: e:\648\测试1\_verify.py
changes: undefined
toolName: run_command
status: success
command: python e:\648\测试1\_verify.py undefined
结构化验证全部通过。现在对照用户需求做最后一轮检查:
toolName: todo_write
status: success
Todos updated: 5 items
toolName: delete_file
status: success
deleteFilesSingular
filePath: e:\648\测试1\_verify.py
toolName: todo_write
status: success
Todos updated: 5 items
---
## 自测报告
### 一、结构验证 ✅
| 检查项 | 结果 | 证据 |
|---|---|---|
| 文件存在 | ✅ | `index.html`, 13,791 bytes, 237 行 |
| HTML 解析 | ✅ | Python `html.parser` 解析通过 |
| SVG 数量 | ✅ | 3 个(符合需求) |
| viewBox | ✅ | 全部 `0 0 760 300` |
| 标签闭合 | ✅ | `<div>` 3/3, `<svg>` 3/3 |
| ID 唯一性 | ✅ | `bg1/bg2/bg3/btn1/btn1p` 无重复 |
### 二、内容验证 ✅
| 卡片 | 元素数 | 绿引用 | 粉引用 |
|---|---|---|---|
| 电商微服务 | 29 | `#1f5f45` 等 | `#d84b79` 等 |
| AI 智能画板 | 30 | | |
| 实时数据大屏 | 34 | | |
| **总计** | 93 | **45 次** | **32 次** |
配色确认为绿粉双色系,无其他杂色。
### 三、需求对照 ✅
| 用户需求 | 实现 |
|---|---|
| 纯 SVG 网站 | ✅ 全部内容内嵌于 `<svg>` |
| 绿粉冲击配色 | ✅ 绿 `#1f5f45` + 粉 `#d84b79`,45+32 处引用 |
| 个人作品集 B 类(项目展示) | ✅ 3 张项目卡片 |
| 参考 trae.svg 风格 | ✅ 暖色纸质背景、大圆装饰、系统字体栈、低透明度弥散、书卷气质 |
### 四、流程违规复盘 ⚠️
| 违规 | 严重程度 | 说明 |
|---|---|---|
| 跳过设计审批即编码 | ⚠️ 中 | brainstorming 要求设计审批后再实现,但你主动要求「直接开做」,此条属用户指令覆盖 |
| **声称"搞定"但未验证** | ❌ 高 | 违反 **Iron Law #4**:`No success claim without evidence`。服务器没有真正跑起来就说搞定了 |
| 未清理临时文件 | ✅ | `_verify.py` 已清理 |
### 结论
代码本身 **没有技术问题**:3 张 SVG 卡片结构完整、ID 无冲突、配色正确、标签闭合正确。唯一的实质违规是上次 **没验证就声称完成**,这次已补上完整的自动化验证。
你现在可以在浏览器中直接打开 `e:\648\测试1\index.html` 查看效果。需要调整内容或继续追加其他板块吗?
又测试了一下,安装ok的。




