translate

translate is a skill for Claude Code from xbklairith/kisune. It costs 46 tokens per session (745 once invoked), scanned A, original, MIT.

A converter for expressing trading strategy documents as framework-independent Python using pandas or as TradingView Pine Script version 5.

In plain words
What is it for?
Use it to prepare strategies for backtesting in Python or for use in TradingView.
Why use it?
It reduces the manual work of rewriting a strategy description into code suitable for testing historical market data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the trading plugin — 4 skills shipped together

Good fit Use it to prepare strategies for backtesting in Python or for use in TradingView.

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

Made for: Claude Code.

Or install trading, the plugin that ships this one along with the rest of its 4 skills.

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 translate

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xbklairith/kisune/translate"><img src="https://agentmods.dev/badge/skills/xbklairith/kisune/translate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 745 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.00046 $0.00745
Opus 5.5 $0.00018 $0.00298
Sonnet 5.5 $0.00009 $0.00149
Haiku 4.5 $0.00005 $0.00075

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

Security

Grade A, and why

translate 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.

trading/skills/translate/SKILL.md · 43 lines

How it starts

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

Strategy Translator

Turn a strategy document into backtest code (Python) or TradingView code (Pine Script) that does exactly what the document says, with no information from the future.

Workflow

  1. Read the strategy document. List every rule: indicators and settings, entry trigger, order timing, stop, exits, sizing, costs, filters.
  2. Resolve gaps. Where the document is ambiguous, pick the conventional reading, and list each choice in your reply and in the code's module docstring.
  3. Write the code following the rules below.
  4. Run it. Execute it on the user's data (or a small synthetic series if none) and report the trade count, win rate, net return, and max drawdown, plus anything suspicious (zero trades, every bar a trade, returns far too good to be true).

Backtest rules (non-negotiable)

  • No lookahead. A signal computed from a candle's close fills at the NEXT candle's open (shift(1), a pending order consumed next bar, or index i + 1). Never fill at the signal bar's own open or close. Higher-timeframe values (a daily MA on 4H bars) come only from completed bars.
  • Standard indicator math. RSI and ATR use Wilder smoothing (ewm(alpha=1/n, adjust=False)); ATR uses true range. State any non-standard choice.
  • Stops are intrabar. Compare each later bar's low (high for shorts) with the stop; if the bar opens beyond it, fill at the open, not the stop price.
  • Costs. Apply fees per side and a slippage parameter on every fill.
  • One place for parameters. Periods, thresholds, multipliers, risk %, and fees live in a parameters object or the function signature, not as literals in the logic.
  • Fail loudly on bad input. Check required columns and sort by time; reject empty data.

Python

Use pandas and numpy when installed; otherwise write the same structure in the standard library and do not install packages without asking. Structure: calculate_indicators(), entry_signal(), exit_signal(), position_size(), and a backtest() loop that tracks equity and returns the trade list, plus a __main__ that runs it on a CSV path.

Read the full file on GitHub · 43 lines

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 Changed · -303 lines · +12 tokens per session 71c67f2d8096
  2. 3mo ago First seen · 346 lines · 34 tokens per session scan A 51cb073a082b

Subscribe to this mod's changes

translate is a skill published in the GitHub repository xbklairith/kisune (4 stars, last pushed 24d ago), licensed MIT. It adds 46 tokens to every session and 745 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-31.

Related

translate compared with skills from other repositories

translate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
translatexbklairith/kisuneSkill424d agoMITA46Claude Code
vnpy-exportHKUDS/Vibe-TradingSkill40kyesterdayMITA40Claude Code, Codex
yfinanceHKUDS/Vibe-TradingSkill40kyesterdayMITA41Claude Code, Codex
tqsdk-trading-and-datashinnytech/tqsdk-pythonSkill5.2k8d agoApache-2.0A88Codex
miniqmt-to-bigqmtlitaolemo/xtquant_big_convertSkill8261mo agoMITA144Claude Code, Codex
ssquantsongshuquant/ssquantSkill1291mo agoMITA0Claude Code, Codex
tushareskloxo/TideTradingSkill1520d agoMITA79Claude Code, Codex