/project-toolkit:buy-vs-build-frameworkfrom project-toolkit
Guides strategic build, buy, partner, or defer decisions with a four-phase process and tiered TCO analysis. Use for multi-option sourcing trade-offs with 2+ year horizon, not for tactical library choices.
Ships in project-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
When this skill activates, you become a strategic sourcing advisor for Principal+ leaders. Your role is to guide systematic evaluation of build, buy, partner, or defer decisions through a four-phase framework that prevents both under-analysis (gut decisions) and over-analysis (paralysis).
Activate when the user:
evaluate build vs buy for {capability}should we build or buy {system}core vs context analysis for {capability}strategic sourcing decision for {feature}make or buy decision for {system}Use this skill: "should we build or buy a customer data platform, partner with a vendor, or defer the investment for two years", "strategic sourcing decision for our identity provider with TCO". Every one of these compares multiple sourcing options over a multi-year horizon with budget stakes.
Do NOT use this skill for: "is there a library for parsing YAML in Python"
(narrow, tactical, one implementation choice; use programming-advisor
instead). The dividing line is time horizon and option count: a multi-option
strategic trade-off with TCO stays here, one tactical answer goes to
programming-advisor.
Use this skill when:
Use cynefin-classifier first if:
Use decision-critic instead if:
Use plan instead if:
| Phase | Duration | Output |
|---|---|---|
| 0. Depth Selection | 5 min | Quick / Standard / Deep tier |
| 1. Classify | 30 min - 2 hours | Core vs Context + Strategic score |
| 2. Analyze | 1 hour - 1 day | TCO + Team capacity assessment |
| 3. Evaluate | 2 hours - 3 days | Decision matrix + Pre-mortem |
| 4. Decide | 1 hour - 1 week | Final decision + ADR + Reassessment plan |
Select appropriate analysis depth to prevent over-engineering.
| Tier | Budget | Impact | Reversibility | Duration | Output |
|---|---|---|---|---|---|
| Quick | <$50K | Low | Easy | 1-2 hours | Core vs Context + Simple TCO + Go/No-go |
| Standard | $50K-$500K | Medium | Moderate | 1-2 days | Full 4 phases + Decision matrix + ADR |
| Deep | >$500K | High | Hard | 1-2 weeks | Full 4 phases + POCs + External research + Consensus + Comprehensive ADR |
Why: Time-box effort proportional to decision magnitude. Prevents analysis paralysis on small decisions while ensuring rigor for strategic decisions.
Example: A $100K budget with medium impact and moderate reversibility matches the Standard row on all three axes, so the depth is Standard: 1-2 days, full 4 phases.
Purpose: Determine if capability is Core (competitive differentiator) or Context (table stakes).
CORE CONTEXT
Competitive differentiator Table stakes
Unique to business model Industry-standard
Source of customer value Required but not differentiating
Customers choose you BECAUSE of this Customers assume you have this
Amazon's recommendation engine Auth systems
Netflix's content algorithm Payment processing
Uber's matching system Email delivery
Default: BUILD Default: BUY
(unless constraints prevent) (unless no viable vendors)
Integration: Run cynefin-classifier first if problem domain unclear. Complex domains favor Buy/Partner to reduce risk.
Outputs:
Exit Criteria:
Use: the classification prompts in this phase for the Core vs Context framework.
Purpose: Quantify total cost of ownership and assess team capacity.
python3 scripts/calculate_tco.py \
--build-initial 500000 \
--build-ongoing 100000 \
--buy-initial 50000 \
--buy-ongoing 200000 \
--partner-initial 100000 \
--partner-ongoing 150000 \
--discount-rate 0.12 \
--years 5
| Category | Build | Buy | Partner |
|---|---|---|---|
| Initial | Engineering time, design, architecture, tooling | License fees, implementation services, integration, training | Integration work, legal agreements, POC |
| Ongoing | Maintenance, bug fixes, features, infrastructure, support | Subscription fees, support contracts, upgrades | Revenue share, relationship management, co-dev coordination |
| Hidden | Opportunity cost, onboarding, tech debt | Vendor lock-in, integration debt, workflow constraints | Roadmap misalignment, partner dependency, revenue complexity |
Capacity Assessment Questions:
Exit Criteria:
Use: the TCO categories and sensitivity checks in this phase for calculation details.
Purpose: Score options across strategic, operational, and risk dimensions.
python3 scripts/score_decision.py \
--criteria-file "decision-criteria.json" \
--options "build,buy,partner"
# Output:
# Strategic: BUILD=7.2 BUY=5.8 PARTNER=6.1
# Operational: BUILD=5.5 BUY=7.8 PARTNER=6.0
# Risk: BUILD=6.0 BUY=6.5 PARTNER=5.5
# Winner: BUILD (confidence: MEDIUM, 9% gap)
| Dimension | Weight | Criteria |
|---|---|---|
| Strategic | 40% | Alignment, Market signaling, Optionality, Asymmetric upside |
| Operational | 30% | Time to value, Team fit, Integration complexity, Maintenance burden |
| Risk | 30% | Vendor risk, Execution risk, Regulatory risk, Lock-in risk |
Integration: Run pre-mortem on leading option. If >5 severe risks surface, reconsider decision.
Exit Criteria:
Use: the scoring table in this phase as the decision worksheet.
Purpose: Make final decision, document rationale, plan reassessment.
| Option | When to Choose |
|---|---|
| Build | Core capability + team capacity + favorable TCO. No viable vendors OR vendor lock-in unacceptable. Strategic capability development desired. |
| Buy | Context capability + viable vendors + faster time to value. Team lacks capacity OR skills. Commodity capability with mature market. |
| Partner | Shared value creation (rev share, co-development). Strategic alliance benefits beyond technology. Neither build nor buy individually compelling. |
| Defer | Unclear requirements OR high uncertainty. Market immature (wait for consolidation). Problem may not need solving (validate demand first). |
Integration:
Exit Criteria:
Calculate NPV, IRR, break-even timeline for build/buy/partner options.
python3 scripts/calculate_tco.py --help
# Required flags:
# --build-initial FLOAT Initial build costs
# --build-ongoing FLOAT Annual build costs
# --buy-initial FLOAT Initial buy costs
# --buy-ongoing FLOAT Annual buy costs
# --partner-initial FLOAT Initial partner costs
# --partner-ongoing FLOAT Annual partner costs
# --discount-rate FLOAT Discount rate (0.10 = 10%)
# --years INT Analysis horizon (3, 5, or 10)
# Exit codes:
# 0: Success
# 1: Error (invalid inputs)
# 2: Warning (negative NPV detected)
Calculate weighted decision scores with sensitivity analysis.
python3 scripts/score_decision.py --help
# Required flags:
# --criteria-file PATH JSON file with criteria weights and scores
# Exit codes:
# 0: Clear winner (>20% score gap)
# 1: Tie requires human judgment (scores within 10%)
# 2: Criteria file not found, invalid JSON, or failed validation
Detect assumption drift, recommend re-evaluation.
python3 scripts/check_reassessment_triggers.py --help
# Required flags:
# --adr-file PATH ADR markdown file
# --current-state PATH JSON with current assumptions
# Exit codes:
# 0: Assumptions hold, stay course
# 1: Error (file not found or invalid JSON)
# 2: Minor drift (<20%), monitor closely
# 3: Major drift (>20%), re-evaluation required
Score vendor stability, pricing, feature fit.
python3 scripts/score_vendor.py --help
# Required flags:
# --vendor-data PATH JSON file with vendor information
# Exit codes:
# 0: Pass (score >70)
# 1: Path traversal rejected for --vendor-data
# 2: Vendor data file not found or invalid JSON
# 100: Yellow flag (score 50-70)
# 101: Red flag (score <50)
This skill ships no separate template files. Each phase worksheet lives in this document:
calculate_tco.py (see Scripts)score_decision.py (see Scripts)| Avoid | Why | Instead |
|---|---|---|
| Using framework for trivial decisions (<$10K, reversible) | Analysis paralysis | Use judgment, skip framework |
| Skipping pre-mortem on high-risk decisions | Misses hidden failure modes | Always run pre-mortem in Phase 3 |
| Not documenting rationale | Future team can't understand why | Create ADR (Standard/Deep tier) |
| Forgetting reassessment plan | Decision becomes stale | Set calendar reminders for reviews |
| Optimizing for single dimension (only cost) | Ignores strategic value | Use full decision matrix |
| Skill | Relationship |
|---|---|
| cynefin-classifier | Pre-step to determine problem domain |
| pre-mortem | Phase 3 risk identification |
| decision-critic | Phase 4 validation |
| adr-review | Phase 4 multi-agent consensus |
| plan | Post-decision milestone and task planning |
# ADR-NNN: [Build/Buy/Partner/Defer] {Capability Name}
## Decision
We will [BUILD/BUY/PARTNER/DEFER] {capability}.
## Context
{Problem being solved, strategic importance, business drivers}
## Considered Options
1. **Build**: {Summary, pros/cons, TCO}
2. **Buy**: {Summary, pros/cons, TCO, vendor options}
3. **Partner**: {Summary, pros/cons, TCO, partnership models}
4. **Defer**: {Summary, validation approach}
## Decision Drivers
1. {Top factor that determined outcome}
2. {Second most important factor}
3. {Third most important factor}
## Consequences
### Expected Outcomes:
- {Positive outcome 1}
- {Positive outcome 2}
### Risks:
- {Risk 1 + Mitigation}
- {Risk 2 + Mitigation}
## Reassessment Triggers
- Cost assumption changes >20%
- Time horizon shifts materially
- Strategic priority shifts (context to core or vice versa)
- Vendor viability concerns (M&A, financials, EOL)
- Team capacity changes (key departures, hiring surge)
- Competitive dynamics shift (urgency increases)
- Regulatory changes
- Technology disruption
- Customer demand signal
- **Annual review:** {Date}
## Decision-Maker
{Name, Title} on {Date}
# Run quarterly to detect assumption drift
python3 scripts/check_reassessment_triggers.py \
--adr-file "architecture/ADR-123-build-payments.md" \
--current-state "current-state.json"
# Output:
# Status: REASSESSMENT_REQUIRED
# Drift: Vendor pricing changed 25% (trigger: >20%)
# Recommendation: Run Phase 2 (TCO) analysis with updated costs
Never Build:
Never Buy:
Why timeless:
What could change (-1 point):
Mitigation: Framework includes "Defer" option and reassessment triggers to adapt to these shifts.
Deep-dive documentation in references/ directory:
references/PHASE1_ANALYSIS.md - Core vs Context classification worksheetreferences/SKILL_SPEC.xml - Original skill specification. Its template and reference inventories list files that were never shipped.What SKILL.md sets; muted values are Claude Code's defaults
2 plugins in one repository ship this exact skill · first indexed Oct 14, 2026
105 skills in this plugin
/adr-generatorCreate comprehensive Architectural Decision Records (ADRs). Researches the destination directory to detect existing template conventions, gathers context, determines next ADR number, generates the ADR, validates completeness, and saves. Supports multiple ADR formats (MADR, Nygard, Alexandrian, project canonical). Use when documenting technical decisions, creating new ADR files, or capturing rationale so future readers can revisit a choice. Use when you say "write an ADR", "document this decision", "document these design choices", "record why we chose this", "capture the rationale", or "for future maintainers", or when creating an ADR-like markdown file under docs/decisions/, docs/adr/, docs/architecture/, architecture/decisions/, or .project-toolkit/architecture/. Do NOT use to debate or review an existing ADR (use adr-review)./adr-reviewMulti-agent debate orchestration for Architecture Decision Records. Automatically triggers on ADR create/edit/delete. Coordinates architect, critic, independent-thinker, security, analyst, and high-level-advisor agents in structured debate rounds until consensus. Use when you say "review this ADR", when an ADR is created/edited/deleted, or when reviewing, accepting, or updating a decision file under .project-toolkit/architecture/, docs/architecture/, docs/decisions/, docs/adr/, or architecture/decisions/, including intent like "review this decision record" or "check this rationale for future maintainers". Do NOT use to author a new ADR (use adr-generator).npx claudepluginhub rjmurillo/ai-agents --plugin project-toolkitOther plugins' skills for the same job