Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

porting-pine-versions

Skill by FerroxLabs

Ports Pine Script v4 and v5 source to v6 by analyzing, rewriting, compile-checking and iterating until clean. Built for traders and developers upgrading older TradingView scripts.

  • Score 56
  • 619 stars
  • AGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install porting-pine-versions

Built from the published package, never by AI.

git clone --depth 1 https://github.com/FerroxLabs/wayland /tmp/wayland && mkdir -p ~/.claude/skills && cp -r /tmp/wayland/src/process/resources/skills/porting-pine-versions ~/.claude/skills/porting-pine-versions

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install porting-pine-versions in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill migrates Pine Script v4 or v5 source to v6. It starts by reading the script and flagging older versions and deprecated calls with pine_analyze. It then updates the version header and applies a cheat sheet of rewrites, such as study to indicator, security to request.security, and bare functions to their ta.*, str.* or math.* forms. Each rewrite pass is checked with pine_check until the error count is zero.

The workflow ends by pushing the clean source with pine_set_source, running a final in-editor compile, and taking a screenshot to confirm plots still render. For strategies, it compares results against the recorded v4 or v5 baseline. It is aimed at users who hand over an older script or ask to upgrade or port Pine code to v6.

Written from the project's SKILL.md and checked against it.

What it can do

  • pine_analyzeFlags scripts below v6 and surfaces deprecated calls, offline.
  • pine_checkRuns a server-side compile of rewritten source without touching the chart.
  • Version rewrite rulesCheat sheet covering study, security, ta functions, and typed input calls.
  • pine_set_sourceInjects the clean v6 source into the editor, with an explicit overwrite confirmation.
  • pine_smart_compileRuns the final in-editor compile to catch anything pine_check missed.
  • pine_get_errorsConfirms the compile reports zero errors.
  • capture_screenshotTakes a visual check that plots still render as expected.
  • data_get_strategy_resultsCompares strategy metrics with the v4 or v5 baseline to spot porting bugs.

What you need

  • Access to the pine_ tools named in the skill
  • A TradingView saved script to port
  • Chart access for in-editor compile and screenshots

Try asking

  • Upgrade this Pine Script v4 indicator to v6
  • Port this Pine code to v6 and check that it compiles
  • Migrate my v5 strategy to v6 and compare the backtest results

Good to know

  • pine_set_source overwrites the saved script, so the original survives only in TradingView version history.
  • Changes to lookahead, barmerge or math.round_to_mintick can shift backtest numbers.
  • Long scripts of 500 lines or more are ported function by function.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: src/process/resources/skills/porting-pine-versions/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to porting-pine-versions

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

porting-pine-versions: common questions

Does it overwrite my saved TradingView script?

Yes. pine_set_source needs confirm_overwrite set to true, and compiling saves over the bound script. The v4 or v5 original then remains only in TradingView's version history.

Which Pine versions does it migrate?

It migrates v4 and v5 source to v6. The source says scripts already marked v6 need nothing.

What can change behavior after the port?

Changes to lookahead, barmerge or math.round_to_mintick can shift backtest numbers, so the skill flags them in its report.

How do I install porting-pine-versions?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is porting-pine-versions free?

The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.

Is porting-pine-versions safe to use?

It scores 56 of 100. Grades: maintenance A, licence C, quality A. 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 porting-pine-versions?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

porting-pine-versions Install

Add to stack

Loading.