# pine-developer

Generates indicators and trading strategies in Pine Script v6 for TradingView. It enforces modern syntax rules and avoids common scope errors.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 863 installs · ★ 218
- Author: TradersPost
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/TradersPost/pinescript-agents/tree/HEAD/skills/pine-developer/SKILL.md
- Updated: 2026-07-23
- HTML: https://affpapa.org/en/nevibecode/skills/pine-developer

## What it does

This skill guides coding assistants to produce valid Pine Script v6 code for TradingView. It injects knowledge about recent 2025 updates into the prompt. The agent learns flexible indentation inside parentheses alongside the strict requirement for non-multiple-of-4 spacing outside them. It also enforces user-defined types (UDTs) for complex data models before writing execution logic.

Dynamic boundary evaluation in `for` loops is a critical pitfall. Pine Script v6 recalculates the end boundary on every iteration. Expanding an array inside a standard loop triggers an infinite loop. The skill directs the model to pick `for...in` iterators or store boundaries in separate variables beforehand.

Function scope limits are handled explicitly. Pine Script forbids calling `plot()` inside local blocks such as conditionals or functions. The assistant solves this by shifting logic into single-line ternary operators or switching to `line.new()` and `label.new()` drawing primitives. The skill enables Read, Write, Edit, Glob, Grep, and Bash tools.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add TradersPost/pinescript-agents --skill pine-developer -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/pine-developer/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/pine-developer/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add TradersPost/pinescript-agents --skill pine-developer -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/pine-developer/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add TradersPost/pinescript-agents --skill pine-developer -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/pine-developer/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install TradersPost/pinescript-agents pine-developer
```

2. **Manually: put the files in place**
- File: `.github/skills/pine-developer/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add TradersPost/pinescript-agents --skill pine-developer -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/TradersPost/pinescript-agents --path skills/pine-developer
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/pine-developer/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add TradersPost/pinescript-agents --skill pine-developer -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/TradersPost/pinescript-agents/tree/HEAD/skills/pine-developer/SKILL.md

## When to use it
- write trading indicators and strategies in Pine Script v6
- fix indentation errors when wrapping Pine Script expressions
- refactor traditional for loops into safe for...in iterations
- structure complex indicator data using custom user-defined types

## Example prompts
- Write an RSI indicator in Pine Script v6 using the active parameter for inputs
- Convert this Pine Script array loop to for...in so it does not loop infinitely
- Create an EMA crossover strategy using user-defined types for order data

## Similar
- [tradingview-quantitative](https://affpapa.org/en/nevibecode/skills/tradingview-quantitative.md) — skill · 1500 installs
- [tradingview-reader](https://affpapa.org/en/nevibecode/skills/tradingview-reader.md) — skill · 1100 installs
- [ccxt-python](https://affpapa.org/en/nevibecode/skills/ccxt-python.md) — skill · 2100 installs
- [mql5-indicator-patterns](https://affpapa.org/en/nevibecode/skills/mql5-indicator-patterns.md) — skill · 497 installs
- [developer-event-sponsorship](https://affpapa.org/en/nevibecode/skills/developer-event-sponsorship.md) — skill · 10000 installs
- [gtm-developer-ecosystem](https://affpapa.org/en/nevibecode/skills/gtm-developer-ecosystem.md) — skill · 1500 installs

From the same set: [traderspost/pinescript-agents](https://affpapa.org/en/nevibecode/by/traderspost/pinescript-agents.md) — 4 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
