Pinescript Skill — AI skill for Claude Code
Pine Script v6 skill for Claude Code -- hard language constraints, LLM error prevention, complete reference.
How to install Pinescript Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open double232/pinescript-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Pinescript Skill does
Pine Script v6 skill for Claude Code -- hard language constraints, LLM error prevention, complete reference.
Alternatives in AI
- Ante — Ghost in your shell 1.9k ★
- Agency Orchestrator — 🚀 One sentence → multi-AI-role collaboration → complete plan in minutes 453 ★
- Aelf-skills Contribution Guide (Adding New Skills) — This guide is the hard gate for both human contributors and AI agents 182 ★
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
AI Knowledge Repository
Validated knowledge graph of hard platform constraints and decision-enabling capabilities for Claude Code, Lov
Goal Planner
a simple llm script that takes a user goal and creates a set of clear instructions for an AI Agent to complete
Fxapis MCP Examples
Connect Claude, Cursor, VS Code, the OpenAI API and the Anthropic API to fxapis's hosted MCP server for MetaTr
Script To Video Prompts
Agent Skill that turns scripts into paste-ready AI video prompts: one prompt per 10-second clip, with timed sh
10d10s Bonus H3 Lipsync
Claude Code skill - lip-synced AI talking characters with MiniMax H3: script rules H3 can sync, ElevenLabs v4
AI Avatar Video
Complete framework for creating realistic AI talking-head videos — from script writing to multi-scene producti
Related Agents
Beginner Helper
Explains Pine Script concepts in simple terms. Use when user indicates they're new to coding or Pine Script, o
Backend Developer
AGGRESSIVE backend development expert specializing in Elixir/Phoenix/OTP with PROACTIVE error prevention, perf
Constraint Check
Internal affairs auditor — checks whether HARD-GATEs and constraints were actually followed during workflow. U