opportunity-cost — Claude Code command: what it does, how to install
The opportunity-cost command weighs a choice against the best alternative use of the same resources. Use it when you want to see what a decision costs in time, money, energy, or attention.
MIT ★ 1,988 updated 2026-04-01
/plugin marketplace add glittercowboy/taches-cc-resources
/plugin install taches-cc-resources@taches-cc-resourcesWhat opportunity-cost does
Give the command a choice to assess, or leave the argument empty to examine the discussion at hand. It identifies the resources the choice would consume, then compares that commitment with the strongest alternative use of those resources.
The response lays out the choice, costs, alternative value, and what you give up, followed by a verdict on whether the tradeoff makes sense. The comparison focuses on the best alternative rather than a random one. The verdict depends on how clearly you describe the choice and its alternatives.
What it helps with
- weigh a decision against the best use of the same resources
- account for attention and energy alongside money
- identify the value lost by committing to one option
- decide whether a choice justifies its costs
Example prompts for the agent
- Compare taking on this project with the best alternative use of that time.
- Assess what I give up by choosing this option.
- Review the current decision and judge its costs against the alternatives.
How to install opportunity-cost
1Plugin marketplace
/plugin marketplace add glittercowboy/taches-cc-resources/plugin install taches-cc-resources@taches-cc-resources2Manually: put the files in place
.claude/commands/opportunity-cost.mdCall it with /opportunity-cost. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/opportunity-cost.mdCall it with /prompts:opportunity-cost. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/opportunity-cost.prompt.mdManually: put the files in place
.gemini/commands/opportunity-cost.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about opportunity-cost
How do I install opportunity-cost in Claude Code?
Run /plugin marketplace add glittercowboy/taches-cc-resources, then run /plugin install taches-cc-resources@taches-cc-resources.
What does opportunity-cost do?
It examines a choice, lists the resources it uses, and compares it with the best alternative. It then gives a verdict on the tradeoff.
Which costs does opportunity-cost consider?
It covers time, money, energy, and attention. It can also account for other costs, such as relationships or reputation.
Source text
opportunity-cost.md · MIT
--- description: Analyze what you give up by choosing this option argument-hint: [choice or leave blank for current context] --- <objective> Apply opportunity cost analysis to $ARGUMENTS (or the current discussion if no arguments provided). Every yes is a no to something else. What's the true cost of this choice? </objective> <process> 1. State the choice being considered 2. List what resources it consumes (time, money, energy, attention) 3. Identify the best alternative use of those same resources 4. Compare value of chosen option vs. best alternative 5. Determine if the tradeoff is worth it </process> <output_format> **Choice:** [what you're considering doing] **Resources Required:** - Time: [hours/days/weeks] - Money: [amount] - Energy/Attention: [cognitive load] - Other: [relationships, reputation, etc.] **Best Alternative Uses:** - With that time, could instead: [alternative + value] - With that money, could instead: [alternative + value] - With that energy, could instead: [alternative + value] **True Cost:** Choosing this means NOT doing [best alternative], which would have provided [value]. **Verdict:** [Is the chosen option worth more than the best alternative?] </output_format> <success_criteria> - Makes hidden costs explicit - Compares to best alternative, not just any alternative - Accounts for all resource types (not just money) - Reveals when "affordable" things are actually expensive - Enables genuine comparison of value </success_criteria>
© Lex Christopherson · MIT · glittercowboy/taches-cc-resources