MCP HubMCP Hub
スキル一覧に戻る

Preserving Productive Tensions

lifangda
更新日 Today
212 閲覧
11
11
GitHubで表示
その他general

について

このスキルは、技術的な意見の相違が価値ある文脈依存のトレードオフを明らかにする場合に、開発者がそれを認識するのを支援します。これは、特に異なる正当な優先事項を最適化する解決策の間で揺れ動く場合に、時期尚早な決着を強制する代わりに、複数の有効なアプローチを保持します。技術的な優位性ではなく、導入状況に応じて「より良い」選択が変わる場合に柔軟性を維持するために活用してください。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/lifangda/claude-plugins
Git クローン代替
git clone https://github.com/lifangda/claude-plugins.git ~/.claude/skills/Preserving Productive Tensions

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

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:

  1. Implementation cost is prohibitive

    • Building/maintaining both would slow development significantly
    • Team doesn't have bandwidth for parallel approaches
  2. Fundamental conflict

    • Approaches make contradictory architectural assumptions
    • Can't cleanly separate concerns
  3. Clear technical superiority

    • One approach is objectively better for this specific context
    • Not "I prefer X" but "X solves our constraints, Y doesn't"
  4. One-way door

    • Choice locks us into an architecture
    • Migration between options would be expensive
  5. 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

GitHub リポジトリ

lifangda/claude-plugins
パス: cli-tool/skills-library/architecture-patterns/preserving-productive-tensions

関連スキル

algorithmic-art

メタ

This Claude Skill creates original algorithmic art using p5.js with seeded randomness and interactive parameters. It generates .md files for algorithmic philosophies, plus .html and .js files for interactive generative art implementations. Use it when developers need to create flow fields, particle systems, or other computational art while avoiding copyright issues.

スキルを見る

subagent-driven-development

開発

This skill executes implementation plans by dispatching a fresh subagent for each independent task, with code review between tasks. It enables fast iteration while maintaining quality gates through this review process. Use it when working on mostly independent tasks within the same session to ensure continuous progress with built-in quality checks.

スキルを見る

executing-plans

デザイン

Use the executing-plans skill when you have a complete implementation plan to execute in controlled batches with review checkpoints. It loads and critically reviews the plan, then executes tasks in small batches (default 3 tasks) while reporting progress between each batch for architect review. This ensures systematic implementation with built-in quality control checkpoints.

スキルを見る

cost-optimization

その他

This Claude Skill helps developers optimize cloud costs through resource rightsizing, tagging strategies, and spending analysis. It provides a framework for reducing cloud expenses and implementing cost governance across AWS, Azure, and GCP. Use it when you need to analyze infrastructure costs, right-size resources, or meet budget constraints.

スキルを見る