build-vs-buy-analysis
Structured build vs buy (vs hybrid / open-source / rent) analysis for a capability or component. Evaluates options on TCO, strategic fit, time-to-value, control, risk, switching cost, and opportunity cost. Produces a scored decision matrix, a recommendation with rationale, a reversal-conditions clause, and Mermaid diagrams for decision matrix and cost-over-time comparison with optional PNG export.
What this skill does
# Build vs Buy Analysis
You evaluate whether a capability or component should be built, bought, adopted (open-source), rented (SaaS), or combined (hybrid). You produce a scored decision matrix, a recommendation with rationale, and the conditions under which the decision should be revisited.
## Core rules
- **Multiple options**: always consider at least `build`, `buy`, and `non-consumption` / status quo. Add `open-source`, `rent/SaaS`, and `hybrid` when relevant
- **TCO over 3–5 years**: evaluate total cost of ownership, not just upfront cost
- **Strategic fit matters**: cheap-to-buy can still be wrong if it's core differentiation
- **Switching cost**: every option creates a future migration cost — name it
- **Reversal conditions**: every recommendation includes conditions that would trigger revisiting
- **No fabrication**: do not invent vendor pricing, feature parity claims, or market data not in the input
## Input handling
Follow shared foundation §7 — interview mode. Gather at minimum:
| Dimension | Required | Default |
|---|---|---|
| **Capability** (what is being evaluated) | Yes | — |
| **Context** (team size, existing stack, industry) | No | Inferred |
| **Known options** | No | Add build + non-consumption; others as relevant |
| **Constraints** (budget, timeline, compliance) | No | None |
| **Strategic importance** | No | Ask (core / adjacent / commodity) |
| **Evaluation horizon** | No | 3 years |
**Exit interview when**: capability and strategic importance are clear.
## Phase 1 — Setup
### 1. Collect input
Accept:
- A capability / component description
- A business case or requirements document reference
- No / vague input → interview mode (§7)
### 2. Detect scope
- **Capability**: the function being evaluated (e.g., "payment processing", "auth", "search", "CRM")
- **Context**: team size, existing stack, industry, data sensitivity
- **Strategic importance**:
- `core` — central to differentiation
- `adjacent` — supports core but not differentiating
- `commodity` — interchangeable, no strategic value in ownership
- **Constraints**: budget ceiling, timeline deadline, compliance (GDPR, HIPAA, SOC2), on-prem requirements
- **Evaluation horizon**: default 3 years; accept 1–5
### 3. Confirm scope
Present:
```
**Capability**: [name]
**Context**: [team / stack / industry]
**Strategic importance**: [core / adjacent / commodity]
**Constraints**: [list]
**Evaluation horizon**: [N years]
**Options to evaluate**: [build, buy, open-source, rent, hybrid, non-consumption]
```
Ask for confirmation. Ask render mode per `diagram-rendering` mixin and output path (default: `/documentation/[case]/build-vs-buy/`).
## Phase 2 — Option generation
Always include:
- **Build** — develop in-house
- **Buy** — purchase a commercial product (licensed, installed or hosted)
- **Non-consumption** — status quo / manual workaround / not doing it
Add where relevant:
- **Open-source** — adopt an OSS project with optional paid support
- **Rent / SaaS** — pay-as-you-go, no installation
- **Hybrid** — buy/rent a commodity layer, build differentiating layer on top
Name each option concretely. If the user identified candidate vendors/projects, list them; otherwise state "[Vendor class]" placeholders with `[Assumed]` labels.
## Phase 3 — Evaluation criteria
Score each option on 7 criteria (1–5, 5 = best outcome for the decision):
| Criterion | 1 | 3 | 5 |
|---|---|---|---|
| **Strategic fit** | Misaligns with differentiation | Neutral | Reinforces differentiation |
| **Total cost of ownership** (3-year) | >3× baseline | ~baseline | <50% of baseline |
| **Time to value** | >12 months | 3–6 months | <1 month |
| **Control & flexibility** | Vendor dictates roadmap | Configurable | Full control |
| **Risk** | High (vendor lock-in / build failure / compliance) | Moderate | Low |
| **Switching cost** | Prohibitive | Moderate | Low migration path |
| **Opportunity cost** | Diverts top talent from core work | Neutral | Frees capacity for core |
Rules:
- Score with justification — one short sentence per cell
- Use `[Assumed]` for inferred values; show the assumption
- Do not inflate scores to support a preferred option
## Phase 4 — TCO breakdown
For each option, estimate 3-year TCO (or user-specified horizon) in a consistent cost framework:
| Cost category | Description |
|---|---|
| **Upfront** | License, implementation, migration, initial build |
| **Development** | In-house engineering effort (FTE-months × loaded cost) |
| **Operations** | Hosting, maintenance, support, upgrades |
| **People** | Training, onboarding, role creation |
| **Opportunity** | Value of other work the team cannot do |
| **Risk-adjusted** | Expected cost of likely risks (e.g., 20% × €X migration cost) |
Report TCO as a range (optimistic / realistic / pessimistic). Label all estimates with confidence.
## Phase 5 — Decision matrix
```markdown
| Criterion | Weight | Build | Buy | Open-source | Rent | Hybrid | Non-cons. |
|---|---|---|---|---|---|---|---|
| Strategic fit | X% | 5 | 2 | 3 | 2 | 4 | 1 |
| TCO | X% | 3 | 2 | 4 | 3 | 3 | 5 |
| Time to value | X% | 1 | 4 | 3 | 5 | 3 | 5 |
| Control & flexibility | X% | 5 | 2 | 4 | 2 | 4 | 3 |
| Risk | X% | 2 | 3 | 3 | 4 | 3 | 5 |
| Switching cost | X% | 2 | 2 | 3 | 4 | 3 | 5 |
| Opportunity cost | X% | 2 | 5 | 4 | 5 | 4 | 5 |
| **Weighted total** | | ... | ... | ... | ... | ... | ... |
```
Weights:
- Default equal (14.3% each)
- Adjust based on strategic importance:
- `core` → strategic fit + control doubled
- `adjacent` → TCO + time-to-value doubled
- `commodity` → TCO + opportunity cost doubled
Show weights explicitly; do not change them mid-analysis.
## Phase 6 — Recommendation
One paragraph:
- **Chosen option** and weighted score
- **Runner-up** and where it's strong
- **Key trade-off** accepted
- **Biggest risk** and how it's mitigated
## Phase 7 — Reversal conditions
List 3–5 conditions that would trigger revisiting the decision:
- "If open-source project X stops releasing security patches for >6 months, re-evaluate."
- "If vendor raises prices >25% at renewal, re-evaluate."
- "If internal team capacity changes (±30% FTE), re-evaluate."
- "If the capability becomes core differentiation, shift toward build/hybrid."
Reversal conditions prevent the decision from becoming invisible inertia.
## Phase 8 — Diagrams
### 1. Decision matrix (quadrant or xychart)
```mermaid
xychart-beta
title "Build vs Buy — Weighted Score by Option"
x-axis ["Build", "Buy", "OSS", "Rent", "Hybrid", "Non-cons."]
y-axis "Weighted score" 0 --> 5
bar [4.2, 3.1, 3.6, 3.4, 3.9, 2.5]
```
### 2. Cost over time
```mermaid
xychart-beta
title "TCO over 3 years (€k, realistic)"
x-axis ["Y1", "Y2", "Y3"]
y-axis "Cost" 0 --> 500
line [400, 150, 150]
line [50, 100, 120]
line [20, 60, 80]
```
One line per option (top 3–4 by weighted score).
### 3. Strategic fit matrix (optional)
```mermaid
quadrantChart
title Strategic Fit vs TCO
x-axis Low TCO --> High TCO
y-axis Low Strategic Fit --> High Strategic Fit
quadrant-1 Build
quadrant-2 Core investment
quadrant-3 Don't do
quadrant-4 Buy/Rent
Build: [0.7, 0.9]
Buy: [0.3, 0.4]
```
## Phase 9 — Diagram rendering
Per `diagram-rendering` mixin. File names:
- `decision-matrix.mmd` / `.png`
- `cost-over-time.mmd` / `.png`
- `strategic-fit-matrix.mmd` / `.png` (optional)
## Phase 10 — Report assembly and approval
```markdown
# Build vs Buy Analysis: [Capability]
**Date**: [date]
**Capability**: [name]
**Strategic importance**: [core / adjacent / commodity]
**Evaluation horizon**: [N years]
**Options evaluated**: [list]
## Context
[Team, stack, industry, data sensitivity, constraints]
## Options
[Per option: description, concrete candidates, key characteristics]
## Evaluation Criteria & Weights
[Weights table with rationale from strategic importance]
## Decision Matrix
[Scored matrix]
## TCO Breakdown
[Per option: upfront / developmeRelated in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.