tej-variable-mapper

tej-variable-mapper is a skill for Claude Code, Codex from Nero1688/claude-academic-skills. It costs 333 tokens per session (3,167 once invoked), scanned A, original, MIT.

A mapping guide between variable definitions in international research databases and fields in TEJ, a Taiwanese financial and economic data service. It records the original formulas, possible TEJ fields, accounting differences, and uncertainty.

In plain words
What is it for?
Use it to map study variables from Compustat or CRSP to TEJ fields, check whether each measure is available directly or must be calculated, and document proxy choices.
Why use it?
It reduces the risk of downloading the wrong data because database names, accounting rules, time periods, or return calculations differ between sources.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to map study variables from Compustat or CRSP to TEJ fields, check whether each measure is available directly or must be calculated, and document proxy choices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nero1688/claude-academic-skills/tej-variable-mapper
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.

Any agent
npx skills add Nero1688/claude-academic-skills --skill tej-variable-mapper
Clone the repo
git clone --depth 1 https://github.com/Nero1688/claude-academic-skills

Made for: Claude Code, Codex.

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 tej-variable-mapper

README.md
[![agentmods](https://agentmods.dev/badge/skills/nero1688/claude-academic-skills/tej-variable-mapper/github.svg)](https://agentmods.dev/skills/nero1688/claude-academic-skills/tej-variable-mapper)
Your own site
<a href="https://agentmods.dev/skills/nero1688/claude-academic-skills/tej-variable-mapper"><img src="https://agentmods.dev/badge/skills/nero1688/claude-academic-skills/tej-variable-mapper/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 tej-variable-mapper

Your own site · 80×15
<a href="https://agentmods.dev/skills/nero1688/claude-academic-skills/tej-variable-mapper"><img src="https://agentmods.dev/badge/skills/nero1688/claude-academic-skills/tej-variable-mapper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 333 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,167 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.00333 $0.03167
Opus 5.5 $0.00133 $0.01267
Sonnet 5.5 $0.00067 $0.00633
Haiku 4.5 $0.00033 $0.00317

Measured 7d ago against content hash 796e2012446b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tej-variable-mapper 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 7d 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.

skills/tej-variable-mapper/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TEJ 變數映射師(Variable Mapper)

Step 1|解構文獻變數定義(先寫給人看)

逐一列出文獻中每個變數(Y / X / 調節 / 中介 / 控制)的:

  • 原始文字定義與計算公式(照抄文獻,不要自己改寫語意)。
  • 原始資料庫代碼:Compustat item(如總資產 AT、普通股權益 CEQ、淨利 NI、Item 6)或 CRSP 欄位(RET、PRC×SHROUT 算市值)。
  • 測量頻率與單位(年/季;千元/百萬;原幣別)。 若文獻只給文字沒給代碼,標「推測代碼:AT」並註明「依 Compustat 慣例推測,使用者宜對照原文附錄確認」。

Step 2|映射到 TEJ 欄位(核心,內建不編造防線)

先查種子表(2026-07 新增):references/common-mappings.md 收錄 20 個最常用變數(規模/績效/資本結構/治理所有權/ESG/信用風險)的 Compustat→TEJ 名稱式對照與口徑陷阱。命中就從 80 分起跑,只需補欄位代碼核對;沒命中才走完整推導。注意種子表刻意不含任何欄位代碼——代碼永遠是核對後才寫。

每個變數對到 TEJ:

  • 模組與表:如「企業財務→IFRS 以合併為主簡表(累計)-全產業,文件代碼 wim1a」;治理變數→「TEJ 公司治理/董監股東」;報酬→「TEJ 股價資料庫→股價報酬(日)」。路由不確定時,先用 tej-data-scout 的 catalog 定位,再往下。
  • 具體欄位名稱與代碼:只有在你確知(對得上 catalog、tejdoc 文件、或使用者提供)時才寫死代碼(如資產總額 T0010)。只要不確定,一律寫「推測:TEJ 應有對應『資產總額』欄位,代碼需在 TEJ 介面『資料說明』鈕或 tejdoc wim1a.html 確認」——絕不編造像 T0xxx 的代碼。 編造的代碼會在下載階段才爆,浪費使用者時間。
  • 可得性分級(沿用 scout 語言):【直接】TEJ 有現成欄位/【衍生】TEJ 有原料需自算/【外部】TEJ 無需另尋。

Step 3|落差與代理方案(GAAP↔IFRS、資料庫慣例差異)

逐變數警告可能的衡量誤差,並給代理:

  • 會計準則:美國 US GAAP vs 台灣 IFRS 的科目定義差(研發費資本化與否、商譽、租賃、非常項目、合併範圍)。
  • 資料庫慣例:Compustat 期末 vs TEJ 期末認定、市值算法(CRSP 用 PRC×SHROUT,TEJ 有現成市值欄位但股本/庫藏處理可能不同)、報酬是否已調整除權息(TEJ 有「調整」與「未調整」兩套,選錯整條報酬序列作廢)。
  • 無現成欄位時的代理:如 Tobin's Q,TEJ 無現成欄位,給近似式 (市值+負債帳面)/總資產,並列出各分子分母對到哪個 TEJ 欄位。

Step 4|三欄對照表 + 假說對帳表(輸出,見 output_contract)

先產出「假說→變數→資料欄位」對帳表(防變數誤用),確認每個假說用到的變數都在表中、無遺漏、無一變數被誤用到兩個假說;再產出三欄映射對照表。

<output_contract> 兩張表,缺一不可:

Read the full file on GitHub · 92 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago Changed · +1 lines 796e2012446b
  2. 1mo ago Changed · -1 lines 21ddb3cff4d1
  3. 1mo ago First seen · 92 lines · 333 tokens per session scan A 1aa2737dfa48

Subscribe to this mod's changes

tej-variable-mapper is a skill published in the GitHub repository Nero1688/claude-academic-skills (13 stars, last pushed 5d ago), licensed MIT. It adds 333 tokens to every session and 3,167 once invoked, about $0.0013 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-31.

Related

Other skills, from other repositories

alterlab-alpha-vantage

Accesses real-time and historical stock market data, forex rates, cryptocurrency prices, commodities, economic indicators, and 50+ technical indicators via the Alpha Vantage API (requires a free API key from alphavantage.co). Use when fetching stock prices (OHLCV), company fundamentals (income statement, balance…

AlterLab-IEU/AlterLab-Academic-Skills · 138 tokens

agb-bei-kreditvertraegen-verbraucherdarlehen

Für AGB bei Kreditverträgen Verbraucherdarlehen: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt.

Klotzkette/claude-fuer-deutsches-recht · 49 tokens

agb-in-kapitalanlagen-effektenhandel

Für AGB in Kapitalanlagen Effektenhandel: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt.

Klotzkette/claude-fuer-deutsches-recht · 41 tokens

bookkeeping-close

Runs small and midsize business bookkeeping operations - categorizes bank and card transactions to a chart of accounts, reconciles a bank or card statement against the ledger, works a month-end close checklist, and produces a close package for the accountant. Works from QuickBooks Online, Xero, bank CSV/OFX, or…

OneWave-AI/claude-skills · 174 tokens

sec-filing-puller

Pulls financial statement numbers for US public companies straight from SEC EDGAR's free official XBRL APIs (companyfacts, companyconcept, frames, submissions) into a cited table. Every value carries its accession number, form, fiscal period, filed date, XBRL tag and a link to the filing, and the tool handles…

OneWave-AI/claude-skills · 198 tokens

budget-optimizer

Analyze spending patterns and find savings. 50/30/20 rule, subscription audit, debt payoff strategies, emergency fund roadmap.

OneWave-AI/claude-skills · 30 tokens