119 Commits

Author SHA1 Message Date
Jason Lee 03c5fde151 docs: Document the agent CLI commands (#64)
`longbridge agent` shipped in longbridge-terminal#280 without any skill
coverage — the CLI overview has never mentioned it. This adds a section
covering discovery, chat, follow-ups and interrupted runs.

The points worth writing down are the ones that are not obvious from
`--help`:

- **`chatbot` (LongbridgeAI) is public** but does not appear in `agent
list` — no endpoint enumerates public agents, so the CLI seeds it
client-side.
- **Runs take 1–2 minutes**, transport is SSE.
- **Follow-ups need both IDs** from the previous response (`chat_uid`
and `message_id`); one alone silently starts a new conversation.
- **`status: "interrupted"`** means clarifying questions are pending —
those resume with `agent continue`, not `agent chat`.
- **`--skill`** prints a static document (no auth, no network)
describing the whole flow; a harness should read that rather than have
the details duplicated here.

Also reflects the rename landing in longbridge-terminal#285: `longbridge
workspace list` → `longbridge agent workspaces`.

Per the CLI docs convention, flag-level detail is left to `longbridge
agent --help`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-08-13 21:37:34 +08:00
Jason Lee 84bff7bea3 docs: Update quant skill for Navi scripting (#62)
`longbridge quant run` now defaults to Navi
([longbridge-terminal#267](https://github.com/longbridge/longbridge-terminal/pull/267)).

## Changes to `skills/longbridge-quant/references/quant-cli.md`

- **Refreshed the `--help` dump** — it gained `--language` (`navi`
default, `pine` for PineScript compatibility)
- **Added a Navi example script**, verified with `navi lint`. The
reference had no example script at all before
- **Notes** now point at [navi-lang.org](https://navi-lang.org) as
authoritative and mention `navi lint`, since the API reports script
errors only as an opaque error code
- **Documented a JSON-mode caveat**: `--format json` sets
`exclude_chart`, so series values are absent from the response —
screening has to read the `Last` column from the table output instead

Related:
[longbridge/developers#1169](https://github.com/longbridge/developers/pull/1169)
covers the public docs and the `longbridge` skill.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 14:47:31 +08:00
Endless d68372ab58 feat: add ChatGPT @longbridge plugin usage notes to all skills (#61)
🤖 Auto-generated by Endless task
[#6](https://endless.longbridge-inc.com/projects/longbridge-skills/tasks/6).

Initiated by: huacnlee@longbridge-inc.com

- Added 2-line supplementary instructions to all 13 Longbridge skill
`SKILL.md` files
- Notes inform users that within ChatGPT they can invoke Longbridge
directly via `@longbridge`
- Reflects the fact that the Longbridge plugin is now available on the
ChatGPT plugin store
- Improves discoverability and usability for users accessing skills
through ChatGPT

---------

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
2026-07-10 10:41:35 +08:00
Hogan 888de9eaf5 docs: link to longbridge/extras-skills for non-financial skills (#59)
## Summary
- Adds a pointer from the main README to the new
[longbridge/extras-skills](https://github.com/longbridge/extras-skills)
repo, which hosts non-trading/non-financial skills (starting with the
LBTI investing-personality quiz) so this repo stays scoped to
securities/trading functionality.

## Test plan
- [x] Rendered README locally to confirm the link renders correctly
under "What's inside"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-08 10:35:10 +08:00
Jason Lee 35ddec0b99 fix: default slash-only skill responses to English (#56)
## Summary
- Add an explicit English fallback when skill input is only a slash
command or lacks a natural-language signal
- Apply the rule to every Longbridge skill
- Update project conventions and architecture docs so future skills keep
the same behavior

## Test Plan
- Ran missing-rule check across skills/*/SKILL.md
- Ran git diff --check

---------

Co-authored-by: Codex <codex@openai.com>
2026-06-19 18:00:41 +08:00
Endless d42e70f5a9 skills/longbridge 这个内容里面包含了有关于 SDK 的用法,容易导致 Ai 使用的时候越过 CLI、MCP 直接尝试用 SDK 来接入 Longbridge Developers (#55)
🤖 Auto-generated by Endless task
[#4](https://endless.longbridge-inc.com/projects/longbridge-skills/tasks/4).

Initiated by: Huacnlee Li Huashun

## 背景

`skills/longbridge` 是整个 Longbridge skills 集合的基础技能,面向普通投资用户。SKILL.md 中包含了
Python SDK、Rust SDK、Go SDK 的使用说明和文档链接,以及一张按场景推荐工具的对照表("Choose the Right
Tool")。

这些内容的问题在于:当用户向 AI 提出数据处理类问题(例如"帮我批量获取持仓数据"、"写一个循环抓取 K 线的脚本")时,AI
会根据表格中的推荐和文档链接主动选择 SDK 路径,绕过 Longbridge CLI 和 MCP,直接尝试用 Python/Rust/Go
SDK 接入 Longbridge 开发者平台。

对于普通用户而言,SDK 接入需要配置 OAuth 凭证、安装依赖、编写代码,远超他们的使用预期。整个 skills 体系的设计目标是 CLI
优先、MCP 次之,不引导用户走 SDK 路径。

## 摘要

- 解决的问题:AI 在普通股票查询场景下被 SDK 相关文档引导,绕过 CLI/MCP 直接尝试 SDK 接入,导致用户体验和预期不符
- 做了什么:
- 移除 frontmatter `description` 中的 `CLI/SDK/MCP development` 触发词里的 `/SDK`
部分
  - 移除 H1 副标题中的 `Python/Rust/Go SDK` 字样
  - 整段删除 `## Choose the Right Tool` 表格(共 16 行,含所有 SDK 推荐行)
- 删除 `### Python SDK`、`### Rust SDK`、`### Go SDK` 三段 Reference 链接(共 22
行)
  - 移除 Related skills 末尾说明句中的 `SDK` 字样
- 为什么这样做:最小化改动,仅在 SKILL.md 中断开 SDK 的引用入口;`references/` 目录下的 SDK
文档文件本身不删除,便于开发者直接查阅
- 如何验证:`grep -ri sdk skills/longbridge/SKILL.md` 应返回空;确认 CLI
workflow、Symbol Format、AI Integration 段落完整保留

## 修改

| 文件 | 改动内容 |
|---|---|
| `skills/longbridge/SKILL.md` | 移除所有 SDK
相关内容(触发词、副标题、工具选择表格、Python/Rust/Go SDK Reference 链接段),共删减 44 行 |

## 关键决策

整段删除 `## Choose the Right Tool` 而非仅删除 SDK 行:保留部分 CLI/MCP 行可能让 AI
从对比中推断"其他情况用 SDK",整段删除消除了这一歧义风险。

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
2026-06-18 09:34:06 +08:00
matthew 808231678f main_biz_analyze (#51)
Co-authored-by: jiezhang.qiushan <jiezhang.qiushan@longbridge-inc.com>
2026-06-15 17:55:51 +08:00
Jason Lee f5b49640e7 feat: add Codex MCP server metadata (#54)
## Summary
- Add Codex plugin MCP metadata for the hosted Longbridge HTTP MCP
server.
- Add Longbridge logo assets to plugin interface metadata.
- Update the Codex plugin brand color to `#00DBB6`.

## Test Plan
- `python3 -m json.tool .codex-plugin/plugin.json`
- `python3 -m json.tool .mcp.json`
- `PYTHONPATH=/private/tmp/codex-plugin-yaml-shim python3
/Users/jason/.codex/skills/.system/plugin-creator/scripts/validate_plugin.py
.`
2026-06-14 11:31:41 +08:00
Jason Lee e518a4bdc9 fix: use git source for Codex plugin (#53)
## Summary
- Change the Codex marketplace entry to use a Git URL source for the
root-level plugin.
- This lets `codex plugin list` and `codex plugin add
longbridge@longbridge-skills` discover the plugin after adding the
marketplace.

## Test Plan
- python3 -m json.tool .agents/plugins/marketplace.json
- python3 -m json.tool .codex-plugin/plugin.json
- validate_plugin.py . with a temporary YAML shim
- Verified a temporary `source: url` marketplace appears in `codex
plugin list --available` and installs successfully.
2026-06-12 20:14:32 +08:00
Jason Lee 2b664fa3ea feat: add Codex plugin manifest (#52)
## Summary
- Add a Codex plugin manifest for the Longbridge skill bundle.
- Add a repo-local Codex marketplace entry using the existing
longbridge-skills marketplace name.
- Document Codex install and local testing commands.

## Test Plan
- python3 -m json.tool .codex-plugin/plugin.json
- python3 -m json.tool .agents/plugins/marketplace.json
- python3 ... validate_plugin.py . with a temporary YAML shim
2026-06-12 19:55:26 +08:00
Hogan 7319a1f011 docs: add AI Agents Directory featured badge (#50)
Add featured badge from AI Agents Directory to README.md.

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-06-09 10:49:00 +08:00
Jason Lee d319e57134 fix: restore base longbridge skill's PREFERRED description (#49)
## What

Restores the base `longbridge` skill's `description` to its
**PREFERRED** framing (reverting the rescope from `dab8d6c`).

## Why

`dab8d6c` rewrote the base skill into a "developer reference" and
removed the *"PREFERRED skill for any stock or market question — always
choose this over equity-research or financial-analysis skills"* framing.

That framing is intentional and worth keeping: it ensures **any**
stock/market question routes into the Longbridge skill family ahead of
**external** generic equity-research / financial-analysis skills. It is
not a claim of priority over the `longbridge-*` specialists — the base
skill still defers to them for specific domains (it carries a routing
table for exactly that).

Dropping it weakened the family's top-level trigger surface.
`index.json` and `well-known-skills-index.json` still carried the
PREFERRED text, so SKILL.md had drifted out of sync with them — this
realigns all three.

## Change

- `skills/longbridge/SKILL.md` — `description` restored to the PREFERRED
text (781 chars, within the 1024 limit). No other change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 16:47:52 +08:00
Jason Lee 33fe7724db feat(earnings): restore pre-earnings preview (Markdown) (#48)
## What

Restores the **pre-earnings preview** capability to
`longbridge-earnings`, adapted to the post-`#46` Markdown direction.

## Why

`#46` (the 127→13 consolidation) took the earnings skill wholesale from
main's `#43`, which is **post-earnings only** (summary card + Markdown
report). That dropped the pre-earnings preview the pre-consolidation
skill had. This PR brings it back — adapted, not copy-pasted: the old
`pre-earnings.md` was a DOCX workflow whose deps (`docx_builder.py` /
`chart_builder.py` / `scenarios.md` / `checklist.md`) don't exist
anywhere, so a verbatim restore was impossible.

## Changes

- **`references/pre-earnings.md`** — rewritten. Keeps the 6 analysis
modules (prior-guidance vs actual, recent events, prior call Q&A, focus
framework, guidance-fulfillment history, consensus-vs-guidance gap) and
the inline `【一】–【八】` summary structure. Drops DOCX/matplotlib and the
missing deps; outputs an inline summary + optional **Markdown** file —
consistent with the post-earnings full report.
- **`SKILL.md`** — adds trilingual pre-earnings triggers (`财报前瞻` /
`業績前瞻` / `pre-earnings` / `earnings preview` …), a `## Pre- or
Post-earnings?` routing section, and a `pre-earnings.md` reference
entry. `description` stays within 1024 chars (890).
- **Drive-by fix**: the `Related Skills` table still pointed at
pre-consolidation slugs
(`longbridge-valuation`/`-fundamental`/`-peer-comparison`/`-news`/`-catalyst-radar`/`-quote`)
— repointed to the consolidated skills.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 16:47:41 +08:00
Hogan 762717aa1a refactor: consolidate 127 skills into 13 (-90%) (#46)
## Summary

- Consolidates 127 individual skills into **13 big skills** (10 CLI
domains + 2 external contribution skills + 1 base), reducing complexity
by 90%
- Each new SKILL.md ≤ 200 lines; detail migrates into
`references/<name>.md` loaded on demand
- Old skill directories backed up to `.deletions/` (gitignored), not in
version control

## New structure

| Skill | Covers |
|---|---|
| `longbridge-market-data` | 19 CLI commands
(quote/kline/depth/capital/IPO/fx/…) + ADR premium + FX carry |
| `longbridge-technical` | 9 TA frameworks (Ichimoku/SMC/Chan/Elliott
Wave/Turtle/Harmonic/…) |
| `longbridge-derivatives` | option + warrant + options
strategy/pnl/volatility/advanced frameworks |
| `longbridge-fundamentals` | 13 CLI commands +
DCF/value-screen/behavioral-finance frameworks |
| `longbridge-research` | 12 CLI commands + investment
research/DeFi/on-chain frameworks |
| `longbridge-portfolio` | 14 CLI commands (incl. order+dca) +
risk/rebalance/attribution frameworks |
| `longbridge-quant` | quant CLI + 12 quantitative strategy frameworks |
| `longbridge-watchlist` | watchlist + alert + sharelist (dry-run
protocol) |
| `longbridge-content` | news + filing + topic + SEC EDGAR + regulatory
KB |
| `longbridge-intel` | screener + rank + anomaly + 12 market
intelligence frameworks + ARK |
| `longbridge-earnings` | pre-earnings preview + post-earnings DOCX
(absorbs earnings-preview) |
| `longbridge-value-investing` | Graham NCAV/net-net + Buffett moat
(absorbs 4 external PR skills) |

## Design decisions

- `description` field: Simplified Chinese + English; Traditional Chinese
only for divergent glyphs — fits within 1024-char limit
- Every SKILL.md has `## Sub-topic Routing` table mapping user intent →
`references/` file
- Every SKILL.md has `## Auth requirements` section with per-command 🔐
markers
- `longbridge-technical` has `## Data dependency` noting it requires
`longbridge kline`
- Mutating skills (portfolio orders, watchlist) retain dry-run + confirm
protocol

## Test plan

- [ ] All 13 SKILL.md files ≤ 200 lines ✅
- [ ] All 13 skills present in `well-known-skills-index.json` ✅
- [ ] Install one skill and verify it triggers correctly in Claude Code
- [ ] Verify `longbridge-watchlist` dry-run protocol works for mutations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Jason Lee <huacnlee@gmail.com>
2026-06-08 16:21:37 +08:00
Jason Lee 7e8ae740f9 docs: update MCP host to mcp.longbridge.com / mcp.longbridge.cn (#45)
## Summary

- 将 MCP Host 从 `https://openapi.longbridge.com/mcp` 改为
`https://mcp.longbridge.com`
- 中国大陆加速地址从 `https://openapi.longbridge.cn/mcp` 改为
`https://mcp.longbridge.cn`
- 覆盖 `README.md`、`docs/install.md`、35 个 skill 的 `SKILL.md` 及
`skills/longbridge/references/`
- 与 longbridge/developers#1071 同步

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-05 09:50:20 +08:00
Jason Lee 9977e955fd feat(longbridge-earnings): Split into lite summary card + full Markdown report (#43)
## Problem

User feedback: the `longbridge-earnings` skill works but takes **~14
minutes** and consumes a large amount of tokens per run — a real cost
risk for general users.

Root causes:
- ~80KB of reference docs loaded across 6 files
- ~10 sequential CLI calls, each preceded by a `--help` round-trip
- python-docx/matplotlib DOCX pipeline that frequently needed multiple
debug rounds (fonts, environment)
- Mandatory mid-flow user confirmations

## Change

**Two-tier execution:**

| | Before | Lite (new default) | Full (on explicit request) |
|---|---|---|---|
| Instructions loaded | ~80KB / 6 files | **8.4KB / 1 file** | ~26KB / 3
files |
| Data round-trips | ~10+ sequential | **1 script call (~1s)** | 1
script + 1 web search |
| Deliverable | DOCX (fragile) | in-chat summary card | Markdown report
|
| Est. duration | ~14 min | **~2-3 min** | ~8-10 min |

- **`scripts/collect.py`** — pure Python stdlib (no jq, no shell —
Windows/macOS/Linux): fetches 10 data sources in parallel (16 with
`--full`) and trims the JSON to a ~3.5K-token digest; per-command
failure tolerance (`N/A` markers), HK leading-zero handling; raw JSON
kept in the printed `RAW_DIR` for the full path to reuse. SKILL.md also
documents a script-less fallback (parallel direct CLI calls with
size-conscious flags) for environments without Python
- **Lite mode (default)**: one collector call → 8-module in-chat summary
card → one-line upgrade hint; no DCF, no transcript search, no file
output
- **Full mode** (完整报告 / 深度分析 / 研报 / "full report"): Markdown research
report replaces DOCX; keeps three-method valuation (DCF + Comps +
Precedent) with full math
- Deleted `generate_report.py` and DOCX template docs; merged
`workflow.md` / `report-structure.md` / `best-practices.md` /
`summary-card-spec.md` into `references/full-report.md`

## Verified

- `collect.py 700.HK`: cold run ~1s, 13.8KB digest (8Q income statement,
consensus beat/miss flags, ratings, segments, news)
- `collect.py AAPL.US --full`: ~1.2s, 16.6KB digest incl. BS/CF,
filings, peer compare
- Invalid symbol → per-section `N/A`; `00700.HK` → `700.HK`
auto-normalized
- Fixed during testing: `industry-valuation` default payload duplicates
`compare` (switched to `dist` subcommand); peer `history` arrays
bloating digest (trimmed)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 21:01:49 +08:00
Endless 77c945d762 skills/longbridge-buffett-moat-stock-screener skills/longbridge-buffett-moat-analyzer 这两个里面的 SKILL.m (#42)
🤖 Auto-generated by Endless task
[#3](https://endless.longbridge-inc.com/projects/longbridge-skills/tasks/3).

Initiated by: Huacnlee Li Huashun

## 背景

Longbridge Skills 仓库中每个技能的 `SKILL.md` frontmatter 里的 `description` 字段是
Claude Code 判断是否激活该技能的唯一依据。Agent Skills 规范要求该字段不超过 1024 字符;超出限制时,部分 AI
工具(包括 Claude Code 本身)会抛出 warning,影响技能的正常加载与触发。

用户在审查 `longbridge-buffett-moat-stock-screener` 和
`longbridge-buffett-moat-analyzer` 时发现前者的 description 超过了 1024
字符,要求同时对仓库中所有技能进行全量检查并修复。

## 摘要

- 解决的问题:`longbridge-buffett-moat-stock-screener/SKILL.md` 的
`description` 字段长度为 1050 字符,超出 1024 字符限制 26 字符,导致 AI 工具 warning。
- 做了什么:全量扫描 `skills/` 下 121 个 SKILL.md
文件,定位唯一超限文件,在保留三语触发词和核心语义的前提下,移除一个工作流注释句子,将 description 从 1050 字符压缩至 991
字符。
- 为什么这样做:移除的句子 `Mandatory holding-period education + data-source
appendix.` 属于工作流描述,不影响技能激活;相同内容已在 SKILL.md 正文 `## Workflow` 第 11
步中完整记录,无信息丢失。
- 如何验证:在仓库根目录运行以下命令,确认所有 SKILL.md 的 description 均 ≤1024 字符:
  ```bash
  python3 -c "
  import os, re
  skills_dir = 'skills'
  over = []
  for slug in os.listdir(skills_dir):
      p = os.path.join(skills_dir, slug, 'SKILL.md')
      if not os.path.isfile(p): continue
m = re.search(r'^description:\s*\|\n((?:[ \t]+.*\n?)+)', open(p).read(),
re.MULTILINE)
      if m:
desc = '\n'.join(l.strip() for l in m.group(1).split('\n')).strip()
          if len(desc) > 1024: over.append((slug, len(desc)))
  print('Over limit:', over or 'none')
  "
  ```

## 修改

| 文件 | 改动内容 |
|---|---|
| `skills/longbridge-buffett-moat-stock-screener/SKILL.md` | 从
frontmatter description 中移除句子 `Mandatory holding-period education +
data-source appendix.`(59 字符),将 description 从 1050 字符压缩至 991 字符 |

## 关键决策

移除整句而非截断词语:将不完整的词语截断会破坏语义,移除一个完整的、与技能激活无关的工作流注释句子是最干净的方案,且不会造成任何信息丢失。

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
2026-06-04 18:31:33 +08:00
Jason Lee 7f74c415ea docs(longbridge): add Go SDK reference (#41)
## 背景

从 `longbridge/developers` 仓库提取 Go SDK skill 文档同步到本仓库的
`skills/longbridge`。所有 API 签名均经 `openapi-go` submodule(v0.21.0)源码核实。

## 改动

- 🆕 `references/go-sdk/`:`overview` / `quote-context` / `trade-context`
/ `content` / `types`
- `SKILL.md`:新增 Go SDK 引用段;正文 `Python/Rust SDK`→`Python/Rust/Go
SDK`;选型决策表纳入 Go;Related skills 末尾 SDK 语种补 Go

> 对应 developers 仓库 PR:longbridge/developers#1061

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-02 15:49:42 +08:00
Jason Lee 1e75843c78 Remove duplicate rules. (#40) 2026-06-01 18:00:39 +08:00
Jimi 0083b60f56 fix: 选股->筛股 (#39)
选股->筛股

Co-authored-by: longmin <longmin@longmindeMacBook-Pro.local>
2026-06-01 16:21:42 +08:00
Jason Lee 92b2a9cd0e docs: add Data-source policy directive to all 127 skills (#38)
## What

为全部 127 个 skill 增加 **Data-source policy(数据来源约束)** 指令,防止安装了 Longbridge
skill 的客户被引导到竞争对手平台。

## Why

避免 AI 主动建议/推荐非 Longbridge 的券商、交易
App、行情终端或第三方数据服务作为「补充」,把客户引流到竞品。这是商业意图防护,不是对外部*信息*的封禁。

## Changes

- **127 × SKILL.md** — 在响应语言指令后(或无该指令的 calendar / turtle-signal 在 H1
后)插入三语约束块:
  - 只推荐长桥数据与平台能力
  - **不要**主动建议/引导用户转向非长桥券商、交易 App、行情终端、第三方数据服务,即便作为「补充」
  - 仅当用户**主动询问**时才可提及竞品平台
- 保留带来源标注的 WebSearch 信息补充(不影响 `longbridge-news` 等 24 个带 WebSearch
fallback 的 skill)
- **CLAUDE.md** — 新增 §4b 约定 + 更新 Quick checklist 与 Anti-patterns,让后续新增
skill 默认带上该约束。

## Verification

- 每个 SKILL.md 恰好含 1 处约束;跨多行写法的 Response language 块均正确接续。
- `git status` 改动范围:128 文件(127 SKILL.md + CLAUDE.md),无意外文件。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 16:21:09 +08:00
Hogan 7b112d9bac docs: update skill count to 127, add longbridge-turtle-signal to README (#37)
## Changes

- README: 126 → 127 skills
- README: add `longbridge-turtle-signal` to Quantitative strategies
group
- docs/install.md: 19 → 127 in Path C description
- CLAUDE.md: 19 → 127 skill count

## Why

PR #36 (longbridge-turtle-signal) was merged but docs were not updated.

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-06-01 10:15:19 +08:00
matthew 7653fc6e46 add turtlee (#36)
Co-authored-by: jiezhang.qiushan <jiezhang.qiushan@longbridge-inc.com>
2026-06-01 10:10:41 +08:00
Hogan 17fe757060 fix: update marketplace.json — 125+ skills, v1.1.0 (#35)
## Changes

- Bump version `1.0.0` → `1.1.0` to trigger claudemarketplaces.com
re-crawl
- Update skill count: 17 → 125+
- Expand description to reflect current scope
- Remove Crypto from markets list (not a primary market)
- Clarify A-share as SH/SZ

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-28 11:31:18 +08:00
Jimi ae37197cab 港股打新 skill (#34)
港股打新

---------

Co-authored-by: longmin <longmin@longmindeMacBook-Pro.local>
2026-05-27 14:03:15 +08:00
Hogan 737098996c feat: add agentskills.so index files for skill discovery (#33)
## Summary

Adds two index files at repo root to enable
[agentskills.so](https://agentskills.so) crawler discovery:

- **`well-known-skills-index.json`** — Standard WKI format listing all
125 skills with their `location` URLs pointing to `skills/<slug>/`
- **`index.json`** — Internal catalog index with name, path, description
for each skill

## Why

agentskills.so crawls GitHub repos via `well-known-skills-index.json` at
the repo root. The `location` field in each entry points to the actual
skill subdirectory, so no structural changes are needed — skills stay
under `skills/`.

## Skills covered

125 skills from `longbridge` through `longbridge-watchlist-admin`.

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-25 18:36:31 +08:00
Jason Lee 4ce7a1998a fix(build): handle YAML folded block scalar (>) in frontmatter parser (#32)
## Summary

- `build-skills-json.ts` 的自定义 YAML 解析器只处理了 `|`(literal block scalar),未处理
`>` (folded block scalar)
-
`longbridge-catalyst-radar`、`longbridge-earnings`、`longbridge-earnings-preview`
三个 skill 的 `description` 字段使用了 `>` 语法,导致生成的 `skills.json` 中这些 skill 的
`description` 被输出为字面量 `">"`
- 修复后,`>` folded scalar 的内容会正确折叠(段内换行合并为空格,空行保留为段落分隔符)

## Test plan

- [ ] 运行 `bun run scripts/build-skills-json.ts --output
/tmp/test.json`,确认三个 skill 的 description 内容正常
- [ ] 合并后 CI 触发,确认 developers repo 收到正确的 PR

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 21:32:19 +08:00
Endless 6c4f3a166e Add CI to build skills.json to developers (#31)
🤖 Auto-generated by Endless task
[#20](https://endless.longbridge-inc.com/projects/developers/tasks/20).

Initiated by: Huacnlee Li Huashun

## 背景

`longbridge/skills` 仓库已积累了 125 个 skill,但 `longbridge/developers` 站点的
Skill 页面仍显示原有的 30 个条目。两个仓库之间没有自动同步机制,每次 `skills` 更新后必须手动修改 developers 里的
TypeScript catalog 文件,导致信息严重滞后。

本次改动在 `longbridge/skills` 侧新增 CI 自动化:push 到 `main` 时,读取所有
`skills/<slug>/SKILL.md` frontmatter,生成 `skills.json`,并自动向
`longbridge/developers` 提交 PR 更新该文件,使 Skill 页面始终反映最新 skill 列表。

## 摘要

- 解决的问题:新增 skill 后 developers 站点 Skill 页面不自动更新,需人工维护 TypeScript catalog
- 做了什么:
- 新增 `scripts/build-skills-json.py`:遍历 `skills/<slug>/SKILL.md`,用 pyyaml
提取 frontmatter,输出 `skills.json`(含 slug、name、description、metadata)
- 新增 `.github/workflows/update-skills-json.yml`:push to main 时运行 build
脚本,clone `longbridge/developers`,若 `skills.json` 有变更则推分支并用 `gh pr
create` 开 PR
- 为什么这样做:
  - 复用已有的 `DEVELOPERS_DISPATCH_TOKEN` secret,无需新增权限配置
  - `git diff --quiet` 检测无变更时跳过 PR,避免噪音
- 用 Python + pyyaml 解析 YAML frontmatter,GitHub Actions `ubuntu-latest`
环境天然支持,可靠性高

- 如何验证:
1. 在 skills 仓库根目录执行 `pip install pyyaml && python3
scripts/build-skills-json.py`,应输出 `Generated skills.json with 125
skills`
  2. 向 `main` 推一个测试 commit,确认 Actions 运行并在 `longbridge/developers` 产生 PR

## 修改

| 文件 | 改动内容 |
|---|---|
| `scripts/build-skills-json.py` | 新增:遍历所有 SKILL.md frontmatter,生成
skills.json |
| `.github/workflows/update-skills-json.yml` | 新增:push to main 触发,生成并 PR
同步 skills.json 到 developers |

## 关键决策

用 Python + pyyaml 而非 Node.js:pyyaml 在 `ubuntu-latest` runner 上预置,且能正确处理
SKILL.md 里的 `description: |` 多行 YAML 字符串,无需额外 npm 依赖或 package.json。

---------

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Jason Lee <huacnlee@gmail.com>
2026-05-21 21:10:47 +08:00
Jason Lee 3cc86b6f86 refactor: 移除 skill 文件中硬编码的子命令名和参数,改用 --help 发现机制 (#30)
## Summary

- 在 CLAUDE.md 中新增规则:skill 文件不应枚举具体子命令名或 flag 名,应引导 LLM 通过 `longbridge
--help` 自行发现,再用 `longbridge <subcommand> --help` 查选项
- 修复 21 个 skill 文件:将子命令映射表改为功能类别描述,代码示例中的具体操作 flag 替换为通用占位符

## 背景

部分 skill 文件中存在类似这样的表格:
```
| Financial statements | `longbridge financial-report --help` |
| Analyst consensus    | `longbridge consensus --help`        |
```

以及带具体参数的代码示例:
```bash
longbridge financial-report NVDA.US --kind IS --report af --format json
```

这些硬编码的子命令名和 flag 会随 CLI 更新而过时,导致 skill 指引与实际行为不符。

## 修改方式

表格改为功能类别描述 + `--help` 发现指引:
```
Run `longbridge --help` to see all available subcommands, then `longbridge <subcommand> --help` before calling.
Types of data needed:
- Financial statements (income, balance sheet, cash flow)
- Analyst consensus & EPS estimates
```

代码示例中移除具体 flag:
```bash
longbridge <subcommand> NVDA.US --format json   # run --help for available flags
```

## Test plan

- [ ] 检查 CLAUDE.md §5 规则表述清晰
- [ ] 抽查几个 skill 文件,确认不再有具体子命令表格或具体操作 flag

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 19:20:22 +08:00
袁章洪 673847153d docs: 124→125 skills (add longbridge-ark-analysis, PR #29)
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-14 19:28:53 +08:00
Jimi ebb77493c1 增加 ARK · 分析 skill (#29)
增加 ARK · 分析 skill

---------

Co-authored-by: longmin <longmin@longmindeMacBook-Pro.local>
2026-05-14 19:14:37 +08:00
袁章洪 da5181ecca docs: add longbridge-elliott-wave to README + install guide (PR #28)
- README: 120→124 skills; add elliott-wave⁶ to Technical analysis group
- install.md: add pandas/numpy entry to Python libraries table; update 'Install all' command

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-14 18:42:34 +08:00
matthew a6bb7c4bbe lb_ellwave (#28)
Co-authored-by: jiezhang.qiushan <jiezhang.qiushan@longbridge-inc.com>
Co-authored-by: Hogan <zhanghong.yuan@longbridge-inc.com>
2026-05-14 18:20:25 +08:00
Jason Lee e53efe69c8 Update README.md 2026-05-14 13:42:05 +08:00
Jason Lee cd896c1050 compliance: 移除 15 个 skill 中的直接投资建议内容 (#27)
## 背景

行业合规要求:平台提供的 skill 内容不得直接向用户提供投资建议(买入/卖出/持有/止损/目标价/仓位建议等)。本次对 15 个违规
skill 进行最小化修改,使其符合合规要求。

## 修改范围

### 🔴 高风险(3 个)— 明确的操作建议,必须修改

| Skill | 问题 | 修改方式 |
|---|---|---|
| `longbridge-event-opportunity` | 给出交易窗口(entry/exit timing)和历史涨幅操作暗示 |
改为"历史市场反应参考",删除交易窗口建议 |
| `longbridge-event-strategy` | Step 4 要求提供 entry
timing、stop-loss、target、holding period | 改为"历史反应数据摘要",禁止操作性建议 |
| `longbridge-post-investment` | 输出模板含 Hold/Add/Trim/Exit 四档明确操作建议 |
删除该模块,改为中性的"指标变化摘要"对比表 |

### 🟡 中风险(12 个)— 隐含推荐或具体信号,需调整措辞

| Skill | 问题 | 修改方式 |
|---|---|---|
| `longbridge-buffett-moat-stock-screener` | "🟢 大概率会买 / Likely buy" |
改为"符合巴菲特选股标准" |
| `longbridge-buffett-moat-analyzer` | "Buffett would likely
buy/hold/watch/pass" | 改为中性评级标签 |
| `longbridge-pairs-trading` | `Z > 2.0: long spread (buy A, short B)`
等交易信号 | 改为 Z 值统计区间描述 |
| `longbridge-ml-strategy` | `prob > 0.60 → Buy signal` 等买卖信号 |
改为"模型上涨/下跌概率偏高" |
| `longbridge-volatility-strategy` | 基于 HV 百分位直接推荐策略 | 改为教育性波动率环境描述 |
| `longbridge-options-strategy` | Recommended strategy 映射表 |
改为"常见策略参考",加教育性注释 |
| `longbridge-investment-ideas` | investment rationale / Why now
(catalyst) | 改为"分析摘要 / 近期关注事项" |
| `longbridge-graham-screener` | 候选列表带推荐性质 | 措辞中性化,免责声明升级 |
| `longbridge-graham-stock-analysis` | 结论带买入倾向 | 改为客观指标读数,加合规注记 |
| `longbridge-hedging` | `Buy ATM put` 具体操作指令 | 改为教育性原理说明 |
| `longbridge-tax-harvesting` | `SELL → realise loss` 操作建议 |
改为"若实现亏损(示例)"分析性语言 |
| `longbridge-dividend-screen` | 隐含推荐高股息标的 | 筛选结果措辞中性化,免责声明加"高股息不等于低风险"
|

## 修改原则

- **最小化改动**:只修改违规表述,保留数据展示、分析框架、教育性内容
- **统一免责声明**:所有修改文件在输出末尾统一追加三语(简/繁/英)免责声明
- **不删功能**:分析工具、筛选器、指标计算等核心功能完全保留,仅调整措辞

## Test plan

- [x] 检查每个修改文件是否不再包含直接的买入/卖出/持有建议
- [x] 确认免责声明已添加至所有修改文件的输出部分
- [ ] 确认分析功能、数据展示、工作流逻辑完整保留

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: 袁章洪 <zhanghong.yuan@longbridge-inc.com>
2026-05-14 13:40:13 +08:00
Hogan a31c206ccb ci: manual workflow to trigger developers skill pack + OSS upload (#23)
## Summary

Adds a **manual** GitHub Actions workflow that dispatches a
`skill-updated` event to `longbridge/developers`, triggering skill zip
packaging and OSS upload without running the full site build.

## Trigger

`workflow_dispatch` only (manual) — no automatic push trigger.

## Inputs

| Input | Options | Default | Description |
|---|---|---|---|
| `environment` | `canary` / `release` / `both` | `canary` | OSS
environment to upload to |

## How to use

1. Go to **Actions → Notify skill updated → Run workflow**
2. Select `environment`:
   - `canary` — safe for testing, no impact on production downloads
   - `release` — production only
   - `both` — push to both (full release)

## Required secret

Add `DEVELOPERS_DISPATCH_TOKEN` to this repo's Actions secrets — a PAT
(classic) with `repo` scope on `longbridge/developers`.

## Counterpart

PR
[longbridge/developers#992](https://github.com/longbridge/developers/pull/992)
— receives the dispatch and runs pack + upload with the same environment
selector.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-14 12:02:46 +08:00
Hogan 93dacf24ac fix(graham): CLI first, MCP fallback (fixes terminal#204) (#26)
## Problem

Two skills merged in #24 described the data-source priority as "CLI/MCP
first" — which conflicts with the repo convention that **CLI is always
preferred; MCP is fallback only** (see
longbridge/longbridge-terminal#204).

## Fix

| Skill | Before | After |
|---|---|---|
| `longbridge-graham-screener` | `Longbridge CLI/MCP first` |
`Longbridge CLI first; MCP fallback if CLI unavailable` |
| `longbridge-graham-stock-analysis` | `Pulls data from Longbridge
CLI/MCP first` | `Pulls data from Longbridge CLI first; MCP fallback if
CLI unavailable` |

Description-only change — no logic or behaviour affected.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-14 10:43:16 +08:00
Jimi 5858c6eda9 添加巴菲特大师选股和诊股 skill (#25)
添加巴菲特大师选股和诊股 skill

Co-authored-by: longmin <longmin@longmindeMacBook-Pro.local>
2026-05-13 19:03:48 +08:00
Jimi 4d0deff44f feat: add 2 Graham value investing skills (screener + stock analysis) (#24)
## Summary

Adds two Benjamin Graham / cigar-butt investing skills using Longbridge
CLI data.

### New skills

**`longbridge-graham-screener`** — 格雷厄姆烟蒂筛选
- Screens index constituents (HSI / CSI300 / SPX) for stocks meeting
Graham's quantitative criteria: NCAV (Net Current Asset Value), low P/E
& P/B, dividend history, earnings stability
- Ranks candidates by composite Graham score
- CLI: `longbridge constituent` + `longbridge calc-index` + `longbridge
financial-report`
- References: `criteria.md` (119L), `output.md` (96L)

**`longbridge-graham-stock-analysis`** — 格雷厄姆个股深度分析
- Full Graham analysis for a single stock: NCAV calculation, 7 defensive
investor criteria, earnings stability (10yr), dividend record, margin of
safety vs intrinsic value
- Outputs a scored report card (0–100)
- CLI: `longbridge financial-report` + `longbridge calc-index` +
`longbridge dividend`
- References: `output.md` (143L), `scoring.md` (100L)

## Validation

| Check | graham-screener | graham-stock-analysis |
|---|---|---|
| Lines (≤200) | ✅ 175 | ✅ 168 |
| Description (≤1024 chars) | ✅ 844 | ✅ 770 |
| `name` matches slug | ✅ | ✅ |
| Response language directive | ✅ | ✅ |
| Error handling 3-column | ✅ | ✅ |
| CLI `--format json` | ✅ | ✅ |
| Trilingual triggers | ✅ | ✅ |

CLI data verified live:
- `longbridge calc-index 700.HK` ✅ PE/PB/mktcap returned
- `longbridge financial-report --kind IS` ✅ 8 indicators
- `longbridge constituent HSI.HK` ✅ 50 stocks

🤖 Reviewed with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: longmin <longmin@longmindeMacBook-Pro.local>
2026-05-13 14:02:30 +08:00
Kaji a5520fc7c1 fix skill name (#22)
fix skill name

Co-authored-by: Jaime <zhihong.yuan@longbridge-inc.com>
2026-05-12 14:30:06 +08:00
Kaji 7d19455e88 update longbridge calendar skill (#20)
update longbridge calendar skill

Co-authored-by: Jaime <zhihong.yuan@longbridge-inc.com>
2026-05-12 13:53:57 +08:00
Kaji 40b18b2e08 merge financial calendar report to longbridge calendar (#19)
merge financial calendar report to longbridge calendar

---------

Co-authored-by: Jaime <zhihong.yuan@longbridge-inc.com>
2026-05-12 13:44:26 +08:00
Hogan b264a6fd1e feat: add 60 new skills (batch 2) — options, portfolio, quant, research, frameworks (#18)
## Summary

Adds 60 new skills bringing the total from 50 → 110. All skills pass
repo convention checks: trilingual triggers (Simplified / Traditional
Chinese / English), 3-column error handling tables, `--format json` CLI
examples, `--help` discovery pattern, ≤ 200 lines.

### New skills by category

**Options & derivatives (4)**
- `longbridge-options-volatility` — IV vs HV, vol smile/skew, IV
percentile
- `longbridge-options-pnl` — payoff diagrams, breakevens, Greeks
sensitivity
- `longbridge-options-strategy` — strategy selection matrix
(bullish/bearish/neutral × IV)
- `longbridge-options-advanced` — calendar/diagonal spreads, delta
hedging, vol arb, skew trading

**ETF & filings (2)**
- `longbridge-etf-analysis` — 5-dimension ETF analysis (TE, liquidity,
premium/discount)
- `longbridge-sec-filings` — SEC 10-K/10-Q/8-K/Form4/Proxy extraction
and analysis

**Portfolio & risk (7)**
- `longbridge-portfolio-diagnosis` — concentration, factor exposure,
correlation risk
- `longbridge-portfolio-rebalance` — drift analysis and rebalancing
recommendations
- `longbridge-asset-allocation` — MPT, Black-Litterman, risk parity
frameworks
- `longbridge-risk-analysis` — VaR, CVaR, max drawdown, Sharpe,
historical scenario stress tests
- `longbridge-tax-harvesting` — tax-loss harvesting with wash-sale
tracking
- `longbridge-financial-planning` — retirement/savings/education
planning
- `longbridge-risk-return` — risk-adjusted portfolio optimisation

**Value & screening (3)**
- `longbridge-value-screen` — PE/PB/ROE/dividend multi-factor value
screener
- `longbridge-dividend-screen` — high-dividend sustainability analysis
- `longbridge-smallcap-growth` — small-cap / 专精特新 growth stock discovery

**Research & events (8)**
- `longbridge-stock-research` — comprehensive equity research snapshot
- `longbridge-coverage-initiation` — 5-step first coverage report
framework
- `longbridge-industry-overview` — sector full-landscape report
- `longbridge-morning-brief` — daily morning briefing / 晨会纪要
- `longbridge-thesis-tracker` — investment thesis tracking and
validation
- `longbridge-investment-ideas` — systematic idea generation (quant +
thematic)
- `longbridge-event-strategy` — event-driven trading framework
- `longbridge-event-opportunity` — corporate event opportunity capture
(M&A/buyback/index)

**Quantitative strategies (7)**
- `longbridge-volatility-strategy` — HV percentile mean-reversion vol
strategy
- `longbridge-seasonality` — month/DOW/holiday/earnings-season calendar
effects
- `longbridge-pairs-trading` — cointegration test, hedge ratio, Z-score
signal
- `longbridge-ml-strategy` — sklearn walk-forward ML prediction
framework
- `longbridge-performance-attribution` — Brinson attribution, factor
alpha/beta
- `longbridge-correlation` — rolling correlation, cointegration,
half-life
- `longbridge-multifactor` — cross-sectional multi-factor scoring and
TopN portfolio

**Frameworks & methodology (8)**
- `longbridge-valuation-methodology` — DCF/DDM/SOTP/EV-EBITDA
methodology guide
- `longbridge-dcf` — step-by-step DCF model with Longbridge financial
data
- `longbridge-factor-research` — IC/IR factor effectiveness analysis
- `longbridge-hedging` — beta hedge, protective put, tail-risk hedging
- `longbridge-behavioral-finance` — 6 bias signals (overreaction,
herding, anchoring…)
- `longbridge-quant-stats` — ADF/GARCH/DW/Bootstrap statistical methods
- `longbridge-regulatory-kb` — A-share/HK/US/crypto regulatory knowledge
base
- `longbridge-execution-model` — slippage model, VWAP/TWAP, market
impact

**Market data & cross-market (9)**
- `longbridge-adr-premium` — ADR / H-share / A-share cross-market
premium analysis
- `longbridge-etf-flow` — US sector ETF fund flow and rotation signals
- `longbridge-fx-carry` — FX carry trade analysis
- `longbridge-index-quote` — dedicated index quote skill
(SPX/HSI/CSI300/NDX…)
- `longbridge-investment-proposal` — structured investment proposal
generation
- `longbridge-company-profile` — pitch-book company profile page
- `longbridge-supply-chain` — value-chain / supply-chain analysis
- `longbridge-competitive-analysis` — Porter five forces + peer
benchmarking
- `longbridge-company-tearsheet` — high-density one-pager snapshot

**Financial data queries (7)**
- `longbridge-basicinfo` — static reference data for all securities
- `longbridge-business-query` — operating revenue breakdown and segment
data
- `longbridge-finance-query` — multi-symbol financial metrics batch
query
- `longbridge-insresearch` — analyst rating distribution and consensus
target price
- `longbridge-ownership` — shareholder structure and major holder list
- `longbridge-market-scanner` — comprehensive quote + technical +
capital-flow scan
- `longbridge-sector-screener` — sector ranking by
momentum/flow/valuation

**Crypto/DeFi (2, partial)**
- `longbridge-defi-yield` — DeFi yield analysis (Longbridge `.HAS`
crypto + WebSearch)
- `longbridge-onchain` — on-chain data analysis (Longbridge `.HAS` +
external APIs)

---

## Test plan

- [x] All 60 SKILL.md files validated: slug=name, description ≤ 1024
chars, ≤ 200 lines, Response language directive, trilingual triggers,
3-column error table, CLI section
- [x] All 60 skills invoked via Claude Code skill system — 58/60 fully
operational
- [x] 2 known ⚠️: `defi-yield` and `onchain` return empty for
`BTCUSD.HAS` (account has no Crypto permission — documented in SKILL.md)
- [x] CLI bug fixed: `longbridge-morning-brief` — `finance-calendar`
requires subcommand (`report`/`macrodata`/`dividend`)
- [x] Known data quirks documented: `constituent` JSON key is `stocks`;
`operating` returns data for HK only; `instratings` field structure;
`option` requires subcommand

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-11 12:00:14 +08:00
Hogan 98466c9f98 feat: add 19 new skills (batch 1) — financials, technical analysis, sector & market (#17)
## Summary

Adds 19 new skills bringing the total from 31 → 50. All skills follow
repo conventions: trilingual triggers (Simplified / Traditional Chinese
/ English), 3-column error handling tables, `--format json` CLI
examples, `--help` discovery pattern, ≤ 200 lines.

### New skills

**Financials & earnings (5)**
- `longbridge-financial-report` — raw three-statement data (IS / BS /
CF), all periods
- `longbridge-financial-analysis` — 三表勾稽, DuPont decomposition,
accrual/earnings quality, fraud red flags
- `longbridge-financial-checkup` — five-dimension financial health score
(100-pt report card)
- `longbridge-consensus` — analyst consensus snapshot (revenue / EPS /
target price)
- `longbridge-earnings-revision` — estimate revision direction, SUE,
PEAD, guidance analysis

**Valuation & screening (2)**
- `longbridge-industry-valuation` — industry peer matrix + percentile
distribution
- `longbridge-factor-screen` — multi-factor fundamental screener (PE /
PB / ROE / growth / yield)

**Technical analysis (7)**
- `longbridge-candlestick` — 15 classic K-line patterns with
bullish/bearish composite score
- `longbridge-technical` — MACD / RSI / KDJ / Bollinger / EMA / ADX /
OBV voting signal engine
- `longbridge-ichimoku` — Ichimoku Cloud five-line system with six
signal checks
- `longbridge-chanlun` — 缠论 (Chan Theory) bi/zhongshu/buy-sell points
via czsc ¹
- `longbridge-elliott` — Elliott Wave zigzag + Fibonacci ratio
validation
- `longbridge-harmonic` — Gartley / Bat / Butterfly / Crab XABCD pattern
recognition
- `longbridge-smc` — Smart Money Concepts: BOS / ChoCH / FVG / Order
Block via smartmoneyconcepts ²

**Sector & market (3)**
- `longbridge-sector-rotation` — point-in-time sector momentum / capital
flow / valuation ranking
- `longbridge-sector-monitor` — 6–12 month economic cycle positioning
and sector allocation
- `longbridge-market-microstructure` — order book depth, order flow
toxicity, large-order direction

**Events & flows (2)**
- `longbridge-corporate-events` — M&A, buyback, placement, incentive,
ST/delist event classification
- `longbridge-northbound-flow` — Stock Connect cross-border capital flow
analysis

---

> ¹ `longbridge-chanlun` requires `pip install czsc` — documented in
SKILL.md and docs/install.md
> ² `longbridge-smc` requires `pip install smartmoneyconcepts` — falls
back to manual implementation if unavailable

## Test plan

- [x] All 19 SKILL.md files validated: name matches slug, description ≤
1024 chars, ≤ 200 lines, Response language directive, trilingual
triggers, 3-column error table, CLI section
- [x] Core CLI commands smoke-tested against live data:
`financial-report`, `consensus`, `industry-valuation`, `kline` + pandas
(MACD/RSI/Bollinger/candlestick/ichimoku/elliott/harmonic/SMC),
`capital`, `depth`, `news`, `corp-action`, `constituent`, `calc-index`
- [x] Known limitations documented: `operating` returns data for HK
only; `constituent --format json` key is `stocks`; czsc/smc require
separate pip install
- [x] README updated (30 → 50 skills, new skill groups table)
- [x] docs/install.md updated (new Optional Python libraries section)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-09 15:20:28 +08:00
Jason Lee 7117c2c414 feat: update skills for longbridge v0.20.0 new commands (#16)
## Summary

- **longbridge-fundamental**: 快照层改用 `financial-report --latest` +
`analyst-estimates`;标准层新增 `financial-statement`(完整行项目 IS/BS/CF);full 层新增
`institution-rating --history`、`detail`、`--industry-rank`
- **longbridge-valuation**: 新增 `valuation-rank` 命令(按日期范围查看行业 PE/PB/PS
每日百分位排名)
- **longbridge-news**: 新增 `news search` 和 `topic search` 关键词搜索子命令
- **longbridge-portfolio**: 新增 `portfolio short-margin` 融券保证金明细
- **longbridge-statement**: 新增 `bank-cards`、`withdrawals`、`deposits`
命令及触发词
- **longbridge** (基础): 工作流速查表新增所有 v0.20.0
命令(`ipo`、`financial-statement`、`analyst-estimates`、`valuation-rank`、`news
search`、`topic search`、`bank-cards`、`withdrawals`、`deposits`、`portfolio
short-margin`)

## Test plan

- [ ] 验证 `longbridge financial-statement --help` 与 SKILL.md 描述一致
- [ ] 验证 `longbridge valuation-rank --help` 与 SKILL.md 描述一致
- [ ] 验证 `longbridge analyst-estimates --help` 与 SKILL.md 描述一致
- [ ] 验证 `longbridge ipo --help` 子命令列表与 SKILL.md 一致
- [ ] 验证 `longbridge bank-cards / withdrawals / deposits --help` 正常工作

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-08 21:40:25 +08:00
Hogan 192b1cb1bc Merge pull request #15 from hogan-yuan/feat/openclaw-plugin-json
feat: add openclaw.plugin.json for clawhub.ai submission
2026-05-08 19:40:21 +08:00
袁章洪 bbd42f019b feat: add openclaw.plugin.json for clawhub.ai submission
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-08 19:21:47 +08:00
Hogan e7c9a599fc Merge pull request #14 from userjsabc1/feat/earnings-preview
feat(longbridge-earnings-preview): add pre-earnings analysis skill
2026-05-07 18:52:52 +08:00
袁章洪 e6842a1705 fix(earnings-preview): fix slug, add license/metadata, trilingual triggers, required sections
- name: earnings-preview → longbridge-earnings-preview (slug must match directory)
- Add license: MIT and metadata block (risk_level, requires_login, tier, etc.)
- Add Traditional Chinese triggers to description
- Add canonical Response language directive after H1
- Add Error handling, MCP fallback, Related skills, File layout sections

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-07 16:23:17 +08:00
jiezhang.qiushan a095c2a7ae refine the lan 2026-05-07 15:35:38 +08:00