pine-validate

pine-validate is a skill for Claude Code from paulieb89/pinescript-mcp. It costs 171 tokens per session (1,803 once invoked), scanned A, original, MIT.

A checker for Pine Script version 6, the programming language used to create indicators and strategies on TradingView, that verifies function names against the official list.

In plain words
What is it for?
Use it to check whether a Pine Script function such as a technical-analysis or data-request function is valid in version 6, or to review a pasted script for invalid function references.
Why use it?
It helps catch misspelled, renamed, removed, or older-version function calls before running a script.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the pinescript plugin — 2 skills, 1 MCP server shipped together

Good fit Use it to check whether a Pine Script function such as a technical-analysis or data-request function is valid in version 6, or to review a pasted script for invalid function references.

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

Made for: Claude Code.

Or install pinescript, the plugin that ships this one along with the rest of its 2 skills, 1 MCP server.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/paulieb89/pinescript-mcp/pine-validate"><img src="https://agentmods.dev/badge/skills/paulieb89/pinescript-mcp/pine-validate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 171 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,803 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 MCP Rug Pull · line 20
    uvx/uv tool run commands without ==version create a rug-pull risk.
    Fix: Pin the version: uvx package-name==1.2.3
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.00171 $0.01803
Opus 5.5 $0.00068 $0.00721
Sonnet 5.5 $0.00034 $0.00361
Haiku 4.5 $0.00017 $0.00180

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

Security

Grade A, and why

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

plugin/skills/pine-validate/SKILL.md · 172 lines

How it starts

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

pine-validate

Validate Pine Script v6 function references against the v6 allowlist. The authoritative source of truth is the validate_function MCP tool on the pinescript server. Never assert a function is valid from memory — always check via the tool.

When to activate

  • The user pastes a Pine Script snippet and asks "does this compile?", "is this valid Pine v6?", "check this for errors", or similar.
  • The user asks about a single function: "is ta.adx valid?", "does security() exist in v6?", "what replaced study()?".
  • The user asks to audit a script for hallucinated, renamed, or v5-era function references before running on TradingView.

Do not activate for general Pine Script authoring requests — that is the pine skill's job. This skill is read-only validation.

Workflow (mandatory, in order)

Step 1: Parse the input and extract function references

From the user's input, extract every distinct function reference. A function reference is anything that looks like a call site:

  • <namespace>.<func>( — namespaced calls like ta.rsi(, strategy.entry(, request.security(, math.sum(.
  • <func>( — top-level calls like plot(, indicator(, input(.

Apply these filters when extracting:

  • Ignore comments. Pine comments start with //. Skip anything after // on a line.
  • Ignore string literals. Anything inside "..." or '...' is not a call.
  • Ignore definitions. Skip user-defined function definitions of the form myFunc(...) => — those are declarations, not calls against the allowlist.
  • Deduplicate. Validate each unique name once, even if it appears many times in the snippet.

If the user provided only a bare function name (e.g. "is ta.adx valid?"), treat that as a single reference to validate.

Step 2: Validate each reference via validate_function

For each unique function name extracted, call the MCP tool:

validate_function(fn_name="<name>")

The tool returns a ValidationResult object with:

Read the full file on GitHub · 172 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. 1mo ago First seen · 172 lines · 171 tokens per session scan A 73c76265a75c

Subscribe to this mod's changes

pine-validate is a skill published in the GitHub repository paulieb89/pinescript-mcp (9 stars, last pushed 1mo ago), licensed MIT. It adds 171 tokens to every session and 1,803 once invoked, about $0.0007 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

Other skills, from other repositories

a11y-debugging

Uses Chrome DevTools MCP for accessibility (a11y) debugging and auditing based on web.dev guidelines. Use when testing semantic HTML, ARIA labels, focus states, keyboard navigation, tap targets, and color contrast.

ChromeDevTools/chrome-devtools-mcp · 50 tokens

chrome-devtools

Uses Chrome DevTools via MCP for efficient debugging, troubleshooting and browser automation. Use when debugging web pages, automating browser interactions, analyzing performance, or inspecting network requests. This skill does not apply to --slim mode (MCP configuration).

ChromeDevTools/chrome-devtools-mcp · 55 tokens

n8n-error-handling

Wire n8n error handling so failures are loud, structured, and recoverable. Use when building any webhook/API workflow, a scheduled or unattended workflow, or any path where a silent failure would drop user-visible work — and whenever the user mentions error handling, onError, continueErrorOutput, error…

czlonkowski/n8n-mcp · 128 tokens

agentcore-investigation

Investigate Bedrock AgentCore runtime sessions via CloudWatch Logs Insights — resolve session/trace IDs, query OTEL spans, filter noise, build timelines. Use when debugging AgentCore agent sessions, tracing tool calls, or analyzing latency.

awslabs/mcp · 52 tokens

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

backtest-diagnose

Diagnose failed or underperforming backtests, locate the root cause, and fix the issue.

HKUDS/Vibe-Trading · 25 tokens