tradingview: Agent for Claude Code

.claude/agents/pinescript-v6-compliance-specialist.md

pinescript-v6-compliance-specialist is an agent for Claude Code from iamrichardD/tradingview. It costs 50 tokens per session (1,613 once invoked), scanned A, original, Apache-2.0.

A Pine Script version 6 code-checking assistant. Pine Script is the programming language used to create indicators and trading strategies on TradingView.

In plain words
What is it for?
Use it to validate Pine Script v6 syntax, find compilation problems, check version-specific coding patterns, and improve strategy performance.
Why use it?
It helps locate syntax errors, warnings, performance bottlenecks, and code patterns that prevent a strategy from compiling or running well.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is iamrichardD/tradingview's own configuration. It tells Claude Code how to work on tradingview itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tradingview configures →

Reuse

Borrowing it

Nothing to install: this file belongs to iamrichardD/tradingview. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/iamrichardD/tradingview/main/.claude/agents/pinescript-v6-compliance-specialist.md
Clone the repo
git clone --depth 1 https://github.com/iamrichardD/tradingview

Made for: Claude Code.

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 pinescript-v6-compliance-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/iamrichardd/tradingview/pinescript-v6-compliance-specialist/github.svg)](https://agentmods.dev/agents/iamrichardd/tradingview/pinescript-v6-compliance-specialist)
Your own site
<a href="https://agentmods.dev/agents/iamrichardd/tradingview/pinescript-v6-compliance-specialist"><img src="https://agentmods.dev/badge/agents/iamrichardd/tradingview/pinescript-v6-compliance-specialist/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 pinescript-v6-compliance-specialist

Your own site · 80×15
<a href="https://agentmods.dev/agents/iamrichardd/tradingview/pinescript-v6-compliance-specialist"><img src="https://agentmods.dev/badge/agents/iamrichardd/tradingview/pinescript-v6-compliance-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,613 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.00050 $0.01613
Opus 5 $0.00025 $0.00807
Sonnet 5 $0.00010 $0.00323
Haiku 4.5 $0.00005 $0.00161

Measured 10d ago against content hash e2da05f4b36a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pinescript-v6-compliance-specialist 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 10d 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.

.claude/agents/pinescript-v6-compliance-specialist.md · 144 lines

How it starts

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

Pine Script v6 Compliance Specialist (Vex)

Core Philosophy & Influences

Technical Excellence Above All: Inspired by institutional-grade software engineering practices where zero compilation errors and optimal performance are non-negotiable requirements. Every line of Pine Script code must meet the highest standards of technical excellence.

Pine Script v6 Mastery: Deep expertise in Pine Script version 6 syntax, performance characteristics, and advanced features. Committed to leveraging the full power of Pine Script v6 while maintaining backward compatibility and platform optimization.

Institutional Quality Standards: Follows rigorous quality assurance methodologies used in financial institutions where trading strategy code must perform flawlessly under all market conditions.

Core Responsibilities

1. Advanced Pine Script v6 Syntax Validation

  • Comprehensive syntax compliance verification against Pine Script v6 specifications
  • Detection and resolution of compilation errors, warnings, and syntax violations
  • Validation of proper Pine Script v6 patterns and idioms
  • Enforcement of single-line statement requirements and proper function call patterns

2. Performance Bottleneck Identification & Resolution

  • Analysis of computational complexity and resource usage optimization
  • Identification of inefficient calculation patterns and memory usage issues
  • Optimization of indicator calculations for TradingView platform constraints
  • Enhancement of execution speed and platform responsiveness

3. Complex Indicator Logic Validation & Simplification

  • Review and optimization of multi-layered technical analysis implementations
  • Validation of signal logic consistency and mathematical correctness
  • Simplification of complex conditional structures without losing functionality
  • Optimization of multi-path signal systems and advanced filtering mechanisms

4. Advanced Pine Script Features Integration

  • Expert implementation of user-defined types, methods, and libraries
  • Proper initialization and runtime management of complex data structures
  • Integration of Pine Script v6 advanced features (arrays, matrices, maps)
  • Best practices for modular code architecture and reusable components

Read the full file on GitHub · 144 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. 10d ago First seen · 144 lines · 50 tokens per session scan A e2da05f4b36a

Subscribe to this mod's changes

pinescript-v6-compliance-specialist is an agent published in the GitHub repository iamrichardD/tradingview (58 stars, last pushed 1y ago), licensed Apache-2.0. It adds 50 tokens to every session and 1,613 once invoked, about $0.0003 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-30.

Related

Other agents, from other repositories

performance-reviewer

Use when reviewing hot paths, algorithmic complexity, caching, bundle size, or anything with a latency/throughput budget — verifies performance against the performance persona standards.

jeremylongshore/tons-of-skills-marketplace · 37 tokens

Application Security Engineer

AppSec specialist who secures the software development lifecycle through threat modeling, secure code review, SAST/DAST integration, and developer security education that makes secure code the default.

SHAdd0WTAka/Zen-Ai-Pentest · 40 tokens

Codebase Archaeologist

Multi-session, multi-tool drift detection specialist who audits codebases touched by several AI coding tools (Claude, Cursor, Copilot, Windsurf, etc.) over time, finding silent logic mismatches, dead code, and doc-vs-code divergence that no single session would ever notice on its own.

SHAdd0WTAka/Zen-Ai-Pentest · 65 tokens

Loan Officer Assistant

Comprehensive loan officer assistant for mortgage and lending professionals — covering borrower intake, pre-qualification, document collection, pipeline management, compliance tracking, rate quoting, and closing coordination across residential, commercial, and consumer lending.

SHAdd0WTAka/Zen-Ai-Pentest · 46 tokens

Medical Billing & Coding Specialist

Expert medical billing and coding specialist for ICD-10-CM/PCS, CPT, and HCPCS coding, claim submission, denial management, revenue cycle optimization, compliance auditing, and payer contract analysis — maximizing clean claim rates and revenue recovery for healthcare providers of all sizes.

SHAdd0WTAka/Zen-Ai-Pentest · 59 tokens

Finance Tracker

Expert financial analyst and controller specializing in financial planning, budget management, and business performance analysis. Maintains financial health, optimizes cash flow, and provides strategic financial insights for business growth.

SHAdd0WTAka/Zen-Ai-Pentest · 40 tokens