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
npx skills add franklee16/academic-research-skills --skill general-equilibrium-model-builder -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/general-equilibrium-model-builder/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/general-equilibrium-model-builder/
1Skills CLI (Vercel)
npx skills add franklee16/academic-research-skills --skill general-equilibrium-model-builder -a codex2Manually: put the files in place
.agents/skills/general-equilibrium-model-builder/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add franklee16/academic-research-skills --skill general-equilibrium-model-builder -a cursor2Manually: put the files in place
.cursor/skills/general-equilibrium-model-builder/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install franklee16/academic-research-skills theory-skills/general-equilibrium-model-builder/SKILL.md2Manually: put the files in place
.github/skills/general-equilibrium-model-builder/SKILL.md1Skills CLI (Vercel)
npx skills add franklee16/academic-research-skills --skill general-equilibrium-model-builder -a gemini-cli2Platform CLI
gemini skills install https://github.com/franklee16/academic-research-skills --path theory-skills/general-equilibrium-model-builderManually: put the files in place
.devin/skills/general-equilibrium-model-builder/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.