Preserving Productive Tensions
关于
This skill helps developers recognize when technical disagreements reveal valuable context-dependent tradeoffs. It preserves multiple valid approaches instead of forcing premature resolution, particularly when oscillating between solutions that optimize for different legitimate priorities. Use it to maintain flexibility when the "better" choice depends on deployment context rather than technical superiority.
技能文档
Preserving Productive Tensions
Overview
Some tensions aren't problems to solve - they're valuable information to preserve. When multiple approaches are genuinely valid in different contexts, forcing a choice destroys flexibility.
Core principle: Preserve tensions that reveal context-dependence. Force resolution only when necessary.
Recognizing Productive Tensions
A tension is productive when:
- Both approaches optimize for different valid priorities (cost vs latency, simplicity vs features)
- The "better" choice depends on deployment context, not technical superiority
- Different users/deployments would choose differently
- The trade-off is real and won't disappear with clever engineering
- Stakeholders have conflicting valid concerns
A tension needs resolution when:
- Implementation cost of preserving both is prohibitive
- The approaches fundamentally conflict (can't coexist)
- There's clear technical superiority for this specific use case
- It's a one-way door (choice locks architecture)
- Preserving both adds complexity without value
Preservation Patterns
Pattern 1: Configuration
Make the choice configurable rather than baked into architecture:
class Config:
mode: Literal["optimize_cost", "optimize_latency"]
# Each mode gets clean, simple implementation
When to use: Both approaches are architecturally compatible, switching is runtime decision
Pattern 2: Parallel Implementations
Maintain both as separate clean modules with shared contract:
# processor/batch.py - optimizes for cost
# processor/stream.py - optimizes for latency
# Both implement: def process(data) -> Result
When to use: Approaches diverge significantly, but share same interface
Pattern 3: Documented Trade-off
Capture the tension explicitly in documentation/decision records:
## Unresolved Tension: Authentication Strategy
**Option A: JWT** - Stateless, scales easily, but token revocation is hard
**Option B: Sessions** - Easy revocation, but requires shared state
**Why unresolved:** Different deployments need different trade-offs
**Decision deferred to:** Deployment configuration
**Review trigger:** If 80% of deployments choose one option
When to use: Can't preserve both in code, but need to document the choice was deliberate
Red Flags - You're Forcing Resolution
- Asking "which is best?" when both are valid
- "We need to pick one" without explaining why
- Choosing based on your preference vs user context
- Resolving tensions to "make progress" when preserving them IS progress
- Forcing consensus when diversity is valuable
All of these mean: STOP. Consider preserving the tension.
When to Force Resolution
You SHOULD force resolution when:
-
Implementation cost is prohibitive
- Building/maintaining both would slow development significantly
- Team doesn't have bandwidth for parallel approaches
-
Fundamental conflict
- Approaches make contradictory architectural assumptions
- Can't cleanly separate concerns
-
Clear technical superiority
- One approach is objectively better for this specific context
- Not "I prefer X" but "X solves our constraints, Y doesn't"
-
One-way door
- Choice locks us into an architecture
- Migration between options would be expensive
-
Simplicity requires choice
- Preserving both genuinely adds complexity
- YAGNI: Don't build both if we only need one
Ask explicitly: "Should I pick one, or preserve both as options?"
Documentation Format
When preserving tensions, document clearly:
## Tension: [Name]
**Context:** [Why this tension exists]
**Option A:** [Approach]
- Optimizes for: [Priority]
- Trade-off: [Cost]
- Best when: [Context]
**Option B:** [Approach]
- Optimizes for: [Different priority]
- Trade-off: [Different cost]
- Best when: [Different context]
**Preservation strategy:** [Configuration/Parallel/Documented]
**Resolution trigger:** [Conditions that would force choosing one]
Examples
Productive Tension (Preserve)
"Should we optimize for cost or latency?"
- Answer: Make it configurable - different deployments need different trade-offs
Technical Decision (Resolve)
"Should we use SSE or WebSockets?"
- Answer: SSE - we only need one-way communication, simpler implementation
Business Decision (Defer)
"Should we support offline mode?"
- Answer: Don't preserve both - ask stakeholder to decide based on user needs
Remember
- Tensions between valid priorities are features, not bugs
- Premature consensus destroys valuable flexibility
- Configuration > forced choice (when reasonable)
- Document trade-offs explicitly
- Resolution is okay when justified
快速安装
/plugin add https://github.com/lifangda/claude-plugins/tree/main/preserving-productive-tensions在 Claude Code 中复制并粘贴此命令以安装该技能
GitHub 仓库
相关推荐技能
analyzing-dependencies
元这个Claude Skill能自动分析项目依赖的安全漏洞、过时包和许可证合规问题。它支持npm、pip、composer、gem和go modules等多种包管理器,帮助开发者识别潜在风险。当您需要检查依赖安全性、更新过时包或确保许可证兼容时,可使用"check dependencies"等触发短语来调用。
work-execution-principles
其他这个Claude Skill为开发者提供了一套通用的工作执行原则,涵盖任务分解、范围确定、测试策略和依赖管理。它确保开发活动中的一致质量标准,适用于代码审查、工作规划和架构决策等场景。该技能与所有编程语言和框架兼容,帮助开发者系统化地组织代码结构和定义工作边界。
Git Commit Helper
元Git Commit Helper能通过分析git diff自动生成规范的提交信息,适用于开发者编写提交消息或审查暂存区变更时。它能识别代码变更类型并自动匹配Conventional Commits规范,提供包含功能类型、作用域和描述的标准化消息。开发者只需提供git diff内容即可获得即用型的提交消息建议。
nextjs
开发This Next.js Skill provides architectural standards and BFF patterns for Next.js 15.5+ projects using App Router. It enforces clear server/client component separation, implements Server Actions and Route Handlers, and ensures performance optimization with SEO best practices. Use it when designing App Router structures, implementing data fetching strategies, or building BFF architectures.
