# general-equilibrium-model-builder

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 240 repo stars
- Author: Abhimanyu Nag
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/franklee16/academic-research-skills/tree/HEAD/theory-skills/general-equilibrium-model-builder/SKILL.md
- Updated: 2026-09-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/general-equilibrium-model-builder

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add franklee16/academic-research-skills --skill general-equilibrium-model-builder -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/general-equilibrium-model-builder/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/general-equilibrium-model-builder/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add franklee16/academic-research-skills --skill general-equilibrium-model-builder -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/general-equilibrium-model-builder/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add franklee16/academic-research-skills --skill general-equilibrium-model-builder -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/general-equilibrium-model-builder/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install franklee16/academic-research-skills theory-skills/general-equilibrium-model-builder/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/general-equilibrium-model-builder/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add franklee16/academic-research-skills --skill general-equilibrium-model-builder -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/franklee16/academic-research-skills --path theory-skills/general-equilibrium-model-builder
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/general-equilibrium-model-builder/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/franklee16/academic-research-skills/tree/HEAD/theory-skills/general-equilibrium-model-builder/SKILL.md

## When to use it
- 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
- 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?

## Similar
- [julia](https://affpapa.org/en/nevibecode/skills/julia.md) — skill · 732 installs
- [julia-pro](https://affpapa.org/en/nevibecode/agents/julia-pro.md) — subagent · ★ 42780 repo stars
- [julia-development](https://affpapa.org/en/nevibecode/plugins/julia-development.md) — plugin · ★ 42780 repo stars
- [grant-thinking-general](https://affpapa.org/en/nevibecode/skills/grant-thinking-general.md) — skill · 301 installs
- [general-counsel-advisor](https://affpapa.org/en/nevibecode/skills/general-counsel-advisor.md) — skill · 461 installs
- [latex-econ-model](https://affpapa.org/en/nevibecode/skills/latex-econ-model.md) — skill · 147 installs

From the same set: [franklee16/academic-research-skills](https://affpapa.org/en/nevibecode/by/franklee16/academic-research-skills.md) — 98 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
