From 5df6e4ccbeb322e67a47420d57a4ff4a00d65092 Mon Sep 17 00:00:00 2001 From: juxing009 Date: Tue, 7 Apr 2026 23:18:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=BF=BB=E8=AF=91:=20=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E7=BF=BB=E8=AF=91=E7=89=88=E6=9C=AC=20+=20=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- COMMANDS.md | 420 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 420 insertions(+) create mode 100644 COMMANDS.md diff --git a/COMMANDS.md b/COMMANDS.md new file mode 100644 index 000000000..7870dd8f5 --- /dev/null +++ b/COMMANDS.md @@ -0,0 +1,420 @@ +# Claude Code 斜杠命令完整列表 + +本文档列出 Claude Code leak-cc 版本中的所有斜杠命令,含原始英文描述及中文翻译。 + +--- + +## 统计概览 + +| 分类 | 数量 | +|------|------| +| 目录形式命令 | 94 个 | +| 文件形式命令 (.ts) | 13 个 | +| **总计** | **107 个** | + +### 状态分类 + +| 状态 | 数量 | 说明 | +|------|------|------| +| 正常命令 | ~97 个 | 有完整描述 | +| STUB 空实现 | 5 个 | 占位符,未实际开发 | +| 动态描述 | 5 个 | 运行时动态生成 | + +--- + +## 完整命令列表 + +### A-B + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `add-dir` | Add a new working directory | 添加一个新的工作目录 | +| `advisor` | Configure the advisor model | 配置顾问模型 | +| `agents` | Manage agent configurations | 管理智能体配置 | +| `agents-platform` | (内部命令) | (内部命令) | +| `ant-trace` | (内部命令) | (内部命令) | +| `assistant` | (内部命令) | (内部命令) | +| `autofix-pr` | (内部命令) | (内部命令) | +| `backfill-sessions` | (内部命令) | (内部命令) | +| `branch` | Create a branch of the current conversation at this point | 在当前位置创建当前对话的分支 | +| `break-cache` | (内部命令) | (内部命令) | +| `bridge` | Connect this terminal for remote-control sessions | 连接此终端以进行远程控制会话 | +| `bridge-kick` | Inject bridge failure states for manual recovery testing | 注入桥接故障状态以进行手动恢复测试 | +| `brief` | Toggle brief-only mode | 切换简短模式 | +| `btw` | Ask a quick side question without interrupting the main conversation | 快速提问而不中断主对话 | +| `buddy` | Hatch a coding companion · pet, off | 孵化一个编程伴侣 · 宠物,关闭 | +| `bughunter` | (内部命令) | (内部命令) | + +### C + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `chrome` | Claude in Chrome (Beta) settings | Chrome 中的 Claude 设置(Beta) | +| `clear` | Clear conversation history and free up context | 清除对话历史并释放上下文 | +| `color` | Set the prompt bar color for this session | 设置此会话的提示栏颜色 | +| `commit` | Create a git commit | 创建 Git 提交 | +| `commit-push-pr` | Commit, push, and open a PR | 提交、推送并打开 PR | +| `compact` | Clear conversation history but keep a summary in context. Optional: /compact [instructions for summarization] | 清除对话历史但在上下文中保留摘要。可选:/compact [摘要说明] | +| `config` | Open config panel | 打开配置面板 | +| `context` | Visualize current context usage as a colored grid | 将当前上下文使用情况可视化为彩色网格 | +| `copy` | Copy Claude's last response to clipboard (or /copy N for the Nth-latest) | 复制 Claude 的上一条响应到剪贴板(或 /copy N 获取倒数第 N 条) | +| `cost` | Show the total cost and duration of the current session | 显示当前会话的总成本和持续时间 | +| `createMovedToPluginCommand` | (内部命令) | (内部命令) | +| `ctx_viz` | (内部命令) | (内部命令) | + +### D + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `debug-tool-call` | (内部命令) | (内部命令) | +| `desktop` | Continue the current session in Claude Desktop | 在 Claude Desktop 中继续当前会话 | +| `diff` | View uncommitted changes and per-turn diffs | 查看未提交的更改和每轮对话的差异 | +| `doctor` | Diagnose and verify your Claude Code installation and settings | 诊断并验证 Claude Code 安装和设置 | + +### E + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `effort` | Set effort level for model usage | 设置模型使用的 effort 级别 | +| `env` | (内部命令) | (内部命令) | +| `exit` | Exit the REPL | 退出 REPL | +| `export` | Export the current conversation to a file or clipboard | 将当前对话导出到文件或剪贴板 | +| `extra-usage` | Configure extra usage to keep working when limits are hit | 配置额外使用量,当达到限制时继续工作 | + +### F + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `fast` | [DYNAMIC] Toggle fast mode (当前模式) | 切换快速模式 | +| `feedback` | Submit feedback about Claude Code | 提交关于 Claude Code 的反馈 | +| `files` | List all files currently in context | 列出当前上下文中的所有文件 | +| `fork` | [STUB 空实现] | (空实现,未开发) | +| `good-claude` | (内部命令) | (内部命令) | + +### G-H + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `heapdump` | Dump the JS heap to ~/Desktop | 将 JS 堆转储到 ~/Desktop | +| `help` | Show help and available commands | 显示帮助和可用命令 | +| `hooks` | View hook configurations for tool events | 查看工具事件的钩子配置 | + +### I + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `ide` | Manage IDE integrations and show status | 管理 IDE 集成并显示状态 | +| `init` | (技能初始化) | (技能初始化) | +| `init-verifiers` | Create verifier skill(s) for automated verification of code changes | 创建验证器技能以自动验证代码更改 | +| `insights` | (使用洞察) | (使用洞察和区域统计) | +| `install-github-app` | Set up Claude GitHub Actions for a repository | 为仓库设置 Claude GitHub Actions | +| `install-slack-app` | Install the Claude Slack app | 安装 Claude Slack 应用 | +| `install` | (内部命令) | (内部命令) | +| `issue` | (内部命令) | (内部命令) | + +### K + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `keybindings` | Open or create your keybindings configuration file | 打开或创建快捷键配置文件 | + +### L + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `login` | Switch Anthropic accounts | 切换 Anthropic 账户 | +| `logout` | Sign out from your Anthropic account | 退出 Anthropic 账户 | + +### M + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `mcp` | Manage MCP servers | 管理 MCP 服务器 | +| `memory` | Edit Claude memory files | 编辑 Claude 记忆文件 | +| `mobile` | Show QR code to download the Claude mobile app | 显示二维码以下载 Claude 移动应用 | +| `model` | [DYNAMIC] Set the AI model for Claude Code (当前模型) | 设置 Claude Code 的 AI 模型 | +| `mock-limits` | (内部命令) | (内部命令) | + +### O + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `oauth-refresh` | (内部命令) | (内部命令) | +| `onboarding` | (内部命令) | (内部命令) | +| `output-style` | Deprecated: use /config to change output style | 已弃用:请使用 /config 更改输出样式 | + +### P + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `passes` | [DYNAMIC] Share a free week of Claude Code with friends | 与朋友分享免费 Claude Code 周 | +| `peers` | [STUB 空实现] | (空实现,未开发) | +| `perf-issue` | (内部命令) | (内部命令) | +| `permissions` | Manage allow & deny tool permission rules | 管理允许和拒绝的工具权限规则 | +| `plan` | Enable plan mode or view the current session plan | 启用计划模式或查看当前会话计划 | +| `plugin` | (内部命令) | (内部命令) | +| `pr_comments` | Get comments from a GitHub pull request | 获取 GitHub Pull Request 的评论 | +| `privacy-settings` | View and update your privacy settings | 查看和更新您的隐私设置 | +| `provider` | Switch API provider (anthropic/openai/gemini/grok/bedrock/vertex/foundry) | 切换 API 提供商 | +| `rate-limit-options` | Show options when rate limit is reached | 显示达到速率限制时的选项 | + +### R + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `release-notes` | View release notes | 查看发布说明 | +| `reload-plugins` | Activate pending plugin changes in the current session | 在当前会话中激活待处理的插件更改 | +| `remote-control` | Connect this terminal for remote-control sessions | 连接此终端以进行远程控制会话 | +| `remote-control-server` | Start a persistent Remote Control server (daemon) that accepts multiple sessions | 启动持久化远程控制服务器(守护进程)以接受多个会话 | +| `remote-env` | Configure the default remote environment for teleport sessions | 配置传送会话的默认远程环境 | +| `remote-setup` | Setup Claude Code on the web (requires connecting your GitHub account) | 在 Web 上设置 Claude Code(需要连接 GitHub 账户) | +| `rename` | Rename the current conversation | 重命名当前对话 | +| `reset-limits` | [STUB 空实现] | (空实现,未开发) | +| `resume` | Resume a previous conversation | 恢复之前的对话 | +| `review` | Review a pull request | 审查 Pull Request | +| `rewind` | Restore the code and/or conversation to a previous point | 将代码和/或对话恢复到之前的某个点 | + +### S + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `sandbox-toggle` | [DYNAMIC] Toggle sandbox mode (显示当前状态) | 切换沙盒模式 | +| `security-review` | Complete a security review of the pending changes on the current branch | 对当前分支上的待处理更改进行安全审查 | +| `session` | Show remote session URL and QR code | 显示远程会话 URL 和二维码 | +| `share` | (内部命令) | (内部命令) | +| `skills` | List available skills | 列出可用的技能 | +| `stats` | Show your Claude Code usage statistics and activity | 显示 Claude Code 使用统计和活动 | +| `status` | Show Claude Code status including version, model, account, API connectivity, and tool statuses | 显示 Claude Code 状态,包括版本、模型、账户、API 连接和工具状态 | +| `stickers` | Order Claude Code stickers | 订购 Claude Code 贴纸 | +| `summary` | (内部命令) | (内部命令) | + +### T + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `tag` | Toggle a searchable tag on the current session | 在当前会话上切换可搜索标签 | +| `tasks` | List and manage background tasks | 列出和管理后台任务 | +| `teleport` | (内部命令) | (内部命令) | +| `terminalSetup` | Enable Option+Enter key binding for newlines and visual bell (Apple Terminal) / Install Shift+Enter key binding for newlines (other terminals) | 启用选项 Enter 键绑定以换行和视觉提示(Apple Terminal)/ 安装 Shift+Enter 键绑定以换行(其他终端) | +| `theme` | Change the theme | 更改主题 | +| `thinkback` | Your 2025 Claude Code Year in Review | 您的 2025 Claude Code 年度回顾 | +| `thinkback-play` | Play the thinkback animation | 播放 thinkback 动画 | + +### U + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `ultraplan` | (内部命令) | (内部命令) | +| `upgrade` | Upgrade to Max for higher rate limits and more Opus | 升级到 Max 以获得更高的速率限制和更多 Opus | +| `usage` | Show plan usage limits | 显示计划使用限制 | + +### V + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `version` | Print the version this session is running (not what autoupdate downloaded) | 打印此会话运行的版本(不是自动下载的版本) | +| `vim` | Toggle between Vim and Normal editing modes | 在 Vim 和 Normal 编辑模式之间切换 | +| `voice` | Toggle voice mode | 切换语音模式 | + +### W + +| 命令 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `web-setup` | (内部命令) | (内部命令) | +| `workflows` | [STUB 空实现] | (空实现,未开发) | + +--- + +## STUB 空实现列表 + +以下 5 个命令尚未实现,仅为占位符: + +| 命令 | 说明 | +|------|------| +| `fork` | 分叉会话 | +| `peers` | 对等连接 | +| `reset-limits` | 重置限制 | +| `workflows` | 工作流 | + +--- + +## 动态描述命令 + +以下 5 个命令的描述是运行时动态生成的: + +| 命令 | 动态描述内容 | +|------|-------------| +| `fast` | Toggle fast mode (显示当前模式) | +| `model` | Set the AI model for Claude Code (显示当前模型) | +| `passes` | Share a free week of Claude Code with friends | +| `sandbox-toggle` | 显示沙盒状态 (enabled/disabled/auto-allow) | + +--- + +## 内部命令(不在命令行显示) + +以下命令是内部功能,不在 `/help` 中显示: + +`agents-platform` · `ant-trace` · `assistant` · `autofix-pr` · `backfill-sessions` · `break-cache` · `bughunter` · `ctx_viz` · `debug-tool-call` · `env` · `good-claude` · `install` · `issue` · `mock-limits` · `oauth-refresh` · `onboarding` · `perf-issue` · `plugin` · `share` · `summary` · `teleport` · `ultraplan` · `web-setup` + +--- + +## 按功能分类 + +### 会话控制 +`branch` · `clear` · `compact` · `desktop` · `exit` · `export` · `fork` · `memory` · `plan` · `rename` · `resume` · `rewind` · `session` · `share` · `summary` · `tag` · `tasks` · `teleport` + +### 上下文与状态 +`context` · `cost` · `effort` · `files` · `status` + +### 配置与管理 +`add-dir` · `agents` · `config` · `keybindings` · `mcp` · `output-style` · `permissions` · `plugin` · `privacy-settings` · `provider` · `rate-limit-options` · `reload-plugins` · `remote-control` · `remote-control-server` · `remote-env` · `remote-setup` · `terminalSetup` · `theme` · `web-setup` + +### 版本控制 +`commit` · `commit-push-pr` · `diff` · `pr_comments` · `review` + +### 代码审查与调试 +`bughunter` · `doctor` · `heapdump` · `perf-issue` · `security-review` + +### 账户与认证 +`login` · `logout` · `oauth-refresh` · `upgrade` · `usage` + +### 扩展与服务 +`chrome` · `ide` · `install-github-app` · `install-slack-app` · `mobile` · `skills` · `stickers` + +### 开发工具 +`btw` · `buddy` · `color` · `copy` · `env` · `fast` · `feedback` · `good-claude` · `help` · `hooks` · `init` · `init-verifiers` · `model` · `release-notes` · `vim` · `voice` + +### 特殊功能 +`backfill-sessions` · `break-cache` · `passes` · `peers` · `reset-limits` · `sandbox-toggle` · `thinkback` · `thinkback-play` · `ultraplan` · `workflows` + +--- + +*最后更新:2026/04/07* + +--- + +## Bundled Skills(内置技能) + +以下技能注册在 `src/skills/bundled/`,通过技能系统调用: + +| 技能 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `batch` | Run a prompt or slash command on a recurring interval | 研究和规划大规模变更,然后通过 5–30 个隔离的 worktree 智能体并行执行 | +| `claude-api` | Build apps with the Claude API or Anthropic SDK | 使用 Claude API 或 Anthropic SDK 构建应用 | +| `claude-in-chrome` | Automates your Chrome browser to interact with web pages | 自动化您的 Chrome 浏览器与网页交互 | +| `cron-list` | List all scheduled cron jobs in this session | 列出此会话中所有计划任务 | +| `cron-delete` | Cancel a scheduled cron job by ID | 按 ID 取消计划任务 | +| `debug` | Enable debug logging for this session and help diagnose issues | 启用此会话的调试日志并帮助诊断问题 | +| `dream` | Manually trigger memory consolidation | 手动触发记忆整合 — 审查、整理和清理您的自动记忆文件 | +| `keybindings-help` | Customize keyboard shortcuts and keybindings | 自定义键盘快捷键和按键绑定 | +| `lorem-ipsum` | Generate filler text for long context testing | 生成用于长上下文测试的填充文本 | +| `loop` | Run a prompt or slash command on a recurring interval | 按定期间隔运行提示或斜杠命令 | +| `remember` | Review auto-memory entries and propose promotions | 审查自动记忆条目并提议晋升 | +| `schedule` | Create, update, list, or run scheduled remote agents | 创建、更新、列出或运行计划远程智能体 | +| `simplify` | Review changed code for reuse, quality, and efficiency | 审查更改的代码以进行复用、质量和效率优化 | +| `skillify` | Capture this session's repeatable process into a skill | 将此会话的可重复过程捕获为技能 | +| `stuck` | Investigate frozen/stuck/slow Claude Code sessions | 调查冻结/卡住/缓慢的 Claude Code 会话 | +| `update-config` | Configure Claude Code via settings.json | 通过 settings.json 配置 Claude Code | + +--- + +## Skills(用户技能目录) + +以下技能位于 `.claude/skills/` 目录: + +| 技能 | 原文描述 | 中文翻译 | +|------|----------|----------| +| `interview` | Interview me about my requirements | 通过深入提问来了解我的需求 | +| `teach-me` | Personalized 1-on-1 AI tutor | 个性化一对一 AI 导师 | + +--- + +## MCP 工具(不属于命令) + +以下为 MCP 工具,非斜杠命令: + +| 工具 | 说明 | +|------|------| +| `fetch` | 获取 URL 内容 | +| `web-search` | 网页搜索 | +| `mcp__playwright__*` | 浏览器自动化工具 | +| `mcp__MiniMax__*` | MiniMax 相关工具 | + +--- + +## 分支说明 + +本翻译工作在 `translated` 分支进行,与上游 `master` 分支分离。 + +### 分支策略 + +| 分支 | 用途 | +|------|------| +| `master` | 接收上游更新,直接 `git pull` 即可 | +| `translated` | 存放翻译更改,合并 master 后快速定位新命令 | + +### 更新流程 + +1. **切换到 master 并拉取更新**: + ```bash + git checkout master + git pull origin master + ``` + +2. **切换到 translated 并合并**: + ```bash + git checkout translated + git merge master + ``` + +3. **处理冲突后,对照本文件的"翻译对照表"部分检查新增命令** + +4. **翻译完成后提交**: + ```bash + git add . + git commit -m "翻译: 更新至 xxxx 版本" + ``` + +### 备份文件 + +翻译前的原始描述备份位于 `backup/commands/` 目录(77个命令描述)。 + +--- + +## 翻译对照表(用于快速定位) + +当官方版本更新后,对比此表找出新增或修改的命令: + +```javascript +// commands.ts 中新增命令的特征 +const newCommand = { + type: 'prompt', + name: '新命令名', + description: '英文描述', // <-- 需要翻译 +} + +// src/commands/新命令/index.ts +export default { + name: '新命令', + description: '英文描述', // <-- 需要翻译 +} + +// src/skills/bundled/新技能.ts +registerBundledSkill({ + name: '新技能', + description: '英文描述', // <-- 需要翻译 +}) +``` + +--- + +## 更新检查清单 + +每次更新 leak-cc 版本后,执行以下检查: + +- [ ] 对比 `git diff src/commands.ts` 查找新增命令 +- [ ] 对比 `git diff src/commands/` 目录 +- [ ] 对比 `git diff src/skills/bundled/` 目录 +- [ ] 检查 `.claude/skills/` 是否有新增技能 +- [ ] 验证所有新增描述已翻译为中文 From c1e509e8a478a5b492843ea35750a44866fad7f0 Mon Sep 17 00:00:00 2001 From: juxing009 Date: Tue, 7 Apr 2026 23:18:55 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=BF=BB=E8=AF=91:=20=E6=89=80=E6=9C=89?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E5=92=8C=E6=8A=80=E8=83=BD=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/skills/interview/SKILL.md | 2 +- .claude/skills/teach-me/SKILL.md | 2 +- COMMANDS.md | 58 ++++++++++++++++++---- src/commands.ts | 2 +- src/commands/add-dir/index.ts | 2 +- src/commands/advisor.ts | 2 +- src/commands/agents/index.ts | 2 +- src/commands/branch/index.ts | 2 +- src/commands/bridge-kick.ts | 2 +- src/commands/bridge/index.ts | 2 +- src/commands/brief.ts | 2 +- src/commands/btw/index.ts | 2 +- src/commands/buddy/index.ts | 2 +- src/commands/chrome/index.ts | 2 +- src/commands/clear/index.ts | 2 +- src/commands/color/index.ts | 2 +- src/commands/commit-push-pr.ts | 2 +- src/commands/commit.ts | 2 +- src/commands/compact/index.ts | 2 +- src/commands/config/index.ts | 2 +- src/commands/context/index.ts | 4 +- src/commands/copy/index.ts | 2 +- src/commands/cost/index.ts | 2 +- src/commands/desktop/index.ts | 2 +- src/commands/diff/index.ts | 2 +- src/commands/doctor/index.ts | 2 +- src/commands/effort/index.ts | 2 +- src/commands/exit/index.ts | 2 +- src/commands/export/index.ts | 2 +- src/commands/extra-usage/index.ts | 4 +- src/commands/feedback/index.ts | 2 +- src/commands/files/index.ts | 2 +- src/commands/heapdump/index.ts | 2 +- src/commands/help/index.ts | 2 +- src/commands/hooks/index.ts | 2 +- src/commands/ide/index.ts | 2 +- src/commands/init-verifiers.ts | 2 +- src/commands/init.ts | 4 +- src/commands/insights.ts | 2 +- src/commands/install-github-app/index.ts | 2 +- src/commands/install-slack-app/index.ts | 2 +- src/commands/install.tsx | 2 +- src/commands/keybindings/index.ts | 2 +- src/commands/login/index.ts | 4 +- src/commands/logout/index.ts | 2 +- src/commands/mcp/index.ts | 2 +- src/commands/memory/index.ts | 2 +- src/commands/mobile/index.ts | 2 +- src/commands/model/index.ts | 2 +- src/commands/output-style/index.ts | 2 +- src/commands/permissions/index.ts | 2 +- src/commands/plan/index.ts | 2 +- src/commands/plugin/index.tsx | 2 +- src/commands/pr_comments/index.ts | 2 +- src/commands/privacy-settings/index.ts | 2 +- src/commands/provider.ts | 2 +- src/commands/rate-limit-options/index.ts | 2 +- src/commands/release-notes/index.ts | 2 +- src/commands/reload-plugins/index.ts | 2 +- src/commands/remote-env/index.ts | 2 +- src/commands/remote-setup/index.ts | 2 +- src/commands/remoteControlServer/index.ts | 2 +- src/commands/rename/index.ts | 2 +- src/commands/resume/index.ts | 2 +- src/commands/review.ts | 4 +- src/commands/rewind/index.ts | 2 +- src/commands/security-review.ts | 2 +- src/commands/session/index.ts | 2 +- src/commands/skills/index.ts | 2 +- src/commands/stats/index.ts | 2 +- src/commands/status/index.ts | 2 +- src/commands/statusline.tsx | 2 +- src/commands/stickers/index.ts | 2 +- src/commands/tag/index.ts | 2 +- src/commands/tasks/index.ts | 2 +- src/commands/terminalSetup/index.ts | 4 +- src/commands/theme/index.ts | 2 +- src/commands/thinkback-play/index.ts | 2 +- src/commands/thinkback/index.ts | 2 +- src/commands/upgrade/index.ts | 2 +- src/commands/usage/index.ts | 2 +- src/commands/version.ts | 2 +- src/commands/vim/index.ts | 2 +- src/commands/voice/index.ts | 2 +- src/skills/bundled/batch.ts | 2 +- src/skills/bundled/claudeApi.ts | 4 +- src/skills/bundled/claudeInChrome.ts | 2 +- src/skills/bundled/cronManage.ts | 4 +- src/skills/bundled/debug.ts | 2 +- src/skills/bundled/dream.ts | 2 +- src/skills/bundled/keybindings.ts | 2 +- src/skills/bundled/loop.ts | 2 +- src/skills/bundled/loremIpsum.ts | 2 +- src/skills/bundled/remember.ts | 2 +- src/skills/bundled/scheduleRemoteAgents.ts | 2 +- src/skills/bundled/simplify.ts | 2 +- src/skills/bundled/skillify.ts | 2 +- src/skills/bundled/stuck.ts | 2 +- src/skills/bundled/updateConfig.ts | 2 +- 99 files changed, 152 insertions(+), 118 deletions(-) diff --git a/.claude/skills/interview/SKILL.md b/.claude/skills/interview/SKILL.md index 17c79be2a..80e79598f 100644 --- a/.claude/skills/interview/SKILL.md +++ b/.claude/skills/interview/SKILL.md @@ -1,6 +1,6 @@ --- name: interview -description: "Interview me about my requirements" +description: "通过深入提问来了解我的需求" --- Analyze these requirements "$ARGUMENTS" and interview me in detail using the AskUserQuestionTool about literally anything: technical implementation, UI & UX, concerns, tradeoffs, etc. but make sure the questions are not obvious. diff --git a/.claude/skills/teach-me/SKILL.md b/.claude/skills/teach-me/SKILL.md index 1900181a1..fbbc44231 100644 --- a/.claude/skills/teach-me/SKILL.md +++ b/.claude/skills/teach-me/SKILL.md @@ -1,6 +1,6 @@ --- name: teach-me -description: "Personalized 1-on-1 AI tutor. Diagnoses level, builds learning path, teaches via guided questions, tracks misconceptions. Use when user wants to learn/study/understand a topic, says 'teach me', 'help me understand', or invokes /teach-me." +description: "个性化一对一 AI 导师。诊断水平、制定学习路径、通过引导式提问教学、追踪误解。当用户想要学习/研究/理解某个主题时说 'teach me'、'help me understand' 或调用 /teach-me 时使用。" --- # Teach Me diff --git a/COMMANDS.md b/COMMANDS.md index 7870dd8f5..ef572154c 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -354,28 +354,64 @@ | `master` | 接收上游更新,直接 `git pull` 即可 | | `translated` | 存放翻译更改,合并 master 后快速定位新命令 | -### 更新流程 +### 更新流程(⚠️ 方向很重要!) -1. **切换到 master 并拉取更新**: - ```bash - git checkout master - git pull origin master - ``` +```bash +# 1. 切换到 master 并拉取上游最新代码 +git checkout master +git pull + +# 2. 切回 translated 分支 +git checkout translated + +# 3. 把上游 master 的内容合并进来(重要!) +git merge master +``` + +**这个方向是正确的**:上游新增 → 自动进入你的 translated 分支 + +### ⚠️ 危险操作:绝对不要这样做! + +```bash +# ❌ 错误!方向搞反了! +git checkout master +git merge translated +``` + +**后果**: +- 可能丢失上游 master 新增的内容 +- 可能覆盖上游的修改 + +**比喻**: +| 操作 | 结果 | +|------|------| +| 你去图书馆借书(merge master → translated) | 新书到手,旧书还在 ✅ | +| 把你的书架复制到图书馆(merge translated → master) | 可能丢失图书馆的新书 ❌ | -2. **切换到 translated 并合并**: +### 合并后检查 + +1. 查看新增文件: ```bash - git checkout translated - git merge master + git log --oneline master..translated # 看你这边提交了啥 + git log --oneline translated..master # 看上游新增了啥(合并后这个应该有内容) ``` -3. **处理冲突后,对照本文件的"翻译对照表"部分检查新增命令** +2. 打开 `/help` 检查新命令是否出现 + +3. 翻译新增的命令描述(参考"翻译对照表"部分) -4. **翻译完成后提交**: +4. 提交翻译更新: ```bash git add . git commit -m "翻译: 更新至 xxxx 版本" ``` +### 关于 COMMANDS.md + +- 这个文件在 translated 分支,**上游没有** +- 合并上游代码时,**不会被删除或覆盖** +- 如果在合并过程中看到冲突提示,**不要删除这个文件** + ### 备份文件 翻译前的原始描述备份位于 `backup/commands/` 目录(77个命令描述)。 diff --git a/src/commands.ts b/src/commands.ts index e8aa0e642..a80edafc5 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -191,7 +191,7 @@ import stats from './commands/stats/index.js' const usageReport: Command = { type: 'prompt', name: 'insights', - description: 'Generate a report analyzing your Claude Code sessions', + description: '生成分析 Claude Code 会话的报告', contentLength: 0, progressMessage: 'analyzing your sessions', source: 'builtin', diff --git a/src/commands/add-dir/index.ts b/src/commands/add-dir/index.ts index e3475492b..ceed23ac6 100644 --- a/src/commands/add-dir/index.ts +++ b/src/commands/add-dir/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const addDir = { type: 'local-jsx', name: 'add-dir', - description: 'Add a new working directory', + description: '添加一个新的工作目录', argumentHint: '', load: () => import('./add-dir.js'), } satisfies Command diff --git a/src/commands/advisor.ts b/src/commands/advisor.ts index cec3feb1a..7702b11c3 100644 --- a/src/commands/advisor.ts +++ b/src/commands/advisor.ts @@ -96,7 +96,7 @@ const call: LocalCommandCall = async (args, context) => { const advisor = { type: 'local', name: 'advisor', - description: 'Configure the advisor model', + description: '配置顾问模型', argumentHint: '[|off]', isEnabled: () => canUserConfigureAdvisor(), get isHidden() { diff --git a/src/commands/agents/index.ts b/src/commands/agents/index.ts index ac43d2ec9..8320b784d 100644 --- a/src/commands/agents/index.ts +++ b/src/commands/agents/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const agents = { type: 'local-jsx', name: 'agents', - description: 'Manage agent configurations', + description: '管理智能体配置', load: () => import('./agents.js'), } satisfies Command diff --git a/src/commands/branch/index.ts b/src/commands/branch/index.ts index 731ff39fe..5de21d5cd 100644 --- a/src/commands/branch/index.ts +++ b/src/commands/branch/index.ts @@ -6,7 +6,7 @@ const branch = { name: 'branch', // 'fork' alias only when /fork doesn't exist as its own command aliases: feature('FORK_SUBAGENT') ? [] : ['fork'], - description: 'Create a branch of the current conversation at this point', + description: '在当前位置创建当前对话的分支', argumentHint: '[name]', load: () => import('./branch.js'), } satisfies Command diff --git a/src/commands/bridge-kick.ts b/src/commands/bridge-kick.ts index f8564c075..926cda0ab 100644 --- a/src/commands/bridge-kick.ts +++ b/src/commands/bridge-kick.ts @@ -191,7 +191,7 @@ const call: LocalCommandCall = async args => { const bridgeKick = { type: 'local', name: 'bridge-kick', - description: 'Inject bridge failure states for manual recovery testing', + description: '注入桥接故障状态以进行手动恢复测试', isEnabled: () => process.env.USER_TYPE === 'ant', supportsNonInteractive: false, load: () => Promise.resolve({ call }), diff --git a/src/commands/bridge/index.ts b/src/commands/bridge/index.ts index 5b6fc44c8..c0cbf0b56 100644 --- a/src/commands/bridge/index.ts +++ b/src/commands/bridge/index.ts @@ -13,7 +13,7 @@ const bridge = { type: 'local-jsx', name: 'remote-control', aliases: ['rc'], - description: 'Connect this terminal for remote-control sessions', + description: '连接此终端以进行远程控制会话', argumentHint: '[name]', isEnabled, get isHidden() { diff --git a/src/commands/brief.ts b/src/commands/brief.ts index d37ffd0ab..339e5816f 100644 --- a/src/commands/brief.ts +++ b/src/commands/brief.ts @@ -47,7 +47,7 @@ function getBriefConfig(): BriefConfig { const brief = { type: 'local-jsx', name: 'brief', - description: 'Toggle brief-only mode', + description: '切换简短模式', isEnabled: () => { if (feature('KAIROS') || feature('KAIROS_BRIEF')) { return getBriefConfig().enable_slash_command diff --git a/src/commands/btw/index.ts b/src/commands/btw/index.ts index d4888711d..97123f244 100644 --- a/src/commands/btw/index.ts +++ b/src/commands/btw/index.ts @@ -4,7 +4,7 @@ const btw = { type: 'local-jsx', name: 'btw', description: - 'Ask a quick side question without interrupting the main conversation', + '快速提问而不中断主对话', immediate: true, argumentHint: '', load: () => import('./btw.js'), diff --git a/src/commands/buddy/index.ts b/src/commands/buddy/index.ts index 8df683028..47738d6f5 100644 --- a/src/commands/buddy/index.ts +++ b/src/commands/buddy/index.ts @@ -4,7 +4,7 @@ import { isBuddyLive } from '../../buddy/useBuddyNotification.js' const buddy = { type: 'local-jsx', name: 'buddy', - description: 'Hatch a coding companion · pet, off', + description: '孵化一个编程伴侣 · 宠物,关闭', argumentHint: '[pet|off]', immediate: true, get isHidden() { diff --git a/src/commands/chrome/index.ts b/src/commands/chrome/index.ts index 6e5b4f82f..92512a22d 100644 --- a/src/commands/chrome/index.ts +++ b/src/commands/chrome/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const command: Command = { name: 'chrome', - description: 'Claude in Chrome (Beta) settings', + description: 'Chrome 中的 Claude 设置(Beta)', availability: [], isEnabled: () => !getIsNonInteractiveSession(), type: 'local-jsx', diff --git a/src/commands/clear/index.ts b/src/commands/clear/index.ts index a426de6fa..090693e50 100644 --- a/src/commands/clear/index.ts +++ b/src/commands/clear/index.ts @@ -10,7 +10,7 @@ import type { Command } from '../../commands.js' const clear = { type: 'local', name: 'clear', - description: 'Clear conversation history and free up context', + description: '清除对话历史并释放上下文', aliases: ['reset', 'new'], supportsNonInteractive: false, // Should just create a new session load: () => import('./clear.js'), diff --git a/src/commands/color/index.ts b/src/commands/color/index.ts index eee9cb7e4..369862f48 100644 --- a/src/commands/color/index.ts +++ b/src/commands/color/index.ts @@ -7,7 +7,7 @@ import type { Command } from '../../commands.js' const color = { type: 'local-jsx', name: 'color', - description: 'Set the prompt bar color for this session', + description: '设置此会话的提示栏颜色', immediate: true, argumentHint: '', load: () => import('./color.js'), diff --git a/src/commands/commit-push-pr.ts b/src/commands/commit-push-pr.ts index ae270cc7d..8e9fb6980 100644 --- a/src/commands/commit-push-pr.ts +++ b/src/commands/commit-push-pr.ts @@ -108,7 +108,7 @@ Return the PR URL when you're done, so the user can see it.` const command = { type: 'prompt', name: 'commit-push-pr', - description: 'Commit, push, and open a PR', + description: '提交、推送并打开 PR', allowedTools: ALLOWED_TOOLS, get contentLength() { // Use 'main' as estimate for content length calculation diff --git a/src/commands/commit.ts b/src/commands/commit.ts index 2c9b55556..e0c613e6b 100644 --- a/src/commands/commit.ts +++ b/src/commands/commit.ts @@ -57,7 +57,7 @@ You have the capability to call multiple tools in a single response. Stage and c const command = { type: 'prompt', name: 'commit', - description: 'Create a git commit', + description: '创建 Git 提交', allowedTools: ALLOWED_TOOLS, contentLength: 0, // Dynamic content progressMessage: 'creating commit', diff --git a/src/commands/compact/index.ts b/src/commands/compact/index.ts index 6db38d4ef..1cd21014f 100644 --- a/src/commands/compact/index.ts +++ b/src/commands/compact/index.ts @@ -5,7 +5,7 @@ const compact = { type: 'local', name: 'compact', description: - 'Clear conversation history but keep a summary in context. Optional: /compact [instructions for summarization]', + '清除对话历史但在上下文中保留摘要。可选:/compact [摘要说明]', isEnabled: () => !isEnvTruthy(process.env.DISABLE_COMPACT), supportsNonInteractive: true, argumentHint: '', diff --git a/src/commands/config/index.ts b/src/commands/config/index.ts index 8a88bfcc0..92276d56c 100644 --- a/src/commands/config/index.ts +++ b/src/commands/config/index.ts @@ -4,7 +4,7 @@ const config = { aliases: ['settings'], type: 'local-jsx', name: 'config', - description: 'Open config panel', + description: '打开配置面板', load: () => import('./config.js'), } satisfies Command diff --git a/src/commands/context/index.ts b/src/commands/context/index.ts index 2edce5add..d5c35d67e 100644 --- a/src/commands/context/index.ts +++ b/src/commands/context/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' export const context: Command = { name: 'context', - description: 'Visualize current context usage as a colored grid', + description: '将当前上下文使用情况可视化为彩色网格', isEnabled: () => !getIsNonInteractiveSession(), type: 'local-jsx', load: () => import('./context.js'), @@ -13,7 +13,7 @@ export const contextNonInteractive: Command = { type: 'local', name: 'context', supportsNonInteractive: true, - description: 'Show current context usage', + description: '显示当前上下文使用情况', get isHidden() { return !getIsNonInteractiveSession() }, diff --git a/src/commands/copy/index.ts b/src/commands/copy/index.ts index 092c70e05..e46793bc0 100644 --- a/src/commands/copy/index.ts +++ b/src/commands/copy/index.ts @@ -8,7 +8,7 @@ const copy = { type: 'local-jsx', name: 'copy', description: - "Copy Claude's last response to clipboard (or /copy N for the Nth-latest)", + '复制 Claude 的上一条响应到剪贴板(或 /copy N 获取倒数第 N 条)', load: () => import('./copy.js'), } satisfies Command diff --git a/src/commands/cost/index.ts b/src/commands/cost/index.ts index d1c2d23cd..8b59a1e30 100644 --- a/src/commands/cost/index.ts +++ b/src/commands/cost/index.ts @@ -8,7 +8,7 @@ import { isClaudeAISubscriber } from '../../utils/auth.js' const cost = { type: 'local', name: 'cost', - description: 'Show the total cost and duration of the current session', + description: '显示当前会话的总成本和持续时间', get isHidden() { // Keep visible for Ants even if they're subscribers (they see cost breakdowns) if (process.env.USER_TYPE === 'ant') { diff --git a/src/commands/desktop/index.ts b/src/commands/desktop/index.ts index d03c3aeb3..c8ee3db0a 100644 --- a/src/commands/desktop/index.ts +++ b/src/commands/desktop/index.ts @@ -14,7 +14,7 @@ const desktop = { type: 'local-jsx', name: 'desktop', aliases: ['app'], - description: 'Continue the current session in Claude Desktop', + description: '在 Claude Desktop 中继续当前会话', availability: ['claude-ai'], isEnabled: isSupportedPlatform, get isHidden() { diff --git a/src/commands/diff/index.ts b/src/commands/diff/index.ts index a15b819a7..e0c9a308d 100644 --- a/src/commands/diff/index.ts +++ b/src/commands/diff/index.ts @@ -3,6 +3,6 @@ import type { Command } from '../../commands.js' export default { type: 'local-jsx', name: 'diff', - description: 'View uncommitted changes and per-turn diffs', + description: '查看未提交的更改和每轮对话的差异', load: () => import('./diff.js'), } satisfies Command diff --git a/src/commands/doctor/index.ts b/src/commands/doctor/index.ts index 6a0b08997..25f546742 100644 --- a/src/commands/doctor/index.ts +++ b/src/commands/doctor/index.ts @@ -3,7 +3,7 @@ import { isEnvTruthy } from '../../utils/envUtils.js' const doctor: Command = { name: 'doctor', - description: 'Diagnose and verify your Claude Code installation and settings', + description: '诊断并验证 Claude Code 安装和设置', isEnabled: () => !isEnvTruthy(process.env.DISABLE_DOCTOR_COMMAND), type: 'local-jsx', load: () => import('./doctor.js'), diff --git a/src/commands/effort/index.ts b/src/commands/effort/index.ts index 66cd5110a..909782bbc 100644 --- a/src/commands/effort/index.ts +++ b/src/commands/effort/index.ts @@ -4,7 +4,7 @@ import { shouldInferenceConfigCommandBeImmediate } from '../../utils/immediateCo export default { type: 'local-jsx', name: 'effort', - description: 'Set effort level for model usage', + description: '设置模型使用的 effort 级别', argumentHint: '[low|medium|high|max|auto]', get immediate() { return shouldInferenceConfigCommandBeImmediate() diff --git a/src/commands/exit/index.ts b/src/commands/exit/index.ts index f32499e7f..31f59f3c1 100644 --- a/src/commands/exit/index.ts +++ b/src/commands/exit/index.ts @@ -4,7 +4,7 @@ const exit = { type: 'local-jsx', name: 'exit', aliases: ['quit'], - description: 'Exit the REPL', + description: '退出 REPL', immediate: true, load: () => import('./exit.js'), } satisfies Command diff --git a/src/commands/export/index.ts b/src/commands/export/index.ts index a3d8bb283..50c19e7ae 100644 --- a/src/commands/export/index.ts +++ b/src/commands/export/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const exportCommand = { type: 'local-jsx', name: 'export', - description: 'Export the current conversation to a file or clipboard', + description: '将当前对话导出到文件或剪贴板', argumentHint: '[filename]', load: () => import('./export.js'), } satisfies Command diff --git a/src/commands/extra-usage/index.ts b/src/commands/extra-usage/index.ts index cea0ba4a9..198e9cadf 100644 --- a/src/commands/extra-usage/index.ts +++ b/src/commands/extra-usage/index.ts @@ -13,7 +13,7 @@ function isExtraUsageAllowed(): boolean { export const extraUsage = { type: 'local-jsx', name: 'extra-usage', - description: 'Configure extra usage to keep working when limits are hit', + description: '配置额外使用量,当达到限制时继续工作', isEnabled: () => isExtraUsageAllowed() && !getIsNonInteractiveSession(), load: () => import('./extra-usage.js'), } satisfies Command @@ -22,7 +22,7 @@ export const extraUsageNonInteractive = { type: 'local', name: 'extra-usage', supportsNonInteractive: true, - description: 'Configure extra usage to keep working when limits are hit', + description: '配置额外使用量,当达到限制时继续工作', isEnabled: () => isExtraUsageAllowed() && getIsNonInteractiveSession(), get isHidden() { return !getIsNonInteractiveSession() diff --git a/src/commands/feedback/index.ts b/src/commands/feedback/index.ts index ec092c8c7..eaccf4cd0 100644 --- a/src/commands/feedback/index.ts +++ b/src/commands/feedback/index.ts @@ -7,7 +7,7 @@ const feedback = { aliases: ['bug'], type: 'local-jsx', name: 'feedback', - description: `Submit feedback about Claude Code`, + description: `提交关于 Claude Code 的反馈`, argumentHint: '[report]', isEnabled: () => !( diff --git a/src/commands/files/index.ts b/src/commands/files/index.ts index 984b2d30d..68fdaab07 100644 --- a/src/commands/files/index.ts +++ b/src/commands/files/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const files = { type: 'local', name: 'files', - description: 'List all files currently in context', + description: '列出当前上下文中的所有文件', isEnabled: () => process.env.USER_TYPE === 'ant', supportsNonInteractive: true, load: () => import('./files.js'), diff --git a/src/commands/heapdump/index.ts b/src/commands/heapdump/index.ts index 11628ae6d..3b631c6fa 100644 --- a/src/commands/heapdump/index.ts +++ b/src/commands/heapdump/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const heapDump = { type: 'local', name: 'heapdump', - description: 'Dump the JS heap to ~/Desktop', + description: '将 JS 堆转储到 ~/Desktop', isHidden: true, supportsNonInteractive: true, load: () => import('./heapdump.js'), diff --git a/src/commands/help/index.ts b/src/commands/help/index.ts index 31f465d99..607ea16f5 100644 --- a/src/commands/help/index.ts +++ b/src/commands/help/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const help = { type: 'local-jsx', name: 'help', - description: 'Show help and available commands', + description: '显示帮助和可用命令', load: () => import('./help.js'), } satisfies Command diff --git a/src/commands/hooks/index.ts b/src/commands/hooks/index.ts index 4567dbf22..b123f90ce 100644 --- a/src/commands/hooks/index.ts +++ b/src/commands/hooks/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const hooks = { type: 'local-jsx', name: 'hooks', - description: 'View hook configurations for tool events', + description: '查看工具事件的钩子配置', immediate: true, load: () => import('./hooks.js'), } satisfies Command diff --git a/src/commands/ide/index.ts b/src/commands/ide/index.ts index 1e47d1cfc..089cc256d 100644 --- a/src/commands/ide/index.ts +++ b/src/commands/ide/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const ide = { type: 'local-jsx', name: 'ide', - description: 'Manage IDE integrations and show status', + description: '管理 IDE 集成并显示状态', argumentHint: '[open]', load: () => import('./ide.js'), } satisfies Command diff --git a/src/commands/init-verifiers.ts b/src/commands/init-verifiers.ts index a37188c59..62f6d7bec 100644 --- a/src/commands/init-verifiers.ts +++ b/src/commands/init-verifiers.ts @@ -4,7 +4,7 @@ const command = { type: 'prompt', name: 'init-verifiers', description: - 'Create verifier skill(s) for automated verification of code changes', + '创建验证器技能以自动验证代码更改', contentLength: 0, // Dynamic content progressMessage: 'analyzing your project and creating verifier skills', source: 'builtin', diff --git a/src/commands/init.ts b/src/commands/init.ts index 93ac40ef2..dd121a577 100644 --- a/src/commands/init.ts +++ b/src/commands/init.ts @@ -230,8 +230,8 @@ const command = { return feature('NEW_INIT') && (process.env.USER_TYPE === 'ant' || isEnvTruthy(process.env.CLAUDE_CODE_NEW_INIT)) - ? 'Initialize new CLAUDE.md file(s) and optional skills/hooks with codebase documentation' - : 'Initialize a new CLAUDE.md file with codebase documentation' + ? '使用代码库文档初始化新的 CLAUDE.md 文件和可选的技能/钩子' + : '使用代码库文档初始化新的 CLAUDE.md 文件' }, contentLength: 0, // Dynamic content progressMessage: 'analyzing your codebase', diff --git a/src/commands/insights.ts b/src/commands/insights.ts index 3e9acbe41..6c9fbfb8c 100644 --- a/src/commands/insights.ts +++ b/src/commands/insights.ts @@ -3039,7 +3039,7 @@ function safeKeys(obj: Record | undefined | null): string[] { const usageReport: Command = { type: 'prompt', name: 'insights', - description: 'Generate a report analyzing your Claude Code sessions', + description: '生成分析 Claude Code 会话的报告', contentLength: 0, // Dynamic content progressMessage: 'analyzing your sessions', source: 'builtin', diff --git a/src/commands/install-github-app/index.ts b/src/commands/install-github-app/index.ts index 9b5b88291..8e0e4865f 100644 --- a/src/commands/install-github-app/index.ts +++ b/src/commands/install-github-app/index.ts @@ -4,7 +4,7 @@ import { isEnvTruthy } from '../../utils/envUtils.js' const installGitHubApp = { type: 'local-jsx', name: 'install-github-app', - description: 'Set up Claude GitHub Actions for a repository', + description: '为仓库设置 Claude GitHub Actions', availability: ['claude-ai', 'console'], isEnabled: () => !isEnvTruthy(process.env.DISABLE_INSTALL_GITHUB_APP_COMMAND), load: () => import('./install-github-app.js'), diff --git a/src/commands/install-slack-app/index.ts b/src/commands/install-slack-app/index.ts index c6dc8ae5c..88ed955ea 100644 --- a/src/commands/install-slack-app/index.ts +++ b/src/commands/install-slack-app/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const installSlackApp = { type: 'local', name: 'install-slack-app', - description: 'Install the Claude Slack app', + description: '安装 Claude Slack 应用', availability: ['claude-ai'], supportsNonInteractive: false, load: () => import('./install-slack-app.js'), diff --git a/src/commands/install.tsx b/src/commands/install.tsx index 15eddd575..e3832ef3e 100644 --- a/src/commands/install.tsx +++ b/src/commands/install.tsx @@ -298,7 +298,7 @@ function Install({ onDone, force, target }: InstallProps): React.ReactNode { export const install = { type: 'local-jsx' as const, name: 'install', - description: 'Install Claude Code native build', + description: '安装 Claude Code 原生构建', argumentHint: '[options]', async call( onDone: ( diff --git a/src/commands/keybindings/index.ts b/src/commands/keybindings/index.ts index 37652c3fe..31ff45740 100644 --- a/src/commands/keybindings/index.ts +++ b/src/commands/keybindings/index.ts @@ -3,7 +3,7 @@ import { isKeybindingCustomizationEnabled } from '../../keybindings/loadUserBind const keybindings = { name: 'keybindings', - description: 'Open or create your keybindings configuration file', + description: '打开或创建快捷键配置文件', isEnabled: () => isKeybindingCustomizationEnabled(), supportsNonInteractive: false, type: 'local', diff --git a/src/commands/login/index.ts b/src/commands/login/index.ts index f9bc5a296..c75c09b89 100644 --- a/src/commands/login/index.ts +++ b/src/commands/login/index.ts @@ -7,8 +7,8 @@ export default () => type: 'local-jsx', name: 'login', description: hasAnthropicApiKeyAuth() - ? 'Switch Anthropic accounts' - : 'Sign in with your Anthropic account', + ? '切换 Anthropic 账户' + : '登录您的 Anthropic 账户', isEnabled: () => !isEnvTruthy(process.env.DISABLE_LOGIN_COMMAND), load: () => import('./login.js'), }) satisfies Command diff --git a/src/commands/logout/index.ts b/src/commands/logout/index.ts index 980506471..90e49491a 100644 --- a/src/commands/logout/index.ts +++ b/src/commands/logout/index.ts @@ -4,7 +4,7 @@ import { isEnvTruthy } from '../../utils/envUtils.js' export default { type: 'local-jsx', name: 'logout', - description: 'Sign out from your Anthropic account', + description: '退出 Anthropic 账户', isEnabled: () => !isEnvTruthy(process.env.DISABLE_LOGOUT_COMMAND), load: () => import('./logout.js'), } satisfies Command diff --git a/src/commands/mcp/index.ts b/src/commands/mcp/index.ts index 153ac5b2c..b8ae2396f 100644 --- a/src/commands/mcp/index.ts +++ b/src/commands/mcp/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const mcp = { type: 'local-jsx', name: 'mcp', - description: 'Manage MCP servers', + description: '管理 MCP 服务器', immediate: true, argumentHint: '[enable|disable [server-name]]', load: () => import('./mcp.js'), diff --git a/src/commands/memory/index.ts b/src/commands/memory/index.ts index 31f254c95..c14d1ac17 100644 --- a/src/commands/memory/index.ts +++ b/src/commands/memory/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const memory: Command = { type: 'local-jsx', name: 'memory', - description: 'Edit Claude memory files', + description: '编辑 Claude 记忆文件', load: () => import('./memory.js'), } diff --git a/src/commands/mobile/index.ts b/src/commands/mobile/index.ts index 2657aa842..ef14f9edf 100644 --- a/src/commands/mobile/index.ts +++ b/src/commands/mobile/index.ts @@ -4,7 +4,7 @@ const mobile = { type: 'local-jsx', name: 'mobile', aliases: ['ios', 'android'], - description: 'Show QR code to download the Claude mobile app', + description: '显示二维码以下载 Claude 移动应用', load: () => import('./mobile.js'), } satisfies Command diff --git a/src/commands/model/index.ts b/src/commands/model/index.ts index 5554906e6..159aa994c 100644 --- a/src/commands/model/index.ts +++ b/src/commands/model/index.ts @@ -6,7 +6,7 @@ export default { type: 'local-jsx', name: 'model', get description() { - return `Set the AI model for Claude Code (currently ${renderModelName(getMainLoopModel())})` + return `设置 Claude Code 的 AI 模型(当前模型:${renderModelName(getMainLoopModel())})` }, argumentHint: '[model]', get immediate() { diff --git a/src/commands/output-style/index.ts b/src/commands/output-style/index.ts index 5cb0e25e6..0173373db 100644 --- a/src/commands/output-style/index.ts +++ b/src/commands/output-style/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const outputStyle = { type: 'local-jsx', name: 'output-style', - description: 'Deprecated: use /config to change output style', + description: '已弃用:请使用 /config 更改输出样式', isHidden: true, load: () => import('./output-style.js'), } satisfies Command diff --git a/src/commands/permissions/index.ts b/src/commands/permissions/index.ts index ef4641f0e..181c1a6a2 100644 --- a/src/commands/permissions/index.ts +++ b/src/commands/permissions/index.ts @@ -4,7 +4,7 @@ const permissions = { type: 'local-jsx', name: 'permissions', aliases: ['allowed-tools'], - description: 'Manage allow & deny tool permission rules', + description: '管理允许和拒绝的工具权限规则', load: () => import('./permissions.js'), } satisfies Command diff --git a/src/commands/plan/index.ts b/src/commands/plan/index.ts index c710899c9..0ffb1593e 100644 --- a/src/commands/plan/index.ts +++ b/src/commands/plan/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const plan = { type: 'local-jsx', name: 'plan', - description: 'Enable plan mode or view the current session plan', + description: '启用计划模式或查看当前会话计划', argumentHint: '[open|]', load: () => import('./plan.js'), } satisfies Command diff --git a/src/commands/plugin/index.tsx b/src/commands/plugin/index.tsx index 34d505bb5..c0c476f04 100644 --- a/src/commands/plugin/index.tsx +++ b/src/commands/plugin/index.tsx @@ -4,7 +4,7 @@ const plugin = { type: 'local-jsx', name: 'plugin', aliases: ['plugins', 'marketplace'], - description: 'Manage Claude Code plugins', + description: '管理 Claude Code 插件', immediate: true, load: () => import('./plugin.js'), } satisfies Command diff --git a/src/commands/pr_comments/index.ts b/src/commands/pr_comments/index.ts index df8969fe3..b110a79be 100644 --- a/src/commands/pr_comments/index.ts +++ b/src/commands/pr_comments/index.ts @@ -2,7 +2,7 @@ import { createMovedToPluginCommand } from '../createMovedToPluginCommand.js' export default createMovedToPluginCommand({ name: 'pr-comments', - description: 'Get comments from a GitHub pull request', + description: '获取 GitHub Pull Request 的评论', progressMessage: 'fetching PR comments', pluginName: 'pr-comments', pluginCommand: 'pr-comments', diff --git a/src/commands/privacy-settings/index.ts b/src/commands/privacy-settings/index.ts index 27677f822..f76a6fc42 100644 --- a/src/commands/privacy-settings/index.ts +++ b/src/commands/privacy-settings/index.ts @@ -4,7 +4,7 @@ import { isConsumerSubscriber } from '../../utils/auth.js' const privacySettings = { type: 'local-jsx', name: 'privacy-settings', - description: 'View and update your privacy settings', + description: '查看和更新您的隐私设置', isEnabled: () => { return isConsumerSubscriber() }, diff --git a/src/commands/provider.ts b/src/commands/provider.ts index 8dd166b17..994f58cc4 100644 --- a/src/commands/provider.ts +++ b/src/commands/provider.ts @@ -155,7 +155,7 @@ const provider = { type: 'local', name: 'provider', description: - 'Switch API provider (anthropic/openai/gemini/grok/bedrock/vertex/foundry)', + '切换 API 提供商 (anthropic/openai/gemini/grok/bedrock/vertex/foundry)', aliases: ['api'], argumentHint: '[anthropic|openai|gemini|grok|bedrock|vertex|foundry|unset]', supportsNonInteractive: true, diff --git a/src/commands/rate-limit-options/index.ts b/src/commands/rate-limit-options/index.ts index 671b440a1..dcdf50d36 100644 --- a/src/commands/rate-limit-options/index.ts +++ b/src/commands/rate-limit-options/index.ts @@ -4,7 +4,7 @@ import { isClaudeAISubscriber } from '../../utils/auth.js' const rateLimitOptions = { type: 'local-jsx', name: 'rate-limit-options', - description: 'Show options when rate limit is reached', + description: '显示达到速率限制时的选项', isEnabled: () => { if (!isClaudeAISubscriber()) { return false diff --git a/src/commands/release-notes/index.ts b/src/commands/release-notes/index.ts index 75413de53..160aba8c8 100644 --- a/src/commands/release-notes/index.ts +++ b/src/commands/release-notes/index.ts @@ -1,7 +1,7 @@ import type { Command } from '../../commands.js' const releaseNotes: Command = { - description: 'View release notes', + description: '查看发布说明', name: 'release-notes', type: 'local', supportsNonInteractive: true, diff --git a/src/commands/reload-plugins/index.ts b/src/commands/reload-plugins/index.ts index 5d7a16336..694ed3236 100644 --- a/src/commands/reload-plugins/index.ts +++ b/src/commands/reload-plugins/index.ts @@ -7,7 +7,7 @@ import type { Command } from '../../commands.js' const reloadPlugins = { type: 'local', name: 'reload-plugins', - description: 'Activate pending plugin changes in the current session', + description: '在当前会话中激活待处理的插件更改', // SDK callers use query.reloadPlugins() (control request) instead of // sending this as a text prompt — that returns structured data // (commands, agents, plugins, mcpServers) for UI updates. diff --git a/src/commands/remote-env/index.ts b/src/commands/remote-env/index.ts index 090cc6040..14381a341 100644 --- a/src/commands/remote-env/index.ts +++ b/src/commands/remote-env/index.ts @@ -5,7 +5,7 @@ import { isClaudeAISubscriber } from '../../utils/auth.js' export default { type: 'local-jsx', name: 'remote-env', - description: 'Configure the default remote environment for teleport sessions', + description: '配置传送会话的默认远程环境', isEnabled: () => isClaudeAISubscriber() && isPolicyAllowed('allow_remote_sessions'), get isHidden() { diff --git a/src/commands/remote-setup/index.ts b/src/commands/remote-setup/index.ts index 7b291df1e..7a89c2da3 100644 --- a/src/commands/remote-setup/index.ts +++ b/src/commands/remote-setup/index.ts @@ -6,7 +6,7 @@ const web = { type: 'local-jsx', name: 'web-setup', description: - 'Setup Claude Code on the web (requires connecting your GitHub account)', + '在 Web 上设置 Claude Code(需要连接 GitHub 账户)', availability: ['claude-ai'], isEnabled: () => getFeatureValue_CACHED_MAY_BE_STALE('tengu_cobalt_lantern', false) && diff --git a/src/commands/remoteControlServer/index.ts b/src/commands/remoteControlServer/index.ts index 6c78d7ef3..cc828c4e1 100644 --- a/src/commands/remoteControlServer/index.ts +++ b/src/commands/remoteControlServer/index.ts @@ -14,7 +14,7 @@ const remoteControlServer = { name: 'remote-control-server', aliases: ['rcs'], description: - 'Start a persistent Remote Control server (daemon) that accepts multiple sessions', + '启动持久化远程控制服务器(守护进程)以接受多个会话', isEnabled, get isHidden() { return !isEnabled() diff --git a/src/commands/rename/index.ts b/src/commands/rename/index.ts index 1de08254b..3b273a7c6 100644 --- a/src/commands/rename/index.ts +++ b/src/commands/rename/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const rename = { type: 'local-jsx', name: 'rename', - description: 'Rename the current conversation', + description: '重命名当前对话', immediate: true, argumentHint: '[name]', load: () => import('./rename.js'), diff --git a/src/commands/resume/index.ts b/src/commands/resume/index.ts index 2a4c01301..4cbbaeb6a 100644 --- a/src/commands/resume/index.ts +++ b/src/commands/resume/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const resume: Command = { type: 'local-jsx', name: 'resume', - description: 'Resume a previous conversation', + description: '恢复之前的对话', aliases: ['continue'], argumentHint: '[conversation id or search term]', load: () => import('./resume.js'), diff --git a/src/commands/review.ts b/src/commands/review.ts index f86ada0b1..b9930557d 100644 --- a/src/commands/review.ts +++ b/src/commands/review.ts @@ -33,7 +33,7 @@ const LOCAL_REVIEW_PROMPT = (args: string) => ` const review: Command = { type: 'prompt', name: 'review', - description: 'Review a pull request', + description: '审查 Pull Request', progressMessage: 'reviewing pull request', contentLength: 0, source: 'builtin', @@ -48,7 +48,7 @@ const review: Command = { const ultrareview: Command = { type: 'local-jsx', name: 'ultrareview', - description: `~10–20 min · Finds and verifies bugs in your branch. Runs in Claude Code on the web. See ${CCR_TERMS_URL}`, + description: `~10–20 分钟 · 查找并验证分支中的错误。运行在 Web 上的 Claude Code 中。参见 ${CCR_TERMS_URL}`, isEnabled: () => isUltrareviewEnabled(), load: () => import('./review/ultrareviewCommand.js'), } diff --git a/src/commands/rewind/index.ts b/src/commands/rewind/index.ts index cfce19341..eac9d7610 100644 --- a/src/commands/rewind/index.ts +++ b/src/commands/rewind/index.ts @@ -1,7 +1,7 @@ import type { Command } from '../../commands.js' const rewind = { - description: `Restore the code and/or conversation to a previous point`, + description: `将代码和/或对话恢复到之前的某个点`, name: 'rewind', aliases: ['checkpoint'], argumentHint: '', diff --git a/src/commands/security-review.ts b/src/commands/security-review.ts index 03f7057d4..19db1716e 100644 --- a/src/commands/security-review.ts +++ b/src/commands/security-review.ts @@ -198,7 +198,7 @@ Your final reply must contain the markdown report and nothing else.` export default createMovedToPluginCommand({ name: 'security-review', description: - 'Complete a security review of the pending changes on the current branch', + '对当前分支上的待处理更改进行安全审查', progressMessage: 'analyzing code changes for security risks', pluginName: 'security-review', pluginCommand: 'security-review', diff --git a/src/commands/session/index.ts b/src/commands/session/index.ts index c66187806..cd6f7b9f2 100644 --- a/src/commands/session/index.ts +++ b/src/commands/session/index.ts @@ -5,7 +5,7 @@ const session = { type: 'local-jsx', name: 'session', aliases: ['remote'], - description: 'Show remote session URL and QR code', + description: '显示远程会话 URL 和二维码', isEnabled: () => getIsRemoteMode(), get isHidden() { return !getIsRemoteMode() diff --git a/src/commands/skills/index.ts b/src/commands/skills/index.ts index 90e1d7f3c..7470f6b3f 100644 --- a/src/commands/skills/index.ts +++ b/src/commands/skills/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const skills = { type: 'local-jsx', name: 'skills', - description: 'List available skills', + description: '列出可用的技能', load: () => import('./skills.js'), } satisfies Command diff --git a/src/commands/stats/index.ts b/src/commands/stats/index.ts index c9680d626..5c182c005 100644 --- a/src/commands/stats/index.ts +++ b/src/commands/stats/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const stats = { type: 'local-jsx', name: 'stats', - description: 'Show your Claude Code usage statistics and activity', + description: '显示 Claude Code 使用统计和活动', load: () => import('./stats.js'), } satisfies Command diff --git a/src/commands/status/index.ts b/src/commands/status/index.ts index 768b35826..8eeddb461 100644 --- a/src/commands/status/index.ts +++ b/src/commands/status/index.ts @@ -4,7 +4,7 @@ const status = { type: 'local-jsx', name: 'status', description: - 'Show Claude Code status including version, model, account, API connectivity, and tool statuses', + '显示 Claude Code 状态,包括版本、模型、账户、API 连接和工具状态', immediate: true, load: () => import('./status.js'), } satisfies Command diff --git a/src/commands/statusline.tsx b/src/commands/statusline.tsx index d12f4ad2d..8c5a003aa 100644 --- a/src/commands/statusline.tsx +++ b/src/commands/statusline.tsx @@ -4,7 +4,7 @@ import { AGENT_TOOL_NAME } from '../tools/AgentTool/constants.js' const statusline = { type: 'prompt', - description: "Set up Claude Code's status line UI", + description: '设置 Claude Code 的状态栏 UI', contentLength: 0, // Dynamic content aliases: [], name: 'statusline', diff --git a/src/commands/stickers/index.ts b/src/commands/stickers/index.ts index ebca4530d..e106ceb5e 100644 --- a/src/commands/stickers/index.ts +++ b/src/commands/stickers/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const stickers = { type: 'local', name: 'stickers', - description: 'Order Claude Code stickers', + description: '订购 Claude Code 贴纸', supportsNonInteractive: false, load: () => import('./stickers.js'), } satisfies Command diff --git a/src/commands/tag/index.ts b/src/commands/tag/index.ts index 8d0bd659b..07bce09fe 100644 --- a/src/commands/tag/index.ts +++ b/src/commands/tag/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const tag = { type: 'local-jsx', name: 'tag', - description: 'Toggle a searchable tag on the current session', + description: '在当前会话上切换可搜索标签', isEnabled: () => process.env.USER_TYPE === 'ant', argumentHint: '', load: () => import('./tag.js'), diff --git a/src/commands/tasks/index.ts b/src/commands/tasks/index.ts index e9e5ad162..b8b22f575 100644 --- a/src/commands/tasks/index.ts +++ b/src/commands/tasks/index.ts @@ -4,7 +4,7 @@ const tasks = { type: 'local-jsx', name: 'tasks', aliases: ['bashes'], - description: 'List and manage background tasks', + description: '列出和管理后台任务', load: () => import('./tasks.js'), } satisfies Command diff --git a/src/commands/terminalSetup/index.ts b/src/commands/terminalSetup/index.ts index 44c7dcd0c..f3158fb46 100644 --- a/src/commands/terminalSetup/index.ts +++ b/src/commands/terminalSetup/index.ts @@ -14,8 +14,8 @@ const terminalSetup = { name: 'terminal-setup', description: env.terminal === 'Apple_Terminal' - ? 'Enable Option+Enter key binding for newlines and visual bell' - : 'Install Shift+Enter key binding for newlines', + ? '启用选项 Enter 键绑定以换行和视觉提示' + : '安装 Shift+Enter 键绑定以换行', isHidden: env.terminal !== null && env.terminal in NATIVE_CSIU_TERMINALS, load: () => import('./terminalSetup.js'), } satisfies Command diff --git a/src/commands/theme/index.ts b/src/commands/theme/index.ts index 258722e99..f5f9f5c70 100644 --- a/src/commands/theme/index.ts +++ b/src/commands/theme/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' const theme = { type: 'local-jsx', name: 'theme', - description: 'Change the theme', + description: '更改主题', load: () => import('./theme.js'), } satisfies Command diff --git a/src/commands/thinkback-play/index.ts b/src/commands/thinkback-play/index.ts index efa4bf7e2..2ab32f870 100644 --- a/src/commands/thinkback-play/index.ts +++ b/src/commands/thinkback-play/index.ts @@ -6,7 +6,7 @@ import { checkStatsigFeatureGate_CACHED_MAY_BE_STALE } from '../../services/anal const thinkbackPlay = { type: 'local', name: 'thinkback-play', - description: 'Play the thinkback animation', + description: '播放 thinkback 动画', isEnabled: () => checkStatsigFeatureGate_CACHED_MAY_BE_STALE('tengu_thinkback'), isHidden: true, diff --git a/src/commands/thinkback/index.ts b/src/commands/thinkback/index.ts index eceddde84..95c973dc2 100644 --- a/src/commands/thinkback/index.ts +++ b/src/commands/thinkback/index.ts @@ -4,7 +4,7 @@ import { checkStatsigFeatureGate_CACHED_MAY_BE_STALE } from '../../services/anal const thinkback = { type: 'local-jsx', name: 'think-back', - description: 'Your 2025 Claude Code Year in Review', + description: '您的 2025 Claude Code 年度回顾', isEnabled: () => checkStatsigFeatureGate_CACHED_MAY_BE_STALE('tengu_thinkback'), load: () => import('./thinkback.js'), diff --git a/src/commands/upgrade/index.ts b/src/commands/upgrade/index.ts index 63dc5ff51..7429776d5 100644 --- a/src/commands/upgrade/index.ts +++ b/src/commands/upgrade/index.ts @@ -5,7 +5,7 @@ import { isEnvTruthy } from '../../utils/envUtils.js' const upgrade = { type: 'local-jsx', name: 'upgrade', - description: 'Upgrade to Max for higher rate limits and more Opus', + description: '升级到 Max 以获得更高的速率限制和更多 Opus', availability: ['claude-ai'], isEnabled: () => !isEnvTruthy(process.env.DISABLE_UPGRADE_COMMAND) && diff --git a/src/commands/usage/index.ts b/src/commands/usage/index.ts index c38710484..7694045b9 100644 --- a/src/commands/usage/index.ts +++ b/src/commands/usage/index.ts @@ -3,7 +3,7 @@ import type { Command } from '../../commands.js' export default { type: 'local-jsx', name: 'usage', - description: 'Show plan usage limits', + description: '显示计划使用限制', availability: ['claude-ai'], load: () => import('./usage.js'), } satisfies Command diff --git a/src/commands/version.ts b/src/commands/version.ts index 09f0a44fe..288d0213a 100644 --- a/src/commands/version.ts +++ b/src/commands/version.ts @@ -13,7 +13,7 @@ const version = { type: 'local', name: 'version', description: - 'Print the version this session is running (not what autoupdate downloaded)', + '打印此会话运行的版本(不是自动下载的版本)', isEnabled: () => process.env.USER_TYPE === 'ant', supportsNonInteractive: true, load: () => Promise.resolve({ call }), diff --git a/src/commands/vim/index.ts b/src/commands/vim/index.ts index f7f2592bd..5aa120ec4 100644 --- a/src/commands/vim/index.ts +++ b/src/commands/vim/index.ts @@ -2,7 +2,7 @@ import type { Command } from '../../commands.js' const command = { name: 'vim', - description: 'Toggle between Vim and Normal editing modes', + description: '在 Vim 和 Normal 编辑模式之间切换', supportsNonInteractive: false, type: 'local', load: () => import('./vim.js'), diff --git a/src/commands/voice/index.ts b/src/commands/voice/index.ts index 61540d3ba..7ba1dcfdc 100644 --- a/src/commands/voice/index.ts +++ b/src/commands/voice/index.ts @@ -7,7 +7,7 @@ import { const voice = { type: 'local', name: 'voice', - description: 'Toggle voice mode', + description: '切换语音模式', availability: ['claude-ai'], isEnabled: () => isVoiceGrowthBookEnabled(), get isHidden() { diff --git a/src/skills/bundled/batch.ts b/src/skills/bundled/batch.ts index 90b4845ad..6e9dcf4ef 100644 --- a/src/skills/bundled/batch.ts +++ b/src/skills/bundled/batch.ts @@ -101,7 +101,7 @@ export function registerBatchSkill(): void { registerBundledSkill({ name: 'batch', description: - 'Research and plan a large-scale change, then execute it in parallel across 5–30 isolated worktree agents that each open a PR.', + '研究和规划大规模变更,然后通过 5–30 个隔离的 worktree 智能体并行执行,每个智能体各自打开一个 PR。', whenToUse: 'Use when the user wants to make a sweeping, mechanical change across many files (migrations, refactors, bulk renames) that can be decomposed into independent parallel units.', argumentHint: '', diff --git a/src/skills/bundled/claudeApi.ts b/src/skills/bundled/claudeApi.ts index 0071e3422..970b3e8fc 100644 --- a/src/skills/bundled/claudeApi.ts +++ b/src/skills/bundled/claudeApi.ts @@ -181,9 +181,7 @@ export function registerClaudeApiSkill(): void { registerBundledSkill({ name: 'claude-api', description: - 'Build apps with the Claude API or Anthropic SDK.\n' + - 'TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`/`claude_agent_sdk`, or user asks to use Claude API, Anthropic SDKs, or Agent SDK.\n' + - 'DO NOT TRIGGER when: code imports `openai`/other AI SDK, general programming, or ML/data-science tasks.', + '使用 Claude API 或 Anthropic SDK 构建应用。\n触发条件:代码导入了 `anthropic`/`@anthropic-ai/sdk`/`claude_agent_sdk`,或用户要求使用 Claude API、Anthropic SDK 或 Agent SDK。\n不要触发:代码导入了 `openai`/其他 AI SDK、一般编程任务或 ML/数据科学任务。', allowedTools: ['Read', 'Grep', 'Glob', 'WebFetch'], userInvocable: true, async getPromptForCommand(args) { diff --git a/src/skills/bundled/claudeInChrome.ts b/src/skills/bundled/claudeInChrome.ts index ea0078184..e9ecde7e4 100644 --- a/src/skills/bundled/claudeInChrome.ts +++ b/src/skills/bundled/claudeInChrome.ts @@ -17,7 +17,7 @@ export function registerClaudeInChromeSkill(): void { registerBundledSkill({ name: 'claude-in-chrome', description: - 'Automates your Chrome browser to interact with web pages - clicking elements, filling forms, capturing screenshots, reading console logs, and navigating sites. Opens pages in new tabs within your existing Chrome session. Requires site-level permissions before executing (configured in the extension).', + '自动化您的 Chrome 浏览器与网页交互——点击元素、填写表单、捕获截图、读取控制台日志和导航网站。在现有 Chrome 会话中以新标签页打开页面。执行前需要网站级权限(在扩展中配置)。', whenToUse: 'When the user wants to interact with web pages, automate browser tasks, capture screenshots, read console logs, or perform any browser-based actions. Always invoke BEFORE attempting to use any mcp__claude-in-chrome__* tools.', allowedTools: CLAUDE_IN_CHROME_MCP_TOOLS, diff --git a/src/skills/bundled/cronManage.ts b/src/skills/bundled/cronManage.ts index c3b93d37d..3feac6ee7 100644 --- a/src/skills/bundled/cronManage.ts +++ b/src/skills/bundled/cronManage.ts @@ -8,7 +8,7 @@ import { registerBundledSkill } from '../bundledSkills.js' export function registerCronListSkill(): void { registerBundledSkill({ name: 'cron-list', - description: 'List all scheduled cron jobs in this session', + description: '列出此会话中所有计划任务', whenToUse: 'When the user wants to see their scheduled/recurring tasks, check active cron jobs, or review what is currently looping.', userInvocable: true, @@ -27,7 +27,7 @@ export function registerCronListSkill(): void { export function registerCronDeleteSkill(): void { registerBundledSkill({ name: 'cron-delete', - description: 'Cancel a scheduled cron job by ID', + description: '按 ID 取消计划任务', whenToUse: 'When the user wants to cancel, stop, or remove a scheduled/recurring task or cron job.', argumentHint: '', diff --git a/src/skills/bundled/debug.ts b/src/skills/bundled/debug.ts index 94c70435d..8ce24864b 100644 --- a/src/skills/bundled/debug.ts +++ b/src/skills/bundled/debug.ts @@ -15,7 +15,7 @@ export function registerDebugSkill(): void { description: process.env.USER_TYPE === 'ant' ? 'Debug your current Claude Code session by reading the session debug log. Includes all event logging' - : 'Enable debug logging for this session and help diagnose issues', + : '启用此会话的调试日志并帮助诊断问题', allowedTools: ['Read', 'Grep', 'Glob'], argumentHint: '[issue description]', // disableModelInvocation so that the user has to explicitly request it in diff --git a/src/skills/bundled/dream.ts b/src/skills/bundled/dream.ts index 87cc37b4e..1132af802 100644 --- a/src/skills/bundled/dream.ts +++ b/src/skills/bundled/dream.ts @@ -19,7 +19,7 @@ export function registerDreamSkill(): void { registerBundledSkill({ name: 'dream', description: - 'Manually trigger memory consolidation — review, organize, and prune your auto-memory files.', + '手动触发记忆整合 — 审查、整理和清理您的自动记忆文件。', whenToUse: 'Use when the user says /dream or wants to manually consolidate memories, organize memory files, or clean up stale entries.', userInvocable: true, diff --git a/src/skills/bundled/keybindings.ts b/src/skills/bundled/keybindings.ts index 7d799288e..a374faa9f 100644 --- a/src/skills/bundled/keybindings.ts +++ b/src/skills/bundled/keybindings.ts @@ -293,7 +293,7 @@ export function registerKeybindingsSkill(): void { registerBundledSkill({ name: 'keybindings-help', description: - 'Use when the user wants to customize keyboard shortcuts, rebind keys, add chord bindings, or modify ~/.claude/keybindings.json. Examples: "rebind ctrl+s", "add a chord shortcut", "change the submit key", "customize keybindings".', + '当用户想要自定义键盘快捷键、重新绑定按键、添加组合键绑定或修改 ~/.claude/keybindings.json 时使用。示例:"rebind ctrl+s"、"add a chord shortcut"、"change the submit key"、"customize keybindings"。', allowedTools: ['Read'], userInvocable: false, isEnabled: isKeybindingCustomizationEnabled, diff --git a/src/skills/bundled/loop.ts b/src/skills/bundled/loop.ts index ccc472daa..49b380822 100644 --- a/src/skills/bundled/loop.ts +++ b/src/skills/bundled/loop.ts @@ -75,7 +75,7 @@ export function registerLoopSkill(): void { registerBundledSkill({ name: 'loop', description: - 'Run a prompt or slash command on a recurring interval (e.g. /loop 5m /foo, defaults to 10m)', + '按定期间隔运行提示或斜杠命令(例如 /loop 5m /foo,默认间隔为 10m)', whenToUse: 'When the user wants to set up a recurring task, poll for status, or run something repeatedly on an interval (e.g. "check the deploy every 5 minutes", "keep running /babysit-prs"). Do NOT invoke for one-off tasks.', argumentHint: '[interval] ', diff --git a/src/skills/bundled/loremIpsum.ts b/src/skills/bundled/loremIpsum.ts index 053306c6f..79428ab77 100644 --- a/src/skills/bundled/loremIpsum.ts +++ b/src/skills/bundled/loremIpsum.ts @@ -239,7 +239,7 @@ export function registerLoremIpsumSkill(): void { registerBundledSkill({ name: 'lorem-ipsum', description: - 'Generate filler text for long context testing. Specify token count as argument (e.g., /lorem-ipsum 50000). Outputs approximately the requested number of tokens. Ant-only.', + '生成用于长上下文测试的填充文本。通过参数指定 token 数量(例如 /lorem-ipsum 50000)。输出大约请求数量的 token。Ant 专用。', argumentHint: '[token_count]', userInvocable: true, async getPromptForCommand(args) { diff --git a/src/skills/bundled/remember.ts b/src/skills/bundled/remember.ts index 40bd1a93b..d54c0cf5e 100644 --- a/src/skills/bundled/remember.ts +++ b/src/skills/bundled/remember.ts @@ -64,7 +64,7 @@ If auto-memory is empty, say so and offer to review CLAUDE.md for cleanup. registerBundledSkill({ name: 'remember', description: - 'Review auto-memory entries and propose promotions to CLAUDE.md, CLAUDE.local.md, or shared memory. Also detects outdated, conflicting, and duplicate entries across memory layers.', + '审查自动记忆条目并提议晋升到 CLAUDE.md、CLAUDE.local.md 或共享记忆。同时检测跨记忆层级的过时、冲突和重复条目。', whenToUse: 'Use when the user wants to review, organize, or promote their auto-memory entries. Also useful for cleaning up outdated or conflicting entries across CLAUDE.md, CLAUDE.local.md, and auto-memory.', userInvocable: true, diff --git a/src/skills/bundled/scheduleRemoteAgents.ts b/src/skills/bundled/scheduleRemoteAgents.ts index 21b2ac694..571d5d02b 100644 --- a/src/skills/bundled/scheduleRemoteAgents.ts +++ b/src/skills/bundled/scheduleRemoteAgents.ts @@ -325,7 +325,7 @@ export function registerScheduleRemoteAgentsSkill(): void { registerBundledSkill({ name: 'schedule', description: - 'Create, update, list, or run scheduled remote agents (triggers) that execute on a cron schedule.', + '创建、更新、列出或运行按 cron 计划执行的计划远程智能体(触发器)。', whenToUse: 'When the user wants to schedule a recurring remote agent, set up automated tasks, create a cron job for Claude Code, or manage their scheduled agents/triggers.', userInvocable: true, diff --git a/src/skills/bundled/simplify.ts b/src/skills/bundled/simplify.ts index efdfde216..6a1b8a44c 100644 --- a/src/skills/bundled/simplify.ts +++ b/src/skills/bundled/simplify.ts @@ -56,7 +56,7 @@ export function registerSimplifySkill(): void { registerBundledSkill({ name: 'simplify', description: - 'Review changed code for reuse, quality, and efficiency, then fix any issues found.', + '审查更改的代码以进行复用、质量和效率优化,然后修复发现的问题。', userInvocable: true, async getPromptForCommand(args) { let prompt = SIMPLIFY_PROMPT diff --git a/src/skills/bundled/skillify.ts b/src/skills/bundled/skillify.ts index c14759820..8a8d741aa 100644 --- a/src/skills/bundled/skillify.ts +++ b/src/skills/bundled/skillify.ts @@ -164,7 +164,7 @@ export function registerSkillifySkill(): void { registerBundledSkill({ name: 'skillify', description: - "Capture this session's repeatable process into a skill. Call at end of the process you want to capture with an optional description.", + '将此会话的可重复过程捕获为技能。在要捕获的过程结束时调用,可选择添加描述。', allowedTools: [ 'Read', 'Write', diff --git a/src/skills/bundled/stuck.ts b/src/skills/bundled/stuck.ts index ffb57ab25..75201fa9c 100644 --- a/src/skills/bundled/stuck.ts +++ b/src/skills/bundled/stuck.ts @@ -66,7 +66,7 @@ export function registerStuckSkill(): void { registerBundledSkill({ name: 'stuck', description: - '[ANT-ONLY] Investigate frozen/stuck/slow Claude Code sessions on this machine and post a diagnostic report to #claude-code-feedback.', + '【ANT 专用】调查此机器上冻结/卡住/缓慢的 Claude Code 会话,并将诊断报告发布到 #claude-code-feedback。', userInvocable: true, async getPromptForCommand(args) { let prompt = STUCK_PROMPT diff --git a/src/skills/bundled/updateConfig.ts b/src/skills/bundled/updateConfig.ts index b4fa5b073..29e0c22d9 100644 --- a/src/skills/bundled/updateConfig.ts +++ b/src/skills/bundled/updateConfig.ts @@ -446,7 +446,7 @@ export function registerUpdateConfigSkill(): void { registerBundledSkill({ name: 'update-config', description: - 'Use this skill to configure the Claude Code harness via settings.json. Automated behaviors ("from now on when X", "each time X", "whenever X", "before/after X") require hooks configured in settings.json - the harness executes these, not Claude, so memory/preferences cannot fulfill them. Also use for: permissions ("allow X", "add permission", "move permission to"), env vars ("set X=Y"), hook troubleshooting, or any changes to settings.json/settings.local.json files. Examples: "allow npm commands", "add bq permission to global settings", "move permission to user settings", "set DEBUG=true", "when claude stops show X". For simple settings like theme/model, use Config tool.', + '使用此技能通过 settings.json 配置 Claude Code。自动化行为("from now on when X"、"each time X"、"whenever X"、"before/after X")需要通过 settings.json 配置钩子——这些由 Claude Code 本身执行,而非 Claude,因此记忆/偏好设置无法满足它们。也适用于:权限("allow X"、"add permission"、"move permission to")、环境变量("set X=Y")、钩子故障排除,或对 settings.json/settings.local.json 文件的任何更改。示例:"allow npm commands"、"add bq permission to global settings"、"move permission to user settings"、"set DEBUG=true"、"when claude stops show X"。对于简单设置如主题/模型,请使用 Config 工具。', allowedTools: ['Read'], userInvocable: true, async getPromptForCommand(args) {