Pine Debugger
CheckedPine Debugger helps you quickly identify and fix errors in your TradingView Pine Script code, saving time and ensuring accurate strategy execution.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add traderspost/pinescript-agents --skill pine-debugger -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
traderspost
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill passed all 6 checks. We read its files at one commit and looked for the things that make a skill dangerous to run — not for whether it works.
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No undeclared network calls: passed
Makes no network calls.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned traderspost/pinescript-agents at ebc382f88b.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- ebc382f88b
- Manifest
- skills/pine-debugger/SKILL.md
- Scanned
- 2 files, 1,017 lines
- Copies in repo
- 2 — all of them scanned
About this skill
The pine-debugger skill enables AI agents to analyze, debug, and optimize Pine Script code used in TradingView strategies. It assists developers by identifying logical errors, syntax issues, and performance bottlenecks within custom trading algorithms.
When to use it
- You need to fix a compilation error preventing your strategy from loading on TradingView.
- Your backtest results show unexpected drawdowns or logic that doesn't match your intended rules.
- You want to refactor legacy Pine Script code for better readability and execution speed.
- You are stuck in an infinite loop or encountering runtime errors during live trading simulations.
Key capabilities
- Parses and validates Pine Script syntax against current TradingView standards.
- Identifies logical flaws that cause incorrect trade entry or exit signals.
- Suggests optimizations to reduce calculation time on large historical datasets.
- Provides context-aware error messages with specific line numbers and explanations.
Example prompts
- "Debug this Pine Script snippet where the stop-loss calculation returns NaN values."
- "Analyze my trading strategy code for any infinite loops that might occur during backtesting."
- "Optimize this complex indicator to run faster on 1-hour timeframes without changing logic."
Tips & gotchas
Ensure your Pine Script version matches the latest TradingView environment, as debugging results depend on current language features. While the tool identifies errors effectively, always verify suggested fixes manually before deploying strategies with real capital.