pine-developer
БесплатноБез исполняемых скриптовНе проверенWrites production-quality Pine Script v6 code following TradingView guidelines and best practices. Use when implementing indicators, strategies, or any Pine…
от aAAaqwq★ 123 звезды на GitHubОб этом скилле
Pine Script Developer
Specialized in writing production-quality Pine Script v6 code for TradingView.
⚠️ CRITICAL: Pine Script Syntax Rules
BEFORE writing ANY multi-line Pine Script code, remember:
- TERNARY OPERATORS (
? :) - MUST stay on ONE line or use intermediate variables - Line continuation - ALL continuation lines must be indented MORE than the starting line
- Common error: "end of line without line continuation" - caused by improper line breaks
// ❌ NEVER DO THIS:
text = condition ? "value1" :
"value2"
// ✅ ALWAYS DO THIS:
text = condition ? "value1" : "value2"
See the "Line Wrapping Rules" section below for complete rules.
Documentation Access
Primary documentation references:
/docs/pinescript-v6/quick-reference/syntax-basics.md- Core syntax and structure/docs/pinescript-v6/reference-tables/function-index.md- Complete function reference/docs/pinescript-v6/core-concepts/execution-model.md- Understanding Pine Script execution/docs/pinescript-v6/core-concepts/repainting.md- Avoiding repainting issues/docs/pinescript-v6/quick-reference/limitations.md- Platform limits and workarounds
Load these docs as needed based on the task at hand.
Project File Management
- When starting a new project, work with the file that has been renamed from blank.pine
- Always save work to
/projects/[project-name].pine - Never create new files unless specifically needed for multi-file projects
- Update the file header with accurate project information
Core Expertise
Pine Script v6 Mastery
- Complete understanding of Pine Script v6 syntax
- All built-in functions and their proper usage
- Variable scoping and namespaces
- Series vs simple values
- Request functions (request.security, request.security_lower_tf)
TradingView Environment
- Platform limitations (500 bars, 500 plots, 64 drawings, etc.)
- Execution model and calculation stages
- Real-time vs historical bar states
- Alert system capabilities and constraints
- Library development standards
Code Quality Standards
- Clean, readable code structure
- Proper error handling for na values
- Efficient calculations to minimize load time
- Appropriate use of var/varip for persistence
- Proper type declarations
CRITICAL: Line Wrapping Rules
Pine Script has STRICT line continuation rules that MUST be followed:
- Indentation Rule: Lines MUST be indented more than the first line
- Break at operators/commas: Split AFTER operators or commas, not before
- Function arguments: Each continuation must be indented
- No explicit continuation character in Pine Script v6
SYSTEMATIC CHECK - Review ALL of these:
-
indicator()orstrategy()declarations at the top - All
plot(),plotshape(),plotchar()functions - All
ifstatements with multiple conditions - All variable assignments with long expressions
- All
strategy.entry(),strategy.exit()calls - All
alertcondition()calls - All
table.cell()calls - All
label.new()andbox.new()calls - Any line longer than 80 characters
CRITICAL: Ternary Operators MUST Stay on One Line
// WRONG - Will cause "end of line without line continuation" error
text = condition ?
"true value" :
"false value"
// CORRECT - Entire ternary on one line
text = condition ? "true value" : "false value"
// CORRECT - For long ternaries, assign intermediate variables
trueText = str.format("Long true value with {0}", param)
falseText = str.format("Long false value with {0}", other)
text = condition ? trueText : falseText
CORRECT Line Wrapping:
// CORRECT - indented continuation
longCondition = ta.crossover(ema50, ema200) and
rsi < 30 and
volume > ta.sma(volume, 20)
// CORRECT - function arguments
plot(series,
title="My Plot",
color=color.blue,
linewidth=2)
// CORRECT - long calculations
result = (high - low) / 2 +
(close - open) * 1.5 +
volume / 1000000
INCORRECT Line Wrapping (WILL CAUSE ERRORS):
// WRONG - same indentation
longCondition = ta.crossover(ema50, ema200) and
rsi < 30 and
volume > ta.sma(volume, 20)
// WRONG - not indented enough
plot(series,
title="My Plot",
color=color.blue)
Script Structure Template
//@version=6
indicator(title="", shorttitle="", overlay=true)
// ============================================================================
// INPUTS
// ============================================================================
[Group inputs logically]
// ============================================================================
// CALCULATIONS
// ============================================================================
[Core calculations]
// ============================================================================
// CONDITIONS
// ============================================================================
[Logic c
Установить pine-developer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pine-developer?
Writes production-quality Pine Script v6 code following TradingView guidelines and best practices. Use when implementing indicators, strategies, or any Pine Script code. Triggers on requests to create, write, implement, or code Pine Script functionality.
Как установить скилл pine-developer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pine-developer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic