fadacai-portfolio: Skill for Claude Code

.agents/skills/briefing/SKILL.md

briefing is a skill for Claude Code, Codex from PatrickSUDO/fadacai-portfolio. It costs 43 tokens per session (26,914 once invoked), scanned A, original, MIT.

A daily summary of an investment portfolio, offered in quick, full, and deep levels of detail. An investment portfolio is the collection of assets someone owns, such as shares or funds.

In plain words
What is it for?
Use it to create a short overview, a more complete review, or a deeper analysis. With sending enabled, it writes report files, generates a web version, and pushes the briefing to Telegram and email.
Why use it?
It gives a repeatable way to review portfolio information at different depths and can prepare formatted reports for delivery through Telegram and email.

Skill for Claude CodeCodex

Written for Claude Code and Codex: user-invocable in frontmatter, but also runs codex exec. Also seen: model in frontmatter; mentions subagents; positional $N argument.

This is PatrickSUDO/fadacai-portfolio's own configuration. It tells Claude Code and Codex 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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 tools/thesis_ledger.py due.

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/.agents/skills/briefing/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/PatrickSUDO/fadacai-portfolio

Made for: Claude Code, Codex.

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 briefing

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/patricksudo/fadacai-portfolio/briefing"><img src="https://agentmods.dev/badge/skills/patricksudo/fadacai-portfolio/briefing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 26,914 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • medium Excessive Agency · line 5
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
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.00043 $0.26914
Opus 5 $0.00022 $0.13457
Sonnet 5 $0.00009 $0.05383
Haiku 4.5 $0.00004 $0.02691

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

Security

Grade A, and why

briefing 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 3d 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.

.agents/skills/briefing/SKILL.md · 1,353 lines

How it starts

The opening of the file, as written. The whole thing — 1,353 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Portfolio Briefing

三層結構的每日投資組合簡報,取代原 /daily-briefing

Arguments

  • /briefing → Quick(~1 分鐘)
  • /briefing full → Quick + Full(~3 分鐘)
  • /briefing deep → Quick + Full + Deep(~5 分鐘)
  • /briefing telegram → Telegram Push Tier(~2-3 分鐘)— 盤中推送專用,不跑 Phase 1-3

--send 旗標

任何 tier 加上 --send 會在 tier 執行完後:

  1. 把完整 briefing markdown 寫到 briefing-out/YYYY-MM-DD-full.md(Write tool)
  2. 把 Telegram 格式純文字寫到 briefing-out/YYYY-MM-DD-telegram.txt(Write tool)
  3. 呼叫 python3 tools/send_briefing.py YYYY-MM-DD(Bash tool)推送至 Telegram + Email
    • send_briefing.py 內部自動呼叫 generate_html.py,push HTML 到 reports repo,並在 Telegram 訊息末加上網頁連結

briefing telegram 沒有 --send 時:只寫 briefing-out/ 兩個檔案,不發送。 若需手動生成 HTML(不發送):python3 tools/generate_html.py briefing YYYY-MM-DD [--push]

執行模型建議

  • /briefing(quick)→ Sonnet 4.6(純彙整;session 已長則先 /compact
  • /briefing telegram → Sonnet 4.6(每日 launchd 自動推送,成本敏感,固定 Sonnet;週五 --codex 另走 gpt-5.5)
  • /briefing full → Opus 4.8(中等綜合 + Verdict;Phase 2 subagent 已外包 Sonnet 4.6)
  • /briefing deep → Opus 4.8(深度合成 + Codex 整合 + 機率/EV)

切換方式:/model sonnet/model opus/model fable 後執行 skill。


Step 0: 配置同步 & 倉位偵測

執行 AGENTS.md 的 Step 0 統一規範(0a → 0b → 0c → 0d → 0e)。

  • plan.md + feedback/*.md(必做)
  • 呼叫 get_account_position 取即時持倉
  • 今日 journal 不存在 → 執行 gap-fill + 變動偵測 + 自動建立 journal
  • 若偵測到的變動對應 plan.md 待辦項 → 在 Phase 1 Step 1 標記
  • 0e 第一性原理紀律:在 Quick Take 之前必須完成「市場主題 thesis / 證偽條件 / 機率分布」三題(見 AGENTS.md 0e)

Step 0.5: Macro Snapshot Load(所有 Phase / Tier 共用)

讀 cache(不打 API,所有數據由 tools/fetch_macro.py 預載到 briefing-out/cache/macro-snapshot.json):

Read briefing-out/cache/macro-snapshot.json

判定:

  • status == "ok""partial" 且 cache mtime < 36h → 使用,在 Quick Take 區前顯示 1 行:
    📊 Macro: Fed {fed_funds}% | 2s10s {value} ({regime}) | HY OAS {value} ({regime}, pct {pct_1y}%) | VIX {value} ({regime}) | regime: {regime_tag}
    
  • status == "skipped"(FRED key 缺失)→ 顯示 ⚠️ Macro snapshot unavailable (FRED_API_KEY not set) 並跳過
  • mtime > 36h → 顯示 ⚠️ Macro snapshot stale ({mtime_hours}h old) 仍使用但標記

Read the full file on GitHub · 1,353 lines

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. 3d ago Changed · +8 lines c4f429addb71
  2. 10d ago First seen · 1,345 lines · 43 tokens per session scan A 59c84af0214b

Subscribe to this mod's changes

briefing is a skill published in the GitHub repository PatrickSUDO/fadacai-portfolio (139 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 26,914 once invoked, about $0.0002 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 skills, from other repositories

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

strategy-pivot-designer

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

tradermonty/claude-trading-skills · 28 tokens

twitter-reader

Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.

questflowai/investorskills · 44 tokens

trading-risk-gate

Unified pre-trade safety gate: Ruin check (Law #1), ergodicity audit, and win-rate dominance validation. Absorbs: ergodicity-check, law-of-ruin, win-rate-dominance.

winstonkoh87/Athena-Public · 53 tokens

furusato

A Japanese hometown-tax donation manager for furusato nozei, a system where donations to municipalities can qualify for an income-tax or local-tax deduction. It reads donation receipts, stores donation records, and calculates deduction limits.

kazukinagata/shinkoku · 102 tokens