Borrowing it
Nothing to install: this file belongs to fiale-plus/tradingview-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/fiale-plus/tradingview-mcp-server/main/.claude/commands/portfolio-risk.mdgit clone --depth 1 https://github.com/fiale-plus/tradingview-mcp-serverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/portfolio-risk)<a href="https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/portfolio-risk"><img src="https://agentmods.dev/badge/commands/fiale-plus/tradingview-mcp-server/portfolio-risk/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/fiale-plus/tradingview-mcp-server/portfolio-risk"><img src="https://agentmods.dev/badge/commands/fiale-plus/tradingview-mcp-server/portfolio-risk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00021 | $0.01117 |
| Opus 5 | $0.00010 | $0.00558 |
| Sonnet 5 | $0.00004 | $0.00223 |
| Haiku 4.5 | $0.00002 | $0.00112 |
Grade A, and why
portfolio-risk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Portfolio Risk Analysis
Analyze concentration risk, market sensitivity, and volatility profile for a portfolio of stocks.
Steps:
-
Parse holdings from
$ARGUMENTS- Accept comma-separated or space-separated symbols:
AAPL, MSFT, GOOGL, JPM, XOM - Accept 2 to 20 symbols
- If no exchange prefix is provided, try NASDAQ: then NYSE:
- If fewer than 2 symbols are provided, prompt the user for at least 2
- Accept comma-separated or space-separated symbols:
-
Fetch data using
mcp__tradingview__lookup_symbols- symbols: [all normalized symbols]
- columns:
- name, close, market_cap_basic, sector, industry
- beta_1_year, ATR, Volatility.M
- Perf.Y, Perf.YTD
- debt_to_equity, dividends_yield_current
-
Portfolio Overview Table Display all holdings with key metrics:
| Symbol | Name | Price | Mkt Cap | Sector | Beta | Div Yield% | 1Y% | |---------|----------------------|----------|---------|----------------------|------|------------|-------| | AAPL | Apple Inc | $185.92 | 2.87T | Technology | 1.24 | 0.55% | +24.2 | | MSFT | Microsoft Corp | $415.30 | 3.08T | Technology | 0.90 | 0.73% | +31.5 |- Truncate names to 20 characters
- Format market caps with B/T suffix
-
Concentration Analysis
Sector Breakdown:
- Count holdings per sector
- Calculate % of portfolio by count (treat equal-weight if no position sizes given)
- Display as a table:
| Sector | Holdings | % of Portfolio | Risk Flag | |----------------|----------|----------------|-----------| | Technology | 3 | 60% | ⚠️ HIGH | | Financials | 1 | 20% | OK | | Energy | 1 | 20% | OK | - Flag any sector with >40% of holdings as "⚠️ HIGH concentration risk"
- Flag any sector with >60% as "❌ CRITICAL concentration risk"
Industry Breakdown:
- List any industry where 2+ holdings overlap
- Warn: "X holdings in [Industry] — high correlation risk"
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 99 lines · 21 tokens per session scan A be13865d5749
portfolio-risk is a command published in the GitHub repository fiale-plus/tradingview-mcp-server (50 stars, last pushed 18d ago), licensed MIT. It adds 21 tokens to every session and 1,117 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
merit-reconcile
Preview or check the status of Stripe → Merit payout reconciliation (read-only).
merit-customers
Find or create a Merit Aktiva customer (or vendor).
CLAUDE
Command "CLAUDE" from Calhooon/bsv-wallet-cli, covering commands, files, decisions, gotchas and related.
tnl-asset-exposure
Map documented and inferred exposure paths, horizons, and counterfactors.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.