tcx-calculation

tcx-calculation is a skill for Codex from monarchjuno/tradingcodex. It costs 59 tokens per session (801 once invoked), scanned A, original, Apache-2.0.

A reproducible calculation guide for investment analysis, covering returns, risk, valuation, regression, optimization, scenarios, and portfolio mathematics.

In plain words
What is it for?
Use it to calculate investment metrics from governed datasets or declared private inputs and reuse results only when the inputs match exactly.
Why use it?
It records the data, units, sources, and calculation run so decision-relevant numbers can be checked and reproduced later.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to calculate investment metrics from governed datasets or declared private inputs and reuse results only when the inputs match exactly.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/monarchjuno/tradingcodex/tcx-calculation
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 monarchjuno/tradingcodex --skill tcx-calculation
Clone the repo
git clone --depth 1 https://github.com/monarchjuno/tradingcodex

Made for: 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 tcx-calculation

README.md
[![agentmods](https://agentmods.dev/badge/skills/monarchjuno/tradingcodex/tcx-calculation/github.svg)](https://agentmods.dev/skills/monarchjuno/tradingcodex/tcx-calculation)
Your own site
<a href="https://agentmods.dev/skills/monarchjuno/tradingcodex/tcx-calculation"><img src="https://agentmods.dev/badge/skills/monarchjuno/tradingcodex/tcx-calculation/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 tcx-calculation

Your own site · 80×15
<a href="https://agentmods.dev/skills/monarchjuno/tradingcodex/tcx-calculation"><img src="https://agentmods.dev/badge/skills/monarchjuno/tradingcodex/tcx-calculation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 801 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00059 $0.00801
Opus 5.5 $0.00024 $0.00320
Sonnet 5.5 $0.00012 $0.00160
Haiku 4.5 $0.00006 $0.00080

Measured 3mo ago against content hash 3cc7c36317ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tcx-calculation 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 3mo 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.

workspace_templates/modules/repo-skills/files/.tradingcodex/subagents/skills/shared/tcx-calculation/SKILL.md · 65 lines

How it starts

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

Reproducible Financial Calculation

Use the smallest governed input and leave an auditable Calculation Run whenever the result can affect a conclusion. Keep quick arithmetic that does not support a conclusion explicitly exploratory.

Follow the calculation workflow

  1. Search Dataset and Calculation cards before fetching data or computing.
  2. Inspect only the relevant manifest or run summary. Confirm source lineage, units, currency, timezone, adjustment policy, and knowledge_cutoff.
  3. Reuse a prior result only when prepare_calculation reports an exact fingerprint match. Treat similar runs as references, not cached answers.
  4. Materialize only the needed columns, instruments, and time range. Keep private portfolio or ledger inputs run-scoped; never register them as a Dataset or copy them into scripts, logs, or artifacts.
  5. Create one direct basename-only .py file under $TRADINGCODEX_SCRATCH with native apply_patch. For a conclusion-relevant calculation, call prepare_calculation before execution and use only its declared inputs and outputs.
  6. Run exactly ./tcx-calc <filename.py> from the workspace root on POSIX or .\\tcx-calc.cmd <filename.py> on Windows. Do not invoke system Python, install packages, use heredocs, or pass -c, -m, paths, or extra args.
  7. Call the runner-injected tcx_emit_result global exactly once with one positional object. Never import it, pass keyword arguments, invent wrapper fields, or emit a metrics mapping. Copy the exact typed shape from references/data-runtime.md.
  8. Record success or failure with record_calculation_run. On failure, read its safe error_code and error_message, make one concrete correction, stage a new script basename, prepare a new immutable spec, and retry. Never overwrite a prepared script/result, repeat the same failed code unchanged, install packages, or reuse a failed Run. Stop and hand off as waiting if the same error code recurs after its targeted correction.
  9. Bind accepted calculation_run_ids, Dataset lineage, assumptions, diagnostics, and warnings into the role artifact. Do not cite an exploratory sidecar-free execution as decision evidence.

Read the full file on GitHub · 65 lines

Files

What ships with it

3 files 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. 3mo ago First seen · 65 lines · 59 tokens per session scan A 3cc7c36317ed

Subscribe to this mod's changes

tcx-calculation is a skill published in the GitHub repository monarchjuno/tradingcodex (384 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 59 tokens to every session and 801 once invoked, about $0.0002 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

tcx-calculation compared with skills from other repositories

tcx-calculation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tcx-calculationmonarchjuno/tradingcodexSkill3844mo agoApache-2.0A59Codex
agent-trading-predictorruvnet/rufloSkill83ktodayMITA24Claude Code
agent-agentic-paymentsruvnet/rufloSkill83ktodayMITA22Claude Code
agent-paymentsruvnet/rufloSkill83ktodayMITA15Claude Code
investment-mastersAlphaGBM/investment-mastersSkill6393d agoMITA140Claude Code, Codex
serenity-skillmuxuuu/serenity-skillSkill4.2k1mo agoMITA68Codex
daily-deep-briefKCNyu/clawockSkill27todayMITA76Claude Code, Codex