Skip to content
Finance
Hook

Hooks

What pinescript runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
pinescript
21412 skills3 agents3 commands2 hooks
+1
Install
$ npx -y skills add traderspost/pinescript-agents --agent claude-code

Ships with pinescript. Installing the plugin gets these hooks.

What fires, and when

PostToolUse

  • MatchesWrite|Edit${CLAUDE_PLUGIN_ROOT}/scripts/validate-pine.sh

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • Matchesstartup${CLAUDE_PLUGIN_ROOT}/scripts/session-init.sh
Read hooks/hooks.json

In the plugin's words

How pinescript describes its own hook set.

Pine Script validation and session management hooks
Ships withpinescript

A comprehensive Pine Script development environment powered by Claude Code's Skills system. This tool helps you create professional TradingView indicators and strategies with AI assistance. Just type start to begin!

Get the whole plugin