Loading...
Loading...
Compare original and translation side by side
| Scenario | Why | Example |
|---|---|---|
| Destructive Operations | Irreversible, high cost of error | "Delete which files?" |
| Multiple Valid Approaches | Materially different tradeoffs | "Add index vs cache vs denormalize?" |
| Security-Critical | Wrong choice = vulnerability | "Which auth method?" |
| Data Migration | Data loss risk | "Preserve or transform?" |
| Breaking Changes | Affects downstream users | "Deprecate or remove?" |
| 场景 | 原因 | 示例 |
|---|---|---|
| 破坏性操作 | 不可逆转,错误成本高 | "请问要删除哪些文件?" |
| 多种可行方案 | 不同方案的取舍差异显著 | "请问是添加索引、使用缓存还是采用反规范化?" |
| 安全关键操作 | 错误选择会导致漏洞 | "请问使用哪种认证方法?" |
| 数据迁移 | 存在数据丢失风险 | "请问是保留原数据还是进行转换?" |
| 破坏性变更 | 会影响下游用户 | "请问是弃用还是直接移除?" |
| Scenario | Why | Assumption |
|---|---|---|
| Standard Approach Exists | Industry convention | Use conventional pattern |
| Easily Reversible | Low cost of error | Can undo via git/backup |
| Clear from Context | Intent is obvious | Proceed with stated goal |
| User Can Review | PR/dry-run available | Changes are inspectable |
| 场景 | 原因 | 假设 |
|---|---|---|
| 存在标准解决方案 | 行业通用惯例 | 采用常规模式 |
| 操作可轻松撤销 | 错误成本低 | 可通过git/备份撤销操作 |
| 上下文已明确意图 | 意图显而易见 | 按既定目标推进 |
| 用户可进行审核 | 提供PR/预执行预览 | 变更可被检查 |
| Reversibility | Ambiguity | Action |
|---|---|---|
| Reversible | Low | Proceed |
| Reversible | High | Proceed with preview |
| Irreversible | Low | Proceed with confirmation |
| Irreversible | High | Ask |
| 可撤销性 | 歧义程度 | 行动 |
|---|---|---|
| 可撤销 | 低 | 直接推进 |
| 可撤销 | 高 | 带预览推进 |
| 不可撤销 | 低 | 带确认推进 |
| 不可撤销 | 高 | 询问确认 |
git stashgit stashWhich files should I delete? I found:
- Files unchanged >6 months: 23 files
- Files in deprecated/: 5 files
- Files marked TODO remove: 2 files请问要删除哪些文件?我找到以下几类:
- 超过6个月未修改的文件:23个
- deprecated/: 5个文件
- 标记为TODO remove的文件:2个Refactoring API layer. Proposed changes:
1. Extract authentication middleware
2. Standardize error responses
3. Add request validation
Creating branch: refactor/api-layer
Preview diff available before merge.正在重构API层,拟实施以下变更:
1. 提取认证中间件
2. 标准化错误响应
3. 添加请求验证
已创建分支:refactor/api-layer
合并前可查看预览差异。conserve:response-compressionsanctum:git-workspace-reviewimbue:scope-guardconserve:response-compressionsanctum:git-workspace-reviewimbue:scope-guard| Situation | Action |
|---|---|
| "Delete X" | Ask which X |
| "Add feature" | Proceed with standard approach |
| "Fix bug" | Proceed with obvious fix |
| "Choose between A/B" | Ask for preference |
| "Optimize query" | Ask if multiple approaches |
| "Format code" | Proceed with project style |
| "Deploy to prod" | Ask for confirmation |
| 场景 | 行动 |
|---|---|
| "删除X" | 询问具体是哪个X |
| "添加功能" | 直接推进,采用标准方案 |
| "修复bug" | 直接推进,采用显而易见的修复方案 |
| "在A/B之间选择" | 询问偏好 |
| "优化查询" | 若存在多种方案则询问 |
| "格式化代码" | 直接推进,采用项目风格 |
| "部署到生产环境" | 询问确认 |