Pine Script Agents skill
Seven skills, three subagents and commands for Claude Code that carry TradingView indicators and strategies from idea to release.
- 241 ★ on the repository
- Last commit
Extended access
Why this level
- Hooks run shell scripts at session start and on file writes, edits and deletions.
- Video analysis uses `yt-dlp` and `youtube-transcript-api` and contacts YouTube from your network.
Install
- Works in
In your terminal, with SkillFoxx CLI
npx skillfoxx add skills/pine-script-agentsDetects the agents on your machine, shows the access level and pins the version.
Other ways to install
Access and checks
How we reviewExtended accessThe tool runs code or makes network calls and only reads external data.
- Hooks run shell scripts at session start and on file writes, edits and deletions.
- Video analysis uses `yt-dlp` and `youtube-transcript-api` and contacts YouTube from your network.
This is third-party code. Review the repository files before installing.
What it does
Pine Script Agents writes TradingView indicators and strategies in Pine Script v6 straight from Claude Code. Seven skills sit in `.claude/skills/`: `pine-visualizer` breaks an idea into components, `pine-developer` writes the code, `pine-debugger` adds debug labels and tables, `pine-backtester` computes strategy metrics, `pine-optimizer` speeds a script up, `pine-manager` runs multi-part projects, and `pine-publisher` prepares the description and checks the TradingView library rules. A skill switches on from the wording of a request: words like "create", "fix", "backtest" or "publish" are enough. Three subagents (`pine-explorer`, `pine-reviewer`, `beginner-helper`), the `/start`, `/create`, `/examples`, `/templates` and `/video` commands, indicator and strategy templates and a Pine Script v6 reference sit alongside. `/video` takes a YouTube link, pulls the captions and turns a trader's explanation into a specification for the future script.
Who it is for. Traders and TradingView indicator authors who write Pine Script with Claude Code and want to take a script from idea to publication.
Good fit when
- You have an indicator idea, such as an RSI divergence with alerts, and need working Pine Script v6 code.
- A script throws an error or repaints, and the cause is hidden inside the closed TradingView environment.
- A strategy is explained in a YouTube video and you want a specification and a first version of the script from it.
- Metrics get added to a strategy: win rate, drawdown and an equity curve.
- A script is being prepared for the TradingView library: description, documentation and a check against the platform rules.
Not a fit when
- You need a bot that places exchange orders by itself: the repository writes indicator and strategy code for TradingView.
- You work in Cursor or Codex: the commands, hooks and subagents are built for Claude Code.
- Your project is in MQL, Python or another language: the reference and templates cover only Pine Script v6.
- You expect ready trading signals: the agent writes code for your idea and does not invent a strategy of its own.
Example request
Create an RSI divergence indicator with alerts in Pine Script v6Limitations
The project works from its own folder: clone the repository and run `claude` in the root so the skills, commands and hooks load. Video analysis needs Python with the packages from `requirements.txt`; videos without captions also need Whisper and FFmpeg. The `.mcp.json` file holds an absolute path from the author's machine, so the documentation server has to be wired up again with your own path. Code has to be pasted into the TradingView editor and checked there, because the repository does not connect to the platform. Backtest results do not guarantee future returns.
How to disable. Delete the cloned folder or move `.claude/skills/` out of the project. Hooks are wired by `.claude/hooks.json`: remove that file and path protection stops working.
FAQ
How do I install Pine Script Agents in Claude Code?
Run `git clone https://github.com/TradersPost/pinescript-agents.git`, enter the folder and start `claude`. The skills in `.claude/skills/` load on their own, and typing `start` in chat opens an interactive guide.
Which Pine Script version do the skills support?
Pine Script v6. The `pine-developer` skill separately covers the 2025 changes: dynamic `for` loop bounds and the new line-wrapping rules inside parentheses.
How do I build a script from a strategy video?
Run `/video` and paste a YouTube link. The command calls `tools/video-analyzer.py`, shows the breakdown and asks whether to move on to implementation.
What do the lock and unlock commands do?
`lock` protects system files so only `projects/` stays writable. `unlock` lifts the protection and allows changes to any file.
Which templates ship with it?
Indicators: RSI divergence, multi-timeframe, support and resistance, VWAP bands, basic RSI. Strategies: breakout, mean reversion, momentum, moving-average cross. Utilities: a debug panel, position sizing with stops, and a trading-session filter.
Discussion
No questions or reviews yet.
Related
SkillsA set of skills for individual investors and traders: market review, stock screening, technical analysis, trade planning, journaling and post-trade review
MCP server that links an agent to a running TradingView Desktop for chart analysis, Pine Script work and alerts
Claude plugin for reading investor filings, sizing portfolio positions and preparing orders for a separate brokerage connector
InvestSkill gives an assistant 34 ready frameworks for analysing US stocks, from company valuation to portfolio risk
68 skills for crypto and DeFi: market APIs, on-chain analysis, backtests, position sizing, liquidity pools and trade taxes
Day Trader skill
The Day Trader skill
11 skills for day trading: chart scanner, news, entry and exit, risk checks and a history replay before any order
README in short
The repository is published under the TradersPost name. The logic used to live in `.claude/agents/`; version 1.3.0 moved it into skills and added video analysis. The plugin manifest in `.claude-plugin/plugin.json` is marked version 2.0.0.
README badge
Original SKILL.md
---
name: pine-developer
description: Writes production-quality Pine Script v6 code following TradingView guidelines and best practices. Use when implementing indicators, strategies, or any Pine Script code. Triggers on requests to create, write, implement, or code Pine Script functionality.
---
# Pine Script Developer
Specialized in writing production-quality Pine Script v6 code for TradingView.
## ⚠️ CRITICAL: Pine Script v6 2025 Updates
**These updates are essential for writing correct, modern Pine Script code:**
### December 2025: Updated Line Wrapping Rules
Expressions in parentheses now support flexible indentation:
```pinescript
// ✅ NOW VALID - Any indentation inside parentheses
plot(series,
title="My Plot", // Can use any indentation
color=color.blue)
// ✅ Also valid
longCondition = (ta.crossover(ema50, ema200) and
rsi < 30 and
volume > ta.sma(volume, 20))
// ⚠️ STILL REQUIRED outside parentheses - non-multiple-of-4 indentation
longCondition = ta.crossover(ema50, ema200) and
rsi < 30 // Must NOT be multiple of 4 spaces
```
### March 2025: BREAKING CHANGE - For Loop Dynamic Boundaries
`for` loops now evaluate `to_num` **before every iteration**, not just once.
**PREFERRED: Use `for...in` loops for collections:**
```pinescript
// ✅ BEST: Use for...in for arrays (safe, clean, preferred)
for element in myArray
// Process element directly