一键导入
planning-and-scoping
Decompose tasks into sub-tasks, assess risk, and create implementation checklists before starting work on Cooper features.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Decompose tasks into sub-tasks, assess risk, and create implementation checklists before starting work on Cooper features.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Evaluate code quality and suggest refactoring opportunities before committing. Ensure Cooper's codebase stays clean and maintainable.
Build comprehensive task context before making changes. Track constraints, dependencies, and execution order across multi-file work in Cooper's Electron architecture.
Define patterns for integrating with the Copilot SDK in Cooper. Cover session management, model switching, tool execution, event handling, and agent support.
Define and enforce IPC communication patterns between Cooper's main process, preload bridge, and renderer. Ensure all cross-process communication follows the secure, typed preload bridge pattern.
Create atomic commits with descriptive messages. Maintain clean git history for the Cooper project.
Define React, TypeScript, and Tailwind conventions for Cooper's renderer process. Ensure consistent, accessible, and maintainable UI components.
| name | planning-and-scoping |
| description | Decompose tasks into sub-tasks, assess risk, and create implementation checklists before starting work on Cooper features. |
Decompose tasks into sub-tasks, assess risk, and create implementation checklists before starting work on Cooper features.
## Task Decomposition
### Main Process (src/main/)
- [ ] [Change description] — Risk: [Low/Med/High]
### Preload (src/preload/)
- [ ] [IPC bridge change] — Risk: [Low/Med/High]
### Renderer (src/renderer/)
- [ ] [UI change] — Risk: [Low/Med/High]
### Tests
- [ ] [Test additions/updates] — Risk: Low
## Execution Order
1. Types/interfaces first (src/renderer/types/)
2. Main process handlers (src/main/)
3. Preload bridge (src/preload/)
4. Renderer components (src/renderer/)
5. Tests (tests/)
## Acceptance Criteria
- [ ] Feature works end-to-end
- [ ] `npm run build` passes
- [ ] `npm test` passes
- [ ] IPC contract is complete (main ↔ preload ↔ renderer)
- [ ] No TypeScript errors
| Risk Level | Criteria |
|---|---|
| Low | Single-process, no IPC changes, has tests |
| Medium | Cross-process, new IPC channel, UI changes |
| High | SDK integration, security-sensitive, breaking changes |
## Task: Add MCP server management UI
### Decomposition
1. **Types** (Low): Add MCPServer interface to src/renderer/types/
2. **Main** (Med): Add IPC handlers for MCP server CRUD
3. **Preload** (Med): Expose mcp.\* methods in bridge
4. **Renderer** (Med): Create MCPServerPanel component
5. **Tests** (Low): Add component + integration tests
### Order: 1 → 2 → 3 → 4 → 5
### Risk: Medium (new IPC channels, cross-process)