About create
A skill for creating Pine Script indicators and strategies from a description. It checks relevant templates, writes a version 6 script under `projects/`, and applies implementation and quality checks such as NA handling and repainting prevention.
Key features
- 01Analyze indicator or strategy requests
- 02Find relevant templates
- 03Create scripts in `projects/`
- 04Apply Pine Script version 6 patterns
- 05Check compilation and common issues
Use cases
- 01Turning a written idea into a script
- 02Starting from an indicator or strategy template
- 03Reviewing a script for basic quality concerns
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ traderspost/ pinescript-agents --skill createAfter installing, type/createin Claude Code to confirm it loaded.
Details
From the project READMEQuick Pine Script Creation
Creating new Pine Script from your description: $ARGUMENTS
Implementation Steps
-
Analyze the request to determine:
- Type: Indicator or Strategy?
- Complexity: Simple, Medium, or Complex?
- Key components needed
-
Check for relevant templates in:
templates/indicators/- For indicator patternstemplates/strategies/- For strategy patternstemplates/utilities/- For helper functions
-
Create the file at
projects/[descriptive-name].pine -
Implement with best practices:
//@version=6declaration//@strategy_alert_messagefor strategies (after thestrategy()call)- Proper input groups and tooltips
- NA value handling
- No repainting issues
-
Add basic debugging if helpful
Quick Implementation Patterns
For Indicators:
//@version=6
indicator("Title", overlay=true)
// Implementation
For Strategies:
//@version=6
strategy("Title", overlay=true)
//@strategy_alert_message {{strategy.order.alert_message}}
// Implementation
Quality Checklist
Before delivering:
- Compiles without errors
- Handles NA values
- Uses cached loop boundaries
- Ternary operators on single lines
- Inputs have tooltips
Comments
Markdown supported