{"kind":"Skill","metadata":{"namespace":"community","name":"thinking-opportunity-cost","version":"0.1.0"},"spec":{"description":"Evaluate decisions by what you give up, not just what you gain. Use for resource allocation, prioritization, build vs. buy choices, and technical debt evaluation.","files":{"SKILL.md":"---\nname: thinking-opportunity-cost\ndescription: Evaluate decisions by what you give up, not just what you gain. Use for resource allocation, prioritization, build vs. buy choices, and technical debt evaluation.\n---\n\n# Opportunity Cost Thinking\n\n## Overview\n\nOpportunity cost is the value of the next-best alternative foregone when making a choice. Every decision to do X is simultaneously a decision not to do Y, Z, and everything else. Engineers often focus on the value of their chosen path while underweighting what they're giving up.\n\n**Core Principle:** The true cost of anything is what you give up to get it. A \"free\" option that consumes time has massive opportunity cost.\n\n## When to Use\n\n- Resource allocation (time, money, people)\n- Feature prioritization\n- Build vs. buy decisions\n- Technical debt evaluation\n- Career decisions\n- Architecture choices\n- Saying \"yes\" to any commitment\n\nDecision flow:\n\n```\nMaking a commitment?\n  → Have you considered what you're NOT doing? → no → APPLY OPPORTUNITY COST\n  → Is the foregone value significant? → yes → Factor into decision\n                                       ↘ no → Proceed\n```\n\n## The Opportunity Cost Framework\n\n### Step 1: Identify the Choice\n\nState the decision explicitly:\n\n```\nChoice: Build custom authentication system\nCommitment: 3 engineers for 4 months\n```\n\n### Step 2: List the Alternatives\n\nWhat else could you do with those resources?\n\n```\nAlternatives for 3 engineers × 4 months:\nA. Build custom auth (the choice)\nB. Use Auth0 ($500/mo) + build 3 features\nC. Improve performance of existing system\nD. Reduce technical debt backlog by 40%\nE. Build new product line MVP\n```\n\n### Step 3: Value Each Alternative\n\nEstimate the value of each path:\n\n```markdown\n| Alternative | Direct Value | Strategic Value | Risk | Total Value |\n|-------------|--------------|-----------------|------|-------------|\n| Custom auth | Full control, no vendor cost | IP ownership | High (security) | Medium |\n| Auth0 + features | Features faster | Time to market | Low | High |\n| Performance work | 2x throughput | Customer satisfaction | Low | Medium-High |\n| Tech debt | Faster future dev | Developer retention | Low | Medium |\n| New product MVP | Revenue diversification | Growth potential | High | High |\n```\n\n### Step 4: Calculate Opportunity Cost\n\nOpportunity cost = Value of best foregone alternative\n\n```\nIf we choose Custom Auth:\n  Best alternative foregone: Auth0 + features (rated \"High\")\n  Opportunity cost: The features we won't build + faster time to market\n```\n\n### Step 5: Make Decision with Full Accounting\n\nTotal cost of choice = Direct cost + Opportunity cost\n\n```\nCustom Auth True Cost:\n  Direct: 3 engineers × 4 months = 12 engineer-months\n  Opportunity: 3 features delayed by 4 months\n             + Market share lost to faster competitors\n             + Developer time not on revenue features\n\nQuestion: Is custom auth worth all of that?\n```\n\n## Opportunity Cost Patterns\n\n### The \"Free\" Trap\n\nNothing is free if it consumes time:\n\n```\nScenario: \"We can build this ourselves instead of paying $10K for the tool\"\n\nAnalysis:\n- Tool cost: $10,000\n- Build time: 2 engineers × 2 weeks = 4 engineer-weeks\n- Engineer cost: ~$4,000/week fully loaded = $16,000\n- Maintenance: 1 week/quarter = $16,000/year ongoing\n\nTrue cost: $16K + ongoing maintenance \u003e $10K + $0 maintenance\nPlus: What else could those engineers have built?\n```\n\n### The Sunk Cost Interaction\n\nDon't let sunk costs distort opportunity cost analysis:\n\n```\nBAD thinking:\n\"We've already spent 6 months on this, we can't abandon it\"\n(Sunk cost fallacy ignores opportunity cost of continuing)\n\nGOOD thinking:\n\"Given where we are now, what's the best use of the NEXT 6 months?\"\n(Fresh opportunity cost analysis from current state)\n```\n\n### The Hidden Alternative\n\nThe status quo is always an alternative:\n\n```\nProposal: Migrate to Kubernetes\nAlternatives considered: ECS, Nomad, K8s\nMissing alternative: Don't migrate, improve current system\n\nFull analysis should include:\n- Cost of migration (all options)\n- Cost of staying put (often undervalued)\n- Opportunity cost of engineers doing migration vs. features\n```\n\n### Time as the Scarcest Resource\n\nTime opportunity cost is often highest:\n\n```\n\"Quick meeting, only 30 minutes\"\n\nFor 8-person meeting:\n- Direct cost: 30 min × 8 = 4 person-hours\n- Opportunity cost: 4 hours not spent on focused work\n- Context switching cost: 15 min recovery × 8 = 2 more hours\n- True cost: ~6 person-hours of productivity\n\nQuestion: Is this meeting worth 6 hours of productivity?\n```\n\n## Application Areas\n\n### Feature Prioritization\n\n```markdown\n## Opportunity Cost Analysis: Feature A vs. B\n\n| Factor | Feature A | Feature B |\n|--------|-----------|-----------|\n| Dev time | 4 weeks | 2 weeks |\n| Revenue impact | $50K/month | $30K/month |\n| Time to value | 4 weeks | 2 weeks |\n\nIf we build A first:\n- We get A in 4 weeks\n- We get B in 6 weeks\n- 2 extra weeks without B = $60K foregone\n\nIf we build B first:\n- We get B in 2 weeks\n- We get A in 6 weeks\n- 2 extra weeks without A = $100K foregone\n\nDecision: Build A first despite higher dev cost (higher opportunity cost of delay)\n```\n\n### Build vs. Buy\n\n```markdown\n## Build vs. Buy: Monitoring System\n\nBuild:\n- Development: $200K (4 engineers × 6 months)\n- Maintenance: $80K/year\n- Time to production: 6 months\n- Opportunity cost: Features those engineers would have built\n\nBuy (Datadog):\n- License: $50K/year\n- Integration: $30K (2 engineers × 1 month)\n- Time to production: 1 month\n- Opportunity cost: None significant\n\n5-year TCO:\n- Build: $200K + ($80K × 5) + opportunity cost = $600K + opportunity\n- Buy: ($50K × 5) + $30K = $280K\n\nDecision: Buy unless unique requirements justify 2x+ cost\n```\n\n### Technical Debt\n\n```markdown\n## Technical Debt Opportunity Cost\n\nCurrent state: 20% of engineering time on maintenance\nProposed: 3-month refactoring project\n\nAnalysis:\n- 3 months of refactoring = no features for 3 months\n- After refactoring: 10% time on maintenance (saves 10%)\n- Break-even: When does saved maintenance = investment?\n\nIf team = 10 engineers:\n- Investment: 10 × 3 = 30 engineer-months\n- Monthly savings: 10 × 10% = 1 engineer-month\n- Break-even: 30 months\n\nOpportunity cost: Features not built during 3-month refactoring\nReal question: Are those features worth more than 30+ months of 10% overhead?\n```\n\n### Hiring Decisions\n\n```markdown\n## Hiring Opportunity Cost\n\nChoice: Hire senior engineer at $250K\nAlternative: Two mid-level at $300K total\n\nAnalysis:\n- Senior: Higher immediate productivity, mentorship\n- Two mid: More throughput long-term, redundancy\n\nOpportunity cost of senior:\n- Fewer total engineers\n- Less coverage/redundancy\n- Longer ramp-up if they leave\n\nOpportunity cost of two mid:\n- More management overhead\n- Longer to complex projects\n- Training investment\n\nDecision depends on: Current team composition, project complexity, growth stage\n```\n\n## Opportunity Cost Template\n\n```markdown\n# Opportunity Cost Analysis: [Decision]\n\n## The Choice\nWhat we're considering: [Primary option]\nResource commitment: [Time, money, people]\n\n## Alternatives\nWhat else could we do with these resources?\n\n| # | Alternative | Resource Use | Direct Value | Strategic Value |\n|---|-------------|--------------|--------------|-----------------|\n| 1 | [Primary choice] | [X] | [Value] | [Strategic] |\n| 2 | [Alternative 1] | [X] | [Value] | [Strategic] |\n| 3 | [Alternative 2] | [X] | [Value] | [Strategic] |\n| 4 | Do nothing | [X] | [Value] | [Strategic] |\n\n## Opportunity Cost Calculation\n\nBest foregone alternative: [Which one]\nValue of that alternative: [Quantified if possible]\n\n## True Cost of Primary Choice\n- Direct cost: [Resources consumed]\n- Opportunity cost: [Value of foregone alternative]\n- Total: [Sum]\n\n## Decision\nIs [primary choice] worth [total cost]?\n[Reasoning]\n\n## Reversibility\nIf we're wrong, can we change course? At what cost?\n```\n\n## Mental Shortcuts\n\n### The \"What Else?\" Question\n\nAlways ask: \"If we didn't do this, what would we do instead?\"\n\n### The 10x Test\n\nIf opportunity cost is 10x the direct cost, rethink the decision.\n\n### The Time Value Multiplier\n\nEngineer time often has 3-5x multiplier in opportunity cost vs. dollar cost.\n\n### The Status Quo Alternative\n\nAlways include \"change nothing\" as an explicit alternative.\n\n## Verification Checklist\n\n- [ ] Explicitly stated the choice and resource commitment\n- [ ] Listed at least 3 alternatives (including status quo)\n- [ ] Valued each alternative (even roughly)\n- [ ] Identified the best foregone alternative\n- [ ] Calculated opportunity cost explicitly\n- [ ] Made decision accounting for full cost\n- [ ] Considered reversibility\n\n## Key Questions\n\n- \"What are we NOT doing by choosing this?\"\n- \"Is the 'free' option actually free?\"\n- \"What would we do with these resources otherwise?\"\n- \"What's the value of our next-best alternative?\"\n- \"Is this worth more than everything we're giving up?\"\n- \"Have we included the status quo as an option?\"\n\n## Economic Wisdom\n\n\"There is no such thing as a free lunch.\" — Milton Friedman\n\nEvery choice has a cost, even if it's not written on an invoice. The cost is what you gave up to make that choice. Recognizing opportunity cost transforms how you evaluate decisions.\n\n\"The cost of a thing is the amount of what I will call life which is required to be exchanged for it.\" — Henry David Thoreau\n\nFor engineers: substitute \"engineering time\" for \"life\" — it's your most valuable and constrained resource.\n"},"import":{"commit_sha":"a31e22d4445ad8fef7cd771d32af537aebb68c49","imported_at":"2026-05-22T21:14:39Z","license_text":"MIT License\n\nCopyright (c) 2025 TJ Boudreaux\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","owner":"tjboudreaux","repo":"tjboudreaux/cc-thinking-skills","source_url":"https://github.com/tjboudreaux/cc-thinking-skills/tree/a31e22d4445ad8fef7cd771d32af537aebb68c49/skills/thinking-opportunity-cost"}},"content_hash":[61,244,130,250,40,132,205,241,94,173,14,44,216,103,247,0,44,19,207,4,6,19,180,142,48,112,140,80,198,237,234,226],"trust_level":"unsigned","yanked":false}
