Skip to main content
command CX Codex

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add glittercowboy/taches-cc-resources
/plugin install taches-cc-resources@taches-cc-resources
Open on GitHub

What 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-resources

2Manually: put the files in place

.claude/commands/opportunity-cost.md

Call it with /opportunity-cost. For all projects use ~/.claude/commands/

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

Similar slash commands

Slash commands catalog →

From the same set48

The whole set →
via-negativa via-negativa applies the principle of subtraction to your code, features, or plans, identifying bloat to cut rather than adding new complexity. CX Codex +1 ★ 1,988repo stars occams-razor The occams-razor command weighs competing explanations against the facts and removes unsupported assumptions. Use it when a bug or decision has several plausible causes. CX Codex +1 ★ 1,988repo stars pareto pareto ranks the factors behind a decision by impact, keeps the few that carry most of the result and names the rest as safe to defer. CX Codex +1 ★ 1,988repo stars 10-10-10 10-10-10 evaluates choices across three distinct horizons: 10 minutes, 10 months, and 10 years. Spot tensions between immediate friction and lasting outcomes. CX Codex +1 ★ 1,988repo stars eisenhower-matrix This command applies the Eisenhower matrix to your tasks or current discussion, sorting them into four quadrants: urgent-important, important-not-urgent, urgent-not-important, and neither. CX Codex +1 ★ 1,988repo stars second-order Runs second-order thinking on an action or the current conversation to trace downstream consequences before you commit to changes. CX Codex +1 ★ 1,988repo stars swot The swot command maps strengths, weaknesses, opportunities, and threats for a project, decision, or position, then turns the findings into strategy. CX Codex +1 ★ 1,988repo stars check-todos check-todos — a command to view outstanding tasks from TO-DOS.md and pick one to work on. Streamlines task selection by matching work to project workflows and inviting the right skill if available. CX Codex +1 ★ 1,988repo stars

Project sponsors

Companies that keep this analytics open