Claude Skills and Agents¶
tradingview-mcp includes predefined skills and agents that provide structured workflows for common tasks. Skills are Claude Code slash commands that invoke multi-step tool sequences. Agents are autonomous task runners configured with a model and tool access.
What Are Skills?¶
Skills are Markdown files in the skills/ directory, each defining a step-by-step workflow that Claude Code follows when the skill is triggered. They serve as reusable playbooks that ensure consistent, thorough execution of complex tasks.
Each skill file contains:
- YAML frontmatter with
nameanddescription(used for trigger matching) - Numbered steps referencing specific MCP tools to call
- Decision logic for handling different scenarios
- Cleanup instructions for undoing temporary changes
Skills integrate directly with the MCP tool layer -- every tool reference in a skill file corresponds to an actual tradingview-mcp tool that Claude Code can call.
Skills Reference¶
chart-analysis¶
Trigger: User wants technical analysis or chart review.
Workflow:
- Set up the chart --
chart_set_symbol,chart_set_timeframe - Add indicators --
chart_manage_indicator(requires full names: "Relative Strength Index", not "RSI"; "Moving Average Exponential", not "EMA") - Customize indicators --
indicator_set_inputsto adjust parameters (e.g., EMA length to 200) - Navigate --
chart_scroll_to_date,chart_set_visible_range - Annotate --
draw_shapefor horizontal lines (support/resistance), trend lines, text labels - Capture and analyze --
capture_screenshot,data_get_ohlcv,quote_get,symbol_info - Report -- Current price, key levels, indicator readings, overall bias
- Cleanup -- Remove temporary indicators (
chart_manage_indicatorwith "remove") and drawings (draw_clear)
Tools used: chart_set_symbol, chart_set_timeframe, chart_manage_indicator, indicator_set_inputs, chart_scroll_to_date, chart_set_visible_range, draw_shape, capture_screenshot, data_get_ohlcv, quote_get, symbol_info, draw_clear
multi-symbol-scan¶
Trigger: User wants to compare multiple symbols, screen for opportunities, or scan a watchlist.
Workflow:
- Define the scan -- Determine symbols (user-provided or from
watchlist_get), timeframe, and criteria - Run the scan using one of three modes:
- Strategy comparison:
batch_runwith actionget_strategy_resultsacross multiple symbols/timeframes - Screenshot comparison:
batch_runwith actionscreenshot - Custom per-symbol analysis: Loop with
chart_set_symbol+chart_set_timeframe+data_get_ohlcv+data_get_indicator
- Strategy comparison:
- Compile results into a comparison table ranked by the relevant metric
- Report -- Ranked list, strongest setups, divergences/anomalies, screenshots of top charts
Watchlist integration: watchlist_get reads all symbols, watchlist_add can save new finds.
Tools used: watchlist_get, watchlist_add, batch_run, chart_set_symbol, chart_set_timeframe, data_get_ohlcv, data_get_indicator, capture_screenshot
pine-develop¶
Trigger: User wants to build or modify a Pine Script indicator or strategy.
Workflow:
- Understand the goal -- Ask about type (indicator/strategy/library), logic, overlay vs. separate pane, inputs
- Pull current source (if modifying) -- Run
node scripts/pine_pull.js, then readscripts/current.pine - Write the script to
scripts/current.pine-- Must include//@version=6, proper declaration, inputs with groups, clear comments - Push and compile -- Run
node scripts/pine_push.jswhich injects code into the Pine Editor, clicks compile, and reports errors - Fix errors -- Read error messages (line + description), edit locally, push again. Common errors: "Mismatched input" (indentation), "Could not find function" (typo/version), "Undeclared identifier" (ordering)
- Verify on chart --
capture_screenshotfor visual check,data_get_strategy_resultsfor strategies - Iterate -- Pull fresh, edit, push, compile, screenshot
Key rule: Always compile after every change. Never claim "done" without a clean compile.
Tools used: capture_screenshot, data_get_strategy_results, plus the pine_pull.js and pine_push.js utility scripts
replay-practice¶
Trigger: User wants to practice trading or manually backtest in replay mode.
Workflow:
- Setup --
chart_set_symbol,chart_set_timeframe,replay_startwith a date - Pre-trade analysis --
data_get_ohlcvfor historical context,chart_manage_indicatorto add studies,capture_screenshot - Step through bars --
replay_step(one bar) orreplay_autoplay(continuous). After significant moves,replay_statusfor current state - Execute trades --
replay_tradewithbuy/sell/close,replay_statusto confirm - Review -- Final
replay_status,capture_screenshot,replay_stop. Report total trades, win/loss, net P&L, key lessons
Tips from the skill: Step through 5-10 bars to find setups, then slow down for entry timing. Use draw_shape to mark entry/exit points.
Tools used: chart_set_symbol, chart_set_timeframe, replay_start, replay_step, replay_autoplay, replay_trade, replay_status, replay_stop, data_get_ohlcv, chart_manage_indicator, capture_screenshot, draw_shape
strategy-report¶
Trigger: User wants a comprehensive report after backtesting a Pine Script strategy.
Workflow:
- Gather data:
data_get_strategy_results-- overall metrics (net profit, win rate, profit factor, max drawdown, Sharpe ratio, etc.)data_get_trades-- individual trade list (max 20)data_get_equity-- equity curve data pointschart_get_state-- current symbol, timeframe, studiessymbol_info-- symbol metadata
- Capture visuals --
capture_screenshotfor bothchartandstrategy_testerregions - Analyze:
- Key metrics: net profit, total trades, win rate, profit factor (target > 1.5), max drawdown, average trade, Sharpe ratio, max consecutive losses
- Trade analysis: largest winner/loser, average winner vs. loser (reward:risk), long vs. short breakdown
- Equity curve: smoothness, drawdown periods, consistency
- Generate structured report with summary, metrics table, strengths, weaknesses, and recommendations
- Suggest improvements based on findings (e.g., if win rate < 50% but profit factor > 1, suggest tighter entries)
Tools used: data_get_strategy_results, data_get_trades, data_get_equity, chart_get_state, symbol_info, capture_screenshot
Agents¶
performance-analyst¶
File: agents/performance-analyst.md
Model: Sonnet
Tool access: All tools ("*")
The performance-analyst is an autonomous agent (not a skill) that gathers TradingView strategy data and provides thorough analysis without step-by-step user interaction.
Data gathering: Calls data_get_strategy_results, data_get_trades, data_get_equity, chart_get_state, and capture_screenshot.
Analysis framework:
| Dimension | What It Evaluates |
|---|---|
| Profitability | Net profit, profit factor, average trade |
| Consistency | Win rate, max consecutive losses, equity curve smoothness |
| Risk | Max drawdown, worst trade, risk-adjusted returns |
| Edge quality | Whether the edge is robust or fragile -- high win rate with tiny winners vs. low win rate with big winners |
Output: A structured report with summary (2-3 sentences), key metrics table, strengths and weaknesses, and specific actionable recommendations.
Skills vs. Agents¶
| Skills | Agents | |
|---|---|---|
| Execution | Claude Code follows the steps interactively | Runs autonomously to completion |
| Model | Uses the current conversation model | Can specify a different model (e.g., Sonnet) |
| Interaction | Step-by-step with user feedback | Gathers data and reports back |
| Trigger | Slash command or natural language match | Invoked programmatically or by name |
| Tool access | Whatever tools the steps reference | Configured via tools field in frontmatter |