Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

LongbridgeAssistant

v1.0.0

长桥证券智能投资助手。自动监控持仓、生成投资组合可视化图表、智能止盈止损提醒。Use when: user asks about 长桥持仓、投资组合分析、止盈止损、股票监控、portfolio analysis、price alerts. Features: 实时获取49+只股票持仓、港股/美股分开可视化、价格触...

0· 89·0 current·0 all-time
byJaysonDing@p3dp

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for p3dp/longbridge-assistant.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "LongbridgeAssistant" (p3dp/longbridge-assistant) from ClawHub.
Skill page: https://clawhub.ai/p3dp/longbridge-assistant
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required env vars: LONGBRIDGE_APP_KEY, LONGBRIDGE_APP_SECRET, LONGBRIDGE_ACCESS_TOKEN
Required binaries: python3
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install longbridge-assistant

ClawHub CLI

Package manager switcher

npx clawhub@latest install longbridge-assistant
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
Name/description require Longbridge API access and the files/scripts require the longbridge Python SDK and matplotlib. The required env vars (LONGBRIDGE_APP_KEY, LONGBRIDGE_APP_SECRET, LONGBRIDGE_ACCESS_TOKEN) and python3 binary are consistent with the stated purpose.
Instruction Scope
Runtime instructions and scripts instruct the agent to read and source ~/.longbridge/env and to run ./run.sh which exports all variables found in that file. The Python script also reads ~/.longbridge/env itself. This is expected for an API-token-based tool, but it means any variables present in that file (not only the three declared tokens) will be loaded into the process. The SKILL.md does not instruct any unrelated system access, file exfiltration, or external endpoints beyond the Longbridge homepage.
Install Mechanism
No network download/install from untrusted URLs. setup.sh installs Python packages via pip (longbridge, matplotlib) which is proportionate. There is no extract-from-arbitrary-URL or remote binary install.
!
Credentials
Declared env vars are appropriate for the Longbridge integration. However: (1) the skill loads ~/.longbridge/env wholesale and run.sh does export $(grep -v '^#' ~/.longbridge/env | xargs), so any additional secrets placed there would be picked up; (2) monetization.md explicitly lists '匿名化用户数据卖给机构' (selling anonymized user data) as a monetization strategy — this is not implemented in code but signals a potential future data-sharing practice. Users should treat tokens as sensitive and prefer read-only or limited-scope credentials if available.
Persistence & Privilege
The skill is not always:true, does not request system-wide config changes, and does not modify other skills. It runs as a user script and relies on a user-provided env file and (optional) virtualenv; no privileged persistence is requested.
What to consider before installing
This skill is functionally coherent: it uses the Longbridge SDK to read holdings and generate charts and only needs three Longbridge credentials. Still, proceed cautiously: 1) Inspect ~/.longbridge/env before using—only store the three Longbridge tokens there and avoid adding other secrets. 2) Prefer tokens with read-only or minimal permissions if Longbridge supports scopes. 3) The monetization documentation explicitly mentions selling anonymized user data—that is not present in the code today but suggests the author may plan to collect/monetize usage data; only install if you trust the author or after confirming how user data will be handled. 4) Run the skill in an isolated environment/virtualenv and review run.sh/setup.sh to ensure they match your environment (run.sh assumes ~/.venv/longbridge). 5) If you need stronger assurance, ask the publisher for a canonical source repo (the manifest's repository URL is a placeholder) and a privacy/data-use statement, or inspect runtime network traffic to confirm no unexpected external endpoints are contacted.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

🦞 Clawdis
Binspython3
EnvLONGBRIDGE_APP_KEY, LONGBRIDGE_APP_SECRET, LONGBRIDGE_ACCESS_TOKEN
Longbridge Investment stockvk9703fbperrgvw9m0v59rwxgqx83sks6latestvk9703fbperrgvw9m0v59rwxgqx83sks6
89downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

长桥智能投资助手

自动监控长桥证券持仓,提供智能止盈止损提醒、投资组合分析和可视化图表。

When to Use

USE this skill when:

  • "查看我的长桥持仓"
  • "投资组合分析"
  • "止盈止损提醒"
  • "生成持仓图表"
  • "监控股票价格"
  • "portfolio analysis"
  • "price alerts"

When NOT to Use

DON'T use this skill when:

  • 其他券商账户(如富途、老虎)
  • 实时交易执行(仅监控提醒)
  • 技术分析指标(K线、MACD等)
  • 历史交易记录查询

Commands

查看持仓

cd ~/.qclaw/workspace/skills/longbridge-assistant
./run.sh

配置 API

./setup.sh

自定义监控

编辑 longbridge_skill.py 中的 ALERTS 字典:

ALERTS = {
    'AAPL.US': [
        {'price': 150.0, 'action': 'buy_more', 'msg': '苹果回调至$150,建议加仓'},
        {'price': 200.0, 'action': 'sell_partial', 'msg': '苹果涨至$200,建议减仓'},
    ],
}

Example Output

🦞 长桥智能投资助手 v2.0.0

📊 获取持仓及市值信息...
✅ 获取成功,共 49 只持仓
💰 总市值: $1,769,599

📈 生成投资组合图表...
   ✅ 图表已保存: portfolio_chart.png

📋 前10大持仓:
 1. 🟢 小米(1810.HK)     10700股 @ $33.20 = $355,240
 2. 🟢 7226.HK           60000股 @ $3.86  = $231,600
 ...

🔔 价格提醒检查:
   ⚠️  SMCI 当前 $22.15,低于目标 $35

📊 组合分析:
   总持仓: 49 只
   做多: 41 只 ($1,715,764)
   做空: 8 只 ($53,835)
   净值: $1,661,929

   💡 建议: 持仓过于分散,建议集中优质标的

Setup

1. 安装依赖

pip install longbridge matplotlib

2. 配置 API Token

创建文件 ~/.longbridge/env

export LONGBRIDGE_APP_KEY="你的AppKey"
export LONGBRIDGE_APP_SECRET="你的AppSecret"
export LONGBRIDGE_ACCESS_TOKEN="你的AccessToken"

获取方式:https://open.longportapp.com

3. 运行

./run.sh

Features

功能说明
持仓监控自动获取49+只股票
可视化港股/美股分开饼图
止盈止损价格触发提醒
投资建议持仓分析建议

Notes

  • 需要长桥 OpenAPI 权限
  • API 有调用频率限制
  • 仅供参考,不构成投资建议

Version

v2.0.0 (2026-03-23)

Comments

Loading comments...