variable-map

A literature-based variable dictionary for empirical research. It compares how a research concept is measured, where its data comes from, what role it plays in a statistical model, and whether the current project can use it.

In plain words
What is it for?
Use it to compare measures of concepts such as ESG or managerial short-termism, record data sources and sample frequency, and identify risks or missing work before analysis.
Why use it?
It brings scattered information from papers, datasets, models, and variable notes into one comparison. It keeps different measurement definitions separate and marks missing project data or evidence.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lambenthan/empiricalwiki/variable-map
Any agent
npx skills add Lambenthan/empiricalwiki --skill variable-map
Clone the repo
git clone --depth 1 https://github.com/Lambenthan/empiricalwiki

Made for: Claude Code, Codex.

Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 499 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00028 $0.00499
Opus 5 $0.00014 $0.00249
Sonnet 5 $0.00006 $0.00100
Haiku 4.5 $0.00003 $0.00050

Measured 2d ago against content hash ed93d4bc167e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

variable-map scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/variable-map/SKILL.md · 59 lines

What it actually says

/variable-map

把分散在文献卡片里的变量信息整理成可执行的变量字典。适合回答“耐心资本怎么测算”“管理者短视有哪些口径”“ESG 用哪个数据源”。

Workflow

Step 1: Locate Relevant Pages

读取:

  • wiki/variables/*.md
  • wiki/papers/*.md
  • wiki/datasets/*.md
  • wiki/models/*.md
  • 当前项目的 README.mdraw/notes/research-intent.md(如果存在)

按变量名称、别名、构念、角色、标签和 source_papers 匹配。

Step 2: Build the Comparison Table

输出表格至少包含:

字段 含义
变量/构念 如耐心资本、ESG、管理者短视
模型角色 被解释变量、核心解释变量、中介、调节、控制等
测算口径 公式或文本描述
数据来源 数据库、表名、项目路径
样本频率 firm-year、quarter 等
来源文献 wiki paper slug
优点 为什么可用
风险 内生性、口径争议、缺失值、复现难点
项目可用性 已有 / 缺失 / 需要手工整理

Step 3: Archive

生成:

wiki/outputs/variable-map-{slug}-{YYYY-MM-DD}.md

并追加日志:

python3 tools/research_wiki.py log wiki "variable-map | <variable> | output: outputs/<file>"

Constraints

  • 只比较 wiki 或本地项目中已有证据,不凭常识补数据库表名。
  • 不把不同口径强行合并;口径不同就分行。
  • 如果信息来自论文但本地数据没有,明确写“项目暂缺”。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 59 lines · 28 tokens per session scan A ed93d4bc167e

Subscribe to this mod's changes

variable-map is a skill published in the GitHub repository Lambenthan/empiricalwiki (82 stars, last pushed 2mo ago), licensed MIT. It adds 28 tokens to every session and 499 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.