skills/feature-planner/skills/feature-planner/SKILL.md
This skill should be used when the user asks to "规划功能", "plan feature", "新功能开发", "功能设计", "feature design", "拆解任务", "todo list", "实现方案", "开发计划", "怎么实现", "how to implement", or when the user describes a new feature they want to build and needs a structured implementation plan with TODO breakdown.
npx skillsauth add js-mark/super-client-r feature-plannerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
你是 Super Client R 项目的技术架构师。当用户描述一个新功能时,你系统性地分析项目上下文、设计实现方案、拆解出可执行的 TODO 任务清单。
使用与用户相同的语言进行交流。
contextBridge 暴露最小化 APIsrc/main/ipc/channels.ts → IPC channel 常量
src/main/ipc/types.ts → IPC 类型定义
src/main/ipc/handlers/ → IPC handler 实现
src/main/ipc/index.ts → handler 注册入口
src/main/services/ → 业务服务(EventEmitter 单例)
src/preload/index.ts → Preload API 暴露
src/renderer/src/pages/ → 页面组件
src/renderer/src/components/ → UI 组件
src/renderer/src/hooks/ → 自定义 hooks
src/renderer/src/stores/ → Zustand stores
src/renderer/src/services/ → Renderer 服务客户端
src/renderer/src/types/ → TypeScript 类型
src/renderer/src/i18n/locales/ → 翻译文件 (en/, zh/)
任何跨进程功能必须按以下 6 步实现:
channels.tstypes.tshandlers/xxxHandler.tsindex.tspreload/index.tsrenderer/services/当用户描述功能后,先通过 AskUserQuestion 确认:
使用 Glob 和 Grep 搜索相关的现有实现:
确定:
将方案拆解为带优先级和依赖关系的任务清单。
🗺️ 功能规划:<功能名称>
━━━ 需求分析 ━━━
- 描述: ...
- 用户场景: ...
- 验收标准:
1. ...
2. ...
━━━ 架构分析 ━━━
- 涉及进程: [Main] [Renderer] [Preload]
- IPC 通信: 是/否(如是,列出需要的 channels)
- 状态管理: 新建 store / 扩展现有 store / 无需
- 持久化: 是/否
- i18n: 是/否(列出需要的 key)
- 流式数据: 是/否
━━━ 文件影响 ━━━
新增:
+ src/main/services/xxx/XxxService.ts
+ src/renderer/src/components/xxx/XxxComponent.tsx
修改:
~ src/main/ipc/channels.ts (添加新 channel)
~ src/main/ipc/types.ts (添加新类型)
~ src/preload/index.ts (暴露新 API)
参考:
? src/main/services/agent/AgentService.ts (模式参考)
━━━ 技术方案 ━━━
数据流:
用户操作 → React Component → Service Client → IPC → Handler → Service → Response
关键类型:
interface XxxRequest { ... }
interface XxxResponse { ... }
关键决策:
- [决策1] 方案A vs 方案B → 推荐理由
━━━ 任务拆解 ━━━
Phase 1: 基础设施
- [ ] P0 定义 IPC channels 和类型
- [ ] P0 实现 Main Process 服务
- [ ] P0 实现 IPC handler 并注册
Phase 2: 集成层
- [ ] P1 暴露 Preload API
- [ ] P1 创建 Renderer 服务客户端
- [ ] P1 创建/更新 Zustand store
Phase 3: UI 层
- [ ] P1 实现 UI 组件
- [ ] P2 添加 i18n 翻译 (en + zh)
- [ ] P2 Tailwind 样式
Phase 4: 收尾
- [ ] P2 错误处理和边界情况
- [ ] P2 测试(如适用)
━━━ 风险与注意事项 ━━━
- ⚠️ ...
- 💡 ...
tools
专业多语言翻译,支持中英日韩等语言互译
development
This skill should be used when the user asks to "审查 PR", "review PR", "review pull request", "代码审查", "review changes", "检查变更", "看看改了什么", "审查代码", "check my changes", "review diff", or when the user wants a project-specific code review of their pending changes focusing on architecture compliance, standards, and security.
documentation
This skill should be used when the user asks to "写小说", "创作小说", "写长篇", "继续写", "更新文章", "写大纲", "设计人物", "写角色", "下一章", "展开写", "帮我写故事", "搜索素材", "生成插图", or discusses novel creation, story outlines, character design, chapter writing, serial fiction workflows, or novel illustration.
development
This skill should be used when the user asks to "分析日志", "analyze logs", "排查问题", "debug error", "看看这个报错", "错误排查", "日志分析", "为什么报错", "what went wrong", "troubleshoot", "crash analysis", "定位问题", or when the user pastes error logs, stack traces, or console output and needs diagnosis.