This one systematically refactors Pine Script code for TradingView to run faster and look cleaner. It tackles the usual performance bottlenecks like redundant security calls, uncached calculations, and inefficient array operations, while also reorganizing inputs into logical groups with tooltips and setting up proper color schemes that work in dark mode. The optimization examples are solid, showing before and after code for things like consolidating multiple security calls into tuples or short-circuiting conditional logic. Most helpful when you've got a working indicator that's either slow to load, visually cluttered, or has a messy settings panel. It won't make a fundamentally flawed strategy work, but it'll make a decent one more professional and responsive.
npx skills add https://github.com/traderspost/pinescript-agents --skill pine-optimizer