mph-pine

mph-pine is a skill for Claude Code from mphinance/alpha-skills. It costs 59 tokens per session (2,726 once invoked), scanned A, original, MIT.

A guide for building TradingView indicators in Pine Script version 6. TradingView is a charting platform, and an indicator is a calculation displayed on its charts.

In plain words
What is it for?
Use it to create or port indicators and strategies, add alerts, reproduce a Python scanner in TradingView, and apply the specified synthwave dashboard style.
Why use it?
It keeps the code compatible with the current language version and preserves the original calculations, field names, constants, and thresholds when adapting an existing signal.

Skill for Claude Code

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

Part of the mph-kit plugin — 28 skills, 6 commands, 3 agents shipped together

Good fit Use it to create or port indicators and strategies, add alerts, reproduce a Python scanner in TradingView, and apply the specified synthwave dashboard style.

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

Made for: Claude Code.

Or install mph-kit, the plugin that ships this one along with the rest of its 28 skills, 6 commands, 3 agents.

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 mph-pine

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mphinance/alpha-skills/mph-pine"><img src="https://agentmods.dev/badge/skills/mphinance/alpha-skills/mph-pine.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 2,726 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 164
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.02726
Opus 5.5 $0.00024 $0.01090
Sonnet 5.5 $0.00012 $0.00545
Haiku 4.5 $0.00006 $0.00273

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

Security

Grade A, and why

mph-pine 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.

plugins/mph-kit/skills/mph-pine/SKILL.md · 174 lines

How it starts

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

Mph Pine

Build TradingView Pine Script v6 indicators that look and behave like the mphinance house stable (channels.pine, ghost_dashboard.pine, ghost_alpha.pine). Faithful math, clean v6, a synthwave dashboard, and a compressed AI-readable payload row so Gemini or Sam can read the chart.

When to invoke

Use when the user asks to build, port, or extend a TradingView indicator or strategy: "write a pine indicator", "tradingview indicator for X", "port this Python signal to Pine", "add alerts to my script", "/mph-pine". If the user names an existing engine (a Python scanner, a screener rule), treat that as the source of truth and port it faithfully before adding extras.

Flow

  1. Ground on v6 first. Pull current docs (the context7 / pine-script docs MCP, or tradingview.com/pine-script-docs) before writing. Do not trust v5 muscle memory. Confirm the version line is //@version=6.
  2. Find the source of truth. If porting, read the Python or existing Pine end to end and match field names, constants, and thresholds exactly. Cite the constants in a header comment. Only add new behavior after the faithful port is in place, and say plainly which parts are new.
  3. Scaffold in house style. Header comment block, palette consts, grouped inputs, calculations, draw, plots, alerts, dashboard. See the templates below.
  4. Run the v6 landmine checklist (below) against the finished file.
  5. Scan for em dashes. Search the file for U+2014 and U+2013, including code comments and string literals. Replace with a hyphen or comma. This is the single most common house-rule miss in generated code.
  6. Compile it. There IS a compiler, reachable without a TradingView account:
    ~/projects/pinewright/scripts/pinecheck.sh <file>.pine
    
    Exit 0 clean, 1 errors (line, column, message), 2 unreachable. Loop until clean. Treat CW10003/CW10004 "should be called on each calculation" warnings as errors - they mean the script repaints. Only then hand the script to the clipboard for a paste into TradingView.
  7. Save and offer to ship. Write to docs/pine/<name>.pine in the relevant repo. Offer /ship. Never commit without being asked.

Read the full file on GitHub · 174 lines

Files

What ships with it

2 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. 1mo ago Changed · +7 lines b5746c07967c
  2. 3mo ago First seen · 167 lines · 59 tokens per session scan A 8c84419f1e4a

Subscribe to this mod's changes

mph-pine is a skill published in the GitHub repository mphinance/alpha-skills (34 stars, last pushed 22d ago), licensed MIT. It adds 59 tokens to every session and 2,726 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

mph-pine compared with skills from other repositories

mph-pine next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mph-pinemphinance/alpha-skillsSkill3422d agoMITA59Claude Code
sector-rotationHKUDS/Vibe-TradingSkill40kyesterdayMITA39Claude Code, Codex
strategy-pivot-designertradermonty/claude-trading-skillsSkill9.7kyesterdayMITA28Claude Code, Codex
twitter-readerhimself65/finance-skillsSkill3.6k1mo agoMITA110Claude Code
energy-procurementhashgraph-online/awesome-codex-pluginsSkill1.6kyesterdayApache-2.0A93Claude Code, Codex
airdrop-hunting-guidenirholas/three.wsSkill289todayApache-2.0A54Claude Code, Codex
cim-teardownmicrosoft/cat-agent-skillsSkill124todayMITA139Claude Code, Codex