Skip to main content
skill CX Codex

general-equilibrium-model-builder — Claude Code skill

general-equilibrium-model-builder builds a Walrasian general equilibrium model end to end: the theory write-up plus Julia code that solves for equilibrium prices and allocations in a pure exchange economy.

no license ★ 240 updated 2026-09-18

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add franklee16/academic-research-skills --skill general-equilibrium-model-builder -a claude-code
Open on GitHub

What general-equilibrium-model-builder does

It starts by asking how many goods and consumers you have, which utility functions describe them, what each one is endowed with, and whether you want a derivation, code or both. From there it lays out the consumer's problem, the definition of Walrasian equilibrium, and the usual theorems: Walras' law, the two welfare theorems, Debreu's existence result.

The Julia code normalises one price to 1 and searches over the rest in log space with NLsolve, which keeps every price positive. Allocations come from Marshallian demand, and a separate check tests Pareto efficiency by comparing marginal rates of substitution.

Pure exchange only, so there is no production side. Demand is implemented for Cobb-Douglas alone; CES and Leontief appear in the economy struct, and the solver raises an error on both. Julia with NLsolve and Plots has to be available before the generated code runs.

What it helps with

  • derive the consumer problem and equilibrium definition for a paper
  • solve for equilibrium prices in a pure exchange economy
  • check an allocation for Pareto efficiency
  • build a Cobb-Douglas example for a micro course
  • recompute equilibrium after endowments change

Example prompts for the agent

  • Set up a two-good, two-consumer pure exchange economy with Cobb-Douglas utility and endowments ω¹ = (2, 0), ω² = (0, 3); give me the derivation and the Julia code.
  • Solve for equilibrium prices and check the allocation for Pareto efficiency.
  • What happens to the equilibrium if the first consumer's endowment doubles?

How to install general-equilibrium-model-builder

1Skills CLI (Vercel)

npx skills add franklee16/academic-research-skills --skill general-equilibrium-model-builder -a claude-code

2Manually: put the files in place

~/.claude/skills/general-equilibrium-model-builder/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/general-equilibrium-model-builder/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about general-equilibrium-model-builder

How do I install general-equilibrium-model-builder in Claude Code?

Run npx skills add franklee16/academic-research-skills --skill general-equilibrium-model-builder -a claude-code. The skill file then sits at ~/.claude/skills/general-equilibrium-model-builder/SKILL.md.

What does general-equilibrium-model-builder do?

It drafts a Walrasian general equilibrium model for a pure exchange economy, writes out the theory and its main theorems, and generates Julia code that solves for equilibrium prices and allocations.

Which utility functions can it actually solve?

Cobb-Douglas. CES and Leontief are listed as utility types in the economy struct, but the demand and allocation routines stop with an error on them.

Similar skills

All skills for Science and research →

From the same set98

The whole set →
nan-paper-polish nan-paper-polish refines academic manuscripts and theses in LaTeX while safeguarding equations, citations, terminology, and core claims. CX Codex +1 ★ 240repo stars write-economics-conclusion write-economics-conclusion is a Claude Code skill that drafts, rewrites, and audits conclusions for economics manuscripts, tying claims to the paper’s evidence and limits. CX Codex +1 ★ 240repo stars readecon readecon breaks down an economics paper across six dimensions — from theory and data to applicability in Chinese contexts — and compiles a reading note as a PDF via WeasyPrint. CX Codex +1 ★ 240repo stars make-poster make-poster builds an HTML conference poster from a paper and project site. Edit the layout in a browser, then print it to PDF. CX Codex +1 ★ 240repo stars review-paper-2 review-paper-2 simulates adversarial peer review for academic drafts before journal submission. It stress-tests causal identification, empirical specifications, and framing. CX Codex +1 ★ 240repo stars find-data The find-data skill searches for datasets that could support empirical research and helps compare sources. Use it when a research question needs evidence or suitable data. CX Codex +1 ★ 240repo stars paper-reading-research-framing paper-reading-research-framing turns one stable research lineage into a framing package for a paper: close works, citation support per claim, positioning and a writing blueprint. CX Codex +1 ★ 240repo stars storm-research storm-research conducts multi-angle topic research following the Stanford STORM framework to generate referenced reports. CX Codex +1 ★ 240repo stars

Project sponsors

Companies that keep this analytics open