pinescript — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited pinescript (Agent Skill) and scored it 91/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 1 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 1 flagged
The text {match} is the classic direct prompt-injection phrasing. Placed in a skill body that the agent reads as trusted instructions, it tries to make the agent abandon its prior rules and follow whatever comes next — a full system-prompt override.
ignore/disregard/forget … previous instructions sentence.Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
isBull = close > open
barColor = isBull ? color.green : color.redplot(condition ? value : na)500 bars history for request.security() | 500 plot calls | 64 drawing objects | 40 request.security() calls | 100KB compiled size
request.security() returning [close, high, low] instead of 3 separate callsarray.new<type>(size) instead of push-and-resizeTradingView has no console or debugger. Use these patterns:
label.new(bar_index, high, str.tostring(myVar)) to inspect valuestable.new() with barstate.islast for real-time variable dashboardif input.bool("Debug", false) — remove before publishingpreviousValue = value[1], flag when historical values changestrategy.* functions: strategy.wintrades, strategy.losstrades, strategy.grossprofitmaxEquity = math.max(strategy.equity, nz(maxEquity[1])), then dd = (maxEquity - strategy.equity) / maxEquity * 100dailyReturn * 252 / (stdDev * math.sqrt(252))close[lookforward] to measure prediction accuracy, track true/false positive ratescolor.from_gradient() for trend strength coloringsize.small for intraday, size.normal for daily+indicator()/strategy()@version, @description, @param tagstooltip="Line 1" + "\n" + "Line 2"~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.