Skill站外收录 @skilllib/skill-2014279385749073921
tech-divergence
对技术方案进行多维度风险评估,通过八项指标判断实施复杂度与影响范围,低分自动推进,高分触发人工决策节点,确保架构选择兼顾可行性、可维护性与系统一致性。
商业与营销 AI 技能
Skills.MD
# Tech Divergence Skill
Evaluate technical implementation options using an 8-dimension scoring matrix. Low scores auto-proceed; high scores (>= 4) trigger Gate 4 for human decision.
## When to Use
- During Plan Mode Phase 2 (Technical Diverge)
- Before committing to a specific architecture or pattern
- When multiple valid implementation approaches exist
## Scoring Matrix (8 Dimensions)
Each dimension scores 0 (auto-proceed) or 1 (adds to checkpoint score):
| 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 |
## Phase 1: Gather Context
### 1.1 Query Pattern Library (Notion)
Check if similar patterns exist:
```
API-query-database:
database_id: "[PATTERN_LIBRARY_DB_ID]"
filter:
property: "Domain"
select:
equals: "[current domain]"
```
### 1.2 Search Codebase
```
SemanticSearch: "How is [similar feature] implemented?"
Grep: "[pattern name]" in relevant directories
```
### 1.3 Query Context7 (External Libraries)
If new libraries are being considered:
```
Context7 MCP:
1. resolve-library-id: libraryName = "[library]"
2. get-library-docs: topic = "best practices", mode = "info"
```
## Phase 2: Score Each Dimension
For each of the 8 dimensions, evaluate and score:
```
## Technical Divergence Score
| 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] | |
```
## Phase 3: Determine Path
### If Score < 4: Auto-Proceed
```
## Technical Approach: Auto-Proceed
**Score:** [N]/8 (below threshold)
**Selected Approach:** [Describe the approach]
**Rationale:**
- Pattern exists: [reference]
- Low cross-domain impact
- Easy to reverse if needed
Proceeding to Commit Plan...
```
### If Score >= 4: Gate 4 (Human Checkpoint)
```
## Gate 4: Technical Approach Selection
**Score:** [N]/8 (threshold reached)
**Why human input needed:**
- [List dimensions that scored 1]
### Option A: [Name] (Conservative)
**Approach:** [Description]
**Effort:** S
**Risk:** Low
**Trade-off:** [What you give up]
### Option B: [Name] (Balanced)
**Approach:** [Description]
**Effort:** M
**Risk:** Medium
**Trade-off:** [What you give up]
### Option C: [Name] (Bold)
**Approach:** [Description]
**Effort:** L
**Risk:** Higher
**Trade-off:** [What you give up]
---
**Which approach would you like to proceed with?** (A / B / C)
*If you reject an option, I'll invoke decision-capture to record why.*
```
## Phase 4: Record Decision
After Gate 4 selection:
1. If option rejected, invoke `decision-capture` skill
2. Record selected approach in context for Commit Plan
3. Update Pattern Library if new pattern established
## Integration with Plan Mode
This skill is invoked during Plan Mode Phase 2:
```
Plan 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
```
## MCP Tools Used
| Tool | Purpose |
|------|---------|
| Notion MCP | Query Pattern Library database |
| Context7 MCP | Get library best practices |
| SemanticSearch | Find existing codebase patterns |
| Grep | Search for specific implementations |
## Example Scoring
### Low Score Example (Auto-Proceed)
**Feature:** Add a new column to existing table
| 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 |
### High Score Example (Gate 4)
**Feature:** Add real-time collaboration
| 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 |
## Invocation
Invoked automatically by Plan Mode Phase 2, or manually with "use tech-divergence skill".
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「tech-divergence」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次