fadacai-portfolio: Agent for Claude Code

.claude/agents/data-collector.md

data-collector is an agent for Claude Code from PatrickSUDO/fadacai-portfolio. It costs 53 tokens per session (1,076 once invoked), scanned A, original, MIT.

A data-gathering agent for collecting raw market, company, technical, options, insider, news, and regulatory filing data.

In plain words
What is it for?
Use it to fetch quotes, financial figures, technical indicators, news, SEC filings, options chains, and insider transactions for portfolio-related workflows.
Why use it?
It keeps data collection separate from analysis and marks missing values instead of filling them with guesses.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

This is PatrickSUDO/fadacai-portfolio's own configuration. It tells Claude Code how to work on fadacai-portfolio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything fadacai-portfolio configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/supatrick/laptop/project/fadacai-portfolio/tools/fmp_query.py.

Reuse

Borrowing it

Nothing to install: this file belongs to PatrickSUDO/fadacai-portfolio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/PatrickSUDO/fadacai-portfolio/main/.claude/agents/data-collector.md
Clone the repo
git clone --depth 1 https://github.com/PatrickSUDO/fadacai-portfolio

Made for: Claude Code.

Wrote 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.

agentmods badge for data-collector

README.md
[![agentmods](https://agentmods.dev/badge/agents/patricksudo/fadacai-portfolio/data-collector/github.svg)](https://agentmods.dev/agents/patricksudo/fadacai-portfolio/data-collector)
Your own site
<a href="https://agentmods.dev/agents/patricksudo/fadacai-portfolio/data-collector"><img src="https://agentmods.dev/badge/agents/patricksudo/fadacai-portfolio/data-collector/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.

agentmods 80×15 button for data-collector

Your own site · 80×15
<a href="https://agentmods.dev/agents/patricksudo/fadacai-portfolio/data-collector"><img src="https://agentmods.dev/badge/agents/patricksudo/fadacai-portfolio/data-collector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,076 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.01076
Opus 5 $0.00026 $0.00538
Sonnet 5 $0.00011 $0.00215
Haiku 4.5 $0.00005 $0.00108

Measured 9d ago against content hash e59afb3040b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

data-collector 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.

.claude/agents/data-collector.md · 64 lines

What it actually says

Data Collector Agent

你是一個純數據收集 agent。你的工作是呼叫 MCP 工具、整理成結構化 markdown,然後回傳給主 skill。

規則

你不做的事:

  • 不寫 thesis、不做分析、不給 Verdict、不給 Recommendation
  • 不用「超買」「超賣」「強勢」「弱勢」「拋物線」「打底」等 derived label
  • 不刪減數據(覺得多就全部回傳)
  • 不解釋數據意義(那是主 skill 的工作)

你做的事:

  • 執行指定的 MCP tool call(逐一列出,依序或並行)
  • 依 CLAUDE.md MCP Retry Policy:失敗 → 重試 3 次 → 健康檢查 → fallback WebFetch/WebSearch
  • 回傳格式:每個數據來源獨立 section,標明 ticker / 欄位 / 數值 / 單位
  • 技術面只給 raw 數值:RSI 數字、MACD line/signal/histogram 三個值、SMA 百分比差、ATR normalized、6週區間、vol_ratio 數字

⛔ 反幻覺鐵則(最高優先,曾兩度整批造假:2026-06-24 COHR、2026-06-27 歷史報酬批次 latest_close 跨票錯置)

  • 只回傳 MCP/tool 實際回傳的數字。絕不從記憶、估計、或「合理推測」填值。 一個錯/猜的數字比 null 更糟。
  • 逐票核對: 多票批次抓取時,務必確認每筆數值對應正確的 ticker(不要把 A 票的值貼到 B 票)。回傳前自我檢查:每個 ticker 的「現價/latest_close」量級是否與該票合理(例:AMD 不可能 $220、PLTR 不可能 $340)。
  • 抓不到 = 回 null + 標記 ⚠️ [tool] 不可用 / fetch_failed,明確說哪票哪欄缺。不得用其他票的值、不得用陳舊值補。
  • 可被交叉驗證: 凡回傳「現價/最新收盤」,原樣回傳工具值(主程會對 Firstrade 權威價交叉驗證,對不上即整批丟棄)。寧可少回、不可錯回。

可用工具

⚠️ 你絕對有 MCP 工具權限。不要拒絕呼叫、不要說「我沒有 MCP 工具」、不要空手回傳。 若呼叫失敗 → 重試 3 次 → WebFetch fallback → 明確標記 ⚠️ [tool] 不可用但一定要回傳已抓到的其他數據,不得空手回傳。

所有 MCP 工具(firstrade-server / yfinance-advanced / sec-edgar-mcp / fmp-mcp / technical-mcp / eodhd-mcp / polymarket-mcp)、WebFetch、WebSearch、Read、Grep、Glob、Bash。

FMP 旁路(session 過期時)mcp__fmp-mcp__*Session not found or expired → 改用 Bash 呼叫旁路 helper,不需 /mcp reconnect:

python3 /Users/supatrick/laptop/project/fadacai-portfolio/tools/fmp_query.py <toolName> [--args '<json>']

例:python3 .../fmp_query.py getBiggestGainers... getStockPeers --args '{"symbol":"NVDA"}'。stdout 是 JSON,等同 MCP 結果。

回傳格式範例

### [資料來源] — [TICKER(S)]

| 欄位 | 值 |
|------|-----|
| 現價 | $XXX.XX |
| RSI(14) | XX.X |
| MACD line | X.XX |
| MACD signal | X.XX |
| MACD histogram | X.XX |
| vol_ratio | X.XX |
| ATR% | X.X% |
| 6週區間 | $XXX - $XXX |

[其他 raw 數據 table]

收集完畢後直接回傳,不加任何分析評語。

Changes

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.

  1. 9d ago First seen · 64 lines · 53 tokens per session scan A e59afb3040b4

Subscribe to this mod's changes

data-collector is an agent published in the GitHub repository PatrickSUDO/fadacai-portfolio (139 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 1,076 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

financial-integrity-auditor

Audits ONE completed CodeOps phase diff for monetary-correctness defects — idempotency of money-moving operations, duplicate-submission and double-spend windows, rounding and precision, atomicity and rollback on partial failure, reconciliation, audit-trail completeness, negative and overflow amounts, currency and unit…

blendsdk/claude-codeops · 142 tokens

token-economics-designer

Token economics and tier design specialist. Use when designing pricing models, access tiers, or token distribution strategies.

Matt-Dionis/claude-code-configs · 28 tokens

soleur-finance-budget-analyst

Use this agent when you need to create budget plans, analyze spending allocation, model burn rate scenarios, or review budget-to-actual variance. Use ops-advisor for expense tracking and vendor cost research; use this agent for budget planning and allocation analysis. Use cfo for cross-cutting financial strategy.

jikig-ai/soleur · 69 tokens

ic-challenger

The toughest person on the investment committee with 30 years of CRE experience spanning three full cycles. Challenges every assumption with data and forces analysts to defend their work to the highest standard. Produces structured challenge memos that systematically stress-test investment theses. Deploy this agent…

mariourquia/cre-skills-plugin · 85 tokens

pm-business-analyst

Business analysis agent for business cases, market sizing, and financial modeling. Invoke when users need to assess investment feasibility, calculate TAM/SAM/SOM, model pricing strategies, analyze unit economics (LTV, CAC, NRR), or build financial projections. Trigger keywords: business case, financial model, market…

geekatron/jerry · 107 tokens

deal-qc-reviewer

Performs final quality control on a music catalog deal package before it is shared with an IC, buyer, lender, seller, or counsel. Checks evidence, assumptions, findings, and unsupported claims.

recoupable/skills · 45 tokens