pine-developer — Claude Code skill: what it does, how to install
Generates indicators and trading strategies in Pine Script v6 for TradingView. It enforces modern syntax rules and avoids common scope errors.
npx skills add TradersPost/pinescript-agents --skill pine-developer -a claude-codeWhat pine-developer does
This skill guides coding assistants to produce valid Pine Script v6 code for TradingView. It injects knowledge about recent 2025 updates into the prompt. The agent learns flexible indentation inside parentheses alongside the strict requirement for non-multiple-of-4 spacing outside them. It also enforces user-defined types (UDTs) for complex data models before writing execution logic.
Dynamic boundary evaluation in for loops is a critical pitfall. Pine Script v6 recalculates the end boundary on every iteration. Expanding an array inside a standard loop triggers an infinite loop. The skill directs the model to pick for...in iterators or store boundaries in separate variables beforehand.
Function scope limits are handled explicitly. Pine Script forbids calling plot() inside local blocks such as conditionals or functions. The assistant solves this by shifting logic into single-line ternary operators or switching to line.new() and label.new() drawing primitives. The skill enables Read, Write, Edit, Glob, Grep, and Bash tools.
What it helps with
- write trading indicators and strategies in Pine Script v6
- fix indentation errors when wrapping Pine Script expressions
- refactor traditional for loops into safe for...in iterations
- structure complex indicator data using custom user-defined types
Example prompts for the agent
- Write an RSI indicator in Pine Script v6 using the active parameter for inputs
- Convert this Pine Script array loop to for...in so it does not loop infinitely
- Create an EMA crossover strategy using user-defined types for order data
How to install pine-developer
1Skills CLI (Vercel)
npx skills add TradersPost/pinescript-agents --skill pine-developer -a claude-code2Manually: put the files in place
~/.claude/skills/pine-developer/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/pine-developer/
1Skills CLI (Vercel)
npx skills add TradersPost/pinescript-agents --skill pine-developer -a codex2Manually: put the files in place
.agents/skills/pine-developer/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add TradersPost/pinescript-agents --skill pine-developer -a cursor2Manually: put the files in place
.cursor/skills/pine-developer/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install TradersPost/pinescript-agents pine-developer2Manually: put the files in place
.github/skills/pine-developer/SKILL.md1Skills CLI (Vercel)
npx skills add TradersPost/pinescript-agents --skill pine-developer -a gemini-cli2Platform CLI
gemini skills install https://github.com/TradersPost/pinescript-agents --path skills/pine-developerManually: put the files in place
.devin/skills/pine-developer/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add TradersPost/pinescript-agents --skill pine-developer -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about pine-developer
How do I install pine-developer in Claude Code?
Run npx skills add TradersPost/pinescript-agents --skill pine-developer -a claude-code in your terminal. This creates the skill file at ~/.claude/skills/pine-developer/SKILL.md.
What does pine-developer do?
It instructs your AI assistant on Pine Script v6 rules for TradingView, helping it avoid common syntax breaks, scope restrictions, and indentation errors.
Why does pine-developer prioritize for...in loops?
In Pine Script v6, traditional for loops re-evaluate their boundaries on every iteration, which causes infinite loops if collections grow. The for...in syntax handles collections safely.