C

Comparative Advantage

CLAWHUB · Unverified

Activate when: user says 'should I do this myself or delegate,' 'I'm the best at X so I should do it,' 'should we outsource or build in-house,' 'how should w... Skill: Comparative Advantage Owner: deciqai Summary: Activate when: user says 'should I do this myself or delegate,' 'I'm the best at X so I should do it,' 'should we outsource or build in-house,' 'how should w... Tags: latest:1.0.5 Version history: v1.0.5 | 2026-07-16T17:54:51.665Z | user Description tail link + agents machine-readable metadata line (deciqai.com/s/comparative-advantage.json) v1.0.4 | 2026-07-08T10:5

62
Rank
84
Safety
973
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 973 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17a4mqcnk515kvaca5ze55d0x88pfpx:comparative-advantage
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-deciqai-comparative-advantage/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

129,383 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: comparative-advantage
description: "Activate when: user says 'should I do this myself or delegate,' 'I'm the best at X so I should do it,' 'should we outsource or build in-house,' 'how should we divide work on the team,' 'is it worth hiring someone for this.' Do NOT activate when: the situation is genuinely single-task with no trade-off; the user is asking about competitive strategy between companies (use Porter's Five Forces instead). More: deciqai.com/c/comparative-advantage"
---

# Comparative Advantage

## Overview

Mutually beneficial specialization depends on *relative* productivity, not absolute. Even if you are better than everyone else at every task, you gain by focusing on tasks where your opportunity-cost ratio is lowest and delegating the rest. The right question is not "am I better at X than them?" but "am I better at X *relative to Y* compared to how they are?"

Proved by David Ricardo (1817); called "the only proposition in economics that is both true and non-obvious" by Paul Samuelson (1969).

Composes with `opportunity-cost`, `pareto-principle`, `circle-of-competence`, `theory-of-constraints`.

## When to Use

- Founder time allocation across activities; team division of labor
- Build vs. buy / in-house vs. outsource decisions
- M&A decisions; international operations / supply chain design (e.g. AI-chip re-shoring, chip export controls, semiconductor vertical integration)
- Personal career or skill specialization decisions

**Not when:** situation is genuinely single-task (no B to trade off); transaction costs swamp any gains; alternative producer's capacity is fully constrained.

## Coaching Novices (Adaptive Front Door)

- **Engine mode:** user has a concrete allocation decision → run The Process directly.
- **Coach mode:** user is unfamiliar or has no concrete case → guide step by step.

In Coach mode, respond one step at a time. Each [WAIT] is a hard stop — output only that step's question, then stop.

1. One-line: the right test is not "am I better than them at this?" but "am I better at this *relative* to what else I could be doing?"
2. Check fit: if single-task or transaction costs very high, analysis adds limited value.
3. Elicit the case: what are you considering doing? What else could you do with the time? Who else could do it?
> **[WAIT — do not advance until user responds]**
4. One question at a time: what's your opportunity cost of the focal task? What's the alternative producer's OC? Where do ratios diverge? Are transaction costs material?
> **[WAIT — do not advance until user responds]**
5. Close: specialization recommendation + transaction-cost caveat + monitoring plan.
> **[WAIT — do not advance until user responds]**

## The Process

**Step 1 — Producers and tasks:** name Producer 1, Producer 2, Task A, Task B, time horizon.

**Step 2 — Productivity:** estimate value-per-hour (or units/time) for each producer at each task.

**Step 3 — Opportunity-cost ratios:** Producer 1's OC of Task A = Task B output

_meta.json

{
  "ownerId": "kn754b8sk22s8c6gjxt02bftbn88q7ye",
  "slug": "comparative-advantage",
  "version": "1.0.5",
  "publishedAt": 1784224491665
}

references/sources.md

# Sources — comparative-advantage

> *Primary sources for the [comparative-advantage](../SKILL.md) skill.*

## Sources

- Ricardo, D. (1817). *On the Principles of Political Economy and Taxation.* John Murray. Chapter 7 "On Foreign Trade." The foundational text.
- Samuelson, P. A. (1948). *Economics: An Introductory Analysis.* McGraw-Hill. The canonical textbook; source of the lawyer-and-typist delegation illustration.
- Samuelson, P. A. (1969). "The Way of an Economist." in *International Economic Relations*. The "true and non-obvious" essay.
- Krugman, P. (1996). "Ricardo's Difficult Idea." MIT working paper. The contemporary defense.
- Heckscher, E. F. (1919). "The Effect of Foreign Trade on the Distribution of Income." *Ekonomisk Tidskrift*, 497-512.
- Ohlin, B. (1933). *Interregional and International Trade.* Harvard University Press.
- Leontief, W. W. (1953). "Domestic Production and Foreign Trade." *Proceedings of the American Philosophical Society*, 97(4), 332-349.
- Friedman, T. L. (2005). *The World Is Flat.* Farrar, Straus and Giroux. ISBN 978-0374292881. Modern globalization application.
- Andreessen, M. (2007). "The Pmarca Guide to Personal Productivity." Blog post. Founder time-allocation application.
- Coase, R. H. (1937). "The Nature of the Firm." *Economica*, 4(16), 386-405. The transaction-cost qualification.
- US Department of Commerce, Bureau of Industry and Security (2022 and subsequent rounds). Advanced-computing and semiconductor manufacturing export-control rules on China. bis.gov. Contemporary supply-chain / transaction-cost application (AI-chip case).
- US CHIPS and Science Act (2022) and TSMC Arizona fab announcements (tsmc.com); ASML EUV lithography disclosures (asml.com); Nvidia investor materials and widely reported 2024–2025 market-cap milestones. Basis for the AI-chip supply-chain example (2024–2026).

