pine-visualizer — Claude Code skill for Pine Script planning
Turns a trading idea or a YouTube tutorial into a Pine Script spec: which indicators, which entry and exit rules, which numbers. Useful before you write the indicator itself.
npx skills add TradersPost/pinescript-agents --skill pine-visualizer -a claude-codeWhat pine-visualizer does
This skill takes a trading concept apart until it reads like instructions for Pine Script. Hand it a YouTube link and it runs the bundled tools/video-analyzer.py: metadata and transcript come in, then the script looks for indicators (RSI, MACD, EMA and the like), chart patterns such as breakouts or divergences, entry and exit rules, risk rules, and the exact periods, percentages and levels the presenter mentions. The write-up lands in projects/analysis/ so you can reopen it later.
Descriptions in plain text go through the same filter. The skill pushes custom types (UDTs) first: define the fields each record carries, keep the collection in one array, add methods for drawing and cleanup. It advises storing timestamps rather than bar numbers for anything you draw, since bar numbers stop at the 5000-bar history limit. Loops should use for...in; the classic counter loop with an array bound is easy to get wrong.
The skill can call Read, Glob, Grep, Bash and WebFetch. Video work needs Python; when a clip has no captions, add --whisper, optionally with a larger model. Captions are cached, so a second pass over the same link returns fast. The finished spec is meant to go to the pine-developer skill, so the two are used together.
The analyzer script ships with the repository — without it, video analysis won't start.
What it helps with
- extract entry and exit rules from a YouTube tutorial
- list the indicators and periods a trading idea relies on
- plan storage for chart objects with custom types
- turn a verbal strategy into a Pine Script specification
- catch fragile patterns in an idea, like parallel arrays
Example prompts for the agent
- Analyze this video and pull out the entry and exit conditions: https://youtube.com/watch?v=ABC123
- Plan the UDT structure for this idea, with draw() and delete() methods
- Write a spec for an EMA crossover indicator with explicit periods
How to install pine-visualizer
1Skills CLI (Vercel)
npx skills add TradersPost/pinescript-agents --skill pine-visualizer -a claude-code2Manually: put the files in place
~/.claude/skills/pine-visualizer/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/pine-visualizer/
1Skills CLI (Vercel)
npx skills add TradersPost/pinescript-agents --skill pine-visualizer -a codex2Manually: put the files in place
.agents/skills/pine-visualizer/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add TradersPost/pinescript-agents --skill pine-visualizer -a cursor2Manually: put the files in place
.cursor/skills/pine-visualizer/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install TradersPost/pinescript-agents pine-visualizer2Manually: put the files in place
.github/skills/pine-visualizer/SKILL.md1Skills CLI (Vercel)
npx skills add TradersPost/pinescript-agents --skill pine-visualizer -a gemini-cli2Platform CLI
gemini skills install https://github.com/TradersPost/pinescript-agents --path skills/pine-visualizerManually: put the files in place
.devin/skills/pine-visualizer/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add TradersPost/pinescript-agents --skill pine-visualizer -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-visualizer
How to install pine-visualizer in Claude Code?
Run npx skills add TradersPost/pinescript-agents --skill pine-visualizer -a claude-code. The skill file then sits at ~/.claude/skills/pine-visualizer/SKILL.md.
What does pine-visualizer do?
It decomposes a trading idea or a video into the pieces a Pine Script indicator needs, then hands the resulting spec to the pine-developer skill.
What is required for video analysis?
Python plus the tools/video-analyzer.py script from the skill's repository. Clips without captions need Whisper, enabled with the --whisper flag.