pine-validate

pine-validate is a skill for Claude Code, Codex 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 CodeCodex

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

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/paulieb89/pinescript-mcp/pine-validate
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, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00171 $0.01803
Opus 5 $0.00086 $0.00901
Sonnet 5 $0.00034 $0.00361
Haiku 4.5 $0.00017 $0.00180

Measured 4d ago against content hash 73c76265a75c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 7d ago), licensed MIT. It adds 171 tokens to every session and 1,803 once invoked, about $0.0009 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

add-data-source

Use when adding a new external data source (API, scraper, etc.) to propertycore. Walks through the complete 6-step process with patterns from existing implementations.

paulieb89/property-shared · 38 tokens

add-mcp-tool

Use when adding a new MCP tool to the property MCP server (mcpserver/server.py). Provides the exact pattern with a copy-paste template.

paulieb89/property-shared · 35 tokens

add-endpoint

Use when adding a new API endpoint to app/api/v1/. Covers router creation, registration, and response patterns.

paulieb89/property-shared · 27 tokens

property-report

UK property analysis: comparable sales, EPC ratings, rental yields, stamp duty, market context. Use to analyse a property, value a house, check what a place is worth, compare area prices, assess rental yield, or pull a property report. Trigger on any request involving a specific UK address or postcode where the user…

paulieb89/property-shared · 92 tokens

property-search

UK property deal sourcing and investment screening. Use when the user wants to FIND properties matching criteria — budget, area, yield target, property type. Triggers on searching and browsing intent: "find me", "source deals", "what's available in", "looking for BTLs", "search for properties under £X", "show me flats…

paulieb89/property-shared · 99 tokens

design-trends-2026

Apply 2026's top graphic design trends to any creative brief. Based on Kittl × Savee's 2026 Design Trends Report (10 trends + 2 honorable mentions), backed by Adobe, Figma, and Pinterest data. Use when: Designing a brand identity — pick the right aesthetic for your audience; Creating social media assets — use trending…

guia-matthieu/clawfu-skills · 137 tokens