From longbridge
Valuation analysis for a single stock via Longbridge — current PE / PB / PS / EV-EBITDA snapshot, historical percentile (1–3 years), industry median + relative premium, industry rank. Triggers: "估值贵不贵", "是不是被低估", "PE 历史百分位", "PB 分位", "行业溢价", "行业折价", "X 现在适合买不", "估值水平", "估值貴不貴", "是否被低估", "PE 歷史分位", "行業溢價", "行業折價", "is X expensive", "is X undervalued", "PE percentile", "industry valuation premium", "valuation snapshot".
npx claudepluginhub longbridge/skills --plugin longbridgeThis skill uses the workspace's default tool permissions.
Prompt-only analysis skill. Orchestrates Longbridge CLI commands to answer *"is X expensive?"* across three dimensions: current snapshot, historical percentile, industry context.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
Prompt-only analysis skill. Orchestrates Longbridge CLI commands to answer "is X expensive?" across three dimensions: current snapshot, historical percentile, industry context.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
For multi-symbol comparison route to longbridge-peer-comparison. For business-fundamentals questions route to longbridge-fundamental.
Run longbridge <subcommand> --help to verify exact flags. Primary calls (run concurrently):
longbridge valuation TSLA.US --format json # current snapshot + peer comparison
longbridge valuation TSLA.US --history --range 3 --format json # 3-year historical series
longbridge industry-valuation TSLA.US --format json # industry median + distribution
longbridge calc-index TSLA.US --format json # optional intraday PE correction
<CODE>.<MARKET> (rules in longbridge-quote). Multiple symbols → route to longbridge-peer-comparison.longbridge is not installed, fall back to MCP (see MCP fallback section).Optional intraday correction (only when needed): longbridge calc-index — valuation is often EOD; calc-index reflects the live mid-day price.
Compute in the LLM:
| Quantity | Method |
|---|---|
| Historical PE percentile | rank current PE against valuation_history series |
| Historical PB percentile | same |
| Industry premium | (current PE − industry median PE) / industry median PE |
| Industry rank | bucket from industry_valuation_dist |
If history is sparse (< 1y) or the industry has fewer than 5 peers, degrade gracefully — show snapshot + relative-to-industry only, drop the percentile claim.
Output the three sections (template below). Cite Longbridge Securities.
{Symbol} ({code}) valuation snapshot — Source: Longbridge Securities
[Current snapshot]
- PE (TTM): X
- PB: X
- PS: X
- EV/EBITDA: X (if available)
- Dividend yield: X%
[Historical (past 3y)]
- PE in N-th percentile (low / mid / high)
- PB in N-th percentile
[Industry (N peers)]
- Industry median PE: X → currently {premium/discount} of N%
- Industry rank: {position} / N (high / mid / low bucket)
[Combined]
From historical + industry views, valuation is {low / neutral / high} — historical N-th pct, {N% above/below} industry median.
⚠️ 以上数据仅供参考,不构成投资建议。/ 以上數據僅供參考,不構成投資建議。/ For reference only. Not investment advice.
(Translate into the user's language; keep numeric values as-is.)
Energy / chemicals / steel / shipping / banks / property are cyclical: PE inverts (high PE near troughs because earnings are depressed; low PE near peaks may signal a top). When the symbol is in such an industry, add the caveat: "Cyclical industry — PE percentile must be interpreted alongside industry cycle position; do not read 'high PE = expensive' mechanically."
| Situation | Reply |
|---|---|
command not found: longbridge | Fall back to MCP; if MCP also unavailable, tell user to install longbridge-terminal. |
stderr not logged in | Tell user to run longbridge auth login. |
valuation returns empty | "{symbol} has no valuation data (likely an obscure or newly listed name)." |
| history < 1 year | Degrade to snapshot + industry-only |
| Industry < 5 peers | Caveat: "industry sample sparse; industry percentile is indicative only" |
If longbridge CLI is not installed (command not found), use MCP tools instead:
| MCP tool | CLI equivalent |
|---|---|
mcp__longbridge__valuation | longbridge valuation |
mcp__longbridge__valuation_history | longbridge valuation --history --range 3 |
mcp__longbridge__industry_valuation | longbridge industry-valuation |
mcp__longbridge__industry_valuation_dist | longbridge industry-valuation |
mcp__longbridge__latest_financial_report | longbridge financial-report |
mcp__longbridge__calc_indexes | longbridge calc-index |
MCP setup: claude mcp add --transport http longbridge https://openapi.longbridge.com/mcp (quote scope).
longbridge-peer-comparisonlongbridge-fundamentallongbridge-newslongbridge-alertlongbridge-valuation/
└── SKILL.md # prompt-only, no scripts/