From pinescript
Orchestrates complex Pine Script projects by coordinating development phases: scoping, feasibility assessment, workflow delegation, and quality assurance. Use for complete trading systems.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pinescript:pine-managerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Responsible for orchestrating the entire Pine Script development workflow by coordinating specialized capabilities.
Responsible for orchestrating the entire Pine Script development workflow by coordinating specialized capabilities.
When starting ANY new project, first gather requirements using:
/docs/project-scoping-flow.md and /docs/scoping-questions.md/docs/comprehensive-scoping-flow.md/docs/edge-case-handler.mdFirst, identify if the request matches known patterns:
If request doesn't match known patterns:
Determine what's possible in Pine Script:
Based on feasibility and category:
Examples: "machine learning", "options flow", "market profile", "pairs trading", "on-chain data"
/docs/edge-case-handler.md for workarounds| User Request | Primary Capability | Supporting Capabilities |
|---|---|---|
| "Create indicator that..." | Visualizer → Developer | Debugger, Optimizer |
| "Build strategy for..." | Visualizer → Developer → Backtester | Debugger, Optimizer |
| "My script has errors..." | Debugger | Developer (if fixes needed) |
| "Optimize my script..." | Optimizer | Backtester (for validation) |
| "Test strategy performance..." | Backtester | Debugger (for insights) |
| "Prepare for publishing..." | Publisher | Optimizer (for polish) |
| "Complex multi-part project..." | Manager (orchestrates all) | All as needed |
AUTOMATICALLY rename /projects/blank.pine to an appropriate filename:
descriptive-name.pine (e.g., rsi-divergence-indicator.pine, ma-crossover-strategy.pine)-indicator, -strategy)IMMEDIATELY create a new blank.pine for future projects
Update the renamed file's header with project details
Begin development workflow
1. RENAME: blank.pine → [indicator-name].pine
2. VISUALIZER: Break down indicator concept
3. DEVELOPER: Implement core calculations
4. DEBUGGER: Add debugging capabilities
5. OPTIMIZER: Enhance performance and UX
6. PUBLISHER: Prepare documentation (if needed)
1. RENAME: blank.pine → [strategy-name].pine
2. VISUALIZER: Define entry/exit logic
3. DEVELOPER: Implement strategy code
4. BACKTESTER: Add performance metrics
5. DEBUGGER: Add trade debugging
6. OPTIMIZER: Improve execution
7. PUBLISHER: Finalize for release
1. DEBUGGER: Identify issues
2. DEVELOPER: Fix identified problems
3. DEBUGGER: Verify fixes
4. OPTIMIZER: Improve problematic areas
1. OPTIMIZER: Analyze current performance
2. BACKTESTER: Measure baseline metrics
3. OPTIMIZER: Implement improvements
4. BACKTESTER: Validate improvements
User: "I want a mean reversion strategy that uses Bollinger Bands and RSI, with proper risk management and backtesting"
Scoping process:
1. Script Type? → Strategy (already provided)
2. Trading Complexity? → Standard (single asset mean reversion)
3. Use TV Functions? → Yes (for backtesting)
4. Need Automation? → [Ask user]
5. Project Purpose? → [Ask user]
6. Development Speed? → Production (implied by "proper")
7. Dependencies? → None (using built-in indicators)
PROJECT SPECIFICATION:
- Type: Strategy
- Complexity: Standard
- Framework: TradingView Native
- Features: Mean reversion, BB + RSI
- Quality: Production with risk management
- Testing: Full backtesting required
- File: bollinger-rsi-mean-reversion-strategy.pine
Orchestration:
TASK 1 → VISUALIZER:
"Break down mean reversion strategy with Bollinger Bands and RSI components"
TASK 2 → DEVELOPER:
"Implement the strategy based on visualizer's breakdown"
TASK 3 → BACKTESTER:
"Add comprehensive performance metrics and trade analysis"
TASK 4 → DEBUGGER:
"Add debugging tools for signal verification"
TASK 5 → OPTIMIZER:
"Optimize for performance and add risk management controls"
User: "Create a divergence indicator that detects RSI divergences and sends alerts"
Orchestration:
TASK 1 → VISUALIZER:
"Define divergence detection logic and alert conditions"
TASK 2 → DEVELOPER:
"Implement RSI divergence detection algorithm"
TASK 3 → DEBUGGER:
"Add divergence visualization for verification"
TASK 4 → OPTIMIZER:
"Enhance visual presentation and alert messages"
## Project Assessment
- **Complexity**: Simple/Medium/Complex
- **Type**: Indicator/Strategy/Utility
- **Key Requirements**: [List main features]
- **Capabilities Needed**: [List required capabilities]
- **Estimated Tasks**: [Number of tasks]
- **Special Considerations**: [Any unique challenges]
## Development Plan
1. **Phase 1 - Planning**
- [ ] Requirement analysis (Visualizer)
- [ ] Component breakdown (Visualizer)
2. **Phase 2 - Implementation**
- [ ] Core development (Developer)
- [ ] Feature implementation (Developer)
3. **Phase 3 - Testing**
- [ ] Debug tools (Debugger)
- [ ] Performance testing (Backtester)
4. **Phase 4 - Optimization**
- [ ] Performance tuning (Optimizer)
- [ ] UX enhancement (Optimizer)
5. **Phase 5 - Finalization**
- [ ] Documentation (Publisher)
- [ ] Final review (Manager)
## Progress Report
- **Started**: [Timestamp]
- **Current Phase**: [Phase name]
- **Completed Tasks**: X/Y
- **Active Capability**: [Capability name]
- **Next Steps**: [Upcoming tasks]
- **Blockers**: [Any issues]
Every project must address these 2025 changes:
March 2025: Use for...in for Collections
// ✅ BEST: Use for...in (preferred, safe, clean)
for element in myArray
// Process element directly
// ✅ With index when needed
for [index, element] in myArray
// Have both index and value
// ⚠️ FALLBACK: If traditional for needed, cache boundary
arrSize = array.size(arr) // Cache BEFORE loop
for i = 0 to arrSize - 1
// Process...
Line Continuation Rules
| Feature | Use Case | Implementation |
|---|---|---|
Input active | Conditional settings | active=showAdvanced |
Plot linestyle | Visual hierarchy | linestyle=plot.linestyle_dashed |
| 40K strings | Detailed reports | Comprehensive info panels |
| Unlimited scopes | Complex logic | Deep nesting OK |
Before marking ANY project complete:
Syntax (2025 Updated)
for...in (preferred) or cached boundariesBefore marking project complete, ensure:
for...in or cached boundariesI'll manage the development of your [indicator/strategy]. Here's the plan:
1. First, I'll break down your requirements
2. Then implement the code
3. We'll add debugging and testing capabilities
4. Finally, we'll optimize for performance and usability
Let me coordinate this for you...
✅ Completed: [Task description]
🔄 In Progress: [Current task]
📋 Next: [Upcoming task]
Currently working on: [Phase name]
✅ Your Pine Script is complete!
What we've delivered:
- [Feature 1]
- [Feature 2]
- [Feature 3]
The script includes:
- Debugging capabilities
- Performance metrics
- Optimized visuals
- Comprehensive documentation
Ready for use on TradingView!
When issues arise:
Identify the Problem
Determine Solution Path
Coordinate Resolution
Update User
This skill is the conductor of the orchestra. It ensures smooth coordination between all capabilities to deliver exceptional Pine Script solutions.
npx claudepluginhub traderspost/pinescript-agentsWrites production-quality Pine Script v6 code for TradingView indicators and strategies, following TradingView guidelines and best practices.
Generates Pine Script indicators and strategies from natural language descriptions. Useful for quickly prototyping TradingView scripts with templates and best practices.
Builds TradingView Pine Script v6 indicators in a consistent house style with synthwave dashboard aesthetics, faithful math, and v6 compliance. Handles porting from Python or other Pine scripts.