pinescript
Skill by iliaal
Pinescript is an agent skill with Pine Script v6 patterns for TradingView. It helps an assistant write, debug, backtest and publish indicators and strategies.
Install pinescript
Built from the published package, never by AI.
git clone --depth 1 https://github.com/iliaal/whetstone /tmp/whetstone && mkdir -p ~/.claude/skills && cp -r /tmp/whetstone/distillery/generated-skills/pinescript ~/.claude/skills/pinescriptRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/iliaal/whetstone /tmp/whetstone && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/whetstone/distillery/generated-skills/pinescript ~/.gemini/antigravity-cli/skills/pinescriptAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The pinescript skill gives an AI assistant a set of Pine Script v6 patterns for TradingView. It covers critical syntax rules, such as keeping ternary operators on one line and avoiding plot() inside local scopes. It also lists platform limits, performance tips, debugging methods that work without a console, and publishing guidance including TradingView House Rules.
It adds notes on strategy backtesting, including walk-forward validation and drawdown tracking, plus visualization and anti-patterns such as indicator stacking and overfitting. Its debugging advice covers label and table monitors, a debug mode toggle, and a repainting detector. The skill is aimed at developers who write, create, or fix Pine Script indicators and strategies on TradingView.
Written from the project's SKILL.md and checked against it.
What it can do
- Syntax rulesCovers ternary line breaks, continuation indentation, and plot() placement in local scopes.
- PerformanceSuggests tuple security calls, pre-allocated arrays, and caching repeated calculations.
- DebuggingShows label, table monitor, debug toggle, and repainting detector patterns.
- Strategy and backtestingCovers drawdown tracking, Sharpe calculation, and walk-forward validation.
- VisualizationCovers gradient trend coloring, adaptive text sizing, and dynamic table rows.
- PublishingExplains documentation tags, tooltips, and TradingView House Rules.
- Anti-patternsWarns against indicator stacking, divergence without structure, and overfitting.
What you need
- TradingView, where Pine Script runs
Try asking
- Write a Pine Script indicator that colors bars by trend direction
- Build a Pine Script strategy with drawdown tracking and walk-forward checks
- Fix this Pine Script code that gives an end of line error
Good to know
- Platform limits include 500 bars for request.security, 500 plot calls, and 64 drawing objects
- Limits also include 40 request.security calls and a 100KB compiled size
- TradingView has no console or debugger, so debugging relies on labels and tables
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: distillery/generated-skills/pinescript/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to pinescript
All alternatives →Lists live launchpad token feeds and AI-detected hot topics for meme tokens on BSC, Solana and Base. Covers new, finalizing and just-migrated tokens on launchpads such as Pump.fun and Four.meme.
The okx-market skill lets an AI assistant retrieve cryptocurrency market data from the OKX V5 REST API. It is aimed at users who want spot, derivatives and index data in Python without an account.
Calculates key SaaS health metrics such as ARR, churn, LTV and CAC from raw business numbers, then gives prioritized advice. Built for founders and finance leads who share revenue or customer figures.
Fetches U.S. SEC EDGAR data for research. It resolves a ticker to its CIK, lists recent filings with primary-document URLs, and pulls XBRL financial series. Built for analysts who need free, U.S.-only filing data.
Provides free, no-auth access to Eastmoney market data for A-shares, Hong Kong stocks and US stocks. It covers fund flows, dragon-tiger lists, financial statements and stock screening.
Reads and manages a user's QuickBooks business through Intuit's official MCP server. It answers finance questions from reports, invoices, customers, products and benchmarks, and completes approved actions.
Compare with meme-rush, okx-market or saas-metrics-coach
pinescript: common questions
What Pine Script version does this skill cover?
The skill is titled Pine Script v6 patterns and covers syntax, performance, debugging, backtesting and visualization.
How does the skill help with debugging Pine Script?
Because TradingView has no console or debugger, it suggests label debugging, a table monitor, a debug mode toggle, and a repainting detector.
Does the skill cover publishing rules?
Yes, it covers documentation tags, multi-line tooltips, and TradingView House Rules such as no financial advice and no obfuscated code.
How do I install pinescript?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pinescript free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pinescript safe to use?
It scores 50 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pinescript?
Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.
