Loading...
Loading...
Compare original and translation side by side
| Dimension | 0 (Low Risk) | 1 (Checkpoint) |
|---|---|---|
| Pattern | Exists in codebase | New pattern required |
| Scope | Single domain | Cross-domain impact |
| Data Model | Add field to existing | New entity/table |
| Dependencies | Use existing libs | New dependency |
| API Surface | Internal only | Public/breaking change |
| Reversibility | Easy to undo | Requires migration |
| Security | Non-sensitive data | Auth/permissions |
| Performance | Simple CRUD | Cache/queue/optimization |
| 维度 | 0(低风险) | 1(需检查) |
|---|---|---|
| 模式 | 代码库中已存在 | 需要新模式 |
| 范围 | 单一领域 | 跨领域影响 |
| 数据模型 | 向现有模型添加字段 | 新增实体/表 |
| 依赖项 | 使用现有库 | 新增依赖 |
| API接口 | 仅内部使用 | 公开/破坏性变更 |
| 可回滚性 | 易于撤销 | 需要迁移 |
| 安全性 | 非敏感数据 | 涉及认证/权限 |
| 性能 | 简单CRUD操作 | 需要缓存/队列/优化 |
API-query-database:
database_id: "[PATTERN_LIBRARY_DB_ID]"
filter:
property: "Domain"
select:
equals: "[current domain]"API-query-database:
database_id: "[PATTERN_LIBRARY_DB_ID]"
filter:
property: "Domain"
select:
equals: "[current domain]"SemanticSearch: "How is [similar feature] implemented?"
Grep: "[pattern name]" in relevant directoriesSemanticSearch: "如何实现[类似功能]?"
Grep: 在相关目录中搜索"[模式名称]"Context7 MCP:
1. resolve-library-id: libraryName = "[library]"
2. get-library-docs: topic = "best practices", mode = "info"Context7 MCP:
1. resolve-library-id: libraryName = "[library]"
2. get-library-docs: topic = "best practices", mode = "info"undefinedundefined| Dimension | Score | Rationale |
|---|---|---|
| Pattern | 0/1 | [Exists/New] |
| Scope | 0/1 | [Single/Cross-domain] |
| Data Model | 0/1 | [Field/Entity] |
| Dependencies | 0/1 | [Existing/New] |
| API Surface | 0/1 | [Internal/Public] |
| Reversibility | 0/1 | [Easy/Migration] |
| Security | 0/1 | [Non-sensitive/Auth] |
| Performance | 0/1 | [CRUD/Optimization] |
| TOTAL | [0-8] |
undefined| 维度 | 分数 | 理由 |
|---|---|---|
| 模式 | 0/1 | [已存在/新增] |
| 范围 | 0/1 | [单一/跨领域] |
| 数据模型 | 0/1 | [字段/实体] |
| 依赖项 | 0/1 | [现有/新增] |
| API接口 | 0/1 | [内部/公开] |
| 可回滚性 | 0/1 | [易于回滚/需要迁移] |
| 安全性 | 0/1 | [非敏感/涉及认证] |
| 性能 | 0/1 | [简单CRUD/需要优化] |
| 总分 | [0-8] |
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefineddecision-capturedecision-capturePlan Mode Flow:
Phase 1: APPETITE →
Phase 2: TECHNICAL DIVERGE (this skill) →
If score < 4: Auto-proceed
If score >= 4: Gate 4 → Human selects
Phase 3: COMMIT PLAN计划模式流程:
阶段1:需求确认 →
阶段2:技术分歧(本skill) →
若分数 < 4:自动推进
若分数 >= 4:Gate 4 → 人工选择
阶段3:提交计划| Tool | Purpose |
|---|---|
| Notion MCP | Query Pattern Library database |
| Context7 MCP | Get library best practices |
| SemanticSearch | Find existing codebase patterns |
| Grep | Search for specific implementations |
| 工具 | 用途 |
|---|---|
| Notion MCP | 查询模式库数据库 |
| Context7 MCP | 获取库的最佳实践 |
| SemanticSearch | 查找代码库中已有的模式 |
| Grep | 搜索特定实现 |
| Dimension | Score | Rationale |
|---|---|---|
| Pattern | 0 | Column additions done before |
| Scope | 0 | Single domain (tables) |
| Data Model | 0 | Adding field, not entity |
| Dependencies | 0 | Using existing libs |
| API Surface | 0 | Internal only |
| Reversibility | 0 | Easy migration |
| Security | 0 | Non-sensitive data |
| Performance | 0 | Simple CRUD |
| TOTAL | 0 | Auto-proceed |
| 维度 | 分数 | 理由 |
|---|---|---|
| 模式 | 0 | 此前已执行过列添加操作 |
| 范围 | 0 | 单一领域(表) |
| 数据模型 | 0 | 添加字段,而非实体 |
| 依赖项 | 0 | 使用现有库 |
| API接口 | 0 | 仅内部使用 |
| 可回滚性 | 0 | 易于迁移 |
| 安全性 | 0 | 非敏感数据 |
| 性能 | 0 | 简单CRUD操作 |
| 总分 | 0 | 自动推进 |
| Dimension | Score | Rationale |
|---|---|---|
| Pattern | 1 | No WebSocket patterns yet |
| Scope | 1 | Affects auth, tables, workflows |
| Data Model | 1 | New presence entity |
| Dependencies | 1 | Need socket.io |
| API Surface | 1 | New WS endpoints |
| Reversibility | 1 | Would need cleanup migration |
| Security | 1 | User session handling |
| Performance | 1 | Needs connection pooling |
| TOTAL | 8 | Gate 4 required |
| 维度 | 分数 | 理由 |
|---|---|---|
| 模式 | 1 | 尚无WebSocket模式 |
| 范围 | 1 | 影响认证、表、工作流 |
| 数据模型 | 1 | 新增在线状态实体 |
| 依赖项 | 1 | 需要socket.io |
| API接口 | 1 | 新增WS端点 |
| 可回滚性 | 1 | 需要清理迁移 |
| 安全性 | 1 | 涉及用户会话处理 |
| 性能 | 1 | 需要连接池 |
| 总分 | 8 | 需要触发Gate 4 |