About examples
A skill for browsing Pine Script example scripts organized by difficulty. It presents each file's description and concepts, and can explain examples or help adapt one as a project starting point.
Key features
- 01List scripts from `examples/`
- 02Group examples by complexity
- 03Summarize concepts shown in each example
- 04Explain examples on request
- 05Copy examples into `projects/` for customization
Use cases
- 01Finding a Pine Script pattern to learn
- 02Comparing examples by complexity
- 03Using an example as a project starting point
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ traderspost/ pinescript-agents --skill examplesAfter installing, type/examplesin Claude Code to confirm it loaded.
Details
From the project READMEPine Script Examples
Browse available example scripts to learn patterns and get inspiration.
Instructions
When this skill is invoked:
-
List all examples from the
examples/directory using Glob -
Organize by complexity:
examples/simple/- Basic patterns for beginnersexamples/intermediate/- More advanced techniquesexamples/advanced/- Complex implementations
-
Show a summary of each example:
- Filename
- Brief description (from file header)
- Key concepts demonstrated
-
Offer to explain any example in detail
Example Categories
Simple Examples
- Basic indicators (MA, RSI)
- Simple plots and colors
- Basic alerts
Intermediate Examples
- Multi-timeframe analysis
- Custom calculations
- Tables and labels
Advanced Examples
- UDT-first architecture
- Complex drawing management
- Strategy with full backtesting
User Interaction
After showing examples:
- "Would you like me to explain any of these in detail?"
- "Would you like to use one as a starting point for your project?"
- "Would you like to see a specific category?"
Using Examples as Templates
If user wants to use an example:
- Copy to
projects/with new name - Explain the key parts
- Help customize for their needs
Comments
Markdown supported