cursor

A set of writing rules for Cursor, a coding editor with an AI assistant, focused on Pine Script version 6. Pine Script is the language used to create indicators and strategies on TradingView charts.

In plain words
What is it for?
Use it when writing or documenting Pine Script v6 code in Cursor.
Why use it?
It gives the agent evidence-based guidance for Pine Script tasks instead of relying on unsupported assumptions.

Cursor rule

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/trugurpala/pinescriptv6/cursor
Clone the repo
git clone --depth 1 https://github.com/trugurpala/pinescriptv6
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 60 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00060
Opus 5 $0.00000 $0.00030
Sonnet 5 $0.00000 $0.00012
Haiku 4.5 $0.00000 $0.00006

Measured yesterday against content hash 0c82c852447f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cursor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

adapters/cursor.mdc · 16 lines

What it actually says

{{NOTICE}}

Pine Script Agent Kit for Cursor

Apply this rule to Pine files and Pine-specific documentation.

{{PROTOCOL}}

Active sourced rules

{{RULES}}

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 16 lines · 0 tokens per session scan A 0c82c852447f

Subscribe to this mod's changes

cursor is a cursor rule published in the GitHub repository trugurpala/pinescriptv6 (2 stars, last pushed 29d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 60 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other cursor rules, from other repositories

execute-test

Execute Katalon True Platform/TestOps tests when the input is an existing test case, manual test case list, test suite, suite collection, execution request, or "run with AI" instruction. Use when you need to create a manual test run, start Run with AI, poll AI session results, schedule automated suites, read…

katalon-labs/true-skills · 136 tokens

test-plan

Plan Katalon True Platform/TestOps testing for a release, sprint, or feature. Use when you need to translate quality goals into scope, prioritize testing by requirement coverage and risk, decide what to test first, or build the executable plan structure (folders, suites, and sprint/release association) that stands in…

katalon-labs/true-skills · 137 tokens

cursorrules

You are assisting with mcp-server-powerpoint, a Windows-only MCP server that drives a live PowerPoint desktop instance via COM. When using the PowerPoint MCP tools (not when editing this repo's C# source), follow these rules.

sbroenne/mcp-server-powerpoint · 785 tokens

agentic-loops

Use when building multi-turn agents, tool-calling systems, agent orchestration, or autonomous workflows — covers loops, tool calling, branching, reflection patterns.

andr-ca/agentharness · 31 tokens

handoff

Export a Waybill Bundle by default, or import one when explicitly requested.

wardmos/waybill · 15 tokens

ui-motion-workflow

Orchestrate motion-aware UI work by sequencing direction, provider choice, implementation, and browser validation.

powehi-eu/ui-motion-workflow · 0 tokens