pinescript-strategy

A guide and set of starting templates for writing TradingView Pine Script v6 trading strategies. It covers how entries, exits, sizing, fees, slippage, alerts, and backtests work, including errors caused by repainting or lookahead.

In plain words
What is it for?
Writing or checking Pine Script strategies, matching live behavior to backtests, handling trading costs and position sizing, avoiding repainting and lookahead errors, and preparing webhook alerts.
Why use it?
It helps prevent a strategy from appearing profitable in historical tests but behaving differently during live trading. It also provides alert payloads for sending trade signals to broker automation.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/jpantsjoha/pinescript-plugin/pinescript-strategy
Any agent
npx skills add jpantsjoha/pinescript-plugin --skill pinescript-strategy
Clone the repo
git clone --depth 1 https://github.com/jpantsjoha/pinescript-plugin

Made for: Claude Code, Codex.

Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,165 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00108 $0.02165
Opus 5 $0.00054 $0.01082
Sonnet 5 $0.00022 $0.00433
Haiku 4.5 $0.00011 $0.00216

Measured yesterday against content hash a3bd9f35a2a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pinescript-strategy 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 yesterday.

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.

.agents/skills/pinescript-strategy/SKILL.md · 225 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. yesterday First seen · 225 lines · 108 tokens per session scan A a3bd9f35a2a0

Subscribe to this mod's changes

pinescript-strategy is a skill published in the GitHub repository jpantsjoha/pinescript-plugin (1 stars, last pushed 24d ago), with no licence file. It adds 108 tokens to every session and 2,165 once invoked, about $0.0005 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

cc-master-skillsmith

当你创建、编辑或审查一个 cc-master skill 时用——尤其是那种纪律型(discipline-enforcing)skill(master-orchestrator-guide、authoring-workflows、本 skill),它的规则 agent 在压力下能合理化掉。Triggers: 新建/修改/审查本仓 skill、加 Rationalization Table / Red Flags / 决策程序、改 SKILL.md 的纪律段或 description;或当你发现自己正打算先动手写 skill 正文、却没先看一个 agent 失败。Do NOT use when 你只是要判断要不要建一个 skill…

nemori-ai/cc-master · 222 tokens

worktree-discipline

Skill "worktree-discipline" from nemori-ai/cc-master, covering cc-master 的 worktree 隔离纪律, 本仓约定(固定,不是选择), 第 0 步 —— 先读清你站在哪, 模式 a —— solo and 模式 b —— fan-out(多 worktree 并行).

nemori-ai/cc-master · 328 tokens

grounding-skill-evals

Use when measuring a cc-master skill — 当你写完一个 skill 的 body 要度量它好不好、要迭代它、或在改 description / 纪律段前后想知道改动有没有用时. Triggers: 写完 body 要量化、给 skill 写 OBJECTIVE.md 或 .design/OBJECTIVE.md、跑 trigger 准确率 eval、改 description 前后比 accuracy、防 description 过拟合 / 防自欺、读 eval 判决. Do NOT use for writing the skill body itself (→…

nemori-ai/cc-master · 175 tokens

curating-skill-portfolios

Use when deciding whether a capability deserves its own skill, whether something should be a skill or a reference, where a new skill belongs, or whether two skills overlap — 当你在判断要不要新建一个 skill、这块该不该独立成 skill 还是塞进某个 reference、一组 skill 的边界与重叠时。Triggers: 立项一个新 skill、重构 skill 版图、"这是 skill 还是 reference"、portfolio 体检、两个…

nemori-ai/cc-master · 204 tokens

requirement-elicitation

通过协作对话挖出用户真实业务痛点、在动手实现前先把需求搞对的心智——本仓 dev 流的需求发现闸(取代 superpowers:brainstorming,让 cc-master 的 dev meta-skill 自洽不外依赖)。Use when: 开始本仓任何 feature / skill / 行为改动之前(动第一下实现之前,无论请求看起来多简单);请求以一个猜出来的方案形态到来而底层问题没说出口("加个按钮" / "给我做个 X");要建模或动手却说不清真实需求、指不出一个它真在疼的具体实例;为一个新问题空间和用户共创词汇;一个请求捆了多个独立子系统、动手前要先拆;作为 master orchestrator…

nemori-ai/cc-master · 309 tokens

authoring-workflows

当你要调用 Workflow 工具,或要写 / 调试 / 启动一个 Claude Code dynamic-workflow 脚本时用——author / debug / launch a Claude Code dynamic-workflow script,当你要写 workflow 脚本时——哪怕你自觉已经懂这套 API。当你发现自己在猜 workflow 引擎的 determinism 或 resume 规则、没查 shape 就伸手够 parallel() / pipeline()、想手写一个 validation linter、或刚被 harness 报错正要 relaunch 时用。先查再猜,别等跑挂了才来。.

nemori-ai/cc-master · 135 tokens