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,032 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,032 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.03032
Opus 5 $0.00167 $0.01516
Sonnet 5 $0.00067 $0.00606
Haiku 4.5 $0.00033 $0.00303

Measured 5d ago against content hash 21ddb3cff4d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 5d 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 · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 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 欄位(核心,內建不編造防線)

每個變數對到 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)

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

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

表一:假說→變數→資料欄位對帳表(L-002 防呆)

假說 角色 變數名 TEJ 欄位/代碼 可得性 對帳狀態
H1 X 家族控制 控制持股與結構(待確認欄位) 衍生 需自訂操作型定義
用途:確保每個假說的每個變數都對得到一個且僅一個資料來源;一變數被兩個構念共用時紅旗(正是 L-002 「RPT 誤代 TNFD 虛擬變數」的病根)。

Read the full file on GitHub · 91 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. 5d ago Changed · -1 lines 21ddb3cff4d1
  2. 10d 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 (6 stars, last pushed 7d ago), licensed MIT. It adds 333 tokens to every session and 3,032 once invoked, about $0.0017 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-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

amazon-returns-recovery

Suede-affiliated Amazon money-recovery audit for restocking fees, short or denied refunds, and Amazon-billed subscriptions. Use when the user mentions a restocking fee, a short or denied Amazon refund, or a forgotten Prime Video Channel, Audible, Kindle Unlimited, or Prime charge, or asks whether Amazon still owes or…

JasonColapietro/suede-creator-skills · 138 tokens

subscription-recovery

Suede-owned recovery discipline for recurring charges billed outside Amazon: App Store, Google Play, PayPal, direct-bill streaming, gyms, news, and SaaS. Use when the user wants to find, audit, cancel, or dispute a subscription they may have forgotten, is being charged for twice, or no longer uses. Every cancellation…

JasonColapietro/suede-creator-skills · 150 tokens

stripe-payments

Add Stripe payments to a web app — Checkout Sessions, Payment Intents, subscriptions, webhooks, customer portal, and pricing pages. Covers the decision of which Stripe API to use, produces working integration code, and handles webhook verification. No MCP server needed — uses Stripe npm package directly. Triggers…

jezweb/claude-skills · 101 tokens