Pinescript Skill
Description
Pine Script v6 skill for Claude Code -- hard language constraints, LLM error prevention, complete reference
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
pinescript-skill
A [Claude Code](https://docs.anthropic.com/en/docs/claude-code) skill for writing Pine Script v6 code that compiles on the first try.
LLMs are notoriously bad at Pine Script. They hallucinate deprecated function names, nest functions inside `if` blocks, put `plot()` in local scope, and bundle `var`-state functions into `request.security` tuples. This skill prevents all of that by injecting the language's hard constraints, correct namespaces, and anti-repainting rules directly into the assistant's context.
What it covers
| Section | What you get |
|---|---|
| Hard constraints | 6 compile-or-die rules -- nested functions, tuple limits, var-state isolation, lazy and/or traps |
| LLM error prevention | Namespace mapping table (pre-v5 -> v6), global-scope-only functions, ta.* unconditional calling |
| Execution model | Bar-by-bar execution, var vs varip rollback behavior, realtime tick semantics |
| Type system | Qualifier hierarchy (const < input < simple < series), na handling, v6 integer division |
| Language syntax | Inputs, loops, switch expressions, string operations, enums (v6) |
| Data structures | Arrays, maps, matrices, UDTs, methods, method chaining |
| Anti-repainting | request.security parameter rules, barstate.isconfirmed, realistic backtest settings |
| Drawing objects | Lines, boxes, labels, polylines, tables, linefill, plotshape/plotarrow |
| Request functions | request.security, request.security_lower_tf, financials, economic data, ticker.modify |
| Strategy patterns | Entry/exit, pyramiding, ATR position sizing, risk management, session flattening, trailing stops |
| Indicator patterns | Overlay + table, bar coloring, color gradients, session detection |
| Alerts and webhooks | alertcondition vs alert(), webhook JSON, placeholder variables, rate limits |
| Libraries | Creating, exporting, importing, limitations |
| Performance | Bu |
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI