{"id":"1e325752-68f2-48e5-9ee8-4e60af770771","entityType":"agent","slug":"clawhub-deciqai-comparative-advantage","name":"Comparative Advantage","canonicalUrl":"https://www.xpersona.co/agent/clawhub-deciqai-comparative-advantage","canonicalPath":"/agent/clawhub-deciqai-comparative-advantage","generatedAt":"2026-10-14T15:04:56.201Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-11T23:49:51.606Z","emptyReason":null},"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 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","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 973 downloads reported by the source. Last updated 10/11/2026.","installCommand":"clawhub skill install s17a4mqcnk515kvaca5ze55d0x88pfpx:comparative-advantage","sourceUrl":"https://clawhub.ai/deciqai/comparative-advantage","homepage":"https://clawhub.ai/deciqai/skills/comparative-advantage","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/deciqai/comparative-advantage","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/deciqai/skills/comparative-advantage","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":60,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"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..."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-11T23:49:51.606Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T23:49:51.606Z","emptyReason":null},"stars":null,"forks":null,"downloads":973,"likes":null,"task":null,"library":null,"packageName":null,"latestVersion":"1.0.5","tractionLabel":"973 downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T23:49:51.588Z","emptyReason":null},"lastUpdatedAt":"2026-10-11T23:49:51.606Z","lastCrawledAt":"2026-10-11T23:49:51.588Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-12T23:49:51.588Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.5","createdAt":"2026-07-16T17:54:51.665Z","changelog":"Description tail link + agents machine-readable metadata line (deciqai.com/s/comparative-advantage.json)","fileCount":7,"zipByteSize":14523},{"version":"1.0.4","createdAt":"2026-07-08T10:57:12.717Z","changelog":"Footer now uses /c/<slug> short link (fixes UTM truncation when SKILL.md is read in a terminal)","fileCount":7,"zipByteSize":14307},{"version":"1.0.3","createdAt":"2026-07-08T03:51:10.688Z","changelog":"Second primary-sourced worked example","fileCount":6,"zipByteSize":10490},{"version":"1.0.2","createdAt":"2026-07-08T00:41:27.105Z","changelog":"Refreshed content + GitHub star link in footer","fileCount":5,"zipByteSize":8339},{"version":"1.0.1","createdAt":"2026-07-07T20:31:04.709Z","changelog":"Add catalog categories and topics","fileCount":5,"zipByteSize":8173},{"version":"1.0.0","createdAt":"2026-06-27T04:17:35.781Z","changelog":"Initial publish","fileCount":5,"zipByteSize":8294}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17a4mqcnk515kvaca5ze55d0x88pfpx:comparative-advantage","setupComplexity":"low","setupSteps":["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.","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":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-deciqai-comparative-advantage/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-deciqai-comparative-advantage/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-deciqai-comparative-advantage/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-deciqai-comparative-advantage/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-deciqai-comparative-advantage/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-deciqai-comparative-advantage/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-14T15:04:56.197Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-deciqai-comparative-advantage/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-deciqai-comparative-advantage/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-deciqai-comparative-advantage/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-deciqai-comparative-advantage/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-11T23:49:51.606Z","emptyReason":null},"readme":"Skill: Comparative Advantage\n\nOwner: deciqai\n\nSummary: 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...\n\nTags: latest:1.0.5\n\nVersion history:\n\nv1.0.5 | 2026-07-16T17:54:51.665Z | user\n\nDescription tail link + agents machine-readable metadata line (deciqai.com/s/comparative-advantage.json)\n\nv1.0.4 | 2026-07-08T10:57:12.717Z | user\n\nFooter now uses /c/<slug> short link (fixes UTM truncation when SKILL.md is read in a terminal)\n\nv1.0.3 | 2026-07-08T03:51:10.688Z | user\n\nSecond primary-sourced worked example\n\nv1.0.2 | 2026-07-08T00:41:27.105Z | user\n\nRefreshed content + GitHub star link in footer\n\nv1.0.1 | 2026-07-07T20:31:04.709Z | user\n\nAdd catalog categories and topics\n\nv1.0.0 | 2026-06-27T04:17:35.781Z | user\n\nInitial publish\n\nArchive index:\n\nArchive v1.0.5: 7 files, 14523 bytes\n\nFiles: examples/ai-chip-supply-chain-2024-2026.md (6981b), examples/ricardo-1817-england-portugal-modern-applications.md (5787b), examples/samuelson-lawyer-typist-delegation.md (4019b), references/sources.md (1871b), skill-card.md (2695b), SKILL.md (7303b), _meta.json (140b)\n\nFile v1.0.5:SKILL.md\n\n---\nname: comparative-advantage\ndescription: \"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\"\n---\n\n# Comparative Advantage\n\n## Overview\n\nMutually 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?\"\n\nProved by David Ricardo (1817); called \"the only proposition in economics that is both true and non-obvious\" by Paul Samuelson (1969).\n\nComposes with `opportunity-cost`, `pareto-principle`, `circle-of-competence`, `theory-of-constraints`.\n\n## When to Use\n\n- Founder time allocation across activities; team division of labor\n- Build vs. buy / in-house vs. outsource decisions\n- M&A decisions; international operations / supply chain design (e.g. AI-chip re-shoring, chip export controls, semiconductor vertical integration)\n- Personal career or skill specialization decisions\n\n**Not when:** situation is genuinely single-task (no B to trade off); transaction costs swamp any gains; alternative producer's capacity is fully constrained.\n\n## Coaching Novices (Adaptive Front Door)\n\n- **Engine mode:** user has a concrete allocation decision → run The Process directly.\n- **Coach mode:** user is unfamiliar or has no concrete case → guide step by step.\n\nIn Coach mode, respond one step at a time. Each [WAIT] is a hard stop — output only that step's question, then stop.\n\n1. 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?\"\n2. Check fit: if single-task or transaction costs very high, analysis adds limited value.\n3. Elicit the case: what are you considering doing? What else could you do with the time? Who else could do it?\n> **[WAIT — do not advance until user responds]**\n4. 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?\n> **[WAIT — do not advance until user responds]**\n5. Close: specialization recommendation + transaction-cost caveat + monitoring plan.\n> **[WAIT — do not advance until user responds]**\n\n## The Process\n\n**Step 1 — Producers and tasks:** name Producer 1, Producer 2, Task A, Task B, time horizon.\n\n**Step 2 — Productivity:** estimate value-per-hour (or units/time) for each producer at each task.\n\n**Step 3 — Opportunity-cost ratios:** Producer 1's OC of Task A = Task B output forgone per unit of Task A. Repeat for Producer 2. Lower OC = comparative advantage in that task.\n\n**Step 4 — Specialization:** each producer focuses on their comparative-advantage task. Total output rises.\n\n**Step 5 — Transaction costs:** add coordination, communication, quality-risk, and information-asymmetry costs. If net benefit positive: specialize. If net negative: produce in-house.\n\n**Step 6 — Implement and monitor:** document arrangement, set quality monitoring, schedule re-evaluation as productivity ratios or transaction costs shift.\n\n## Output Template\n\n```markdown\n# Comparative-Advantage Analysis: <decision>\nProducers: P1 = ___ | P2 = ___   Tasks: A = ___ | B = ___\nOC of Task A — P1: ___ | P2: ___   → CA in A: P___ | CA in B: P___\nTransaction costs: coordination ___ | quality risk ___ | net ___\nRecommendation: P1 specializes in ___ | P2 specializes in ___\nCaveats / re-eval trigger: ___\n```\n\n*→ Method in Action: [Ricardo 1817 England-Portugal + Modern Applications](examples/ricardo-1817-england-portugal-modern-applications.md) · [Samuelson's Lawyer and Typist](examples/samuelson-lawyer-typist-delegation.md)*\n*→ 2026 lens: [The AI-chip supply chain — ASML, TSMC, Nvidia (2024–2026)](examples/ai-chip-supply-chain-2024-2026.md)*\n\n## Pack: Application Patterns\n\n| Decision | Absolute-advantage trap | Comparative-advantage answer |\n|---|---|---|\n| Founder time | \"I'm best at everything\" | Specialize in 2-3 highest-leverage activities; delegate the rest |\n| Senior engineer | \"I should code everything\" | Architect, mentor, hard problems; delegate routine tasks |\n| Manufacturing | \"We could build our own factory\" | Outsource to specialist; focus on design/marketing/sales |\n| Customer support | \"I know the product best\" | Hire CS specialists; handle only strategic relationships yourself |\n\n## Applying It Well\n\n- Compute opportunity-cost *ratios*, not absolute productivity\n- Transaction costs are real — factor coordination, communication, quality-monitoring\n- Revisit as productivity ratios shift or transaction costs change\n\n*→ Primary sources: [references/sources.md](references/sources.md)*\n\n## Common Rationalizations\n\n**[D] = designed upfront | [O] = observed in real use. [O] entries are more valuable.**\n\n| Fake move | Reality |\n|---|---|\n| [D] \"I'm best at this, so I should do it\" | Right question is OC ratio. You can be best at it and still not be the one who should do it. |\n| [D] \"I can do it faster than they can\" | An hour spent doing it is an hour not spent on higher-OC work. Calculus often favors delegation. |\n| [D] \"Quality will drop if I delegate\" | Compute: does the quality drop outweigh the OC gain from focusing on higher-CA activities? Often no. |\n| [D] \"Outsourcing is risky\" | Transaction costs and quality risk are part of the calculus — compute them, don't assume. |\n| [D] \"Comparative advantage is academic; real life is different\" | The framework underpins modern supply chains, team specialization, and founder time-allocation. |\n| *→ Add [O] entries here after each real use — paste the actual failure pattern* | *What went wrong and why* |\n\n## Red Flags\n\n- Founder doing many tasks personally despite team members who could do them\n- \"I'm best at X\" used to justify allocation instead of OC analysis\n- Outsourcing decisions based on absolute productivity rather than opportunity cost\n- Transaction costs ignored entirely or used as a blanket excuse\n\n## Verification\n\n- [ ] Both producers and both tasks explicitly specified\n- [ ] Productivity or value-per-hour estimated for each combination\n- [ ] Opportunity-cost ratios computed; comparative-advantage assignment determined\n- [ ] Transaction costs considered; net benefit computed\n- [ ] Decision documented; re-evaluation conditions specified\n\n---\n\n*Part of **deciqAI Knowledge Skills** — 227 open-source thinking skills that make rigor executable for AI agents. The same skills power every deciqAI agent, which runs them autonomously to operate your company. **See it run → https://www.deciqai.com/c/comparative-advantage** · ⭐ Star the repo → https://github.com/deciqAI/knowledge-skills · Contributions welcome.*\n\n*Agents: latest version & machine-readable metadata → https://www.deciqai.com/s/comparative-advantage.json*\n\nFile v1.0.5:_meta.json\n\n{\n  \"ownerId\": \"kn754b8sk22s8c6gjxt02bftbn88q7ye\",\n  \"slug\": \"comparative-advantage\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784224491665\n}\n\nFile v1.0.5:references/sources.md\n\n# Sources — comparative-advantage\n\n> *Primary sources for the [comparative-advantage](../SKILL.md) skill.*\n\n## Sources\n\n- Ricardo, D. (1817). *On the Principles of Political Economy and Taxation.* John Murray. Chapter 7 \"On Foreign Trade.\" The foundational text.\n- Samuelson, P. A. (1948). *Economics: An Introductory Analysis.* McGraw-Hill. The canonical textbook; source of the lawyer-and-typist delegation illustration.\n- Samuelson, P. A. (1969). \"The Way of an Economist.\" in *International Economic Relations*. The \"true and non-obvious\" essay.\n- Krugman, P. (1996). \"Ricardo's Difficult Idea.\" MIT working paper. The contemporary defense.\n- Heckscher, E. F. (1919). \"The Effect of Foreign Trade on the Distribution of Income.\" *Ekonomisk Tidskrift*, 497-512.\n- Ohlin, B. (1933). *Interregional and International Trade.* Harvard University Press.\n- Leontief, W. W. (1953). \"Domestic Production and Foreign Trade.\" *Proceedings of the American Philosophical Society*, 97(4), 332-349.\n- Friedman, T. L. (2005). *The World Is Flat.* Farrar, Straus and Giroux. ISBN 978-0374292881. Modern globalization application.\n- Andreessen, M. (2007). \"The Pmarca Guide to Personal Productivity.\" Blog post. Founder time-allocation application.\n- Coase, R. H. (1937). \"The Nature of the Firm.\" *Economica*, 4(16), 386-405. The transaction-cost qualification.\n- 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).\n- 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).\n\nFile v1.0.5:examples/ai-chip-supply-chain-2024-2026.md\n\n# Method in Action: The AI-Chip Supply Chain — ASML, TSMC, Nvidia (2024–2026)\n\n> *Example for the [comparative-advantage](../SKILL.md) skill.*\n\nBy 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.\n\nThe case walks cleanly through the skill's Process, treating each firm as a \"producer\" and each layer of the stack as a \"task.\"\n\n**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.\n\n**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\").\n\n**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.\n\n**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 an industry: total output rises even though every firm \"could\" in principle do more of the chain itself.\n\n**Step 5 — Transaction costs.** Specialization is not free, and this chain shows the qualification vividly. The transaction costs here are unusually large and partly *geopolitical*: the entire chain runs through a few chokepoints (ASML in the Netherlands, TSMC concentrated in Taiwan), creating single-point-of-failure risk. From 2022 onward the United States tightened export controls on advanced AI chips and chip-making equipment to China across several rounds, and Nvidia designed lower-capability export variants in response — a direct tax on the specialized chain. TSMC began building fabs in Arizona (with US CHIPS Act support) to reduce geographic concentration. And in January 2025 the release of the DeepSeek models triggered a sharp market reaction, briefly wiping out a large share of Nvidia's market value in a single session on fears that AI compute demand had been overestimated — a reminder that the demand side of the specialization bet is itself uncertain.\n\nThe lesson is *not* \"abandon specialization.\" It is that when transaction costs (geographic risk, export controls, single points of failure) rise, the right response is to price them into the calculus — diversify geography, dual-source at the margin, hold strategic buffers — *not* to attempt full vertical re-shoring, whose cost is the enormous specialization surplus you would forfeit. Rebuilding the entire stack domestically means re-learning three separate multi-decade capabilities at once; the opportunity cost is measured in lost years and lost frontier output, which is why even aggressive industrial policy targets *resilience at the margin* rather than autarky.\n\n**Step 6 — Implement and monitor.** The arrangement holds only while the productivity ratios and transaction costs hold. Re-evaluation triggers are already firing: each new export-control round, each new fab location, each shift in AI-compute demand (DeepSeek being the clearest 2025 shock) moves the boundary. The method's discipline is to keep re-computing — the delegation frontier moves; it does not disappear.\n\nThe mapped steps:\n1. Producers and tasks: ASML vs. TSMC vs. Nvidia; lithography vs. fabrication vs. GPU/software design, over a chip generation's capital cycle\n2. Productivity: each dominant and hard to replicate in its own layer; none vertically integrated across the others\n3. Opportunity-cost ratios: an engineering-hour spent re-shoring another layer forgoes the layer where each firm's OC of not investing is highest — ratios diverge sharply\n4. Specialization: each firm owns its layer; joint output of frontier chips far exceeds any integrated national champion\n5. Transaction costs: geographic concentration, export controls, and demand uncertainty are large and rising — price them in, don't abandon specialization\n6. Implement and monitor: export-control rounds, TSMC Arizona, and the Jan-2025 DeepSeek shock are live re-evaluation triggers moving the delegation frontier\n\nThe AI-chip stack is Samuelson's lawyer-and-typist case scaled to three continents: each player is superb at its own task, none is best served by doing the others' work, and the surplus that specialization creates is precisely what a \"build it all ourselves\" mandate would destroy.\n\n*Sources: ASML company disclosures on EUV lithography (asml.com); TSMC and Arizona fab announcements under the US CHIPS and Science Act (2022); US Department of Commerce / Bureau of Industry and Security advanced-computing and semiconductor export-control rules (October 2022 and subsequent rounds); Nvidia investor materials and widely reported 2024–2025 market-capitalization milestones (~$3–4T); and broad reporting on the January 2025 DeepSeek-driven selloff in AI/semiconductor equities. Foundational theory: Ricardo, D. (1817), *On the Principles of Political Economy and Taxation*, Ch. 7.*\n\nFile v1.0.5:examples/ricardo-1817-england-portugal-modern-applications.md\n\n# Method in Action: Ricardo 1817 England-Portugal + Modern Applications\n\n> *Example for the [comparative-advantage](../SKILL.md) skill.*\n\nRicardo'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:\n\n- Portugal can produce 1 unit of cloth with 90 labor-hours\n- Portugal can produce 1 unit of wine with 80 labor-hours\n- England can produce 1 unit of cloth with 100 labor-hours\n- England can produce 1 unit of wine with 120 labor-hours\n\nPortugal is absolutely more productive at both. Naive analysis: Portugal should produce both, England should produce neither.\n\nRicardo'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.\n\nThe mutually beneficial allocation: England specializes in cloth, Portugal specializes in wine, they trade. Total production rises versus each producing both goods themselves.\n\nRicardo's full argument:\n\n> \"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.\"\n>\n> — Ricardo (1817), ch. 7.\n\nThe 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.\n\nFor founders and operators, the framework's most operationally important applications:\n\n**Founder time allocation.** Marc Andreessen articulated this clearly in his 2007 essay \"The Pmarca Guide to Personal Productivity\":\n\n> \"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, the strategic activities you should have done are worth 300% more. Comparative advantage routes you to the activities only you can do. Everything else, delegate.\"\n>\n> — Andreessen, M. (2007). \"The Pmarca Guide to Personal Productivity.\"\n\n**Outsourcing / specialization in supply chains.** Apple's manufacturing strategy is comparative advantage in action. Apple has world-class design, marketing, retail, and software engineering — and chooses to outsource component manufacturing to specialists (Foxconn, TSMC, etc.) who have comparative advantage in their respective domains. Apple could, in principle, build its own factories, but the opportunity cost (foregone product innovation, design, software) would dwarf the manufacturing savings.\n\n**Team specialization.** Within engineering teams, comparative advantage operates constantly. The senior engineer who is best at architecture should not be reviewing every junior's pull request; the senior is better off architecting and mentoring at the senior level, while junior engineers handle their work and learn. Even if the senior would do a 30% better job on the junior's task, the senior's opportunity cost (foregone architectural work) is much larger.\n\n**International labor markets.** The rise of global remote work (engineers in Argentina, designers in Vietnam, etc.) is comparative advantage operating at the level of individual contributors. Each location specializes in what they have comparative advantage in; the productivity ratios drive specialization patterns.\n\n**M&A logic.** Apple acquired NeXT in 1997 for the operating system technology (NeXT's comparative advantage in OS); the acquisition gave Apple the OS foundation that became macOS. Apple didn't try to build a new OS from scratch — the opportunity cost would have been too high.\n\nThree operational lessons from Ricardo:\n\n**First, \"I'm best at X\" is the wrong question.** The right question is \"am I better at X *relative to* my next-best alternative use of my time?\" Founders who allocate time based on absolute advantage spread themselves across many activities; founders who allocate based on comparative advantage focus on a small set of activities where the leverage is highest.\n\n**Second, even absolute superiority doesn't justify doing everything.** The richest, most capable person in a room can still benefit from specialization. The opportunity cost calculus is what matters.\n\n**Third, transaction costs are the practical brake.** In theory, comparative advantage suggests aggressive outsourcing. In practice, transaction costs (coordination, communication, quality monitoring) often make in-house production correct. The operational discipline is to compute both — pure comparative advantage and transaction cost — and make the net decision.\n\nFile v1.0.5:examples/samuelson-lawyer-typist-delegation.md\n\n# Method in Action: Samuelson's Lawyer-and-Typist Delegation Case (1948 → present)\n\n> *Example for the [comparative-advantage](../SKILL.md) skill.*\n\nRicardo stated the theorem at the scale of nations. Paul Samuelson's *Economics* (first edition 1948) — the dominant economics textbook of the twentieth century — carried it down to a single office, with the illustration that became the standard classroom test of whether a student really understands comparative advantage: the best lawyer in town is also the best typist in town. Should the lawyer type her own letters?\n\nThe intuitive answer — \"yes, she's faster\" — is the absolute-advantage trap. The textbook answer is no, and the case walks cleanly through the skill's Process:\n\n**Step 1 — Producers and tasks.** Producer 1 = the lawyer. Producer 2 = the secretary. Task A = legal work. Task B = typing. Horizon = the working week.\n\n**Step 2 — Productivity.** The lawyer is superior at *both* tasks: she bills legal work at a high hourly rate, and (illustratively, in the spirit of the textbook treatment) types faster than the secretary. The secretary can type but cannot produce billable legal work at all.\n\n**Step 3 — Opportunity-cost ratios.** Each hour the lawyer spends typing forgoes an hour of high-value legal work — her opportunity cost of typing is enormous. The secretary's opportunity cost of an hour of typing is close to zero legal output forgone. The ratios diverge by orders of magnitude, so the comparative advantages are unambiguous: lawyer in law, secretary in typing.\n\n**Step 4 — Specialization.** The lawyer practices law full-time; the secretary types. Each individual page may now be produced more slowly, yet the office's total output — legal value plus finished documents — is strictly higher than under self-sufficiency. Absolute superiority at typing was never a reason to type.\n\n**Step 5 — Transaction costs.** Delegation is not free: dictation, review cycles, error correction, confidentiality risk. In this case they are small relative to the gap in opportunity costs, so specialization wins. The same net calculus governs the modern descendants of the example — founder time allocation, executive assistants, and outsourcing decisions — and where coordination or confidentiality costs dominate the value gap, doing it yourself remains correct.\n\n**Step 6 — Implement and monitor.** The arrangement holds only while the productivity ratios hold. Word processing and then email collapsed the typing-speed gap and the cost of self-production, dissolving the dedicated-typist role in most offices — the delegation frontier moved rather than disappearing. Re-evaluation when ratios shift is part of the method, not an afterthought.\n\nThe case is why Samuelson could later call comparative advantage the only proposition in economics that is both true and non-obvious: the non-obvious part is visible even inside one office, with no borders, currencies, or tariffs anywhere in sight. Any professional who has said \"it's faster if I just do it myself\" is standing exactly where the lawyer stands.\n\nThe mapped steps:\n1. Producers and tasks: lawyer vs. secretary; legal work vs. typing, over the working week\n2. Productivity: lawyer absolutely better at both tasks; secretary capable only of typing\n3. Opportunity-cost ratios: lawyer's OC of typing is high-value legal work forgone; secretary's OC is near zero — ratios diverge sharply\n4. Specialization: lawyer in law, secretary in typing; total office output rises despite slower typing\n5. Transaction costs: dictation, review, and confidentiality costs computed and found small relative to the OC gap\n6. Implement and monitor: technology shifts (word processors) later changed the ratios and redrew the delegation boundary\n\nPrimary source: Samuelson, P. A. (1948). *Economics: An Introductory Analysis.* McGraw-Hill. Comparative-advantage discussion, including the lawyer-and-typist illustration; retained through subsequent Samuelson & Nordhaus editions.\n\nFile v1.0.5:skill-card.md\n\n## Description:\n\nHelps agents coach users through comparative-advantage decisions such as delegation, outsourcing, team specialization, and build-vs-buy choices by comparing opportunity-cost ratios and transaction costs.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[deciqai](https://clawhub.ai/user/deciqai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nEmployees, external users, and operators use this skill to decide whether work should be handled personally, delegated, outsourced, bought, or split across a team. It guides the user to specify producers and tasks, estimate productivity, compute opportunity-cost ratios, include transaction costs, and document re-evaluation triggers.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Economic examples and current-events claims may be incomplete or stale, especially for fast-changing semiconductor, market, or policy details.\n\nMitigation: Treat examples as advisory context and verify current facts before relying on them for business, investment, supply-chain, or policy decisions.\n\nRisk: Delegation or outsourcing recommendations can be misleading when transaction costs, quality risk, confidentiality, or capacity constraints are understated.\n\nMitigation: Require both producers and both tasks to be specified, compute opportunity-cost ratios, include coordination and quality costs, and document re-evaluation triggers.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/deciqai/skills/comparative-advantage)\n- [Publisher profile](https://clawhub.ai/user/deciqai)\n- [Sources](references/sources.md)\n- [Ricardo 1817 England-Portugal and Modern Applications](examples/ricardo-1817-england-portugal-modern-applications.md)\n- [Samuelson's Lawyer and Typist Delegation](examples/samuelson-lawyer-typist-delegation.md)\n- [AI-Chip Supply Chain 2024-2026](examples/ai-chip-supply-chain-2024-2026.md)\n- [Machine-readable skill metadata](https://www.deciqai.com/s/comparative-advantage.json)\n\n## Skill Output:\n\n**Output Type(s):** [text, markdown, guidance]\n\n**Output Format:** [Markdown decision analysis with concise coaching questions and a structured recommendation template]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [May pause for user input during coached analysis; does not execute code or call external tools.]\n\n## Skill Version(s):\n\n1.0.5 (source: release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nArchive v1.0.4: 7 files, 14307 bytes\n\nFiles: examples/ai-chip-supply-chain-2024-2026.md (6981b), examples/ricardo-1817-england-portugal-modern-applications.md (5787b), examples/samuelson-lawyer-typist-delegation.md (4019b), references/sources.md (1871b), skill-card.md (2353b), SKILL.md (7150b), _meta.json (140b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: comparative-advantage\ndescription: \"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).\"\n---\n\n# Comparative Advantage\n\n## Overview\n\nMutually 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?\"\n\nProved by David Ricardo (1817); called \"the only proposition in economics that is both true and non-obvious\" by Paul Samuelson (1969).\n\nComposes with `opportunity-cost`, `pareto-principle`, `circle-of-competence`, `theory-of-constraints`.\n\n## When to Use\n\n- Founder time allocation across activities; team division of labor\n- Build vs. buy / in-house vs. outsource decisions\n- M&A decisions; international operations / supply chain design (e.g. AI-chip re-shoring, chip export controls, semiconductor vertical integration)\n- Personal career or skill specialization decisions\n\n**Not when:** situation is genuinely single-task (no B to trade off); transaction costs swamp any gains; alternative producer's capacity is fully constrained.\n\n## Coaching Novices (Adaptive Front Door)\n\n- **Engine mode:** user has a concrete allocation decision → run The Process directly.\n- **Coach mode:** user is unfamiliar or has no concrete case → guide step by step.\n\nIn Coach mode, respond one step at a time. Each [WAIT] is a hard stop — output only that step's question, then stop.\n\n1. 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?\"\n2. Check fit: if single-task or transaction costs very high, analysis adds limited value.\n3. Elicit the case: what are you considering doing? What else could you do with the time? Who else could do it?\n> **[WAIT — do not advance until user responds]**\n4. 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?\n> **[WAIT — do not advance until user responds]**\n5. Close: specialization recommendation + transaction-cost caveat + monitoring plan.\n> **[WAIT — do not advance until user responds]**\n\n## The Process\n\n**Step 1 — Producers and tasks:** name Producer 1, Producer 2, Task A, Task B, time horizon.\n\n**Step 2 — Productivity:** estimate value-per-hour (or units/time) for each producer at each task.\n\n**Step 3 — Opportunity-cost ratios:** Producer 1's OC of Task A = Task B output forgone per unit of Task A. Repeat for Producer 2. Lower OC = comparative advantage in that task.\n\n**Step 4 — Specialization:** each producer focuses on their comparative-advantage task. Total output rises.\n\n**Step 5 — Transaction costs:** add coordination, communication, quality-risk, and information-asymmetry costs. If net benefit positive: specialize. If net negative: produce in-house.\n\n**Step 6 — Implement and monitor:** document arrangement, set quality monitoring, schedule re-evaluation as productivity ratios or transaction costs shift.\n\n## Output Template\n\n```markdown\n# Comparative-Advantage Analysis: <decision>\nProducers: P1 = ___ | P2 = ___   Tasks: A = ___ | B = ___\nOC of Task A — P1: ___ | P2: ___   → CA in A: P___ | CA in B: P___\nTransaction costs: coordination ___ | quality risk ___ | net ___\nRecommendation: P1 specializes in ___ | P2 specializes in ___\nCaveats / re-eval trigger: ___\n```\n\n*→ Method in Action: [Ricardo 1817 England-Portugal + Modern Applications](examples/ricardo-1817-england-portugal-modern-applications.md) · [Samuelson's Lawyer and Typist](examples/samuelson-lawyer-typist-delegation.md)*\n*→ 2026 lens: [The AI-chip supply chain — ASML, TSMC, Nvidia (2024–2026)](examples/ai-chip-supply-chain-2024-2026.md)*\n\n## Pack: Application Patterns\n\n| Decision | Absolute-advantage trap | Comparative-advantage answer |\n|---|---|---|\n| Founder time | \"I'm best at everything\" | Specialize in 2-3 highest-leverage activities; delegate the rest |\n| Senior engineer | \"I should code everything\" | Architect, mentor, hard problems; delegate routine tasks |\n| Manufacturing | \"We could build our own factory\" | Outsource to specialist; focus on design/marketing/sales |\n| Customer support | \"I know the product best\" | Hire CS specialists; handle only strategic relationships yourself |\n\n## Applying It Well\n\n- Compute opportunity-cost *ratios*, not absolute productivity\n- Transaction costs are real — factor coordination, communication, quality-monitoring\n- Revisit as productivity ratios shift or transaction costs change\n\n*→ Primary sources: [references/sources.md](references/sources.md)*\n\n## Common Rationalizations\n\n**[D] = designed upfront | [O] = observed in real use. [O] entries are more valuable.**\n\n| Fake move | Reality |\n|---|---|\n| [D] \"I'm best at this, so I should do it\" | Right question is OC ratio. You can be best at it and still not be the one who should do it. |\n| [D] \"I can do it faster than they can\" | An hour spent doing it is an hour not spent on higher-OC work. Calculus often favors delegation. |\n| [D] \"Quality will drop if I delegate\" | Compute: does the quality drop outweigh the OC gain from focusing on higher-CA activities? Often no. |\n| [D] \"Outsourcing is risky\" | Transaction costs and quality risk are part of the calculus — compute them, don't assume. |\n| [D] \"Comparative advantage is academic; real life is different\" | The framework underpins modern supply chains, team specialization, and founder time-allocation. |\n| *→ Add [O] entries here after each real use — paste the actual failure pattern* | *What went wrong and why* |\n\n## Red Flags\n\n- Founder doing many tasks personally despite team members who could do them\n- \"I'm best at X\" used to justify allocation instead of OC analysis\n- Outsourcing decisions based on absolute productivity rather than opportunity cost\n- Transaction costs ignored entirely or used as a blanket excuse\n\n## Verification\n\n- [ ] Both producers and both tasks explicitly specified\n- [ ] Productivity or value-per-hour estimated for each combination\n- [ ] Opportunity-cost ratios computed; comparative-advantage assignment determined\n- [ ] Transaction costs considered; net benefit computed\n- [ ] Decision documented; re-evaluation conditions specified\n\n---\n\n*Part of **deciqAI Knowledge Skills** — 164 open-source thinking skills that make rigor executable for AI agents. The same skills power every deciqAI agent, which runs them autonomously to operate your company. **See it run → https://www.deciqai.com/c/comparative-advantage** · ⭐ Star the repo → https://github.com/deciqAI/knowledge-skills · Contributions welcome.*\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn754b8sk22s8c6gjxt02bftbn88q7ye\",\n  \"slug\": \"comparative-advantage\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1783508232717\n}\n\nFile v1.0.4:references/sources.md\n\n# Sources — comparative-advantage\n\n> *Primary sources for the [comparative-advantage](../SKILL.md) skill.*\n\n## Sources\n\n- Ricardo, D. (1817). *On the Principles of Political Economy and Taxation.* John Murray. Chapter 7 \"On Foreign Trade.\" The foundational text.\n- Samuelson, P. A. (1948). *Economics: An Introductory Analysis.* McGraw-Hill. The canonical textbook; source of the lawyer-and-typist delegation illustration.\n- Samuelson, P. A. (1969). \"The Way of an Economist.\" in *International Economic Relations*. The \"true and non-obvious\" essay.\n- Krugman, P. (1996). \"Ricardo's Difficult Idea.\" MIT working paper. The contemporary defense.\n- Heckscher, E. F. (1919). \"The Effect of Foreign Trade on the Distribution of Income.\" *Ekonomisk Tidskrift*, 497-512.\n- Ohlin, B. (1933). *Interregional and International Trade.* Harvard University Press.\n- Leontief, W. W. (1953). \"Domestic Production and Foreign Trade.\" *Proceedings of the American Philosophical Society*, 97(4), 332-349.\n- Friedman, T. L. (2005). *The World Is Flat.* Farrar, Straus and Giroux. ISBN 978-0374292881. Modern globalization application.\n- Andreessen, M. (2007). \"The Pmarca Guide to Personal Productivity.\" Blog post. Founder time-allocation application.\n- Coase, R. H. (1937). \"The Nature of the Firm.\" *Economica*, 4(16), 386-405. The transaction-cost qualification.\n- 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).\n- 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).\n\nFile v1.0.4:examples/ai-chip-supply-chain-2024-2026.md\n\n# Method in Action: The AI-Chip Supply Chain — ASML, TSMC, Nvidia (2024–2026)\n\n> *Example for the [comparative-advantage](../SKILL.md) skill.*\n\nBy 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.\n\nThe case walks cleanly through the skill's Process, treating each firm as a \"producer\" and each layer of the stack as a \"task.\"\n\n**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.\n\n**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\").\n\n**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.\n\n**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 an industry: total output rises even though every firm \"could\" in principle do more of the chain itself.\n\n**Step 5 — Transaction costs.** Specialization is not free, and this chain shows the qualification vividly. The transaction costs here are unusually large and partly *geopolitical*: the entire chain runs through a few chokepoints (ASML in the Netherlands, TSMC concentrated in Taiwan), creating single-point-of-failure risk. From 2022 onward the United States tightened export controls on advanced AI chips and chip-making equipment to China across several rounds, and Nvidia designed lower-capability export variants in response — a direct tax on the specialized chain. TSMC began building fabs in Arizona (with US CHIPS Act support) to reduce geographic concentration. And in January 2025 the release of the DeepSeek models triggered a sharp market reaction, briefly wiping out a large share of Nvidia's market value in a single session on fears that AI compute demand had been overestimated — a reminder that the demand side of the specialization bet is itself uncertain.\n\nThe lesson is *not* \"abandon specialization.\" It is that when transaction costs (geographic risk, export controls, single points of failure) rise, the right response is to price them into the calculus — diversify geography, dual-source at the margin, hold strategic buffers — *not* to attempt full vertical re-shoring, whose cost is the enormous specialization surplus you would forfeit. Rebuilding the entire stack domestically means re-learning three separate multi-decade capabilities at once; the opportunity cost is measured in lost years and lost frontier output, which is why even aggressive industrial policy targets *resilience at the margin* rather than autarky.\n\n**Step 6 — Implement and monitor.** The arrangement holds only while the productivity ratios and transaction costs hold. Re-evaluation triggers are already firing: each new export-control round, each new fab location, each shift in AI-compute demand (DeepSeek being the clearest 2025 shock) moves the boundary. The method's discipline is to keep re-computing — the delegation frontier moves; it does not disappear.\n\nThe mapped steps:\n1. Producers and tasks: ASML vs. TSMC vs. Nvidia; lithography vs. fabrication vs. GPU/software design, over a chip generation's capital cycle\n2. Productivity: each dominant and hard to replicate in its own layer; none vertically integrated across the others\n3. Opportunity-cost ratios: an engineering-hour spent re-shoring another layer forgoes the layer where each firm's OC of not investing is highest — ratios diverge sharply\n4. Specialization: each firm owns its layer; joint output of frontier chips far exceeds any integrated national champion\n5. Transaction costs: geographic concentration, export controls, and demand uncertainty are large and rising — price them in, don't abandon specialization\n6. Implement and monitor: export-control rounds, TSMC Arizona, and the Jan-2025 DeepSeek shock are live re-evaluation triggers moving the delegation frontier\n\nThe AI-chip stack is Samuelson's lawyer-and-typist case scaled to three continents: each player is superb at its own task, none is best served by doing the others' work, and the surplus that specialization creates is precisely what a \"build it all ourselves\" mandate would destroy.\n\n*Sources: ASML company disclosures on EUV lithography (asml.com); TSMC and Arizona fab announcements under the US CHIPS and Science Act (2022); US Department of Commerce / Bureau of Industry and Security advanced-computing and semiconductor export-control rules (October 2022 and subsequent rounds); Nvidia investor materials and widely reported 2024–2025 market-capitalization milestones (~$3–4T); and broad reporting on the January 2025 DeepSeek-driven selloff in AI/semiconductor equities. Foundational theory: Ricardo, D. (1817), *On the Principles of Political Economy and Taxation*, Ch. 7.*\n\nFile v1.0.4:examples/ricardo-1817-england-portugal-modern-applications.md\n\n# Method in Action: Ricardo 1817 England-Portugal + Modern Applications\n\n> *Example for the [comparative-advantage](../SKILL.md) skill.*\n\nRicardo'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:\n\n- Portugal can produce 1 unit of cloth with 90 labor-hours\n- Portugal can produce 1 unit of wine with 80 labor-hours\n- England can produce 1 unit of cloth with 100 labor-hours\n- England can produce 1 unit of wine with 120 labor-hours\n\nPortugal is absolutely more productive at both. Naive analysis: Portugal should produce both, England should produce neither.\n\nRicardo'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.\n\nThe mutually beneficial allocation: England specializes in cloth, Portugal specializes in wine, they trade. Total production rises versus each producing both goods themselves.\n\nRicardo's full argument:\n\n> \"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.\"\n>\n> — Ricardo (1817), ch. 7.\n\nThe 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.\n\nFor founders and operators, the framework's most operationally important applications:\n\n**Founder time allocation.** Marc Andreessen articulated this clearly in his 2007 essay \"The Pmarca Guide to Personal Productivity\":\n\n> \"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, the strategic activities you should have done are worth 300% more. Comparative advantage routes you to the activities only you can do. Everything else, delegate.\"\n>\n> — Andreessen, M. (2007). \"The Pmarca Guide to Personal Productivity.\"\n\n**Outsourcing / specialization in supply chains.** Apple's manufacturing strategy is comparative advantage in action. Apple has world-class design, marketing, retail, and software engineering — and chooses to outsource component manufacturing to specialists (Foxconn, TSMC, etc.) who have comparative advantage in their respective domains. Apple could, in principle, build its own factories, but the opportunity cost (foregone product innovation, design, software) would dwarf the manufacturing savings.\n\n**Team specialization.** Within engineering teams, comparative advantage operates constantly. The senior engineer who is best at architecture should not be reviewing every junior's pull request; the senior is better off architecting and mentoring at the senior level, while junior engineers handle their work and learn. Even if the senior would do a 30% better job on the junior's task, the senior's opportunity cost (foregone architectural work) is much larger.\n\n**International labor markets.** The rise of global remote work (engineers in Argentina, designers in Vietnam, etc.) is comparative advantage operating at the level of individual contributors. Each location specializes in what they have comparative advantage in; the productivity ratios drive specialization patterns.\n\n**M&A logic.** Apple acquired NeXT in 1997 for the operating system technology (NeXT's comparative advantage in OS); the acquisition gave Apple the OS foundation that became macOS. Apple didn't try to build a new OS from scratch — the opportunity cost would have been too high.\n\nThree operational lessons from Ricardo:\n\n**First, \"I'm best at X\" is the wrong question.** The right question is \"am I better at X *relative to* my next-best alternative use of my time?\" Founders who allocate time based on absolute advantage spread themselves across many activities; founders who allocate based on comparative advantage focus on a small set of activities where the leverage is highest.\n\n**Second, even absolute superiority doesn't justify doing everything.** The richest, most capable person in a room can still benefit from specialization. The opportunity cost calculus is what matters.\n\n**Third, transaction costs are the practical brake.** In theory, comparative advantage suggests aggressive outsourcing. In practice, transaction costs (coordination, communication, quality monitoring) often make in-house production correct. The operational discipline is to compute both — pure comparative advantage and transaction cost — and make the net decision.\n\nFile v1.0.4:examples/samuelson-lawyer-typist-delegation.md\n\n# Method in Action: Samuelson's Lawyer-and-Typist Delegation Case (1948 → present)\n\n> *Example for the [comparative-advantage](../SKILL.md) skill.*\n\nRicardo stated the theorem at the scale of nations. Paul Samuelson's *Economics* (first edition 1948) — the dominant economics textbook of the twentieth century — carried it down to a single office, with the illustration that became the standard classroom test of whether a student really understands comparative advantage: the best lawyer in town is also the best typist in town. Should the lawyer type her own letters?\n\nThe intuitive answer — \"yes, she's faster\" — is the absolute-advantage trap. The textbook answer is no, and the case walks cleanly through the skill's Process:\n\n**Step 1 — Producers and tasks.** Producer 1 = the lawyer. Producer 2 = the secretary. Task A = legal work. Task B = typing. Horizon = the working week.\n\n**Step 2 — Productivity.** The lawyer is superior at *both* tasks: she bills legal work at a high hourly rate, and (illustratively, in the spirit of the textbook treatment) types faster than the secretary. The secretary can type but cannot produce billable legal work at all.\n\n**Step 3 — Opportunity-cost ratios.** Each hour the lawyer spends typing forgoes an hour of high-value legal work — her opportunity cost of typing is enormous. The secretary's opportunity cost of an hour of typing is close to zero legal output forgone. The ratios diverge by orders of magnitude, so the comparative advantages are unambiguous: lawyer in law, secretary in typing.\n\n**Step 4 — Specialization.** The lawyer practices law full-time; the secretary types. Each individual page may now be produced more slowly, yet the office's total output — legal value plus finished documents — is strictly higher than under self-sufficiency. Absolute superiority at typing was never a reason to type.\n\n**Step 5 — Transaction costs.** Delegation is not free: dictation, review cycles, error correction, confidentiality risk. In this case they are small relative to the gap in opportunity costs, so specialization wins. The same net calculus governs the modern descendants of the example — founder time allocation, executive assistants, and outsourcing decisions — and where coordination or confidentiality costs dominate the value gap, doing it yourself remains correct.\n\n**Step 6 — Implement and monitor.** The arrangement holds only while the productivity ratios hold. Word processing and then email collapsed the typing-speed gap and the cost of self-production, dissolving the dedicated-typist role in most offices — the delegation frontier moved rather than disappearing. Re-evaluation when ratios shift is part of the method, not an afterthought.\n\nThe case is why Samuelson could later call comparative advantage the only proposition in economics that is both true and non-obvious: the non-obvious part is visible even inside one office, with no borders, currencies, or tariffs anywhere in sight. Any professional who has said \"it's faster if I just do it myself\" is standing exactly where the lawyer stands.\n\nThe mapped steps:\n1. Producers and tasks: lawyer vs. secretary; legal work vs. typing, over the working week\n2. Productivity: lawyer absolutely better at both tasks; secretary capable only of typing\n3. Opportunity-cost ratios: lawyer's OC of typing is high-value legal work forgone; secretary's OC is near zero — ratios diverge sharply\n4. Specialization: lawyer in law, secretary in typing; total office output rises despite slower typing\n5. Transaction costs: dictation, review, and confidentiality costs computed and found small relative to the OC gap\n6. Implement and monitor: technology shifts (word processors) later changed the ratios and redrew the delegation boundary\n\nPrimary source: Samuelson, P. A. (1948). *Economics: An Introductory Analysis.* McGraw-Hill. Comparative-advantage discussion, including the lawyer-and-typist illustration; retained through subsequent Samuelson & Nordhaus editions.\n\nFile v1.0.4:skill-card.md\n\n## Description: <br>\nComparative Advantage helps an agent structure delegation, outsourcing, build-versus-buy, team specialization, and similar allocation decisions around opportunity-cost ratios rather than absolute productivity. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[deciqai](https://clawhub.ai/user/deciqai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nEmployees, external users, developers, founders, operators, and team leads use this skill to decide who should perform which work when multiple producers and tasks create meaningful trade-offs. It guides users through opportunity-cost ratios, specialization choices, transaction-cost checks, and re-evaluation triggers. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Users could rely on advisory business reasoning without checking assumptions, transaction costs, or factual examples for a material operational choice. <br>\nMitigation: Verify assumptions, transaction costs, and relevant facts before relying on the analysis for important delegation, outsourcing, supply-chain, or specialization decisions. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/deciqai/skills/comparative-advantage) <br>\n- [Primary sources](references/sources.md) <br>\n- [Ricardo 1817 England-Portugal + Modern Applications](examples/ricardo-1817-england-portugal-modern-applications.md) <br>\n- [Samuelson's Lawyer-and-Typist Delegation Case](examples/samuelson-lawyer-typist-delegation.md) <br>\n- [AI-Chip Supply Chain Example](examples/ai-chip-supply-chain-2024-2026.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Text, Markdown, Analysis, Guidance] <br>\n**Output Format:** [Markdown analysis with a structured recommendation template] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May use step-by-step coaching pauses before producing a final specialization recommendation.] <br>\n\n## Skill Version(s): <br>\n1.0.4 (source: server release metadata) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.3: 6 files, 10490 bytes\n\nFiles: examples/ricardo-1817-england-portugal-modern-applications.md (5787b), examples/samuelson-lawyer-typist-delegation.md (4019b), references/sources.md (1351b), skill-card.md (2208b), SKILL.md (7052b), _meta.json (140b)\n\nFile v1.0.3:SKILL.md\n\n---\nname: comparative-advantage\ndescription: \"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).\"\n---\n\n# Comparative Advantage\n\n## Overview\n\nMutually 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?\"\n\nProved by David Ricardo (1817); called \"the only proposition in economics that is both true and non-obvious\" by Paul Samuelson (1969).\n\nComposes with `opportunity-cost`, `pareto-principle`, `circle-of-competence`, `theory-of-constraints`.\n\n## When to Use\n\n- Founder time allocation across activities; team division of labor\n- Build vs. buy / in-house vs. outsource decisions\n- M&A decisions; international operations / supply chain design\n- Personal career or skill specialization decisions\n\n**Not when:** situation is genuinely single-task (no B to trade off); transaction costs swamp any gains; alternative producer's capacity is fully constrained.\n\n## Coaching Novices (Adaptive Front Door)\n\n- **Engine mode:** user has a concrete allocation decision → run The Process directly.\n- **Coach mode:** user is unfamiliar or has no concrete case → guide step by step.\n\nIn Coach mode, respond one step at a time. Each [WAIT] is a hard stop — output only that step's question, then stop.\n\n1. 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?\"\n2. Check fit: if single-task or transaction costs very high, analysis adds limited value.\n3. Elicit the case: what are you considering doing? What else could you do with the time? Who else could do it?\n> **[WAIT — do not advance until user responds]**\n4. 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?\n> **[WAIT — do not advance until user responds]**\n5. Close: specialization recommendation + transaction-cost caveat + monitoring plan.\n> **[WAIT — do not advance until user responds]**\n\n## The Process\n\n**Step 1 — Producers and tasks:** name Producer 1, Producer 2, Task A, Task B, time horizon.\n\n**Step 2 — Productivity:** estimate value-per-hour (or units/time) for each producer at each task.\n\n**Step 3 — Opportunity-cost ratios:** Producer 1's OC of Task A = Task B output forgone per unit of Task A. Repeat for Producer 2. Lower OC = comparative advantage in that task.\n\n**Step 4 — Specialization:** each producer focuses on their comparative-advantage task. Total output rises.\n\n**Step 5 — Transaction costs:** add coordination, communication, quality-risk, and information-asymmetry costs. If net benefit positive: specialize. If net negative: produce in-house.\n\n**Step 6 — Implement and monitor:** document arrangement, set quality monitoring, schedule re-evaluation as productivity ratios or transaction costs shift.\n\n## Output Template\n\n```markdown\n# Comparative-Advantage Analysis: <decision>\nProducers: P1 = ___ | P2 = ___   Tasks: A = ___ | B = ___\nOC of Task A — P1: ___ | P2: ___   → CA in A: P___ | CA in B: P___\nTransaction costs: coordination ___ | quality risk ___ | net ___\nRecommendation: P1 specializes in ___ | P2 specializes in ___\nCaveats / re-eval trigger: ___\n```\n\n*→ Method in Action: [Ricardo 1817 England-Portugal + Modern Applications](examples/ricardo-1817-england-portugal-modern-applications.md) · [Samuelson's Lawyer and Typist](examples/samuelson-lawyer-typist-delegation.md)*\n\n## Pack: Application Patterns\n\n| Decision | Absolute-advantage trap | Comparative-advantage answer |\n|---|---|---|\n| Founder time | \"I'm best at everything\" | Specialize in 2-3 highest-leverage activities; delegate the rest |\n| Senior engineer | \"I should code everything\" | Architect, mentor, hard problems; delegate routine tasks |\n| Manufacturing | \"We could build our own factory\" | Outsource to specialist; focus on design/marketing/sales |\n| Customer support | \"I know the product best\" | Hire CS specialists; handle only strategic relationships yourself |\n\n## Applying It Well\n\n- Compute opportunity-cost *ratios*, not absolute productivity\n- Transaction costs are real — factor coordination, communication, quality-monitoring\n- Revisit as productivity ratios shift or transaction costs change\n\n*→ Primary sources: [references/sources.md](references/sources.md)*\n\n## Common Rationalizations\n\n**[D] = designed upfront | [O] = observed in real use. [O] entries are more valuable.**\n\n| Fake move | Reality |\n|---|---|\n| [D] \"I'm best at this, so I should do it\" | Right question is OC ratio. You can be best at it and still not be the one who should do it. |\n| [D] \"I can do it faster than they can\" | An hour spent doing it is an hour not spent on higher-OC work. Calculus often favors delegation. |\n| [D] \"Quality will drop if I delegate\" | Compute: does the quality drop outweigh the OC gain from focusing on higher-CA activities? Often no. |\n| [D] \"Outsourcing is risky\" | Transaction costs and quality risk are part of the calculus — compute them, don't assume. |\n| [D] \"Comparative advantage is academic; real life is different\" | The framework underpins modern supply chains, team specialization, and founder time-allocation. |\n| *→ Add [O] entries here after each real use — paste the actual failure pattern* | *What went wrong and why* |\n\n## Red Flags\n\n- Founder doing many tasks personally despite team members who could do them\n- \"I'm best at X\" used to justify allocation instead of OC analysis\n- Outsourcing decisions based on absolute productivity rather than opportunity cost\n- Transaction costs ignored entirely or used as a blanket excuse\n\n## Verification\n\n- [ ] Both producers and both tasks explicitly specified\n- [ ] Productivity or value-per-hour estimated for each combination\n- [ ] Opportunity-cost ratios computed; comparative-advantage assignment determined\n- [ ] Transaction costs considered; net benefit computed\n- [ ] Decision documented; re-evaluation conditions specified\n\n---\n\n*Part of **deciqAI Knowledge Skills** — 163 open-source thinking skills that make rigor executable for AI agents. The same skills power every deciqAI agent, which runs them autonomously to operate your company. **See it run → https://www.deciqai.com/skills/comparative-advantage?utm_source=clawhub&utm_medium=marketplace&utm_campaign=knowledge-skills&utm_content=comparative-advantage** · ⭐ Star the repo → https://github.com/deciqAI/knowledge-skills · Contributions welcome.*\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn754b8sk22s8c6gjxt02bftbn88q7ye\",\n  \"slug\": \"comparative-advantage\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1783482670688\n}\n\nFile v1.0.3:references/sources.md\n\n# Sources — comparative-advantage\n\n> *Primary sources for the [comparative-advantage](../SKILL.md) skill.*\n\n## Sources\n\n- Ricardo, D. (1817). *On the Principles of Political Economy and Taxation.* John Murray. Chapter 7 \"On Foreign Trade.\" The foundational text.\n- Samuelson, P. A. (1948). *Economics: An Introductory Analysis.* McGraw-Hill. The canonical textbook; source of the lawyer-and-typist delegation illustration.\n- Samuelson, P. A. (1969). \"The Way of an Economist.\" in *International Economic Relations*. The \"true and non-obvious\" essay.\n- Krugman, P. (1996). \"Ricardo's Difficult Idea.\" MIT working paper. The contemporary defense.\n- Heckscher, E. F. (1919). \"The Effect of Foreign Trade on the Distribution of Income.\" *Ekonomisk Tidskrift*, 497-512.\n- Ohlin, B. (1933). *Interregional and International Trade.* Harvard University Press.\n- Leontief, W. W. (1953). \"Domestic Production and Foreign Trade.\" *Proceedings of the American Philosophical Society*, 97(4), 332-349.\n- Friedman, T. L. (2005). *The World Is Flat.* Farrar, Straus and Giroux. ISBN 978-0374292881. Modern globalization application.\n- Andreessen, M. (2007). \"The Pmarca Guide to Personal Productivity.\" Blog post. Founder time-allocation application.\n- Coase, R. H. (1937). \"The Nature of the Firm.\" *Economica*, 4(16), 386-405. The transaction-cost qualification.\n\nFile v1.0.3:examples/ricardo-1817-england-portugal-modern-applications.md\n\n# Method in Action: Ricardo 1817 England-Portugal + Modern Applications\n\n> *Example for the [comparative-advantage](../SKILL.md) skill.*\n\nRicardo'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:\n\n- Portugal can produce 1 unit of cloth with 90 labor-hours\n- Portugal can produce 1 unit of wine with 80 labor-hours\n- England can produce 1 unit of cloth with 100 labor-hours\n- England can produce 1 unit of wine with 120 labor-hours\n\nPortugal is absolutely more productive at both. Naive analysis: Portugal should produce both, England should produce neither.\n\nRicardo'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.\n\nThe mutually beneficial allocation: England specializes in cloth, Portugal specializes in wine, they trade. Total production rises versus each producing both goods themselves.\n\nRicardo's full argument:\n\n> \"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.\"\n>\n> — Ricardo (1817), ch. 7.\n\nThe 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.\n\nFor founders and operators, the framework's most operationally important applications:\n\n**Founder time allocation.** Marc Andreessen articulated this clearly in his 2007 essay \"The Pmarca Guide to Personal Productivity\":\n\n> \"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, the strategic activities you should have done are worth 300% more. Comparative advantage routes you to the activities only you can do. Everything else, delegate.\"\n>\n> — Andreessen, M. (2007). \"The Pmarca Guide to Personal Productivity.\"\n\n**Outsourcing / specialization in supply chains.** Apple's manufacturing strategy is comparative advantage in action. Apple has world-class design, marketing, retail, and software engineering — and chooses to outsource component manufacturing to specialists (Foxconn, TSMC, etc.) who have comparative advantage in their respective domains. Apple could, in principle, build its own factories, but the opportunity cost (foregone product innovation, design, software) would dwarf the manufacturing savings.\n\n**Team specialization.** Within engineering teams, comparative advantage operates constantly. The senior engineer who is best at architecture should not be reviewing every junior's pull request; the senior is better off architecting and mentoring at the senior level, while junior engineers handle their work and learn. Even if the senior would do a 30% better job on the junior's task, the senior's opportunity cost (foregone architectural work) is much larger.\n\n**International labor markets.** The rise of global remote work (engineers in Argentina, designers in Vietnam, etc.) is comparative advantage operating at the level of individual contributors. Each location specializes in what they have comparative advantage in; the productivity ratios drive specialization patterns.\n\n**M&A logic.** Apple acquired NeXT in 1997 for the operating system technology (NeXT's comparative advantage in OS); the acquisition gave Apple the OS foundation that became macOS. Apple didn't try to build a new OS from scratch — the opportunity cost would have been too high.\n\nThree operational lessons from Ricardo:\n\n**First, \"I'm best at X\" is the wrong question.** The right question is \"am I better at X *relative to* my next-best alternative use of my time?\" Founders who allocate time based on absolute advantage spread themselves across many activities; founders who allocate based on comparative advantage focus on a small set of activities where the leverage is highest.\n\n**Second, even absolute superiority doesn't justify doing everything.** The richest, most capable person in a room can still benefit from specialization. The opportunity cost calculus is what matters.\n\n**Third, transaction costs are the practical brake.** In theory, comparative advantage suggests aggressive outsourcing. In practice, transaction costs (coordination, communication, quality monitoring) often make in-house production correct. The operational discipline is to compute both — pure comparative advantage and transaction cost — and make the net decision.\n\nFile v1.0.3:examples/samuelson-lawyer-typist-delegation.md\n\n# Method in Action: Samuelson's Lawyer-and-Typist Delegation Case (1948 → present)\n\n> *Example for the [comparative-advantage](../SKILL.md) skill.*\n\nRicardo stated the theorem at the scale of nations. Paul Samuelson's *Economics* (first edition 1948) — the dominant economics textbook of the twentieth century — carried it down to a single office, with the illustration that became the standard classroom test of whether a student really understands comparative advantage: the best lawyer in town is also the best typist in town. Should the lawyer type her own letters?\n\nThe intuitive answer — \"yes, she's faster\" — is the absolute-advantage trap. The textbook answer is no, and the case walks cleanly through the skill's Process:\n\n**Step 1 — Producers and tasks.** Producer 1 = the lawyer. Producer 2 = the secretary. Task A = legal work. Task B = typing. Horizon = the working week.\n\n**Step 2 — Productivity.** The lawyer is superior at *both* tasks: she bills legal work at a high hourly rate, and (illustratively, in the spirit of the textbook treatment) types faster than the secretary. The secretary can type but cannot produce billable legal work at all.\n\n**Step 3 — Opportunity-cost ratios.** Each hour the lawyer spends typing forgoes an hour of high-value legal work — her opportunity cost of typing is enormous. The secretary's opportunity cost of an hour of typing is close to zero legal output forgone. The ratios diverge by orders of magnitude, so the comparative advantages are unambiguous: lawyer in law, secretary in typing.\n\n**Step 4 — Specialization.** The lawyer practices law full-time; the secretary types. Each individual page may now be produced more slowly, yet the office's total output — legal value plus finished documents — is strictly higher than under self-sufficiency. Absolute superiority at typing was never a reason to type.\n\n**Step 5 — Transaction costs.** Delegation is not free: dictation, review cycles, error correction, confidentiality risk. In this case they are small relative to the gap in opportunity costs, so specialization wins. The same net calculus governs the modern descendants of the example — founder time allocation, executive assistants, and outsourcing decisions — and where coordination or confidentiality costs dominate the value gap, doing it yourself remains correct.\n\n**Step 6 — Implement and monitor.** The arrangement holds only while the productivity ratios hold. Word processing and then email collapsed the typing-speed gap and the cost of self-production, dissolving the dedicated-typist role in most offices — the delegation frontier moved rather than disappearing. Re-evaluation when ratios shift is part of the method, not an afterthought.\n\nThe case is why Samuelson could later call comparative advantage the only proposition in economics that is both true and non-obvious: the non-obvious part is visible even inside one office, with no borders, currencies, or tariffs anywhere in sight. Any professional who has said \"it's faster if I just do it myself\" is standing exactly where the lawyer stands.\n\nThe mapped steps:\n1. Producers and tasks: lawyer vs. secretary; legal work vs. typing, over the working week\n2. Productivity: lawyer absolutely better at both tasks; secretary capable only of typing\n3. Opportunity-cost ratios: lawyer's OC of typing is high-value legal work forgone; secretary's OC is near zero — ratios diverge sharply\n4. Specialization: lawyer in law, secretary in typing; total office output rises despite slower typing\n5. Transaction costs: dictation, review, and confidentiality costs computed and found small relative to the OC gap\n6. Implement and monitor: technology shifts (word processors) later changed the ratios and redrew the delegation boundary\n\nPrimary source: Samuelson, P. A. (1948). *Economics: An Introductory Analysis.* McGraw-Hill. Comparative-advantage discussion, including the lawyer-and-typist illustration; retained through subsequent Samuelson & Nordhaus editions.\n\nFile v1.0.3:skill-card.md\n\n## Description: <br>\nGuides agents through comparative-advantage analysis for delegation, outsourcing, team specialization, and build-versus-buy decisions. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[deciqai](https://clawhub.ai/user/deciqai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nEmployees, founders, operators, and advisors use the skill to compare opportunity-cost ratios, transaction costs, and specialization options before delegating, outsourcing, hiring, or dividing work. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill may influence business, hiring, outsourcing, or delegation recommendations. <br>\nMitigation: Treat outputs as decision support and verify assumptions, opportunity-cost estimates, transaction costs, and quality constraints before acting. <br>\nRisk: Users may include confidential operational details while describing delegation or outsourcing decisions. <br>\nMitigation: Avoid pasting confidential details unless they are appropriate for the agent environment. <br>\n\n\n## Reference(s): <br>\n- [Sources - comparative-advantage](references/sources.md) <br>\n- [Ricardo 1817 England-Portugal + Modern Applications](examples/ricardo-1817-england-portugal-modern-applications.md) <br>\n- [Samuelson's Lawyer-and-Typist Delegation Case](examples/samuelson-lawyer-typist-delegation.md) <br>\n- [ClawHub skill page](https://clawhub.ai/deciqai/skills/comparative-advantage) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, guidance] <br>\n**Output Format:** [Markdown analysis with a structured recommendation template] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May ask step-by-step questions before producing a recommendation; no executable behavior.] <br>\n\n## Skill Version(s): <br>\n1.0.3 (source: server release metadata) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.2: 5 files, 8339 bytes\n\nFiles: examples/ricardo-1817-england-portugal-modern-applications.md (5787b), references/sources.md (1191b), skill-card.md (2155b), SKILL.md (6969b), _meta.json (140b)\n\nFile v1.0.2:SKILL.md\n\n---\nname: comparative-advantage\ndescription: \"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).\"\n---\n\n# Comparative Advantage\n\n## Overview\n\nMutually 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?\"\n\nProved by David Ricardo (1817); called \"the only proposition in economics that is both true and non-obvious\" by Paul Samuelson (1969).\n\nComposes with `opportunity-cost`, `pareto-principle`, `circle-of-competence`, `theory-of-constraints`.\n\n## When to Use\n\n- Founder time allocation across activities; team division of labor\n- Build vs. buy / in-house vs. outsource decisions\n- M&A decisions; international operations / supply chain design\n- Personal career or skill specialization decisions\n\n**Not when:** situation is genuinely single-task (no B to trade off); transaction costs swamp any gains; alternative producer's capacity is fully constrained.\n\n## Coaching Novices (Adaptive Front Door)\n\n- **Engine mode:** user has a concrete allocation decision → run The Process directly.\n- **Coach mode:** user is unfamiliar or has no concrete case → guide step by step.\n\nIn Coach mode, respond one step at a time. Each [WAIT] is a hard stop — output only that step's question, then stop.\n\n1. 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?\"\n2. Check fit: if single-task or transaction costs very high, analysis adds limited value.\n3. Elicit the case: what are you considering doing? What else could you do with the time? Who else could do it?\n> **[WAIT — do not advance until user responds]**\n4. 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?\n> **[WAIT — do not advance until user responds]**\n5. Close: specialization recommendation + transaction-cost caveat + monitoring plan.\n> **[WAIT — do not advance until user responds]**\n\n## The Process\n\n**Step 1 — Producers and tasks:** name Producer 1, Producer 2, Task A, Task B, time horizon.\n\n**Step 2 — Productivity:** estimate value-per-hour (or units/time) for each producer at each task.\n\n**Step 3 — Opportunity-cost ratios:** Producer 1's OC of Task A = Task B output forgone per unit of Task A. Repeat for Producer 2. Lower OC = comparative advantage in that task.\n\n**Step 4 — Specialization:** each producer focuses on their comparative-advantage task. Total output rises.\n\n**Step 5 — Transaction costs:** add coordination, communication, quality-risk, and information-asymmetry costs. If net benefit positive: specialize. If net negative: produce in-house.\n\n**Step 6 — Implement and monitor:** document arrangement, set quality monitoring, schedule re-evaluation as productivity ratios or transaction costs shift.\n\n## Output Template\n\n```markdown\n# Comparative-Advantage Analysis: <decision>\nProducers: P1 = ___ | P2 = ___   Tasks: A = ___ | B = ___\nOC of Task A — P1: ___ | P2: ___   → CA in A: P___ | CA in B: P___\nTransaction costs: coordination ___ | quality risk ___ | net ___\nRecommendation: P1 specializes in ___ | P2 specializes in ___\nCaveats / re-eval trigger: ___\n```\n\n*→ Method in Action: [Ricardo 1817 England-Portugal + Modern Applications](examples/ricardo-1817-england-portugal-modern-applications.md)*\n\n## Pack: Application Patterns\n\n| Decision | Absolute-advantage trap | Comparative-advantage answer |\n|---|---|---|\n| Founder time | \"I'm best at everything\" | Specialize in 2-3 highest-leverage activities; delegate the rest |\n| Senior engineer | \"I should code everything\" | Architect, mentor, hard problems; delegate routine tasks |\n| Manufacturing | \"We could build our own factory\" | Outsource to specialist; focus on design/marketing/sales |\n| Customer support | \"I know the product best\" | Hire CS specialists; handle only strategic relationships yourself |\n\n## Applying It Well\n\n- Compute opportunity-cost *ratios*, not absolute productivity\n- Transaction costs are real — factor coordination, communication, quality-monitoring\n- Revisit as productivity ratios shift or transaction costs change\n\n*→ Primary sources: [references/sources.md](references/sources.md)*\n\n## Common Rationalizations\n\n**[D] = designed upfront | [O] = observed in real use. [O] entries are more valuable.**\n\n| Fake move | Reality |\n|---|---|\n| [D] \"I'm best at this, so I should do it\" | Right question is OC ratio. You can be best at it and still not be the one who should do it. |\n| [D] \"I can do it faster than they can\" | An hour spent doing it is an hour not spent on higher-OC work. Calculus often favors delegation. |\n| [D] \"Quality will drop if I delegate\" | Compute: does the quality drop outweigh the OC gain from focusing on higher-CA activities? Often no. |\n| [D] \"Outsourcing is risky\" | Transaction costs and quality risk are part of the calculus — compute them, don't assume. |\n| [D] \"Comparative advantage is academic; real life is different\" | The framework underpins modern supply chains, team specialization, and founder time-allocation. |\n| *→ Add [O] entries here after each real use — paste the actual failure pattern* | *What went wrong and why* |\n\n## Red Flags\n\n- Founder doing many tasks personally despite team members who could do them\n- \"I'm best at X\" used to justify allocation instead of OC analysis\n- Outsourcing decisions based on absolute productivity rather than opportunity cost\n- Transaction costs ignored entirely or used as a blanket excuse\n\n## Verification\n\n- [ ] Both producers and both tasks explicitly specified\n- [ ] Productivity or value-per-hour estimated for each combination\n- [ ] Opportunity-cost ratios computed; comparative-advantage assignment determined\n- [ ] Transaction costs considered; net benefit computed\n- [ ] Decision documented; re-evaluation conditions specified\n\n---\n\n*Part of **deciqAI Knowledge Skills** — 163 open-source thinking skills that make rigor executable for AI agents. The same skills power every deciqAI agent, which runs them autonomously to operate your company. **See it run → https://www.deciqai.com/skills/comparative-advantage?utm_source=clawhub&utm_medium=marketplace&utm_campaign=knowledge-skills&utm_content=comparative-advantage** · ⭐ Star the repo → https://github.com/deciqAI/knowledge-skills · Contributions welcome.*\n\nFile v1.0.2:_meta.json\n\n{\n  \"ownerId\": \"kn754b8sk22s8c6gjxt02bftbn88q7ye\",\n  \"slug\": \"comparative-advantage\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1783471287105\n}\n\nFile v1.0.2:references/sources.md\n\n# Sources — comparative-advantage\n\n> *Primary sources for the [comparative-advantage](../SKILL.md) skill.*\n\n## Sources\n\n- Ricardo, D. (1817). *On the Principles of Political Economy and Taxation.* John Murray. Chapter 7 \"On Foreign Trade.\" The foundational text.\n- Samuelson, P. A. (1969). \"The Way of an Economist.\" in *International Economic Relations*. The \"true and non-obvious\" essay.\n- Krugman, P. (1996). \"Ricardo's Difficult Idea.\" MIT working paper. The contemporary defense.\n- Heckscher, E. F. (1919). \"The Effect of Foreign Trade on the Distribution of Income.\" *Ekonomisk Tidskrift*, 497-512.\n- Ohlin, B. (1933). *Interregional and International Trade.* Harvard University Press.\n- Leontief, W. W. (1953). \"Domestic Production and Foreign Trade.\" *Proceedings of the American Philosophical Society*, 97(4), 332-349.\n- Friedman, T. L. (2005). *The World Is Flat.* Farrar, Straus and Giroux. ISBN 978-0374292881. Modern globalization application.\n- Andreessen, M. (2007). \"The Pmarca Guide to Personal Productivity.\" Blog post. Founder time-allocation application.\n- Coase, R. H. (1937). \"The Nature of the Firm.\" *Economica*, 4(16), 386-405. The transaction-cost qualification.\n\nFile v1.0.2:examples/ricardo-1817-england-portugal-modern-applications.md\n\n# Method in Action: Ricardo 1817 England-Portugal + Modern Applications\n\n> *Example for the [comparative-advantage](../SKILL.md) skill.*\n\nRicardo'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:\n\n- Portugal can produce 1 unit of cloth with 90 labor-hours\n- Portugal can produce 1 unit of wine with 80 labor-hours\n- England can produce 1 unit of cloth with 100 labor-hours\n- England can produce 1 unit of wine with 120 labor-hours\n\nPortugal is absolutely more productive at both. Naive analysis: Portugal should produce both, England should produce neither.\n\nRicardo'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.\n\nThe mutually beneficial allocation: England specializes in cloth, Portugal specializes in wine, they trade. Total production rises versus each producing both goods themselves.\n\nRicardo's full argument:\n\n> \"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.\"\n>\n> — Ricardo (1817), ch. 7.\n\nThe 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.\n\nFor founders and operators, the framework's most operationally important applications:\n\n**Founder time allocation.** Marc Andreessen articulated this clearly in his 2007 essay \"The Pmarca Guide to Personal Productivity\":\n\n> \"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, the strategic activities you should have done are worth 300% more. Comparative advantage routes you to the activities only you can do. Everything else, delegate.\"\n>\n> — Andreessen, M. (2007). \"The Pmarca Guide to Personal Productivity.\"\n\n**Outsourcing / specialization in supply chains.** Apple's manufacturing strategy is comparative advantage in action. Apple has world-class design, marketing, retail, and software engineering — and chooses to outsource component manufacturing to specialists (Foxconn, TSMC, etc.) who have comparative advantage in their respective domains. Apple could, in principle, build its own factories, but the opportunity cost (foregone product innovation, design, software) would dwarf the manufacturing savings.\n\n**Team specialization.** Within engineering teams, comparative advantage operates constantly. The senior engineer who is best at architecture should not be reviewing every junior's pull request; the senior is better off architecting and mentoring at the senior level, while junior engineers handle their work and learn. Even if the senior would do a 30% better job on the junior's task, the senior's opportunity cost (foregone architectural work) is much larger.\n\n**International labor markets.** The rise of global remote work (engineers in Argentina, designers in Vietnam, etc.) is comparative advantage operating at the level of individual contributors. Each location specializes in what they have comparative advantage in; the productivity ratios drive specialization patterns.\n\n**M&A logic.** Apple acquired NeXT in 1997 for the operating system technology (NeXT's comparative advantage in OS); the acquisition gave Apple the OS foundation that became macOS. Apple didn't try to build a new OS from scratch — the opportunity cost would have been too high.\n\nThree operational lessons from Ricardo:\n\n**First, \"I'm best at X\" is the wrong question.** The right question is \"am I better at X *relative to* my next-best alternative use of my time?\" Founders who allocate time based on absolute advantage spread themselves across many activities; founders who allocate based on comparative advantage focus on a small set of activities where the leverage is highest.\n\n**Second, even absolute superiority doesn't justify doing everything.** The richest, most capable person in a room can still benefit from specialization. The opportunity cost calculus is what matters.\n\n**Third, transaction costs are the practical brake.** In theory, comparative advantage suggests aggressive outsourcing. In practice, transaction costs (coordination, communication, quality monitoring) often make in-house production correct. The operational discipline is to compute both — pure comparative advantage and transaction cost — and make the net decision.\n\nFile v1.0.2:skill-card.md\n\n## Description: <br>\nComparative Advantage helps agents evaluate delegation, outsourcing, specialization, and build-vs-buy decisions using opportunity-cost ratios and transaction-cost checks. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[deciqai](https://clawhub.ai/user/deciqai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nDevelopers, operators, founders, and teams use this skill to structure allocation decisions where multiple producers and tasks create opportunity-cost trade-offs. It guides users toward specialization recommendations while checking transaction costs, quality risk, and re-evaluation triggers. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Business recommendations may be misleading if productivity estimates, transaction costs, or cited economic claims are wrong. <br>\nMitigation: Use the skill as decision support and verify assumptions before acting on high-stakes choices. <br>\nRisk: Delegation or outsourcing advice may overlook quality, coordination, or capacity constraints. <br>\nMitigation: Apply the transaction-cost, quality-risk, monitoring, and re-evaluation checks before implementing recommendations. <br>\n\n\n## Reference(s): <br>\n- [Sources for comparative-advantage](references/sources.md) <br>\n- [Ricardo 1817 example and modern applications](examples/ricardo-1817-england-portugal-modern-applications.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, guidance] <br>\n**Output Format:** [Markdown analysis with structured recommendation fields] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May ask follow-up questions before producing a recommendation when the user lacks a concrete case.] <br>\n\n## Skill Version(s): <br>\n1.0.2 (source: server release evidence) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.1: 5 files, 8173 bytes\n\nFiles: examples/ricardo-1817-england-portugal-modern-applications.md (5787b), references/sources.md (1191b), skill-card.md (2033b), SKILL.md (6836b), _meta.json (140b)\n\nFile v1.0.1:SKILL.md\n\n---\nname: comparative-advantage\ndescription: \"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).\"\n---\n\n# Comparative Advantage\n\n## Overview\n\nMutually 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?\"\n\nProved by David Ricardo (1817); called \"the only proposition in economics that is both true and non-obvious\" by Paul Samuelson (1969).\n\nComposes with [`opportunity-cost`](../opportunity-cost/SKILL.md), [`pareto-principle`](../pareto-principle/SKILL.md), [`circle-of-competence`](../circle-of-competence/SKILL.md), [`theory-of-constraints`](../theory-of-constraints/SKILL.md).\n\n## When to Use\n\n- Founder time allocation across activities; team division of labor\n- Build vs. buy / in-house vs. outsource decisions\n- M&A decisions; international operations / supply chain design\n- Personal career or skill specialization decisions\n\n**Not when:** situation is genuinely single-task (no B to trade off); transaction costs swamp any gains; alternative producer's capacity is fully constrained.\n\n## Coaching Novices (Adaptive Front Door)\n\n- **Engine mode:** user has a concrete allocation decision → run The Process directly.\n- **Coach mode:** user is unfamiliar or has no concrete case → guide step by step.\n\nIn Coach mode, respond one step at a time. Each [WAIT] is a hard stop — output only that step's question, then stop.\n\n1. 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?\"\n2. Check fit: if single-task or transaction costs very high, analysis adds limited value.\n3. Elicit the case: what are you considering doing? What else could you do with the time? Who else could do it?\n> **[WAIT — do not advance until user responds]**\n4. 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?\n> **[WAIT — do not advance until user responds]**\n5. Close: specialization recommendation + transaction-cost caveat + monitoring plan.\n> **[WAIT — do not advance until user responds]**\n\n## The Process\n\n**Step 1 — Producers and tasks:** name Producer 1, Producer 2, Task A, Task B, time horizon.\n\n**Step 2 — Productivity:** estimate value-per-hour (or units/time) for each producer at each task.\n\n**Step 3 — Opportunity-cost ratios:** Producer 1's OC of Task A = Task B output forgone per unit of Task A. Repeat for Producer 2. Lower OC = comparative advantage in that task.\n\n**Step 4 — Specialization:** each producer focuses on their comparative-advantage task. Total output rises.\n\n**Step 5 — Transaction costs:** add coordination, communication, quality-risk, and information-asymmetry costs. If net benefit positive: specialize. If net negative: produce in-house.\n\n**Step 6 — Implement and monitor:** document arrangement, set quality monitoring, schedule re-evaluation as productivity ratios or transaction costs shift.\n\n## Output Template\n\n```markdown\n# Comparative-Advantage Analysis: <decision>\nProducers: P1 = ___ | P2 = ___   Tasks: A = ___ | B = ___\nOC of Task A — P1: ___ | P2: ___   → CA in A: P___ | CA in B: P___\nTransaction costs: coordination ___ | quality risk ___ | net ___\nRecommendation: P1 specializes in ___ | P2 specializes in ___\nCaveats / re-eval trigger: ___\n```\n\n*→ Method in Action: [Ricardo 1817 England-Portugal + Modern Applications](examples/ricardo-1817-england-portugal-modern-applications.md)*\n\n## Pack: Application Patterns\n\n| Decision | Absolute-advantage trap | Comparative-advantage answer |\n|---|---|---|\n| Founder time | \"I'm best at everything\" | Specialize in 2-3 highest-leverage activities; delegate the rest |\n| Senior engineer | \"I should code everything\" | Architect, mentor, hard problems; delegate routine tasks |\n| Manufacturing | \"We could build our own factory\" | Outsource to specialist; focus on design/marketing/sales |\n| Customer support | \"I know the product best\" | Hire CS specialists; handle only strategic relationships yourself |\n\n## Applying It Well\n\n- Compute opportunity-cost *ratios*, not absolute productivity\n- Transaction costs are real — factor coordination, communication, quality-monitoring\n- Revisit as productivity ratios shift or transaction costs change\n\n*→ Primary sources: [references/sources.md](references/sources.md)*\n\n## Common Rationalizations\n\n**[D] = designed upfront | [O] = observed in real use. [O] entries are more valuable.**\n\n| Fake move | Reality |\n|---|---|\n| [D] \"I'm best at this, so I should do it\" | Right question is OC ratio. You can be best at it and still not be the one who should do it. |\n| [D] \"I can do it faster than they can\" | An hour spent doing it is an hour not spent on higher-OC work. Calculus often favors delegation. |\n| [D] \"Quality will drop if I delegate\" | Compute: does the quality drop outweigh the OC gain from focusing on higher-CA activities? Often no. |\n| [D] \"Outsourcing is risky\" | Transaction costs and quality risk are part of the calculus — compute them, don't assume. |\n| [D] \"Comparative advantage is academic; real life is different\" | The framework underpins modern supply chains, team specialization, and founder time-allocation. |\n| *→ Add [O] entries here after each real use — paste the actual failure pattern* | *What went wrong and why* |\n\n## Red Flags\n\n- Founder doing many tasks personally despite team members who could do them\n- \"I'm best at X\" used to justify allocation instead of OC analysis\n- Outsourcing decisions based on absolute productivity rather than opportunity cost\n- Transaction costs ignored entirely or used as a blanket excuse\n\n## Verification\n\n- [ ] Both producers and both tasks explicitly specified\n- [ ] Productivity or value-per-hour estimated for each combination\n- [ ] Opportunity-cost ratios computed; comparative-advantage assignment determined\n- [ ] Transaction costs considered; net benefit computed\n- [ ] Decision documented; re-evaluation conditions specified\n\n---\n\n*Part of **deciqAI Knowledge Skills** — open-source thinking skills that make rigor executable for AI agents. Built by deciqAI · https://deciqai.com · Contributions welcome — see the template at the repo root.*\n\nFile v1.0.1:_meta.json\n\n{\n  \"ownerId\": \"kn754b8sk22s8c6gjxt02bftbn88q7ye\",\n  \"slug\": \"comparative-advantage\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1783456264709\n}\n\nFile v1.0.1:references/sources.md\n\n# Sources — comparative-advantage\n\n> *Primary sources for the [comparative-advantage](../SKILL.md) skill.*\n\n## Sources\n\n- Ricardo, D. (1817). *On the Principles of Political Economy and Taxation.* John Murray. Chapter 7 \"On Foreign Trade.\" The foundational text.\n- Samuelson, P. A. (1969). \"The Way of an Economist.\" in *International Economic Relations*. The \"true and non-obvious\" essay.\n- Krugman, P. (1996). \"Ricardo's Difficult Idea.\" MIT working paper. The contemporary defense.\n- Heckscher, E. F. (1919). \"The Effect of Foreign Trade on the Distribution of Income.\" *Ekonomisk Tidskrift*, 497-512.\n- Ohlin, B. (1933). *Interregional and International Trade.* Harvard University Press.\n- Leontief, W. W. (1953). \"Domestic Production and Foreign Trade.\" *Proceedings of the American Philosophical Society*, 97(4), 332-349.\n- Friedman, T. L. (2005). *The World Is Flat.* Farrar, Straus and Giroux. ISBN 978-0374292881. Modern globalization application.\n- Andreessen, M. (2007). \"The Pmarca Guide to Personal Productivity.\" Blog post. Founder time-allocation application.\n- Coase, R. H. (1937). \"The Nature of the Firm.\" *Economica*, 4(16), 386-405. The transaction-cost qualification.\n\nFile v1.0.1:examples/ricardo-1817-england-portugal-modern-applications.md\n\n# Method in Action: Ricardo 1817 England-Portugal + Modern Applications\n\n> *Example for the [comparative-advantage](../SKILL.md) skill.*\n\nRicardo'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:\n\n- Portugal can produce 1 unit of cloth with 90 labor-hours\n- Portugal can produce 1 unit of wine with 80 labor-hours\n- England can produce 1 unit of cloth with 100 labor-hours\n- England can produce 1 unit of wine with 120 labor-hours\n\nPortugal is absolutely more productive at both. Naive analysis: Portugal should produce both, England should produce neither.\n\nRicardo'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.\n\nThe mutually beneficial allocation: England specializes in cloth, Portugal specializes in wine, they trade. Total production rises versus each producing both goods themselves.\n\nRicardo's full argument:\n\n> \"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.\"\n>\n> — Ricardo (1817), ch. 7.\n\nThe 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.\n\nFor founders and operators, the framework's most operationally important applications:\n\n**Founder time allocation.** Marc Andreessen articulated this clearly in his 2007 essay \"The Pmarca Guide to Personal Productivity\":\n\n> \"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, the strategic activities you should have done are worth 300% more. Comparative advantage routes you to the activities only you can do. Everything else, delegate.\"\n>\n> — Andreessen, M. (2007). \"The Pmarca Guide to Personal Productivity.\"\n\n**Outsourcing / specialization in supply chains.** Apple's manufacturing strategy is comparative advantage in action. Apple has world-class design, marketing, retail, and software engineering — and chooses to outsource component manufacturing to specialists (Foxconn, TSMC, etc.) who have comparative advantage in their respective domains. Apple could, in principle, build its own factories, but the opportunity cost (foregone product innovation, design, software) would dwarf the manufacturing savings.\n\n**Team specialization.** Within engineering teams, comparative advantage operates constantly. The senior engineer who is best at architecture should not be reviewing every junior's pull request; the senior is better off architecting and mentoring at the senior level, while junior engineers handle their work and learn. Even if the senior would do a 30% better job on the junior's task, the senior's opportunity cost (foregone architectural work) is much larger.\n\n**International labor markets.** The rise of global remote work (engineers in Argentina, designers in Vietnam, etc.) is comparative advantage operating at the level of individual contributors. Each location specializes in what they have comparative advantage in; the productivity ratios drive specialization patterns.\n\n**M&A logic.** Apple acquired NeXT in 1997 for the operating system technology (NeXT's comparative advantage in OS); the acquisition gave Apple the OS foundation that became macOS. Apple didn't try to build a new OS from scratch — the opportunity cost would have been too high.\n\nThree operational lessons from Ricardo:\n\n**First, \"I'm best at X\" is the wrong question.** The right question is \"am I better at X *relative to* my next-best alternative use of my time?\" Founders who allocate time based on absolute advantage spread themselves across many activities; founders who allocate based on comparative advantage focus on a small set of activities where the leverage is highest.\n\n**Second, even absolute superiority doesn't justify doing everything.** The richest, most capable person in a room can still benefit from specialization. The opportunity cost calculus is what matters.\n\n**Third, transaction costs are the practical brake.** In theory, comparative advantage suggests aggressive outsourcing. In practice, transaction costs (coordination, communication, quality monitoring) often make in-house production correct. The operational discipline is to compute both — pure comparative advantage and transaction cost — and make the net decision.\n\nFile v1.0.1:skill-card.md\n\n## Description: <br>\nGuides agents through comparative-advantage analysis for delegation, outsourcing, build-versus-buy, team specialization, and similar allocation decisions. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[deciqai](https://clawhub.ai/user/deciqai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nDevelopers, operators, founders, and other decision makers use this skill to compare opportunity-cost ratios, account for transaction costs, and decide who should specialize in which work. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill can produce delegation, outsourcing, or specialization recommendations from uncertain productivity estimates and business context. <br>\nMitigation: Verify the economic assumptions, productivity estimates, transaction costs, quality risks, and business constraints before acting on its recommendations. <br>\n\n\n## Reference(s): <br>\n- [ClawHub skill page](https://clawhub.ai/deciqai/skills/comparative-advantage) <br>\n- [Sources - comparative-advantage](artifact/references/sources.md) <br>\n- [Ricardo 1817 England-Portugal + Modern Applications](artifact/examples/ricardo-1817-england-portugal-modern-applications.md) <br>\n- [deciqAI](https://deciqai.com) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, guidance] <br>\n**Output Format:** [Markdown analysis with a structured recommendation template] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May ask step-by-step clarification questions before producing the final comparative-advantage recommendation.] <br>\n\n## Skill Version(s): <br>\n1.0.1 (source: server release metadata) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.0: 5 files, 8294 bytes\n\nFiles: examples/ricardo-1817-england-portugal-modern-applications.md (5787b), references/sources.md (1191b), skill-card.md (2346b), SKILL.md (6836b), _meta.json (140b)\n\nFile v1.0.0:SKILL.md\n\n---\nname: comparative-advantage\ndescription: \"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).\"\n---\n\n# Comparative Advantage\n\n## Overview\n\nMutually 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?\"\n\nProved by David Ricardo (1817); called \"the only proposition in economics that is both true and non-obvious\" by Paul Samuelson (1969).\n\nComposes with [`opportunity-cost`](../opportunity-cost/SKILL.md), [`pareto-principle`](../pareto-principle/SKILL.md), [`circle-of-competence`](../circle-of-competence/SKILL.md), [`theory-of-constraints`](../theory-of-constraints/SKILL.md).\n\n## When to Use\n\n- Founder time allocation across activities; team division of labor\n- Build vs. buy / in-house vs. outsource decisions\n- M&A decisions; international operations / supply chain design\n- Personal career or skill specialization decisions\n\n**Not when:** situation is genuinely single-task (no B to trade off); transaction costs swamp any gains; alternative producer's capacity is fully constrained.\n\n## Coaching Novices (Adaptive Front Door)\n\n- **Engine mode:** user has a concrete allocation decision → run The Process directly.\n- **Coach mode:** user is unfamiliar or has no concrete case → guide step by step.\n\nIn Coach mode, respond one step at a time. Each [WAIT] is a hard stop — output only that step's question, then stop.\n\n1. 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?\"\n2. Check fit: if single-task or transaction costs very high, analysis adds limited value.\n3. Elicit the case: what are you considering doing? What else could you do with the time? Who else could do it?\n> **[WAIT — do not advance until user responds]**\n4. 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?\n> **[WAIT — do not advance until user responds]**\n5. Close: specialization recommendation + transaction-cost caveat + monitoring plan.\n> **[WAIT — do not advance until user responds]**\n\n## The Process\n\n**Step 1 — Producers and tasks:** name Producer 1, Producer 2, Task A, Task B, time horizon.\n\n**Step 2 — Productivity:** estimate value-per-hour (or units/time) for each producer at each task.\n\n**Step 3 — Opportunity-cost ratios:** Producer 1's OC of Task A = Task B output forgone per unit of Task A. Repeat for Producer 2. Lower OC = comparative advantage in that task.\n\n**Step 4 — Specialization:** each producer focuses on their comparative-advantage task. Total output rises.\n\n**Step 5 — Transaction costs:** add coordination, communication, quality-risk, and information-asymmetry costs. If net benefit positive: specialize. If net negative: produce in-house.\n\n**Step 6 — Implement and monitor:** document arrangement, set quality monitoring, schedule re-evaluation as productivity ratios or transaction costs shift.\n\n## Output Template\n\n```markdown\n# Comparative-Advantage Analysis: <decision>\nProducers: P1 = ___ | P2 = ___   Tasks: A = ___ | B = ___\nOC of Task A — P1: ___ | P2: ___   → CA in A: P___ | CA in B: P___\nTransaction costs: coordination ___ | quality risk ___ | net ___\nRecommendation: P1 specializes in ___ | P2 specializes in ___\nCaveats / re-eval trigger: ___\n```\n\n*→ Method in Action: [Ricardo 1817 England-Portugal + Modern Applications](examples/ricardo-1817-england-portugal-modern-applications.md)*\n\n## Pack: Application Patterns\n\n| Decision | Absolute-advantage trap | Comparative-advantage answer |\n|---|---|---|\n| Founder time | \"I'm best at everything\" | Specialize in 2-3 highest-leverage activities; delegate the rest |\n| Senior engineer | \"I should code everything\" | Architect, mentor, hard problems; delegate routine tasks |\n| Manufacturing | \"We could build our own factory\" | Outsource to specialist; focus on design/marketing/sales |\n| Customer support | \"I know the product best\" | Hire CS specialists; handle only strategic relationships yourself |\n\n## Applying It Well\n\n- Compute opportunity-cost *ratios*, not absolute productivity\n- Transaction costs are real — factor coordination, communication, quality-monitoring\n- Revisit as productivity ratios shift or transaction costs change\n\n*→ Primary sources: [references/sources.md](references/sources.md)*\n\n## Common Rationalizations\n\n**[D] = designed upfront | [O] = observed in real use. [O] entries are more valuable.**\n\n| Fake move | Reality |\n|---|---|\n| [D] \"I'm best at this, so I should do it\" | Right question is OC ratio. You can be best at it and still not be the one who should do it. |\n| [D] \"I can do it faster than they can\" | An hour spent doing it is an hour not spent on higher-OC work. Calculus often favors delegation. |\n| [D] \"Quality will drop if I delegate\" | Compute: does the quality drop outweigh the OC gain from focusing on higher-CA activities? Often no. |\n| [D] \"Outsourcing is risky\" | Transaction costs and quality risk are part of the calculus — compute them, don't assume. |\n| [D] \"Comparative advantage is academic; real life is different\" | The framework underpins modern supply chains, team specialization, and founder time-allocation. |\n| *→ Add [O] entries here after each real use — paste the actual failure pattern* | *What went wrong and why* |\n\n## Red Flags\n\n- Founder doing many tasks personally despite team members who could do them\n- \"I'm best at X\" used to justify allocation instead of OC analysis\n- Outsourcing decisions based on absolute productivity rather than opportunity cost\n- Transaction costs ignored entirely or used as a blanket excuse\n\n## Verification\n\n- [ ] Both producers and both tasks explicitly specified\n- [ ] Productivity or value-per-hour estimated for each combination\n- [ ] Opportunity-cost ratios computed; comparative-advantage assignment determined\n- [ ] Transaction costs considered; net benefit computed\n- [ ] Decision documented; re-evaluation conditions specified\n\n---\n\n*Part of **deciqAI Knowledge Skills** — open-source thinking skills that make rigor executable for AI agents. Built by deciqAI · https://deciqai.com · Contributions welcome — see the template at the repo root.*\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn754b8sk22s8c6gjxt02bftbn88q7ye\",\n  \"slug\": \"comparative-advantage\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1782533855781\n}\n\nFile v1.0.0:references/sources.md\n\n# Sources — comparative-advantage\n\n> *Primary sources for the [comparative-advantage](../SKILL.md) skill.*\n\n## Sources\n\n- Ricardo, D. (1817). *On the Principles of Political Economy and Taxation.* John Murray. Chapter 7 \"On Foreign Trade.\" The foundational text.\n- Samuelson, P. A. (1969). \"The Way of an Economist.\" in *International Economic Relations*. The \"true and non-obvious\" essay.\n- Krugman, P. (1996). \"Ricardo's Difficult Idea.\" MIT working paper. The contemporary defense.\n- Heckscher, E. F. (1919). \"The Effect of Foreign Trade on the Distribution of Income.\" *Ekonomisk Tidskrift*, 497-512.\n- Ohlin, B. (1933). *Interregional and International Trade.* Harvard University Press.\n- Leontief, W. W. (1953). \"Domestic Production and Foreign Trade.\" *Proceedings of the American Philosophical Society*, 97(4), 332-349.\n- Friedman, T. L. (2005). *The World Is Flat.* Farrar, Straus and Giroux. ISBN 978-0374292881. Modern globalization application.\n- Andreessen, M. (2007). \"The Pmarca Guide to Personal Productivity.\" Blog post. Founder time-allocation application.\n- Coase, R. H. (1937). \"The Nature of the Firm.\" *Economica*, 4(16), 386-405. The transaction-cost qualification.\n\nFile v1.0.0:examples/ricardo-1817-england-portugal-modern-applications.md\n\n# Method in Action: Ricardo 1817 England-Portugal + Modern Applications\n\n> *Example for the [comparative-advantage](../SKILL.md) skill.*\n\nRicardo'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:\n\n- Portugal can produce 1 unit of cloth with 90 labor-hours\n- Portugal can produce 1 unit of wine with 80 labor-hours\n- England can produce 1 unit of cloth with 100 labor-hours\n- England can produce 1 unit of wine with 120 labor-hours\n\nPortugal is absolutely more productive at both. Naive analysis: Portugal should produce both, England should produce neither.\n\nRicardo'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.\n\nThe mutually beneficial allocation: England specializes in cloth, Portugal specializes in wine, they trade. Total production rises versus each producing both goods themselves.\n\nRicardo's full argument:\n\n> \"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.\"\n>\n> — Ricardo (1817), ch. 7.\n\nThe 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.\n\nFor founders and operators, the framework's most operationally important applications:\n\n**Founder time allocation.** Marc Andreessen articulated this clearly in his 2007 essay \"The Pmarca Guide to Personal Productivity\":\n\n> \"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, the strategic activities you should have done are worth 300% more. Comparative advantage routes you to the activities only you can do. Everything else, delegate.\"\n>\n> — Andreessen, M. (2007). \"The Pmarca Guide to Personal Productivity.\"\n\n**Outsourcing / specialization in supply chains.** Apple's manufacturing strategy is comparative advantage in action. Apple has world-class design, marketing, retail, and software engineering — and chooses to outsource component manufacturing to specialists (Foxconn, TSMC, etc.) who have comparative advantage in their respective domains. Apple could, in principle, build its own factories, but the opportunity cost (foregone product innovation, design, software) would dwarf the manufacturing savings.\n\n**Team specialization.** Within engineering teams, comparative advantage operates constantly. The senior engineer who is best at architecture should not be reviewing every junior's pull request; the senior is better off architecting and mentoring at the senior level, while junior engineers handle their work and learn. Even if the senior would do a 30% better job on the junior's task, the senior's opportunity cost (foregone architectural work) is much larger.\n\n**International labor markets.** The rise of global remote work (engineers in Argentina, designers in Vietnam, etc.) is comparative advantage operating at the level of individual contributors. Each location specializes in what they have comparative advantage in; the productivity ratios drive specialization patterns.\n\n**M&A logic.** Apple acquired NeXT in 1997 for the operating system technology (NeXT's comparative advantage in OS); the acquisition gave Apple the OS foundation that became macOS. Apple didn't try to build a new OS from scratch — the opportunity cost would have been too high.\n\nThree operational lessons from Ricardo:\n\n**First, \"I'm best at X\" is the wrong question.** The right question is \"am I better at X *relative to* my next-best alternative use of my time?\" Founders who allocate time based on absolute advantage spread themselves across many activities; founders who allocate based on comparative advantage focus on a small set of activities where the leverage is highest.\n\n**Second, even absolute superiority doesn't justify doing everything.** The richest, most capable person in a room can still benefit from specialization. The opportunity cost calculus is what matters.\n\n**Third, transaction costs are the practical brake.** In theory, comparative advantage suggests aggressive outsourcing. In practice, transaction costs (coordination, communication, quality monitoring) often make in-house production correct. The operational discipline is to compute both — pure comparative advantage and transaction cost — and make the net decision.\n\nFile v1.0.0:skill-card.md\n\n## Description: <br>\nHelps an agent analyze delegation, outsourcing, build-versus-buy, and team-allocation decisions using comparative advantage and opportunity-cost ratios. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[deciqai](https://clawhub.ai/user/deciqai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nOperators, founders, managers, and agents use this skill to decide who should perform which work when there are multiple producers, multiple tasks, and meaningful opportunity costs. It guides users through productivity estimates, opportunity-cost ratios, transaction costs, and re-evaluation triggers before recommending specialization or in-house production. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: Users may treat the skill's allocation recommendation as authoritative business advice. <br>\nMitigation: Verify assumptions, productivity estimates, transaction costs, and quality risks before using the recommendation for hiring, outsourcing, delegation, or team-allocation decisions. <br>\nRisk: Sensitive company details could be included in manually maintained examples or notes while applying the framework. <br>\nMitigation: Avoid entering confidential company information into examples or notes unless the surrounding agent environment is approved for that data. <br>\n\n\n## Reference(s): <br>\n- [Sources - comparative-advantage](references/sources.md) <br>\n- [Ricardo 1817 England-Portugal + Modern Applications](examples/ricardo-1817-england-portugal-modern-applications.md) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, markdown, guidance] <br>\n**Output Format:** [Markdown analysis with structured recommendation fields] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [May include opportunity-cost ratios, transaction-cost caveats, specialization recommendations, and re-evaluation triggers.] <br>\n\n## Skill Version(s): <br>\n1.0.0 (source: evidence.release.version and target metadata) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>","readmeExcerpt":"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","codeSnippets":[],"executableExamples":[{"language":"markdown","snippet":"# Comparative-Advantage Analysis: <decision>\nProducers: P1 = ___ | P2 = ___   Tasks: A = ___ | B = ___\nOC of Task A — P1: ___ | P2: ___   → CA in A: P___ | CA in B: P___\nTransaction costs: coordination ___ | quality risk ___ | net ___\nRecommendation: P1 specializes in ___ | P2 specializes in ___\nCaveats / re-eval trigger: ___"},{"language":"markdown","snippet":"# Comparative-Advantage Analysis: <decision>\nProducers: P1 = ___ | P2 = ___   Tasks: A = ___ | B = ___\nOC of Task A — P1: ___ | P2: ___   → CA in A: P___ | CA in B: P___\nTransaction costs: coordination ___ | quality risk ___ | net ___\nRecommendation: P1 specializes in ___ | P2 specializes in ___\nCaveats / re-eval trigger: ___"},{"language":"markdown","snippet":"# Comparative-Advantage Analysis: <decision>\nProducers: P1 = ___ | P2 = ___   Tasks: A = ___ | B = ___\nOC of Task A — P1: ___ | P2: ___   → CA in A: P___ | CA in B: P___\nTransaction costs: coordination ___ | quality risk ___ | net ___\nRecommendation: P1 specializes in ___ | P2 specializes in ___\nCaveats / re-eval trigger: ___"},{"language":"markdown","snippet":"# Comparative-Advantage Analysis: <decision>\nProducers: P1 = ___ | P2 = ___   Tasks: A = ___ | B = ___\nOC of Task A — P1: ___ | P2: ___   → CA in A: P___ | CA in B: P___\nTransaction costs: coordination ___ | quality risk ___ | net ___\nRecommendation: P1 specializes in ___ | P2 specializes in ___\nCaveats / re-eval trigger: ___"},{"language":"markdown","snippet":"# Comparative-Advantage Analysis: <decision>\nProducers: P1 = ___ | P2 = ___   Tasks: A = ___ | B = ___\nOC of Task A — P1: ___ | P2: ___   → CA in A: P___ | CA in B: P___\nTransaction costs: coordination ___ | quality risk ___ | net ___\nRecommendation: P1 specializes in ___ | P2 specializes in ___\nCaveats / re-eval trigger: ___"},{"language":"markdown","snippet":"# Comparative-Advantage Analysis: <decision>\nProducers: P1 = ___ | P2 = ___   Tasks: A = ___ | B = ___\nOC of Task A — P1: ___ | P2: ___   → CA in A: P___ | CA in B: P___\nTransaction costs: coordination ___ | quality risk ___ | net ___\nRecommendation: P1 specializes in ___ | P2 specializes in ___\nCaveats / re-eval trigger: ___"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: comparative-advantage\ndescription: \"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\"\n---\n\n# Comparative Advantage\n\n## Overview\n\nMutually 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?\"\n\nProved by David Ricardo (1817); called \"the only proposition in economics that is both true and non-obvious\" by Paul Samuelson (1969).\n\nComposes with `opportunity-cost`, `pareto-principle`, `circle-of-competence`, `theory-of-constraints`.\n\n## When to Use\n\n- Founder time allocation across activities; team division of labor\n- Build vs. buy / in-house vs. outsource decisions\n- M&A decisions; international operations / supply chain design (e.g. AI-chip re-shoring, chip export controls, semiconductor vertical integration)\n- Personal career or skill specialization decisions\n\n**Not when:** situation is genuinely single-task (no B to trade off); transaction costs swamp any gains; alternative producer's capacity is fully constrained.\n\n## Coaching Novices (Adaptive Front Door)\n\n- **Engine mode:** user has a concrete allocation decision → run The Process directly.\n- **Coach mode:** user is unfamiliar or has no concrete case → guide step by step.\n\nIn Coach mode, respond one step at a time. Each [WAIT] is a hard stop — output only that step's question, then stop.\n\n1. 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?\"\n2. Check fit: if single-task or transaction costs very high, analysis adds limited value.\n3. Elicit the case: what are you considering doing? What else could you do with the time? Who else could do it?\n> **[WAIT — do not advance until user responds]**\n4. 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?\n> **[WAIT — do not advance until user responds]**\n5. Close: specialization recommendation + transaction-cost caveat + monitoring plan.\n> **[WAIT — do not advance until user responds]**\n\n## The Process\n\n**Step 1 — Producers and tasks:** name Producer 1, Producer 2, Task A, Task B, time horizon.\n\n**Step 2 — Productivity:** estimate value-per-hour (or units/time) for each producer at each task.\n\n**Step 3 — Opportunity-cost ratios:** Producer 1's OC of Task A = Task B output"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn754b8sk22s8c6gjxt02bftbn88q7ye\",\n  \"slug\": \"comparative-advantage\",\n  \"version\": \"1.0.5\",\n  \"publishedAt\": 1784224491665\n}"},{"path":"references/sources.md","content":"# Sources — comparative-advantage\n\n> *Primary sources for the [comparative-advantage](../SKILL.md) skill.*\n\n## Sources\n\n- Ricardo, D. (1817). *On the Principles of Political Economy and Taxation.* John Murray. Chapter 7 \"On Foreign Trade.\" The foundational text.\n- Samuelson, P. A. (1948). *Economics: An Introductory Analysis.* McGraw-Hill. The canonical textbook; source of the lawyer-and-typist delegation illustration.\n- Samuelson, P. A. (1969). \"The Way of an Economist.\" in *International Economic Relations*. The \"true and non-obvious\" essay.\n- Krugman, P. (1996). \"Ricardo's Difficult Idea.\" MIT working paper. The contemporary defense.\n- Heckscher, E. F. (1919). \"The Effect of Foreign Trade on the Distribution of Income.\" *Ekonomisk Tidskrift*, 497-512.\n- Ohlin, B. (1933). *Interregional and International Trade.* Harvard University Press.\n- Leontief, W. W. (1953). \"Domestic Production and Foreign Trade.\" *Proceedings of the American Philosophical Society*, 97(4), 332-349.\n- Friedman, T. L. (2005). *The World Is Flat.* Farrar, Straus and Giroux. ISBN 978-0374292881. Modern globalization application.\n- Andreessen, M. (2007). \"The Pmarca Guide to Personal Productivity.\" Blog post. Founder time-allocation application.\n- Coase, R. H. (1937). \"The Nature of the Firm.\" *Economica*, 4(16), 386-405. The transaction-cost qualification.\n- 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).\n- 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)."},{"path":"examples/ai-chip-supply-chain-2024-2026.md","content":"# Method in Action: The AI-Chip Supply Chain — ASML, TSMC, Nvidia (2024–2026)\n\n> *Example for the [comparative-advantage](../SKILL.md) skill.*\n\nBy 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.\n\nThe case walks cleanly through the skill's Process, treating each firm as a \"producer\" and each layer of the stack as a \"task.\"\n\n**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.\n\n**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\").\n\n**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.\n\n**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"},{"path":"examples/ricardo-1817-england-portugal-modern-applications.md","content":"# Method in Action: Ricardo 1817 England-Portugal + Modern Applications\n\n> *Example for the [comparative-advantage](../SKILL.md) skill.*\n\nRicardo'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:\n\n- Portugal can produce 1 unit of cloth with 90 labor-hours\n- Portugal can produce 1 unit of wine with 80 labor-hours\n- England can produce 1 unit of cloth with 100 labor-hours\n- England can produce 1 unit of wine with 120 labor-hours\n\nPortugal is absolutely more productive at both. Naive analysis: Portugal should produce both, England should produce neither.\n\nRicardo'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.\n\nThe mutually beneficial allocation: England specializes in cloth, Portugal specializes in wine, they trade. Total production rises versus each producing both goods themselves.\n\nRicardo's full argument:\n\n> \"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.\"\n>\n> — Ricardo (1817), ch. 7.\n\nThe 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.\n\nFor founders and operators, the framework's most operationally important applications:\n\n**Founder time allocation.** Marc Andreessen articulated this clearly in his 2007 essay \"The Pmarca Guide to Personal Productivity\":\n\n> \"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"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"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","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":2022,"uniquenessScore":48,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-11T23:49:51.606Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-11T23:49:51.606Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-14T15:04:56.201Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}