build-io-sam
Skill4 starsChanged 6 days agoMITView on GitHub
Builds input-output, supply-use and SAM frameworks with multipliers, linkages, multi-regional and environmentally extended extensions.
In this repository210 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/ai-ml-code.mdcCursor rule
- .cursor/rules/code-translation.mdcCursor rule
- .cursor/rules/data-pipelines.mdcCursor rule
- .cursor/rules/documentation.mdcCursor rule
- .cursor/rules/dsge-code.mdcCursor rule
- .cursor/rules/econometrics-code.mdcCursor rule
- .cursor/rules/eviews-code.mdcCursor rule
- .cursor/rules/forecasts.mdcCursor rule
- .cursor/rules/gempack-code.mdcCursor rule
- .cursor/rules/lego-manifests.mdcCursor rule
- .cursor/rules/llm-code.mdcCursor rule
- .cursor/rules/model-code.mdcCursor rule
- .cursor/rules/notebooks-and-scripts.mdcCursor rule
- .cursor/rules/r-code.mdcCursor rule
- .cursor/rules/restricted-data.mdcCursor rule
- .cursor/rules/rl-code.mdcCursor rule
- .cursor/rules/sectoral-trade-climate-code.mdcCursor rule
- .cursor/rules/semi-structural-code.mdcCursor rule
- .cursor/rules/stata-code.mdcCursor rule
- .cursor/rules/tests.mdcCursor rule
- .cursor/rules/validation.mdcCursor rule
- adoptSkill
- ai-auditSkill
- backtestSkill
- build-abmSkill
- build-causal-mlSkill
- build-cgeSkill
- build-climate-macroSkill
- build-deep-forecasterSkill
- build-drl-policySkill
- build-dsgeSkill
- build-financial-programmingSkill
- build-fpasSkill
- build-game-modelSkill
- build-hankSkill
- build-llm-agentsSkill
- build-llm-pipelineSkill
- build-multicountrySkill
- build-neural-solverSkill
- build-rag-kbSkill
- build-semi-structuralSkill
- build-sfcSkill
- build-trade-modelSkill
- calibrate-modelSkill
- calibration-planSkill
- carbon-pricing-analysisSkill
- chart-packSkill
- climate-scenarioSkill
- code-inventorySkill
- code-reviewSkill
- country-typologySkill
- create-exerciseSkill
- data-requirementsSkill
- debt-decompositionSkill
- debt-sustainabilitySkill
- design-trainingSkill
- distributional-analysisSkill
- equivalence-testSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
If a required input is ABSENT, that part is NOT ASSESSED — NO DATA: do not estimate or invent it.
- Very specific: line 29
Collaboration: Follow .claude/docs/collaboration-protocol.md: ask questions first, present options, get approval before writing files, and …
- Distinctive: line 51
Document concordances between classifications
- Distinctive: line 56
Run impact analyses and state the fixed-coefficient limitations alongside results
- Distinctive: line 58
Document concordances, data sources, adjustments and reproduction steps
- Distinctive: line 62
After choosing framework and classification: confirm before construction
- Distinctive: line 63
After balancing: confirm the adjustment sizes are acceptable
- Distinctive: line 64
Before impact runs: confirm the shock definition
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- Generated from .claude/skills/build-io-sam/SKILL.md by tools/sync_agents.py. Edit the source, then run the script. -->/build-io-sam — Build IO SAM
Category: Build · Primary agent: input-output-sam-specialist
Builds input-output, supply-use and SAM frameworks with multipliers, linkages, multi-regional and environmentally extended extensions.
Arguments: whatever the user wrote after the command name.
Purpose
Build an input-output, supply-use or social accounting framework that is balanced, documented and ready for multiplier and impact analysis, or as the benchmark dataset for a CGE model. The output is a reproducible table with automated balance checks, multipliers and linkages, and a clear statement of the fixed-coefficient limits that apply to any impact result.
Use it when the question concerns sectoral linkages, demand-driven multipliers, value-added content of trade, environmental footprints, or when a CGE model needs a benchmark SAM.
Do not use it when prices, substitution and supply constraints matter for the answer (/build-cge) or when the shock propagates mainly through supply bottlenecks (/supply-chain-shock).
Before you start
- Check required inputs. For each input below record
FOUNDorABSENT(never 'assumed'):- Supply-use or input-output tables
- National accounts for the base year
- Classification concordances
If a required input is
ABSENT, that part isNOT ASSESSED — NO DATA: do not estimate or invent it; name what is missing and which skill produces it. If all required inputs are absent, stop and say so.
- Check confidentiality. Identify the data classification level of the inputs (
.claude/docs/confidentiality-and-ai-use.md). Do not proceed with restricted or confidential data in a way the policy does not allow. - Collaboration. Follow
.claude/docs/collaboration-protocol.md: ask questions first, present options, get approval before writing files, and updateproduction/session-state/active.mdafter each approved section.
Agents
input-output-sam-specialist— primary agent; coordinates the work and integrates resultsnational-accounts-specialist— Specializes in national accounts and macro statisticsproduction-networks-specialist— Models production networks and supply chainstrade-gvc-specialist— Models trade and global value chainscarbon-pricing-emissions-specialist— Analyzes carbon pricing and emissions policy
Each agent is defined in .claude/agents/<name>.md. If your tool runs subagents, run these agents as subagents, in parallel where the steps are independent; otherwise read each agent's file and apply its instructions in turn. Subagents only write to the paths named in your instructions.
Key design decisions (present options, let the user choose)
| Decision | Typical options | What it changes |
| Framework | national IO, supply-use, SAM, multi-regional IO | Questions answerable; data needs |
| Technology assumption | industry, product | Symmetric table construction |
| Aggregation | number and grouping of sectors | Aggregation bias; readability |
| Balancing method | RAS, GRAS, cross-entropy | Treatment of negatives; adjustment size |
| Extensions | value added in trade, emissions, employment | Satellite outputs |
Workflow
- Choose the framework (national IO, supply-use, SAM, multi-regional) and the sector classification; ask the user to approve
- Document concordances between classifications
- Construct and balance the tables (RAS/GRAS/cross-entropy where needed); automate balance checks
- Report the size of each adjustment
- Compute Leontief/Ghosh inverses, multipliers, linkages and, if relevant, value-added and environmental extensions
- Distinguish Type I and Type II multipliers; flag Ghosh interpretation limits
- Run impact analyses and state the fixed-coefficient limitations alongside results
- Separate direct, indirect and induced effects; domestic and imported content
- Document concordances, data sources, adjustments and reproduction steps
- Register the model as a lego set (
/lego-map; a stand-alone table uses thecore-io-leontiefbaseplate): a baseplate plus bricks with declared studs (variables, units, timing) and stubs, so components can later be attached, detached or swapped
Checkpoints with the user
- After choosing framework and classification: confirm before construction
- After balancing: confirm the adjustment sizes are acceptable
- Before impact runs: confirm the shock definition
Common pitfalls
- Gross output multipliers reported as value added or welfare
- Summing multipliers across sectors
- Using an outdated table for a changed economy
- Ignoring imports, which overstates domestic effects
Output
models/io-sam/<name>/ (+ model.lego.json)
The folder holds source data, construction and balancing scripts, the balanced table, multiplier and linkage tables, impact-analysis scripts and results, the documentation note and the lego manifest. Every run saves its results to output/<run-id>/ in the model folder, with a run log (.claude/rules/model-code.md).
Gate / verdict
- Row and column totals balance to tolerance
- Hawkins-Simon condition verified
- Adjustments and concordances documented
- Lego manifest passes
python tools/lego.py check - Fixed-coefficient limitations are stated with every impact result
- Impact results separate domestic and imported effects
Suggested next steps
/build-cge/supply-chain-shock/validate-model/lego-map
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

