with one click
refactor-split
用户提及重构代码的时候触发。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
用户提及重构代码的时候触发。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
在当前会话中执行包含若干独立任务的实现计划时使用
Kimi WebBridge lets AI control the user's real browser — navigate, click, type, read, screenshot, and interact with any website using the user's actual login sessions. Use this skill whenever the user wants to interact with websites, automate browser tasks, scrape web content, or perform any action requiring a real browser. Also use when the user mentions "browser", "webpage", "open URL", "screenshot", or asks to read/interact with any website. Use even for simple-sounding browser requests — the daemon handles all complexity.
对 PostgreSQL 数据库执行只读检查时使用。优先读 doc/db/quick-guide 匹配场景,表结构按需 docker exec psql 查询;查库后评估是否沉淀 quick-guide。触发词:查数据库、检查表、行数、数据覆盖、schema、docker exec psql、DB 状态、doc/db、快捷检索指南、quick-guide。
在进行任何创意性工作之前必须使用此技能 — 创建功能、构建组件、添加功能、实现需求或修改行为。在实现前探索用户意图、需求和设计。用户说"头脑风暴"或类似的表达时,应触发此技能。
调用 DeepSeek API(/chat/completions)的强制查阅规范,覆盖思考模式(reasoning_content / thinking / reasoning_effort)与多轮对话上下文拼接。**任何**涉及 DeepSeek API 的代码编写、修改、排错前必须先调用本 skill。触发词:DeepSeek、deepseek、deepseek-v4-pro、reasoning_content、思考模式、thinking mode、reasoning_effort、deepseek 多轮、deepseek chat completions、api.deepseek.com。
当面临 2 个以上可独立执行、无共享状态或顺序依赖的任务时使用
| name | refactor-split |
| description | 用户提及重构代码的时候触发。 |
分析超长文件的内部结构,提出合理的模块化拆分方案,经用户确认后落地执行。
两种情形,都必须激活:
klineChartOptions.ts 当前 680 行,超出 500 行限制,需要拆分吗?」读取目标文件,梳理清楚:
用清晰的树形结构或列表展示方案,让用户一眼看懂:
拆分方案:apps/web/src/composables/klineChartOptions.ts(当前 680 行)
拆分后:
├── klineChartOptions.ts(保留,约 100 行)—— 入口,组合并统一导出
├── klineChartBaseOption.ts(新建,约 180 行)—— grid / axis / tooltip 基础配置
├── klineChartSeries.ts(新建,约 220 行)—— 各 series 构建函数
└── klineChartGraphics.ts(新建,约 180 行)—— overlay 图形元素
Import 变更:
- KlineChartModal.vue 无需改动(原入口文件对外 API 保持不变)
方案需体现:新文件的路径和职责、原文件保留的内容、需要变更的 import 关系。
展示方案后,停下来等用户回复,不得擅自执行。
提示语示例:「方案如上,是否按此拆分?或者需要调整文件划分?」
用户确认后,按方案操作:
cd apps/web && pnpm exec vue-tsc --noEmitcd apps/server && pnpm exec tsc --noEmit简要说明:各新文件的路径和行数、原文件现在多少行、类型检查是否通过。
any,用 unknown + 类型收窄index.ts barrel export,拆分后同步更新