Agent skill

longbridge-profit-analysis

Account-level profit and loss analysis via Longbridge Securities — simple return, time-weighted return (TWR), per-symbol P&L breakdown, and P&L by market. Supports custom date ranges. More focused on performance attribution than longbridge-portfolio. Requires login. Triggers: "盈亏分析", "账户盈亏", "时间加权收益", "TWR", "投资回报率", "持仓盈亏", "分市场盈亏", "业绩分析", "收益率分析", "盈虧分析", "賬戶盈虧", "時間加權收益", "投資回報率", "持倉盈虧", "profit analysis", "P&L analysis", "time-weighted return", "TWR", "account performance", "holding P&L", "profit by market", "investment return analysis", "我账户赚了多少", "我的亏损", "我賺了多少", "我的虧損".

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill longbridge-profit-analysis --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Version: 1.0.0
Declared author: longbridge
Path: skills/analysis/longbridge-profit-analysis/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# longbridge-profit-analysis Full account P&L analysis — simple return, time-weighted return (TWR), per-symbol attribution, and market-level breakdown — sourced from the user's Longbridge account. > **Response language**: match the user's input language — Simplified Chinese / Traditional Chinese / English. ## When to use - *"我账户今年赚了多少"*, *"我今年的收益率"*, *"account P&L this year"* - *"我的时间加权收益率"*, *"TWR"*, *"time-weighted return"* - *"TSLA 这只股票我亏了多少"*, *"holding P&L for NVDA"* - *"美股账户盈亏"*, *"profit by market"*, *"HK market P&L"* - *"帮我分析一下 Q1 业绩"*, *"Q1 performance analysis"* - **Prefer over `longbridge-portfolio`** when the user wants return-rate metrics (TWR eliminates cash-flow distortion) or detailed per-symbol attribution. ## Workflow 1. Confirm login; if not logged in, tell user to run `longbridge auth login` with Trade scope. 2. Identify the operation: overall P&L / per-symbol detail / by-market / custom date range. 3. Extract date range from context if specified; default to YTD if not stated. 4. Call CLI with `--format json`; run `--help` if unsure about flags. 5. Present: overall return %, absolute gain/loss, TWR (note: eliminates cash-flow timing distortion), top contributors

What's inside
Steps it walks through
  1. When to use
  2. Workflow
  3. CLI
  4. Output
  5. Overall P&L
  6. Per-symbol detail
  7. By-market
  8. Error handling
  9. MCP fallback
  10. Related skills
  11. File layout
Ships with 1 file
  • metadata.json
Commands it runs
Overall account P&L with TWR (default: YTD or account lifetime)
longbridge profit-analysis --format json
Custom date range
longbridge profit-analysis --start 2026-01-01 --end 2026-04-30 --format json
Per-symbol P&L detail
longbridge profit-analysis detail TSLA.US --format json
longbridge profit-analysis by-market --market HK --format json
Check available flags and subcommands
longbridge profit-analysis --help
More from claude-skill-registry
All skills →
About this skill
What does the longbridge-profit-analysis skill do?

Account-level profit and loss analysis via Longbridge Securities — simple return, time-weighted return (TWR), per-symbol P&L breakdown, and P&L by market. Supports custom date ranges. More focused on performance attribution than longbridge-portfolio. Requires login. Triggers: "盈亏分析", "账户盈亏", "时间加权收益", "TWR", "投资回报率", "持仓盈亏", "分市场盈亏", "业绩分析", "收益率分析", "盈虧分析", "賬戶盈虧", "時間加權收益", "投資回報率", "持倉盈虧", "profit analysis", "P&L analysis", "time-weighted return", "TWR", "account performance", "holding P&L", "profit by market", "investment return analysis", "我账户赚了多少", "我的亏损", "我賺了多少", "我的虧損".

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill longbridge-profit-analysis --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going