Gsd-skill-creator international-trade
Theory and policy of international economic exchange. Covers comparative advantage (Ricardo, Heckscher-Ohlin), gains from trade, trade policy instruments (tariffs, quotas, subsidies), exchange rate determination, balance of payments, globalization dynamics, trade agreements, and the political economy of protectionism. Use when analyzing why countries trade, who wins and loses from trade, how exchange rates move, or the effects of trade policy interventions.
git clone https://github.com/Tibsfox/gsd-skill-creator
T=$(mktemp -d) && git clone --depth=1 https://github.com/Tibsfox/gsd-skill-creator "$T" && mkdir -p ~/.claude/skills && cp -r "$T/examples/skills/economics/international-trade" ~/.claude/skills/tibsfox-gsd-skill-creator-international-trade && rm -rf "$T"
examples/skills/economics/international-trade/SKILL.mdInternational Trade
International trade examines why countries exchange goods, services, and capital, who benefits and who is harmed, and what policies governments adopt in response. The central insight -- comparative advantage -- is among the most counterintuitive results in all of economics: a country benefits from trade even if it is less productive than its trading partner at everything. This skill covers the classical and modern theories of trade, policy instruments, exchange rate determination, and the political economy of trade agreements.
Agent affinity: smith (comparative advantage, gains from trade), sen (development and trade, global inequality), hayek (free trade, spontaneous order in global markets)
Concept IDs: econ-comparative-advantage, econ-supply-demand, econ-market-structures, econ-gdp-growth
The International Trade Toolbox at a Glance
| # | Topic | Core question | Key framework |
|---|---|---|---|
| 1 | Comparative advantage | Why do countries specialize and trade? | Opportunity cost comparison |
| 2 | Trade models | What determines trade patterns? | Ricardian, Heckscher-Ohlin, new trade theory |
| 3 | Gains and losses | Who wins and who loses from trade? | Stolper-Samuelson, specific factors |
| 4 | Trade policy | How do tariffs and quotas affect markets? | Partial equilibrium welfare analysis |
| 5 | Exchange rates | How are currencies valued? | PPP, interest parity, monetary models |
| 6 | Balance of payments | How do international flows balance? | Current account + capital account = 0 |
| 7 | Globalization | How has trade changed the world economy? | Trade/GDP ratios, GVC integration, inequality |
Topic 1 -- Comparative Advantage
The Ricardian model. David Ricardo (1817) showed that trade is mutually beneficial whenever countries have different opportunity costs of production, regardless of absolute productivity differences. If England can produce cloth at a lower opportunity cost than wine, and Portugal can produce wine at a lower opportunity cost than cloth, both gain by specializing and trading -- even if Portugal is absolutely more productive at both.
Worked example. Suppose Country A can produce 10 units of wheat or 5 units of steel per labor hour. Country B can produce 4 units of wheat or 2 units of steel per labor hour. A has absolute advantage in both goods. But the opportunity costs are: A gives up 2 wheat per steel, B gives up 2 wheat per steel -- identical! No comparative advantage, no gains from trade. Now change B to 4 wheat or 1 steel. B's opportunity cost of steel is 4 wheat. A's is 2 wheat. A has comparative advantage in steel, B in wheat. Trade makes both better off at any exchange rate between 2 and 4 wheat per steel.
Why it is counterintuitive. People naturally think in absolute terms. "If we're worse at everything, how can trade help us?" The answer is opportunity cost: trade frees resources to do what you are relatively best at, even if you are absolutely worse at everything.
Paul Samuelson's observation. When asked by a mathematician to name one proposition in all of social science that is both true and non-trivial, Samuelson nominated comparative advantage. "That it is logically true need not be argued before a mathematician; that it is not trivial is attested by the thousands of important and intelligent men who have never been able to grasp the doctrine for themselves or to believe it after it was explained to them."
Topic 2 -- Trade Models
Heckscher-Ohlin. Countries export goods that use their abundant factor intensively. A labor-abundant country exports labor-intensive goods; a capital-abundant country exports capital-intensive goods. This extends Ricardo by explaining comparative advantage in terms of factor endowments rather than technology.
The Leontief paradox. Leontief (1953) found that the US -- the most capital-abundant country -- exported labor-intensive goods, contradicting Heckscher-Ohlin. Resolutions include human capital (skilled labor is a form of capital), technology differences, and taste biases. The paradox forced trade theory to become more sophisticated.
New trade theory. Krugman (Nobel 2008) showed that economies of scale and product differentiation can generate trade between similar countries with similar factor endowments. Two-thirds of world trade is between rich countries trading similar products (intra-industry trade). This is unexplained by comparative advantage alone but falls naturally out of models with increasing returns and consumer preference for variety.
Gravity model. Trade between two countries is proportional to their economic size (GDP) and inversely proportional to the distance between them. This simple empirical regularity explains 60-80% of bilateral trade variation and is the workhorse of empirical trade analysis.
Melitz model. Melitz (2003) introduced firm heterogeneity into trade theory. Within any industry, firms differ in productivity. Trade liberalization forces the least productive firms to exit (they cannot compete with imports), allows the most productive firms to expand into export markets, and leaves medium firms serving only the domestic market. The result: trade raises average industry productivity even without any individual firm becoming more efficient -- a composition effect. This explains why empirical studies consistently find that exporters are more productive than non-exporters.
Worked multi-model example. Consider two countries, Home and Foreign, both producing wine and cheese. Ricardian model: if Home has lower opportunity cost for cheese, Home exports cheese and imports wine. Heckscher-Ohlin: if cheese is capital-intensive and Home is capital-abundant, same prediction. New trade theory: even if both countries are identical, firms in each country may produce differentiated varieties of cheese and wine, and consumers in both countries buy some of each -- intra-industry trade. Gravity model: the volume of this trade is proportional to the product of their GDPs and inversely proportional to the distance between them. Each model captures a different dimension of the same phenomenon.
Topic 3 -- Gains and Losses
Gains from trade aggregate. Trade increases total surplus in each trading country -- this is the core welfare theorem of trade theory. But the gains are not evenly distributed.
Stolper-Samuelson theorem. Free trade raises the real return to the abundant factor and lowers the real return to the scarce factor. In a capital-abundant country, trade benefits capital owners and hurts workers. In a labor-abundant country, trade benefits workers and hurts capital owners. This is the theoretical foundation for understanding why free trade generates political opposition.
Specific factors model. In the short run, factors of production are immobile between sectors. Workers in import-competing industries lose from trade liberalization even if workers in export industries gain. The adjustment is painful and can take years or decades -- displaced workers face unemployment, wage cuts, and geographic relocation costs.
The China shock. Autor, Dorn, and Hanson (2013) showed that US regions most exposed to Chinese import competition experienced large, persistent declines in manufacturing employment, wages, and labor force participation. The gains from cheaper imports were real but diffuse; the losses were concentrated and devastating. This research reshaped the policy debate about trade adjustment assistance.
Topic 4 -- Trade Policy
Tariffs. A tax on imports. Raises the domestic price above the world price, benefiting domestic producers and the government (tariff revenue) at the expense of domestic consumers. Net welfare effect is negative for a small country (deadweight loss) and potentially positive for a large country that can improve its terms of trade (optimal tariff argument).
Quotas. Quantitative restrictions on imports. Economically similar to tariffs but the "revenue" goes to whoever holds the import licenses (quota rents) rather than the government. More distortionary than tariffs because they eliminate the price signal for quantities above the quota.
Subsidies. Government payments to domestic producers or exporters. Export subsidies violate WTO rules in most cases and invite retaliation. Domestic production subsidies are less trade-distorting than tariffs but still create inefficiency by propping up uncompetitive firms.
Infant industry argument. The strongest theoretical case for temporary protection: a new industry may need time to achieve economies of scale before it can compete internationally. The conditions are stringent -- the industry must be able to eventually survive without protection, and the protection must be temporary and declining. In practice, infant industries often become permanent dependents.
Political economy. Concentrated benefits (producers) vs. diffuse costs (consumers) explains why protectionism persists despite aggregate welfare losses. Olson's logic of collective action: a tariff that costs each consumer $1 but gives each producer $1,000 will attract intense lobbying from producers and no organized resistance from consumers.
Tariff worked example. Home country imports steel at the world price of $500/ton. A $100/ton tariff raises the domestic price to $600. Domestic producers who could not compete at $500 can now sell at $600 -- they gain producer surplus. The government collects $100 per ton on imported steel. Consumers pay $100 more per ton on all steel (imported and domestic). Net welfare effect: the consumer loss exceeds the producer gain plus tariff revenue by two deadweight loss triangles -- one representing inefficient domestic production that displaces cheaper imports, and one representing reduced consumption. For a small country, the tariff is always welfare-reducing. For a large country that can depress the world price by reducing its import demand, a small "optimal tariff" can improve domestic welfare at the trading partner's expense -- but this invites retaliation, and mutual tariffs leave both countries worse off.
Trade agreements and the WTO. The General Agreement on Tariffs and Trade (GATT, 1947) and its successor the World Trade Organization (WTO, 1995) provide a framework for multilateral trade liberalization. Key principles: most-favored-nation (MFN) treatment (tariff reductions extended to all members), national treatment (imports treated the same as domestic goods once inside the border), and dispute settlement (a quasi-judicial mechanism for resolving trade conflicts). Regional trade agreements (NAFTA/USMCA, EU single market, CPTPP) complement the multilateral system but risk diverting trade from more efficient non-member suppliers.
Strategic trade policy. Brander and Spencer (1985) showed that in oligopolistic industries with supranormal profits, a government subsidy can shift profits from foreign to domestic firms. This provides a theoretical justification for industrial policy in imperfectly competitive sectors (e.g., aircraft, semiconductors). The practical problems are immense: governments must pick winners correctly, avoid retaliation, and resist capture by the subsidized industry. The theoretical possibility does not translate easily into reliable policy.
Topic 5 -- Exchange Rates
Determination. In floating exchange rate regimes, currencies are priced in foreign exchange markets by supply and demand. In the long run, purchasing power parity (PPP) holds approximately: currencies adjust so that the same basket of goods costs the same in different countries. In the short run, interest rate differentials, capital flows, and expectations dominate.
Real vs. nominal exchange rate. The nominal exchange rate is the price of one currency in terms of another. The real exchange rate adjusts for price levels: e_real = e_nominal * (P_foreign / P_domestic). The real exchange rate determines competitiveness -- a country with high inflation and a fixed nominal exchange rate experiences real appreciation, making its exports more expensive.
The impossible trinity. A country cannot simultaneously maintain a fixed exchange rate, free capital movement, and independent monetary policy. It must choose two of three. This trilemma explains why the eurozone surrendered monetary independence, why China maintains capital controls, and why most developed countries float their currencies.
Currency crises. When a fixed exchange rate becomes unsustainable (typically because domestic inflation exceeds partner-country inflation, eroding competitiveness), speculative attacks can force a sudden devaluation. The Asian financial crisis (1997), the ERM crisis (1992), and the Argentine default (2001) illustrate different variants of this dynamic.
Worked exchange rate example. If a Big Mac costs $5.50 in the US and 4.50 euros in France, PPP implies an exchange rate of $5.50/4.50 = $1.22 per euro. If the actual exchange rate is $1.10 per euro, the euro is undervalued by 10% according to the Big Mac Index. Over time, we expect the euro to appreciate toward $1.22 as arbitrage (buying cheaper goods in Europe, selling them in the US) drives prices toward parity. In practice, convergence to PPP takes years because of transaction costs, non-traded goods, and trade barriers. The Big Mac Index (The Economist, 1986) is a rough but intuitive test of PPP that highlights persistent currency misalignments.
Interest rate parity. In the short run, exchange rates are driven by interest rate differentials. If US bonds pay 5% and European bonds pay 3%, capital flows toward the US, appreciating the dollar. Covered interest rate parity (using forward contracts to eliminate exchange rate risk) holds precisely in liquid markets. Uncovered interest rate parity (without hedging) holds approximately but deviations persist -- the "forward premium puzzle" shows that high-interest-rate currencies tend to appreciate rather than depreciate as theory predicts.
The Dutch disease. Named after the Netherlands' experience following North Sea gas discoveries in the 1960s. Resource exports (gas, oil, minerals) generate foreign currency inflows that appreciate the real exchange rate, making other exports (manufacturing, agriculture) less competitive. The economy becomes dependent on the resource sector, and when resource prices fall, the industrial capacity that was crowded out cannot be quickly rebuilt. This is a key mechanism in the resource curse discussed in development economics.
Topic 6 -- Balance of Payments
The identity. Current account + capital (financial) account = 0. If a country imports more goods than it exports (current account deficit), it must attract net capital inflows (capital account surplus) to finance the gap. Deficits are not inherently bad -- they can reflect productive investment funded by foreign capital -- but they are unsustainable if they finance consumption.
Twin deficits. A government budget deficit often coincides with a current account deficit because government borrowing absorbs domestic saving, requiring foreign capital to fund investment. The US has run persistent twin deficits since the 1980s, financed by foreign purchases of Treasury securities.
Global imbalances. Large, persistent current account surpluses (China, Germany, Japan) and deficits (US, UK) create tensions. Surplus countries accumulate claims on deficit countries; deficit countries accumulate debt. Whether this is sustainable depends on whether deficit countries are investing productively or consuming beyond their means.
Worked balance of payments example. The US imports $3.5 trillion of goods and services and exports $2.5 trillion, producing a current account deficit of $1 trillion. This means $1 trillion of foreign capital flows into the US annually -- foreigners buy Treasury bonds, corporate bonds, real estate, and stocks. The US "pays for" its trade deficit by selling assets to foreigners. Is this sustainable? If the inflows fund productive investment (factories, technology, infrastructure), the future returns can service the debt. If they fund consumption (government deficits, consumer spending), the debt accumulates without generating the returns needed to repay it. The US current account deficit has been financed largely by foreign central bank purchases of Treasury securities (especially China and Japan), which is sustainable as long as those central banks want to hold dollar assets -- a political as much as an economic condition.
The Triffin dilemma. When a national currency serves as the global reserve currency (the US dollar since 1944), the issuing country must run current account deficits to supply the world with liquid assets. But persistent deficits eventually undermine confidence in the currency. This dilemma, identified by Robert Triffin in 1960, remains unresolved -- the dollar's dominance depends on US deficits that simultaneously sustain and threaten it.
Worked exchange rate crisis example. Thailand in 1997: the baht was pegged to the dollar at 25 baht/dollar. Thai inflation exceeded US inflation, making Thai exports increasingly uncompetitive. Thai firms borrowed heavily in dollars (cheap due to the peg) but earned in baht. When speculators began selling baht, the central bank spent reserves defending the peg. When reserves ran out, the peg broke: the baht fell to 56 baht/dollar. Firms with dollar debts faced doubled repayment costs in baht terms. Banks collapsed, GDP fell 10%, and the crisis spread to Indonesia, South Korea, Malaysia, and Russia. The lessons: fixed exchange rates are fragile when capital is mobile, currency mismatches (borrowing in foreign currency, earning in domestic) amplify crises, and financial contagion can spread rapidly across borders.
Optimal currency areas. Mundell (1961) asked: when should countries share a currency? The conditions are: high labor mobility between regions (so workers can move to where jobs are), similar business cycles (so a single monetary policy fits all members), and fiscal transfers (so regions hit by asymmetric shocks receive automatic support). The eurozone violates all three conditions, which is why it has experienced recurrent crises (Greece, Italy, Spain) that a more flexible exchange rate arrangement could have mitigated.
Topic 7 -- Globalization
The waves. The first globalization (1870-1914): steamships, telegraphs, and the gold standard drove trade/GDP ratios to levels not seen again until the 1990s. The interwar retreat (1914-1945): World War I, protectionism (Smoot-Hawley), and depression collapsed trade. The second globalization (1945-present): GATT/WTO, containerization, ICT, and falling transport costs restored and exceeded pre-1914 integration.
Global value chains. Modern trade is not just finished goods crossing borders. A smartphone's components are designed in one country, fabricated in another, assembled in a third, and sold worldwide. Trade in intermediate goods and tasks has replaced trade in final products as the dominant pattern. This "trade in tasks" means that tariffs on imports can hurt exporters who use imported inputs.
Inequality. Globalization has reduced between-country inequality (as China and India grew) while increasing within-country inequality (as low-skill workers in rich countries faced competition from low-wage countries). The net effect on global inequality is ambiguous and depends on how you weight these opposing forces.
The Elephant Chart. Milanovic (2016) showed that between 1988 and 2008, the biggest income gains went to two groups: the global middle class (largely China and India, around the 50th percentile of global income distribution) and the global top 1%. The biggest losers were the lower-middle class of rich countries (around the 80th percentile globally) -- workers in developed countries who faced import competition and automation simultaneously. This "elephant curve" (shaped like an elephant with a raised trunk at the top) became the most cited visualization in the inequality debate.
Deglobalization and reshoring. Since 2008, trade/GDP ratios have plateaued or declined in many countries. Factors include: the exhaustion of easy gains from Chinese integration, rising geopolitical tensions (US-China trade war, Russia-Ukraine conflict), supply chain vulnerabilities exposed by COVID-19, and strategic reshoring of critical industries (semiconductors, pharmaceuticals, rare earths). Whether this represents a permanent retreat from globalization or a temporary pause remains contested.
Trade and the environment. Trade can worsen environmental outcomes through the scale effect (more production, more pollution) and the pollution haven effect (dirty industries relocate to countries with weak regulation). But trade also improves environmental outcomes through the technique effect (trade spreads cleaner technologies) and the income effect (richer countries demand better environmental quality). The net effect is empirical, not theoretical, and varies by pollutant and country.
Decision Heuristics
When approaching an international trade problem:
- Is it about why countries trade? Start with comparative advantage. Calculate opportunity costs. Check factor endowments (Heckscher-Ohlin). Consider scale economies (new trade theory).
- Is it about who wins and loses? Apply Stolper-Samuelson for long-run factor effects. Apply the specific factors model for short-run industry effects. Consider geographic concentration of losses (China shock).
- Is it about a trade policy? Draw the tariff or quota diagram. Identify consumer loss, producer gain, government revenue, and deadweight loss. Consider the terms-of-trade effect for large countries.
- Is it about exchange rates? Distinguish short-run (interest rate differentials, capital flows) from long-run (PPP). Check the impossible trinity constraints.
- Is it about global imbalances? Use the balance-of-payments identity. Identify whether the deficit finances investment or consumption.
- Is it about a trade agreement? Evaluate trade creation (new trade with more efficient partners) vs. trade diversion (switching from efficient non-members to less efficient members).
Common Mistakes
| Mistake | Why it fails | Fix |
|---|---|---|
| Confusing comparative and absolute advantage | A country can benefit from trade even if it has no absolute advantage | Always compute opportunity costs, not productivity levels |
| Assuming trade is zero-sum | Trade creates surplus; the gains exceed the losses in aggregate | Show total surplus change, then distributional effects |
| Ignoring distributional effects | Aggregate gains mask concentrated losses | Always ask: who gains, who loses, and by how much? |
| Treating trade deficits as "losing" | A deficit means capital inflows; it is not inherently bad | Check what the deficit finances -- investment or consumption |
| Assuming tariffs protect "our" workers | Tariffs raise prices for all consumers and can hurt downstream industries | Trace the full supply chain effects |
| Ignoring retaliation | Unilateral tariffs invite retaliatory tariffs | Analyze the game-theoretic equilibrium, not just the first move |
Cross-References
- smith agent: Comparative advantage, gains from trade, market coordination across borders.
- sen agent: Development implications of trade, global inequality, capability deprivation from trade shocks.
- hayek agent: Free trade as spontaneous order, critique of protectionist planning.
- macroeconomics skill: Open-economy macro, exchange rates, balance of payments.
- public-policy skill: Trade policy instruments, political economy of protection.
- development-economics skill: Trade and development, infant industry debate, structural transformation.
- robinson agent: Market structure effects of trade -- how import competition affects industry concentration.
- microeconomics skill: Game theory applied to trade negotiations and strategic trade policy.
- behavioral-economics skill: Loss aversion and protectionist sentiment; framing effects in trade debates.
- varian agent: Technology market analysis for digital trade, platform economics in cross-border contexts.
Historical Context
Trade theory begins with mercantilism -- the 16th-18th century view that national wealth consists of gold accumulation and that exports are good, imports are bad. Smith (1776) demolished mercantilism by arguing that trade is mutually beneficial, not zero-sum. Ricardo (1817) formalized comparative advantage. Mill (1848) developed the terms of trade and showed that the division of gains depends on relative demand. Heckscher (1919) and Ohlin (1933) explained trade patterns in terms of factor endowments.
The postwar period produced two parallel developments: the institutional architecture of trade liberalization (GATT, 1947; WTO, 1995) and the theoretical revolution that explained the dominant form of modern trade. Krugman's new trade theory (1979, 1980) showed that economies of scale and product differentiation generate trade between similar countries -- explaining intra-industry trade, which Heckscher-Ohlin could not. Melitz (2003) added firm heterogeneity. The "new new trade theory" makes the firm, not the country, the unit of analysis.
The empirical revolution (Autor, Dorn, and Hanson on the China shock; Dix-Carneiro and Kovak on Brazilian trade liberalization) showed that trade's distributional effects are larger, more persistent, and more geographically concentrated than theory predicted. This has shifted the policy debate from whether trade is beneficial (it is, in aggregate) to how to compensate those who lose.
The current moment is characterized by geopolitical fragmentation (US-China decoupling), nearshoring and friend-shoring, concerns about supply chain resilience, and the tension between efficiency (global supply chains) and security (domestic production of critical goods). Trade economics is more policy-relevant than at any time since the 1930s.
Study Path
Beginner. Krugman, Pop Internationalism (1996) -- short, punchy essays debunking common trade fallacies. Then Rodrik, The Globalization Paradox (2011) -- a nuanced view of when trade helps and when it hurts.
Intermediate. Krugman, Obstfeld, and Melitz, International Economics (2022) -- the standard textbook. Covers theory and policy with accessible math. Irwin, Free Trade Under Fire (2020) -- the policy debate.
Advanced. Feenstra, Advanced International Trade (2016) -- the graduate-level treatment with full mathematical derivations. Helpman, Understanding Global Trade (2011) -- accessible synthesis of frontier research by a leading theorist.
Graduate. The primary literature: Ricardo (1817), Heckscher (1919), Krugman (1979, 1980), Melitz (2003), Autor et al. (2013). The Handbook of International Economics (Gopinath, Helpman, and Rogoff, eds.) for comprehensive coverage.
References
- Ricardo, D. (1817). On the Principles of Political Economy and Taxation.
- Krugman, P. R., Obstfeld, M., & Melitz, M. J. (2022). International Economics: Theory and Policy. 12th edition. Pearson.
- Autor, D. H., Dorn, D., & Hanson, G. H. (2013). "The China Syndrome." American Economic Review, 103(6), 2121-2168.
- Feenstra, R. C. (2016). Advanced International Trade. 2nd edition. Princeton University Press.
- Heckscher, E. (1919). "The Effect of Foreign Trade on the Distribution of Income." Ekonomisk Tidskrift, 21, 497-512.
- Rodrik, D. (2011). The Globalization Paradox. W. W. Norton.
- Melitz, M. J. (2003). "The Impact of Trade on Intra-Industry Reallocations and Aggregate Industry Productivity." Econometrica, 71(6), 1695-1725.
- Milanovic, B. (2016). Global Inequality: A New Approach for the Age of Globalization. Harvard University Press.
- Brander, J. A., & Spencer, B. J. (1985). "Export Subsidies and International Market Share Rivalry." Journal of International Economics, 18(1-2), 83-100.
- Stolper, W. F., & Samuelson, P. A. (1941). "Protection and Real Wages." Review of Economic Studies, 9(1), 58-73.
- Krugman, P. R. (1979). "Increasing Returns, Monopolistic Competition, and International Trade." Journal of International Economics, 9(4), 469-479.
- Leontief, W. (1953). "Domestic Production and Foreign Trade: The American Capital Position Re-Examined." Proceedings of the American Philosophical Society, 97(4), 332-349.
- Baldwin, R. (2016). The Great Convergence: Information Technology and the New Globalization. Harvard University Press.