longbridge-financial-report
Prompt-only analysis skill. Fetches complete three-statement financials from Longbridge and performs cross-statement reconciliation, DuPont decomposition, and earnings-quality analysis in the LLM.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
When to use
- "TSLA 三张表", "TSLA three financial statements", "TSLA 三張表"
- "700.HK 资产负债表", "700.HK balance sheet", "700.HK 資產負債表"
- "AAPL 现金流量表", "AAPL cash flow statement", "AAPL 現金流量表"
- "NVDA 三表勾稽分析", "NVDA cross-statement reconciliation"
- "茅台 杜邦分析", "Maotai DuPont decomposition"
- "TSLA 盈利质量", "TSLA earnings quality", "TSLA accruals"
For a quick KPI snapshot use longbridge-fundamental. For valuation use longbridge-valuation.
CLI
Run longbridge --help to see all available subcommands, then longbridge <subcommand> --help before calling. Types of data needed:
- Financial statements (income statement, balance sheet, cash flow) — single statement or all three at once
- Period selection (annual, semi-annual, quarterly — exact flag values differ by CLI version; check
--help) - Raw line-item access with field-level hierarchy (a separate subcommand may exist for this)
# Always check available flags first:
longbridge <subcommand> --help
# Then fetch financials — example structure (verify flags with --help):
longbridge <subcommand> TSLA.US --format json
longbridge <subcommand> 700.HK --format json
Workflow
-
Resolve symbol to
<CODE>.<MARKET>format (e.g.TSLA.US,700.HK,600519.SH). -
Determine scope from user intent:
- Single statement requested → fetch that kind only.
- Reconciliation / DuPont / earnings quality → fetch all three statements (use
--helpto find the flag that requests all statements at once).
-
Call CLI (or MCP fallback). If
longbridgenot installed, fall back to MCP. -
In-LLM analysis per requested depth:
Analysis Method 三表勾稽 / Cross-statement reconciliation Verify: net income (IS) ≈ change in retained earnings (BS); net income + non-cash items ≈ operating cash flow (CF); ΔCash (CF) = ΔCash (BS) 杜邦分解 / DuPont decomposition ROE = Net Margin × Asset Turnover × Equity Multiplier 盈利质量 / Earnings quality Accrual ratio = (Net Income − Operating CF) / Avg Total Assets; high positive ratio → earnings less cash-backed -
Output structured report; cite Longbridge Securities; end with disclaimer.
Output template
{Symbol} ({code}) Financial Statements — Source: Longbridge Securities
Period: {report_period} | Report date: {rpt_date}
[Income Statement (IS)]
- Revenue: X YoY ±Y%
- Gross profit / margin: X / Y%
- Operating income: X
- Net income: X YoY ±Y%
- EPS (basic / diluted): X / Y
[Balance Sheet (BS)]
- Total assets: X
- Total liabilities: X | Debt-to-equity: Y%
- Cash & equivalents: X
- Shareholders' equity: X | Book value per share: Y
[Cash Flow (CF)]
- Operating CF: X
- Investing CF: X
- Financing CF: X
- Free cash flow (OCF − capex): X
[Cross-statement reconciliation]
- IS→BS: Net income vs ΔRetained earnings: {match / gap of X}
- IS→CF: Net income vs OCF bridge: {match / key non-cash items}
- CF→BS: ΔCash: {match / gap}
[DuPont decomposition]
ROE {X%} = Net margin {Y%} × Asset turnover {Z×} × Equity multiplier {W×}
[Earnings quality]
- Accrual ratio: X% — {low / medium / high} accrual, earnings are {cash-backed / partly accrual-driven / accrual-heavy}
⚠️ 以上数据仅供参考,不构成投资建议。/ 以上數據僅供參考,不構成投資建議。/ For reference only. Not investment advice.
(Omit sections not requested; state "data unavailable" rather than inventing.)
Error handling
| Situation | 简体中文回复 | 繁體中文 / English |
|---|---|---|
command not found: longbridge | 回退到 MCP;如 MCP 也不可用,请用户安装 longbridge-terminal。 | 回退到 MCP;如 MCP 也不可用,請安裝 longbridge-terminal。/ Fall back to MCP; if also unavailable, tell user to install longbridge-terminal. |
stderr not logged in | 请运行 longbridge auth login 登录。 | 請執行 longbridge auth login。/ Run longbridge auth login. |
| Returns empty / no data | "{symbol} 暂无财务报表数据(可能为新上市或未覆盖标的)。" | "{symbol} 暫無財務報表數據。" / "{symbol} has no financial statement data (newly listed or not covered)." |
| Only one or two statements returned | 仅展示已返回的报表,注明缺失部分,不做勾稽。 | 僅展示已返回報表,注明缺失。/ Show available statements only; note missing ones; skip reconciliation. |
| Other stderr | 直接显示原始错误,不静默重试。 | 顯示原始錯誤。/ Surface verbatim — do not retry silently. |
MCP fallback
If longbridge CLI is not installed (command not found), use MCP tools:
When the CLI is unavailable, fall back to the MCP server. Discover available tools from the MCP server's tool list at runtime — do not rely on hardcoded tool names.
MCP setup: claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp (quote scope).
Related skills
- Quick KPI snapshot →
longbridge-fundamental - Valuation (PE / PB / industry) →
longbridge-valuation - Analyst consensus & EPS forecasts →
longbridge-consensus - Industry peer comparison →
longbridge-peer-comparison
File layout
longbridge-financial-report/
└── SKILL.md # prompt-only, no scripts/