longbridge-fundamental
Prompt-only analysis skill. Orchestrates Longbridge CLI commands to deliver a five-dimension fundamentals snapshot: profitability, financial health, growth, shareholder return, market expectation.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
Three depth tiers
LLM picks based on prompt verbosity:
| Tier |
Trigger phrases |
Data needed |
| snapshot |
"X 怎么样", "how is X", brief curiosity |
Latest financial report KPIs + analyst estimates + consensus |
| standard (default) |
"X 基本面 / 业绩 / 财报", "X fundamentals" |
Snapshot + full income/balance/cash-flow statements + dividend history |
| full |
"X 全面分析", "detailed fundamentals" |
Standard + company profile + operating data + corporate actions + institution ratings (distribution, history, per-institution detail, industry rank) |
Tiers are additive — don't pull all 8+ tools when the user asks a casual question.
When to use
- "贵州茅台 基本面", "NVDA fundamentals" → standard
- "NVDA 业绩好不好", "how is NVDA's earnings" → standard, but never reduce to good/bad — give numbers
- "AAPL 毛利率", "AAPL gross margin" → snapshot/standard
- "X 下季度 EPS 预期" → snapshot is sufficient
- "X 财务健康吗", "is X financially healthy" → standard
For valuation lens (PE, PB) → longbridge-valuation. For comparison → longbridge-peer-comparison.
CLI
Run longbridge --help to see all available subcommands, then longbridge <subcommand> --help before calling. Types of data needed by tier:
Snapshot tier (run concurrently):
- Latest financial report KPIs (revenue / EPS / ROE)
- Analyst EPS estimates (high / low / mean / median)
- Coverage count, rating distribution, consensus target price
Standard tier — add:
- Full line-item financial statements (income statement, balance sheet, cash flow)
- Dividend history
- Forward EPS by period
Full tier — add:
- Company profile
- Operating metrics
- Corporate actions
- Institution rating distribution + target price
- Rating and target price change history
- Per-institution rating detail
- Industry-wide analyst coverage rank
longbridge <subcommand> NVDA.US --format json # run --help for available flags and subcommand names
Workflow
- Resolve symbol; multi-symbol → route to
longbridge-peer-comparison.
- Pick a tier based on prompt; call CLI commands concurrently (see CLI section above).
- If
longbridge is not installed, fall back to MCP (see MCP fallback section).
- Translate fields using the dictionary below; output the 5-section structure with disclosure dates.
- Cite Longbridge Securities; end with not-investment-advice disclaimer.
Output template (5 sections, mandatory)
{Symbol} ({code}) fundamentals — Source: Longbridge Securities (period end: {fp_end / rpt_date})
[1. Profitability]
- Revenue (latest quarter): X (currency), YoY +Y%
- Net income: X, YoY +Y%
- Gross / net margin: X% / Y%
- ROE: X%
[2. Financial health]
- Debt-to-equity: X%
- Operating cash flow (TTM): X
- Free cash flow: X
- Current / quick ratio (if available)
[3. Growth]
- Revenue YoY (last 4 quarters): +X% / +Y% / +Z% / +W% — trend description
- Net income YoY (last 4 quarters): same
[4. Shareholder return]
- Last dividend date / amount
- Dividend yield: X% (if computable)
- Recent buybacks / issuance (full tier only)
[5. Market expectations (analysts)]
- Consensus next-quarter EPS: X
- Coverage: N analysts; X buy / Y hold / Z sell
- Median target price: X
⚠️ 以上数据仅供参考,不构成投资建议。/ 以上數據僅供參考,不構成投資建議。/ For reference only. Not investment advice.
(Translate to the user's language; if a section's data is missing, state so explicitly — do not invent.)
Field dictionary
The full IS / BS / CF / ratio field-name dictionary (中 / 繁 / EN), plus per-industry reading guidance, lives in references/field-dictionary.md. Load it on demand when the prompt actually requires field translation or industry context.
Output constraints
- Must cover all 5 sections (state missing data, do not silently skip).
- Must include the disclosure date (
fp_end / rpt_date).
- Must end with the not-investment-advice disclaimer.
- Do not say "good earnings / bad earnings" as a binary. Anchor language in numbers (e.g. "revenue grew 20% YoY, above the industry mean of 12%").
- Do not forecast next quarter's earnings — the analyst consensus already covers that.
Industry-specific reading
Heuristics differ by sector. Anchor on vs industry mean or vs own history, not absolute thresholds. Concrete sector notes (banks / tech / cyclicals / asset-heavy) live in references/field-dictionary.md.
Error handling
| Situation |
Reply |
command not found: longbridge |
Fall back to MCP; if MCP also unavailable, tell user to install longbridge-terminal. |
| Financial report data returns empty |
"{symbol} has no reported earnings (newly listed?)." |
| Analyst consensus has < 3 analysts |
Caveat: "small coverage — consensus is indicative only" |
| Dividend history data returns empty |
"{symbol} pays no dividends or has no dividend record." |
stderr not logged in |
Tell user to run longbridge auth login. |
MCP fallback
If longbridge CLI is not installed (command not found), use MCP tools instead:
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
- Valuation lens (PE / PB / industry) →
longbridge-valuation
- 2–5 symbol comparison →
longbridge-peer-comparison
- News / market reaction →
longbridge-news
- Live price →
longbridge-quote
File layout
longbridge-fundamental/
├── SKILL.md
└── references/
└── field-dictionary.md # IS/BS/CF/ratio field names + per-industry caveats
Prompt-only — no scripts/.
1---2name: longbridge-fundamental3description: Company fundamentals via Longbridge — latest financial report KPIs (revenue / net income / EPS / ROE / margins / cash flow), YoY trends, dividend history, forward EPS consensus, analyst ratings, corporate actions. Three depth tiers (snapshot / standard / full). Triggers: "基本面", "业绩", "财报", "财务健康", "盈利能力", "营收", "净利润", "ROE", "毛利率", "分红历史", "EPS 预期", "研报评级", "業績", "財報", "財務健康", "毛利率", "分紅歷史", "fundamentals", "financials", "earnings report", "EPS forecast", "analyst rating", "ROE", "gross margin", "free cash flow", "dividend history", "company report".4license: MIT5---6
7# longbridge-fundamental
8
9Prompt-only analysis skill. Orchestrates Longbridge CLI commands to deliver a five-dimension fundamentals snapshot: profitability, financial health, growth, shareholder return, market expectation.
10
11> **Response language**: match the user's input language — Simplified Chinese / Traditional Chinese / English.
12
13## Three depth tiers
14
15LLM picks based on prompt verbosity:
16
17| Tier | Trigger phrases | Data needed |
18|---|---|---|
19| **snapshot** | *"X 怎么样"*, *"how is X"*, brief curiosity | Latest financial report KPIs + analyst estimates + consensus |
20| **standard** (default) | *"X 基本面 / 业绩 / 财报"*, *"X fundamentals"* | Snapshot + full income/balance/cash-flow statements + dividend history |
21| **full** | *"X 全面分析"*, *"detailed fundamentals"* | Standard + company profile + operating data + corporate actions + institution ratings (distribution, history, per-institution detail, industry rank) |
22
23Tiers are additive — don't pull all 8+ tools when the user asks a casual question.
24
25## When to use
26
27- *"贵州茅台 基本面"*, *"NVDA fundamentals"* → standard
28- *"NVDA 业绩好不好"*, *"how is NVDA's earnings"* → standard, but **never reduce to good/bad** — give numbers
29- *"AAPL 毛利率"*, *"AAPL gross margin"* → snapshot/standard
30- *"X 下季度 EPS 预期"* → snapshot is sufficient
31- *"X 财务健康吗"*, *"is X financially healthy"* → standard
32
33For valuation lens (PE, PB) → `longbridge-valuation`. For comparison → `longbridge-peer-comparison`.
34
35## CLI
36
37Run `longbridge --help` to see all available subcommands, then `longbridge <subcommand> --help` before calling. Types of data needed by tier:
38
39**Snapshot tier** (run concurrently):
40- Latest financial report KPIs (revenue / EPS / ROE)
41- Analyst EPS estimates (high / low / mean / median)
42- Coverage count, rating distribution, consensus target price
43
44**Standard tier** — add:
45- Full line-item financial statements (income statement, balance sheet, cash flow)
46- Dividend history
47- Forward EPS by period
48
49**Full tier** — add:
50- Company profile
51- Operating metrics
52- Corporate actions
53- Institution rating distribution + target price
54- Rating and target price change history
55- Per-institution rating detail
56- Industry-wide analyst coverage rank
57
58```bash
59longbridge <subcommand> NVDA.US --format json # run --help for available flags and subcommand names
60```
61
62## Workflow
63
641. Resolve symbol; multi-symbol → route to `longbridge-peer-comparison`.
652. Pick a tier based on prompt; call CLI commands concurrently (see CLI section above).
663. If `longbridge` is not installed, fall back to MCP (see MCP fallback section).
674. Translate fields using the dictionary below; output the **5-section structure** with disclosure dates.
685. Cite **Longbridge Securities**; end with not-investment-advice disclaimer.
69
70## Output template (5 sections, mandatory)
71
72```
73{Symbol} ({code}) fundamentals — Source: Longbridge Securities (period end: {fp_end / rpt_date})
74
75[1. Profitability]
76- Revenue (latest quarter): X (currency), YoY +Y%
77- Net income: X, YoY +Y%
78- Gross / net margin: X% / Y%
79- ROE: X%
80
81[2. Financial health]
82- Debt-to-equity: X%
83- Operating cash flow (TTM): X
84- Free cash flow: X
85- Current / quick ratio (if available)
86
87[3. Growth]
88- Revenue YoY (last 4 quarters): +X% / +Y% / +Z% / +W% — trend description
89- Net income YoY (last 4 quarters): same
90
91[4. Shareholder return]
92- Last dividend date / amount
93- Dividend yield: X% (if computable)
94- Recent buybacks / issuance (full tier only)
95
96[5. Market expectations (analysts)]
97- Consensus next-quarter EPS: X
98- Coverage: N analysts; X buy / Y hold / Z sell
99- Median target price: X
100
101⚠️ 以上数据仅供参考,不构成投资建议。/ 以上數據僅供參考,不構成投資建議。/ For reference only. Not investment advice.
102```
103
104(Translate to the user's language; if a section's data is missing, state so explicitly — do not invent.)
105
106## Field dictionary
107
108The full IS / BS / CF / ratio field-name dictionary (中 / 繁 / EN), plus per-industry reading guidance, lives in [references/field-dictionary.md](references/field-dictionary.md). Load it on demand when the prompt actually requires field translation or industry context.
109
110## Output constraints
111
112- **Must** cover all 5 sections (state missing data, do not silently skip).
113- **Must** include the disclosure date (`fp_end` / `rpt_date`).
114- **Must** end with the not-investment-advice disclaimer.
115- **Do not** say "good earnings / bad earnings" as a binary. Anchor language in numbers (e.g. *"revenue grew 20% YoY, above the industry mean of 12%"*).
116- **Do not** forecast next quarter's earnings — the analyst consensus already covers that.
117
118## Industry-specific reading
119
120Heuristics differ by sector. Anchor on **vs industry mean** or **vs own history**, not absolute thresholds. Concrete sector notes (banks / tech / cyclicals / asset-heavy) live in [references/field-dictionary.md](references/field-dictionary.md#industry-context).
121
122## Error handling
123
124| Situation | Reply |
125|---|---|
126| `command not found: longbridge` | Fall back to MCP; if MCP also unavailable, tell user to install longbridge-terminal. |
127| Financial report data returns empty | "{symbol} has no reported earnings (newly listed?)." |
128| Analyst consensus has < 3 analysts | Caveat: "small coverage — consensus is indicative only" |
129| Dividend history data returns empty | "{symbol} pays no dividends or has no dividend record." |
130| stderr `not logged in` | Tell user to run `longbridge auth login`. |
131
132## MCP fallback
133
134If `longbridge` CLI is not installed (`command not found`), use MCP tools instead:
135
136When 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.
137
138MCP setup: `claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp` (`quote` scope).
139
140## Related skills
141
142- Valuation lens (PE / PB / industry) → `longbridge-valuation`
143- 2–5 symbol comparison → `longbridge-peer-comparison`
144- News / market reaction → `longbridge-news`
145- Live price → `longbridge-quote`
146
147## File layout
148
149```
150longbridge-fundamental/
151├── SKILL.md
152└── references/
153 └── field-dictionary.md # IS/BS/CF/ratio field names + per-industry caveats
154```
155
156Prompt-only — no `scripts/`.