Claude Code toolset for developing TradingView pine scripts.
npx skills add https://github.com/traderspost/pinescript-agents --skill pine-developerقم بتثبيت هذه المهارة باستخدام واجهة سطر الأوامر (CLI) وابدأ في استخدام سير عمل SKILL.md في مساحة عملك.
A comprehensive Pine Script development environment powered by Claude Code's Skills system. This tool helps you create professional TradingView indicators and strategies with AI assistance.
Just type start to begin!
Clone the repository
git clone https://github.com/TradersPost/pinescript-agents.git
cd pinescript-agents
Install dependencies (for YouTube video analysis)
pip install -r requirements.txt
# Also need FFmpeg for audio processing (optional, for Whisper fallback)
# macOS: brew install ffmpeg
# Ubuntu: sudo apt install ffmpeg
Open in your IDE with Claude Code
# VS Code with Claude extension
code .
# Or use Claude Code CLI
claude
Just type "start" in Claude chat
start
This launches an interactive guide that helps you:
Or jump straight to creating
Create an RSI divergence indicator with alerts
Build a mean reversion strategy using Bollinger Bands
Analyze this video: https://youtube.com/watch?v=...
Other helpful commands:
help - Show all available commandsexamples - List example scriptstemplates - Show quick templatesstatus - Show system status and available skillsThis project uses Claude Code's Skills system - specialized capabilities that automatically activate based on your request. No explicit commands needed!
| Skill | Activates When You... | What It Does |
|---|---|---|
| 📊 pine-visualizer | Ask conceptual questions, share YouTube videos, say "how would I build" | Breaks down trading ideas into implementable components |
| 💻 pine-developer | Say "create", "write", "implement", "code" | Writes production-quality Pine Script v6 code |
| 🐛 pine-debugger | Say "debug", "fix", "error", "not working" | Adds debugging tools and troubleshoots issues |
| 📈 pine-backtester | Say "backtest", "metrics", "win rate", "performance" | Implements comprehensive testing capabilities |
| ⚡ pine-optimizer | Say "optimize", "faster", "improve", "better UX" | Enhances performance and user experience |
| 🎯 pine-manager | Have complex multi-part requests, say "complete trading system" | Orchestrates complex multi-step development |
| 📝 pine-publisher | Say "publish", "release", "documentation" | Prepares scripts for TradingView publication |
You: "Create an RSI indicator"
→ pine-developer skill activates automatically
You: "My script has errors"
→ pine-debugger skill activates automatically
You: "How would I build a mean reversion strategy?"
→ pine-visualizer skill activates automatically
You: "Build a complete trading system with backtesting"
→ pine-manager skill orchestrates multiple skills
pinescript-agents/
├── .claude/
│ ├── skills/ # AI skill configurations (SKILL.md files)
│ ├── commands/ # Slash commands (start, create, video, etc.)
│ └── hooks/ # System hooks for commands
├── docs/
│ ├── docs/ # User guide (concepts, language, FAQ, errors)
│ ├── manual/ # Complete Pine Script v6 reference
│ └── server/ # MCP documentation server
├── templates/ # Ready-to-use templates
│ ├── indicators/ # Indicator templates
│ ├── strategies/ # Strategy templates
│ └── utilities/ # Helper functions
├── projects/ # Your Pine Script projects
├── examples/ # Example scripts
├── tools/ # Utility scripts
├── CLAUDE.md # Claude Code instructions
└── CHANGELOG.md # Version history
Just type these single words in Claude chat:
start - Launch interactive setup guidehelp - Show available commandsstatus - Show system status and available skillsexamples - List all example scriptstemplates - Show quick templateslock - Protect system files (only /projects/ writable)unlock - Allow all file modificationsYou: Analyze this video: https://youtube.com/watch?v=...
Claude: [pine-visualizer extracts transcript, identifies components, creates specification]
You: "Create a moving average crossover indicator"
Claude: [pine-developer creates the indicator with proper inputs and alerts]
You: "Build a strategy that combines RSI, MACD, and volume analysis with proper risk management"
Claude: [pine-manager coordinates multiple skills for complete implementation]
You: "My script is repainting, help me fix it"
Claude: [pine-debugger identifies and fixes repainting issues]
You: "Make my script load faster"
Claude: [pine-optimizer improves calculation efficiency]
You: "Prepare my script for TradingView publication"
Claude: [pine-publisher adds documentation and ensures compliance]
No need for complex commands! Just talk to Claude naturally:
start, help, status, examplesSkills activate automatically based on what you're trying to accomplish.
/projects/| Command | What Happens |
|---|---|
"Create indicator" |
pine-developer activates for implementation |
"Create strategy" |
pine-developer activates with strategy focus |
"Debug my script" |
pine-debugger activates for troubleshooting |
"Add backtesting" |
pine-backtester adds performance metrics |
"Optimize performance" |
pine-optimizer improves efficiency |
"Prepare for publishing" |
pine-publisher adds documentation |
"Build complete system" |
pine-manager orchestrates full workflow |
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - feel free to use this project for any purpose.
For issues, questions, or suggestions:
Ready to create professional Pine Scripts? Open this project in Claude Code and start building!