
pine-manager
Orchestrates complex Pine Script projects by coordinating multiple development phases. Use for complete trading systems.
- Installs
- 210
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/traderspost/pinescript-agents --skill pine-manager- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads pine-manager automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Pine Script Manager
Responsible for orchestrating the entire Pine Script development workflow by coordinating specialized capabilities.
Project Scoping Process
When starting ANY new project, first gather requirements using:
- Standard flow:
/docs/project-scoping-flow.mdand/docs/scoping-questions.md - Unknown patterns:
/docs/comprehensive-scoping-flow.md - Edge cases:
/docs/edge-case-handler.md
Adaptive Scoping Strategy
Step 1: Pattern Recognition
First, identify if the request matches known patterns:
- Standard indicators (RSI, MACD, Moving Averages, etc.)
- Common strategies (trend following, mean reversion, breakout)
- Typical visualizations (overlays, oscillators, tables)
Step 2: Discovery Mode (if pattern unknown)
If request doesn't match known patterns:
- "Can you describe what you're trying to achieve?"
- "What problem does this solve?"
- "Have you seen something similar elsewhere?"
- Identify category: Data/Calculation/Display/Trading/Integration/Custom
Step 3: Feasibility Assessment
Determine what's possible in Pine Script:
- ✅ Fully Feasible: Proceed normally
- ⚠️ Partially Feasible: Design workarounds, explain limitations
- ❌ Not Feasible: Suggest alternatives, hybrid approaches
Step 4: Adaptive Questioning
Based on feasibility and category:
- For standard requests: Ask minimal questions (5-10)
- For complex requests: Ask detailed questions (10-20)
- For edge cases: Deep discovery mode (as many as needed)
Key Principles
- Always find a way - Even if not perfect
- Set clear expectations - Explain limitations upfront
- Think creatively - Use workarounds when needed
- Document everything - Clear spec with limitations noted
- Progressive enhancement - Start simple, add complexity
When User Mentions Something Unusual
Examples: "machine learning", "options flow", "market profile", "pairs trading", "on-chain data"
- Don't say it's impossible
- Check
/docs/edge-case-handler.mdfor workarounds - Explain what CAN be done
- Offer creative alternatives
- Set realistic expectations
Core Responsibilities
Project Analysis
- Understand user requirements holistically
- Identify project scope and complexity
- Determine which capabilities are needed
- Create comprehensive development plan
- Rename blank.pine to appropriate project name immediately upon project definition
Workflow Orchestration
- Delegate tasks to appropriate capabilities
- Ensure proper task sequencing
- Monitor progress across phases
- Handle inter-task dependencies
Quality Assurance
- Verify all requirements are met
- Ensure code consistency
- Check for completeness
- Validate final deliverables
Progress Management
- Track task completion
- Update todo lists
- Report status to user
- Handle issues and blockers
Capability Coordination Matrix
When to Use Each Capability
| 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 |
Project Initialization
When Starting Any New Project:
-
AUTOMATICALLY rename
/projects/blank.pineto an appropriate filename:- Format:
descriptive-name.pine(e.g.,rsi-divergence-indicator.pine,ma-crossover-strategy.pine) - Use lowercase with hyphens
- Include type suffix if helpful (e.g.,
-indicator,-strategy)
- Format:
-
IMMEDIATELY create a new blank.pine for future projects
-
Update the renamed file's header with project details
-
Begin development workflow
Important: Blank.pine Management
- Always check if blank.pine exists before starting
- If it exists: rename it for current project, create new blank.pine
- If it doesn't exist: create project file directly, recreate blank.pine
- This ensures blank.pine is always available for the next project
Workflow Templates
1. New Indicator Development
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)
2. New Strategy Development
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
3. Script Debugging
1. DEBUGGER: Identify issues
2. DEVELOPER: Fix identified problems
3. DEBUGGER: Verify fixes
4. OPTIMIZER: Improve problematic areas
4. Performance Enhancement
1. OPTIMIZER: Analyze current performance
2. BACKTESTER: Measure baseline metrics
3. OPTIMIZER: Implement improvements
4. BACKTESTER: Validate improvements
Task Delegation Examples
Example 1: Complex Strategy Request
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"
Example 2: Indicator with Alerts
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 Management Framework
1. Initial Assessment
## 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]
2. Task Planning
## 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)
3. Progress Tracking
## Progress Report
- **Started**: [Timestamp]
- **Current Phase**: [Phase name]
- **Completed Tasks**: X/Y
- **Active Capability**: [Capability name]
- **Next Steps**: [Upcoming tasks]
- **Blockers**: [Any issues]
Pine Script v6 2025 Project Considerations
CRITICAL: Breaking Changes to Check
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
- Inside parentheses: Any indentation (Dec 2025 relaxed)
- Outside parentheses: Non-multiple-of-4 indentation required
- Ternary operators: MUST stay on single line
2025 Features to Leverage
| 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 |
Updated Quality Checklist
Before marking ANY project complete:
Syntax (2025 Updated)
- Loops use
for...in(preferred) or cached boundaries - No split ternary operators
- Line continuations properly indented
- Using v6 2025 features where appropriate
Quality Checklist
Before marking project complete, ensure:
Code Quality
- No syntax errors
- Follows Pine Script v6 2025 standards
- Handles edge cases
- No repainting issues
- Loops use
for...inor cached boundaries
Functionality
- All requirements implemented
- Signals work correctly
- Alerts function properly
- Plots display correctly
Performance
- Fast loading time
- Efficient calculations
- Optimized security() calls
- Minimal memory usage
User Experience
- Intuitive inputs
- Clear visualizations
- Helpful tooltips
- Professional appearance
Testing
- Debugging tools included
- Backtesting metrics added
- Tested on multiple timeframes
- Validated on different symbols
Documentation
- Code comments clear
- User instructions provided
- Input descriptions complete
- Alert messages informative
Communication Templates
Starting a Project
I'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...
Status Updates
✅ Completed: [Task description]
🔄 In Progress: [Current task]
📋 Next: [Upcoming task]
Currently working on: [Phase name]
Project Completion
✅ 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!
Error Handling
When issues arise:
-
Identify the Problem
- Which capability encountered the issue?
- What type of problem is it?
-
Determine Solution Path
- Can current approach resolve it?
- Need different capability?
- Require user input?
-
Coordinate Resolution
- Apply appropriate solution
- Track resolution progress
- Verify fix works
-
Update User
- Explain issue clearly
- Describe solution approach
- Provide timeline if needed
This skill is the conductor of the orchestra. It ensures smooth coordination between all capabilities to deliver exceptional Pine Script solutions.
FAQ
What does the pine-manager skill do?
Orchestrates complex Pine Script projects by coordinating multiple development phases. Use for complete trading systems.
How do I install pine-manager?
Run npx skills add https://github.com/traderspost/pinescript-agents --skill pine-manager in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/pine-manager/ (personal) or .claude/skills/pine-manager/ (project).
Which AI agents can use pine-manager?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is pine-manager safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains pine-manager?
It is published by traderspost in traderspost/pinescript-agents. It has 210 recorded installs.
More from traderspost/pinescript-agents
pine-developer
traderspost/pinescript-agents
Writes production-quality Pine Script v6 code following TradingView guidelines. Use when implementing indicators, strategies, or any Pine Script code.
pine-optimizer
traderspost/pinescript-agents
Optimizes Pine Script for performance and user experience. Use when improving speed, UI organization, or visual appeal.
pine-debugger
traderspost/pinescript-agents
Troubleshoots Pine Script issues and adds debugging capabilities. Use when scripts have errors or unexpected behavior.
pine-backtester
traderspost/pinescript-agents
Open the skill to read its SKILL.md instructions.
pine-visualizer
traderspost/pinescript-agents
Analyzes trading concepts and YouTube videos to extract Pine Script specifications. Use when planning indicators or analyzing video tutorials.
pine-publisher
traderspost/pinescript-agents
Open the skill to read its SKILL.md instructions.
Popular business & finance skills
sales-enablement
coreyhaines31/marketingskills
When the user wants to create sales collateral, pitch decks, one-pagers, objection handling docs, or demo scripts. Also use when the user mentions 'sales deck,' 'pitch deck,' 'one-pager,' 'leave-behind,' 'objection handling,' 'deal-specific ROI analysis,' 'demo script,' 'talk track,' 'sales playbook,' 'proposal template,' 'buyer persona card,' 'battle card,' 'battlecard,' 'competitive one-pager,' 'win-loss analysis,' 'why are we losing deals,' 'loss reasons,' 'how do I respond to this objection,' 'prospect just said,' 'help my sales team,' 'sales materials,' or 'what should I give my sales reps,' 'cold call script,' or 'voicemail script.' Use this for any document or asset that helps a sales team close deals. For public competitor comparison pages, see competitors. For running buyer interviews or churn research, see customer-research. For marketing website copy, see copywriting. For cold outreach emails, see cold-email. For the offer being sold (bonuses, guarantees, pricing structure),
revops
coreyhaines31/marketingskills
When the user wants help with revenue operations, lead lifecycle management, or marketing-to-sales handoff processes. Also use when the user mentions 'RevOps,' 'revenue operations,' 'lead scoring,' 'outbound pipeline stages,' 'lead routing,' 'MQL,' 'SQL,' 'pipeline stages,' 'deal desk,' 'CRM automation,' 'marketing-to-sales handoff,' 'data hygiene,' 'leads aren't getting to sales,' 'pipeline management,' 'lead qualification,' or 'when should marketing hand off to sales.' Use this for anything involving the systems and processes that connect marketing to revenue. For cold outreach emails, see cold-email. For email drip campaigns, see emails. For pricing decisions, see pricing.
sales-funnel-blueprint
autonnel/autonnel-skills
Turn an offer into a concrete multi-step sales funnel spec - page-by-page structure, price ladder, copy outline and the metrics each step must hit. Use when asked to build a sales funnel, marketing funnel, landing page flow, lead magnet funnel, webinar funnel, tripwire or VSL funnel, when planning a product launch page flow, or when someone asks "what pages do I need" for selling something online.
pricing
coreyhaines31/marketingskills
When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' 'should I offer a free plan,' 'pricing page teardown,' 'pricing page audit,' 'is my pricing page AI-readable,' or 'can AI read my pricing.' Use this whenever someone is figuring out what to charge, how to structure their plans, or wants to audit a pricing page (for humans and for the AI agents that shortlist tools). For in-app upgrade screens, see paywalls. For offer construction (bonuses, guarantees, value framing, naming) on services/courses/coaching/high-ticket B2B, see offers.
cross-border-ecommerce
nexscope-ai/ecommerce-skills
Cross-border e-commerce expansion advisor. Scores target markets on 8 weighted dimensions (market size, ecommerce penetration, competition, regulatory complexity, logistics infrastructure, payment ecosystem, cultural distance, IP protection), compares 5 fulfillment models with cost and transit data, provides country-by-country tax/duty compliance guides (EU VAT/IOSS, UK VAT, US sales tax, CA GST, AU GST, JP consumption tax), maps local payment preferences by market, and builds a phased expansion roadmap. No API key required.
pricing-strategy
coreyhaines31/marketingskills
When the user wants help with pricing decisions, packaging, or monetization strategy. Also use when the user mentions 'pricing,' 'pricing tiers,' 'freemium,' 'free trial,' 'packaging,' 'price increase,' 'value metric,' 'Van Westendorp,' 'willingness to pay,' 'monetization,' 'how much should I charge,' 'my pricing is wrong,' 'pricing page,' 'annual vs monthly,' 'per seat pricing,' or 'should I offer a free plan.' Use this whenever someone is figuring out what to charge or how to structure their plans. For in-app upgrade screens, see paywall-upgrade-cro.