From 1d1008b41f095489f673c909a7604b870772abbb Mon Sep 17 00:00:00 2001 From: Drolese Date: Fri, 12 Jun 2026 12:00:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(Antigravity):=20=E4=BF=AE=E5=A4=8DAntigravi?= =?UTF-8?q?ty=E5=AE=89=E8=A3=85=E5=BC=95=E5=AF=BC=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98=20?= =?UTF-8?q?=E5=8F=82=E8=80=83=E5=AE=98=E6=96=B9=E6=96=87=E6=A1=A3https://a?= =?UTF-8?q?ntigravity.google/docs/skills=EF=BC=8C=E5=B0=86=E5=BC=95?= =?UTF-8?q?=E5=AF=BC=E7=9B=AE=E5=BD=95=E4=BB=8E.antigravity=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA.agents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- bin/superpowers-zh.js | 12 ++++++------ docs/README.antigravity.md | 14 +++++++------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 6246b1c..737f842 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ AI:在开始实现之前,我需要了解几个关键问题: | [OpenCode](https://opencode.ai) | CLI | `npx superpowers-zh` | `.opencode/skills/` | | [OpenClaw](https://github.com/anthropics/openclaw) | CLI | `npx superpowers-zh` | `skills/` | | [Qwen Code](https://tongyi.aliyun.com/lingma) (通义灵码) | IDE 插件 | `npx superpowers-zh` | `.qwen/skills/` | -| [Antigravity](https://github.com/anthropics/antigravity) | CLI | `npx superpowers-zh` | `.antigravity/skills/` | +| [Antigravity](https://github.com/anthropics/antigravity) | CLI | `npx superpowers-zh` | `.agents/skills/` | | [Claw Code](https://github.com/ultraworkers/claw-code) | CLI (Rust) | `npx superpowers-zh` | `.claw/skills/` | | [Qoder](https://qoder.com) (阿里 AI IDE) | IDE | `npx superpowers-zh` | `.qoder/skills/` + `.qoder/rules/` | @@ -170,7 +170,7 @@ cp -r superpowers-zh/skills /your/project/.codex/skills # Codex CLI cp -r superpowers-zh/skills /your/project/.kiro/steering # Kiro cp -r superpowers-zh/skills /your/project/skills/custom # DeerFlow 2.0 cp -r superpowers-zh/skills /your/project/.trae/rules # Trae -cp -r superpowers-zh/skills /your/project/.antigravity # Antigravity +cp -r superpowers-zh/skills /your/project/.agents # Antigravity cp -r superpowers-zh/skills /your/project/.github/superpowers # VS Code (Copilot) cp -r superpowers-zh/skills /your/project/skills # OpenClaw cp -r superpowers-zh/skills /your/project/.windsurf/skills # Windsurf @@ -207,7 +207,7 @@ cp -r superpowers-zh/skills /your/project/.qoder/skills # Qoder(阿里 AI | Claw Code | `.claw/skills/*/SKILL.md` | Rust 版 CLI agent,兼容 Claude Code 的 SKILL.md 格式 | | Qoder | `.qoder/skills/*/SKILL.md` + `.qoder/rules/superpowers-zh.md` | 阿里 AI IDE,自动生成 `trigger: always_on` 的 bootstrap rule | -> **详细安装指南**:[Kiro](docs/README.kiro.md) · [DeerFlow](docs/README.deerflow.md) · [Trae](docs/README.trae.md) · [Antigravity](docs/README.antigravity.md) · [VS Code](docs/README.vscode.md) · [Codex](docs/README.codex.md) · [OpenCode](docs/README.opencode.md) · [OpenClaw](docs/README.openclaw.md) · [Windsurf](docs/README.windsurf.md) · [Gemini CLI](docs/README.gemini-cli.md) · [Aider](docs/README.aider.md) · [Qwen Code](docs/README.qwen.md) · [Hermes Agent](docs/README.hermes.md) · [Qoder](docs/README.qoder.md) +> **详细安装指南**:[Kiro](docs/README.kiro.md) · [DeerFlow](docs/README.deerflow.md) · [Trae](docs/README.trae.md) · [Antigravity](docs/README.agents.md) · [VS Code](docs/README.vscode.md) · [Codex](docs/README.codex.md) · [OpenCode](docs/README.opencode.md) · [OpenClaw](docs/README.openclaw.md) · [Windsurf](docs/README.windsurf.md) · [Gemini CLI](docs/README.gemini-cli.md) · [Aider](docs/README.aider.md) · [Qwen Code](docs/README.qwen.md) · [Hermes Agent](docs/README.hermes.md) · [Qoder](docs/README.qoder.md) ### 卸载 / 误装清理(v1.2.1+) @@ -219,7 +219,7 @@ npx superpowers-zh@latest --uninstall 会做这些: - 删除所有装过的 skill 目录(`.claude/skills/`、`.trae/skills/` 等) -- 删除独立 bootstrap 文件(`.trae/rules/superpowers-zh.md`、`.qoder/rules/superpowers-zh.md`、`.antigravity/rules.md`) +- 删除独立 bootstrap 文件(`.trae/rules/superpowers-zh.md`、`.qoder/rules/superpowers-zh.md`、`.agents/rules.md`) - 清理追加到 `CLAUDE.md` / `HERMES.md` / `GEMINI.md` / `CONVENTIONS.md` 里的 superpowers-zh 段,**保留你自己写的内容** 数据安全说明:v1.2.1 起,安装会把追加内容包在 `` 哨兵注释之间,卸载按哨兵精确切除。识别不可靠时跳过 + 警告,**绝不会误删用户内容**。 diff --git a/bin/superpowers-zh.js b/bin/superpowers-zh.js index a632925..4e00570 100755 --- a/bin/superpowers-zh.js +++ b/bin/superpowers-zh.js @@ -53,7 +53,7 @@ const TARGETS = [ { name: 'Kiro', dir: '.kiro/steering', detect: '.kiro' }, { name: 'DeerFlow', dir: 'skills/custom', detect: 'deer_flow' }, { name: 'Trae', dir: '.trae/skills', detect: '.trae' }, - { name: 'Antigravity', dir: '.antigravity/skills', detect: '.antigravity' }, + { name: 'Antigravity', dir: '.agents/skills', detect: '.agents' }, { name: 'VS Code', dir: '.github/superpowers', detect: '.github/copilot-instructions.md' }, { name: 'OpenClaw', dir: 'skills', detect: '.openclaw' }, { name: 'Windsurf', dir: '.windsurf/skills', detect: '.windsurf' }, @@ -204,17 +204,17 @@ function generateAntigravityBootstrap(projectDir) { ## 可用 Skills -Skills 位于 \`.antigravity/skills/\` 目录,每个 skill 有独立的 \`SKILL.md\` 文件。 +Skills 位于 \`.agents/skills/\` 目录,每个 skill 有独立的 \`SKILL.md\` 文件。 ${skillList} ## 如何使用 -当任务匹配某个 skill 时,读取对应的 \`.antigravity/skills//SKILL.md\` 并严格遵循其流程。 +当任务匹配某个 skill 时,读取对应的 \`.agents/skills//SKILL.md\` 并严格遵循其流程。 `; - // 写入 .antigravity/rules.md(不覆盖用户已有的 GEMINI.md / AGENTS.md) - const rulePath = resolve(projectDir, '.antigravity', 'rules.md'); + // 写入 .agents/rules.md(不覆盖用户已有的 GEMINI.md / AGENTS.md) + const rulePath = resolve(projectDir, '.agents', 'rules.md'); writeFileSync(rulePath, content, 'utf8'); console.log(` ✅ Antigravity: bootstrap rule -> ${rulePath}`); } @@ -521,7 +521,7 @@ function isHomeDir(p) { const BOOTSTRAP_DELETE = [ '.trae/rules/superpowers-zh.md', '.qoder/rules/superpowers-zh.md', - '.antigravity/rules.md', + '.agents/rules.md', ]; const BOOTSTRAP_CLEAN_SECTION = [ 'CLAUDE.md', diff --git a/docs/README.antigravity.md b/docs/README.antigravity.md index 717bee1..5ccbe6a 100644 --- a/docs/README.antigravity.md +++ b/docs/README.antigravity.md @@ -9,14 +9,14 @@ cd /your/project npx superpowers-zh ``` -安装脚本会自动检测 `.antigravity/` 目录并将 skills 复制到该目录。 +安装脚本会自动检测 `.agents/` 目录并将 skills 复制到该目录。 ## 手动安装 ```bash git clone https://github.com/jnMetaCode/superpowers-zh.git -mkdir -p /your/project/.antigravity/skills -cp -r superpowers-zh/skills/* /your/project/.antigravity/skills/ +mkdir -p /your/project/.agents/skills +cp -r superpowers-zh/skills/* /your/project/.agents/skills/ ``` ## 工作原理 @@ -27,7 +27,7 @@ Antigravity 支持多种规则文件格式: |------|--------|------| | `GEMINI.md` | 最高 | Antigravity 专属规则 | | `AGENTS.md` | 中 | 通用规则(Antigravity、Cursor、Claude Code 共享) | -| `.antigravity/rules.md` | 中 | 项目级规则目录 | +| `.agents/rules.md` | 中 | 项目级规则目录 | | `CLAUDE.md` | 低 | 也会被自动读取 | ### 推荐配置方式 @@ -37,10 +37,10 @@ Antigravity 支持多种规则文件格式: ```markdown # GEMINI.md -使用 .antigravity/ 目录下的 superpowers skills 来指导工作流程。 +使用 .agents/ 目录下的 superpowers skills 来指导工作流程。 优先使用 brainstorming(头脑风暴)开始新任务。 -Skills 列表参见 .antigravity/ 目录。 +Skills 列表参见 .agents/ 目录。 ``` **方式二**:在 `AGENTS.md` 中引用(多工具共享): @@ -49,7 +49,7 @@ Skills 列表参见 .antigravity/ 目录。 # AGENTS.md 本项目使用 superpowers-zh skills 框架。 -Skills 位于 .antigravity/(Antigravity)或 .claude/skills/(Claude Code)目录下。 +Skills 位于 .agents/(Antigravity)或 .claude/skills/(Claude Code)目录下。 ``` ### 工具映射