empiricalwiki: Skill for Claude Code

.claude/skills/variable-map/SKILL.md

variable-map is a skill for Claude Code from Lambenthan/empiricalwiki. It costs 28 tokens per session (499 once invoked), scanned A, original, MIT.

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 Code

Written for Claude Code: argument-hint in frontmatter.

This is Lambenthan/empiricalwiki's own configuration. It tells Claude Code how to work on empiricalwiki itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything empiricalwiki configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 tools/research_wiki.py log wiki "variable-map | <variable> | output: outputs/<file>".

Reuse

Borrowing it

Nothing to install: this file belongs to Lambenthan/empiricalwiki. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Lambenthan/empiricalwiki/main/.claude/skills/variable-map/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Lambenthan/empiricalwiki

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for variable-map

README.md
[![agentmods](https://agentmods.dev/badge/skills/lambenthan/empiricalwiki/variable-map/github.svg)](https://agentmods.dev/skills/lambenthan/empiricalwiki/variable-map)
Your own site
<a href="https://agentmods.dev/skills/lambenthan/empiricalwiki/variable-map"><img src="https://agentmods.dev/badge/skills/lambenthan/empiricalwiki/variable-map/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for variable-map

Your own site · 80×15
<a href="https://agentmods.dev/skills/lambenthan/empiricalwiki/variable-map"><img src="https://agentmods.dev/badge/skills/lambenthan/empiricalwiki/variable-map.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00028 $0.00499
Opus 5.5 $0.00011 $0.00200
Sonnet 5.5 $0.00006 $0.00100
Haiku 4.5 $0.00003 $0.00050

Measured 1mo ago against content hash ed93d4bc167e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.md、raw/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. 1mo 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 (96 stars, last pushed 4mo ago), licensed MIT. It adds 28 tokens to every session and 499 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

audit-reproducibility

Enforce the replication-protocol.md rule by cross-checking numeric claims in a manuscript against the actual R / Stata / Python outputs. Report PASS/FAIL per claim against tolerance thresholds. Use before submission and before releasing a replication package.

pedrohcgs/claude-code-my-workflow · 54 tokens

review-paper

Comprehensive manuscript review with three modes: single-pass (default), --adversarial critic-fixer loop, and --peer [journal] simulated peer-review pipeline (editor + 2 dispositioned referees + editorial decision, calibrated to a target journal). R&R continuation via --peer --r2/--r3; hostile-editor stress test via…

pedrohcgs/claude-code-my-workflow · 0 tokens

grant-proposal

Scaffold a research grant proposal (NSF, NIH, ERC, or foundation) by composing existing primitives — pulls identification strategy from an /interview-me spec, delegates the data-management plan to /data-management-plan and the facilities statement to /capture-environment, and emits a funder-requirements checklist. Use…

pedrohcgs/claude-code-my-workflow · 131 tokens

capture-environment

Snapshot the computational environment for a replication package — detects the analysis stack (R / Stata / Python) and emits the right lockfiles (renv.lock + sessionInfo.txt, requirements.txt / environment.yml / uv.lock, Stata version + ado package list), records seeds and RNG kind, optionally writes a pinning…

pedrohcgs/claude-code-my-workflow · 139 tokens

data-management-plan

Draft a funder-compliant Data Management Plan (NSF DMP, NIH DMS Policy 2023, ERC, Horizon Europe) by composing the confidential-data and environment-capture primitives. Sections cover data description, formats/metadata, storage/backup, access/sharing, preservation/archiving, and roles. Use when user says "data…

pedrohcgs/claude-code-my-workflow · 143 tokens

power-analysis

Compute statistical power, required sample size, and minimum detectable effect (MDE) for a study design, then write a registry-ready power section. Handles two-arm RCTs (with clustering / ICC and unequal allocation), multiple-arm corrections, and a simulation-based power option for non-standard designs…

pedrohcgs/claude-code-my-workflow · 150 tokens