examples/ai-chip-supply-chain-2024-2026.md

# Method in Action: The AI-Chip Supply Chain — ASML, TSMC, Nvidia (2024–2026)

> *Example for the [comparative-advantage](../SKILL.md) skill.*

By the mid-2020s the most valuable products on earth — the accelerators that train frontier AI — were built by a supply chain that no single company controls. ASML in the Netherlands makes the extreme-ultraviolet (EUV) lithography machines; TSMC in Taiwan operates the leading-edge fabs that turn designs into silicon; Nvidia in California designs the GPUs and owns the CUDA software stack. Each is dominant in its own layer and buys, rather than builds, the others. Recurring political pressure to "re-shore the whole stack" is, in Ricardo's terms, a proposal to abandon specialization — and the framework explains why that is so costly.

The case walks cleanly through the skill's Process, treating each firm as a "producer" and each layer of the stack as a "task."

**Step 1 — Producers and tasks.** Producers: ASML (lithography-tool maker), TSMC (foundry), Nvidia (chip designer). Tasks: build EUV machines · run leading-edge fabrication · design GPUs and the software ecosystem. Horizon: the multi-year capital cycle of a chip generation.

**Step 2 — Productivity.** Each producer's output-per-unit-effort in its own layer is extraordinary and hard to reproduce. ASML is the sole commercial supplier of EUV lithography systems, having consolidated the technology after decades of R&D and a global supplier base. TSMC is the dominant leading-edge foundry, running advanced-node capacity at a scale and yield competitors have struggled to match. Nvidia, whose data-center GPUs and CUDA platform anchored the AI-training boom, saw its market capitalization climb from a reported ~$3 trillion in 2024 to a reported ~$4 trillion by mid-2025. Crucially, none of the three is vertically integrated across the others' layers: ASML does not fabricate chips, TSMC does not design GPUs, Nvidia owns no fabs (it is "fabless").

**Step 3 — Opportunity-cost ratios.** This is where the absolute-advantage instinct fails. Suppose Nvidia *could* eventually learn to run its own fabs — the question is not "could it be good at fabrication?" but "what does an engineering-hour spent building fab capability forgo?" Every dollar and top engineer Nvidia diverts into fabrication is one not spent on architecture and CUDA, where its opportunity cost of *not* investing is highest. The same logic binds each firm: ASML's marginal genius is best spent on the next lithography node, not on chip design; TSMC's on yield and process, not on EUV-machine manufacturing. The opportunity-cost ratios diverge sharply, which is exactly the condition under which specialization dominates self-sufficiency.

**Step 4 — Specialization.** Each firm concentrates on its comparative-advantage layer, and the *joint* output — frontier accelerators produced at volume — is vastly higher than any single vertically integrated national champion could achieve. This is Ricardo at the scale of a

examples/ricardo-1817-england-portugal-modern-applications.md

# Method in Action: Ricardo 1817 England-Portugal + Modern Applications

> *Example for the [comparative-advantage](../SKILL.md) skill.*

Ricardo's 1817 *Principles of Political Economy and Taxation* was the first systematic statement of the theorem. His example used England and Portugal, cloth and wine. Suppose:

- Portugal can produce 1 unit of cloth with 90 labor-hours
- Portugal can produce 1 unit of wine with 80 labor-hours
- England can produce 1 unit of cloth with 100 labor-hours
- England can produce 1 unit of wine with 120 labor-hours

Portugal is absolutely more productive at both. Naive analysis: Portugal should produce both, England should produce neither.

Ricardo's analysis: look at the *ratios*. Portugal's opportunity cost of cloth = 90/80 = 1.125 wine per cloth. England's opportunity cost of cloth = 100/120 = 0.833 wine per cloth. England gives up less wine per cloth than Portugal does. England therefore has *comparative advantage* in cloth, despite Portugal's absolute advantage in cloth.

The mutually beneficial allocation: England specializes in cloth, Portugal specializes in wine, they trade. Total production rises versus each producing both goods themselves.

Ricardo's full argument:

> "Under a system of perfectly free commerce, each country naturally devotes its capital and labour to such employments as are most beneficial to each. This pursuit of individual advantage is admirably connected with the universal good of the whole. By stimulating industry, by rewarding ingenuity, and by using most efficaciously the peculiar powers bestowed by nature, it distributes labour most effectively and most economically: while, by increasing the general mass of productions, it diffuses general benefit, and binds together by one common tie of interest and intercourse, the universal society of nations throughout the civilized world."
>
> — Ricardo (1817), ch. 7.

The principle has been formalized many times since 1817 and remains the central theoretical foundation for the case for international trade and specialization. It has also been substantially extended by economists like Eli Heckscher, Bertil Ohlin, Paul Samuelson, Wassily Leontief, and Paul Krugman, who have integrated the framework with factor endowments, increasing returns, and other complications.

For founders and operators, the framework's most operationally important applications:

**Founder time allocation.** Marc Andreessen articulated this clearly in his 2007 essay "The Pmarca Guide to Personal Productivity":

> "Most founders are smart, capable, and energetic enough to do many things on the team better than the people they hire to do them. The temptation to do those things yourself is enormous. The discipline is to refuse. Your opportunity cost is higher than anyone else's on the team; an hour you spend on a task you could delegate is an hour you didn't spend on strategy, key relationships, or the next product bet. Even if you'd do the task 30% better than the delegate, th

Sponsored

Ads related to Comparative Advantage and adjacent AI workflows.