# Trading Script Audit & Repair with Compile Check

> Audit, repair and compile-check your trading indicators and strategies, with honest reports on what was verified.

Trading Script Audit & Repair with Compile Check is a paid AI agent skill on Agensi by sahli brave. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $14.99 (one-time purchase)
- Creator: [sahli brave](https://www.agensi.io/creators/sahli-brave)
- Version: 0.4.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/trading-script-audit-repair-with-compile-check
- Tags: trading-investing, testing-debugging, code-quality-review

## What it does

- Audits your trading script for repainting, lookahead bias and hidden logic errors
- Checks your Pine Script for compile errors before you open the TradingView editor
- Repairs confirmed defects only, and keeps your original script untouched
- Tests every fix and reports exactly what was checked and what was not
- Reviews backtests for missing costs, overfitting and unrealistic assumptions
- Delivers a clear audit report with findings ranked by severity and certainty

## Who it's for

- **TradingView users who build their own indicators:** Get your indicator audited and compile-checked before you trade or sell it. Try: "Audit this Pine v6 indicator for repainting and fix the confirmed bugs"
- **Indicator sellers who need defensible quality checks:** Ship scripts that pass a documented audit and a virtual compile check. Try: "Run a compile check on this script and list every error you find"
- **Traders turning discretionary rules into strategies:** Turn your rules into a specified, tested strategy with honest limits. Try: "Turn these trading rules into a tested Pine strategy specification"
- **Reviewers checking a script they bought or received:** Find out whether a script repaints, leaks future data or hides costs. Try: "Check this strategy for future-data leaks and missing trading costs"

## About this skill

Most trading scripts fail quietly: a lookahead flag here, an unconfirmed pivot there, a backtest with no costs, a compile error discovered only after pasting the code into the editor.

Trading Script Intelligence turns "it looks right" into an auditable deliverable. The skill drives your AI agent through a strict 9-phase engineering workflow (spec before code, evidence before claims, severity kept separate from certainty, an explicit ML decision on every project), and ships a small executable engine with two tools:

- `tsi_engine analyze` — token-aware structural checks and heuristic risk scans (graded lookahead/repaint findings, future references, missing strategy costs), with deduplicated diagnostics and honest capability labels.
- `tsi_engine compile` — a virtual Pine Script v6 compile-check environment: symbol table, call resolution, curated built-in signatures and documented compile-error patterns (the CE10120/CE10213 classes), calibrated on editor-confirmed scripts and known-broken fixtures.

It will refuse to call a heuristic a proof, a fixture a backtest, or a technical PASS a promise of profit. That honesty is the product.

## Requires

- Python

## Known limitations

The virtual compile check covers an implemented subset of Pine v6 (structure, symbol resolution, curated signatures, documented error patterns, request/object limits). It does not perform full type inference or runtime simulation, is not a TradingView compilation guarantee, and says so in every report. Technical validation never implies profitability.

## Technical details

Portable Markdown skill plus a dependency-free Python 3.10+ engine (standard library only), 43 files. Includes the tsi_engine package (analyze and compile subcommands), adapters for Pine Script v6, Python quant, MQL4, MQL5 and NinjaTrader (each with an honest status), 58 automated tests and acceptance fixtures for 15 scenarios. No network access and no market data. The compile check covers an implemented subset of Pine v6; it is not the TradingView compiler.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Trading Script Audit & Repair with Compile Check skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Trading Script Audit & Repair with Compile Check do?

Audit, repair and compile-check your trading indicators and strategies, with honest reports on what was verified.

### Which AI agents support Trading Script Audit & Repair with Compile Check?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Trading Script Audit & Repair with Compile Check?

Connect your AI agent to Agensi through MCP, then ask it to use Trading Script Audit & Repair with Compile Check on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
