longhu-smart-agent
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "longhu-smart-agent" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-fc9a38ef59cd95b746b7ad0a874cddf93f7ff4743d998c41a46770f30c82eb99. Verify the upstream source and version against https://skillhub.cn/skills/user_1e395d69/longhu-smart-agent before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Longhu smart agent for market analysis: cross-validates Longhu list and capital flows with dual engines, applies sentiment cycle assessment and six-level classification recommendations, and proactively pushes action suggestions.
Introduction source: third_party · user_1e395d69 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: longhu-smart-agent
slug: longhu-smart-agent
title: 龙虎榜智能分析体
displayName: 龙虎榜智能分析体
summary: 双引擎交叉验证龙虎榜+资金合力,情绪周期判断+六级分类推荐,主动推送操作建议
version: 1.0.0
description: 每个交易日16:45自动运行龙虎榜V3.0+资金合力V2.0双引擎交叉验证,情绪周期判断+六级分类推荐,主动推送操作建议
tags:
- 龙虎榜
- 资金分析
- 情绪周期
- 自动化
- 智能体龙虎榜智能分析体
概述
将「龙虎榜分析 V3.0」和「资金合力分析器 V2.0」组合成一个自主运行的智能体。每个交易日收盘后自动执行双引擎交叉验证,输出情绪周期判断 + 六级分类推荐 + 仓位建议,直接推送到对话。
核心理念:先判周期,再选个股,交叉验证,主动推送。
双引擎架构
每日 16:45 自动触发
↓
┌───────────────────────┐
│ 引擎1: 龙虎榜 V3.0 │
│ · 情绪周期四阶段 │
│ · 六级分类推荐 │
│ · 席位共振分析 │
│ · 板块轮动因子 │
└──────────┬────────────┘
↓
┌───────────────────────┐
│ 引擎2: 资金合力 V2.0 │
│ · 八维数据采集 │
│ · 动态权重评分 │
│ · 12种异常检测 │
│ · 置信度评估 │
└──────────┬────────────┘
↓
交叉验证 + 综合结论
↓
主动推送到对话
使用方式
方式一:定时自动运行(已配置)
每个交易日 16:45 自动执行双引擎分析,结论直接推送到对话。
方式二:手动触发
运行龙虎榜智能分析
分析今日龙虎榜并交叉验证资金
方式三:运行编排脚本
# 简洁版
python scripts/orchestrator.py
# 指定日期
python scripts/orchestrator.py --date 20260723
# 完整版JSON
python scripts/orchestrator.py --format full
输出格式
简洁版(直接推送)
🧭 陆承远视角
【情绪周期】🌱 回暖期(温度68)→ 建议仓位 4-6 成
【今日推荐】紫光股份(A+)、星网锐捷(B+)
【风险提示】多氟多、TCL科技资金出逃,回避
详细版(HTML报告)
生成完整 HTML 报告,包含:
- 情绪周期面板(温度计可视化 + 四维指标)
- 八维信号明细表
- 六级分类推荐卡片
- 异常检测告警
- 仓位管理建议
情绪周期四阶段
| 阶段 | 情绪温度 | 涨停家数 | 连板高度 | 策略 | 仓位 |
|---|---|---|---|---|---|
| 🧊 冰点期 | ≤25 | <20家 | ≤2板 | 空仓观望 | ≤2成 |
| 🌱 回暖期 | 25-65 | 30-50家 | 3-4板 | 加仓主线龙头 | 4-6成 |
| 🔥 高潮期 | ≥65 | ≥50家 | ≥5板 | 减仓落袋 | 2-3成 |
| 🌀 退潮期 | 快速下降 | 骗减 | 断板 | 坚决空仓 | ≤1成 |
六级分类推荐
| 分类 | 标签 | 含义 | 预期胜率 |
|---|---|---|---|
| A+ | 核心Alpha | 强共振+多机构+极低分歧 | 75%+ |
| A | 机构独买 | 机构独买无游资 | 80%+ |
| B+ | 强共振稳健 | 强共振+低分歧 | 60% |
| B | 游资连板 | 游资独买2板+ | 50% |
| C | 震荡观望 | 无明确信号 | 40% |
| D | 高风险回避 | 净卖出/高分歧 | 30% |
交叉验证逻辑
龙虎榜分类 + 资金合力评分联合判断:
| 龙虎榜分类 | 资金合力≥70 | 资金合力50-69 | 资金合力<50 |
|---|---|---|---|
| A+/A | ✅ 强烈推荐 | ⚠️ 降为B+ | ❌ 降为C |
| B+/B | ✅ 可关注 | ⚠️ 观望 | ❌ 降为D |
| C/D | ⚠️ 小仓位博弈 | ❌ 回避 | ❌ 回避 |
定价方案
当前状态:🆓 免费公测中
公测期(3个月)全部功能免费开放,之后开放付费订阅:
| 档位 | 价格 | 功能 |
|---|---|---|
| 基础版 | 99元/月 | 每日推送简洁版结论 |
| 专业版 | 199元/月 | 简洁版 + HTML详细报告 + 历史推荐追踪 |
| 机构版 | 499元/月 | 专业版 + API接口 + 定制标的 |
数据源
| 数据 | 来源 | 接口 |
|---|---|---|
| 龙虎榜数据 | 东方财富 | akshare stock_lhb_stock_statistic_em |
| 资金流向数据 | 东方财富 | akshare stock_individual_fund_flow_rank |
| 资金流向数据库 | 本地 SQLite | stock-fund-catcher 技能维护 |
资金流向数据库
本技能配合「股票资金抓手」(stock-fund-catcher) 技能使用,该技能维护一个 60 天滚动窗口的资金流向数据库:
- 数据库文件:
资金流向Top200.db - 存储内容:每日综合评分 Top 200 标的的资金流向数据
- 更新频率:每交易日 16:45 自动更新
- 数据维度:龙虎资金评分、主力资金评分、机构资金评分、综合评分
安装指南
1. 安装 Python 依赖
pip install akshare>=1.12.0 pandas>=2.0.0
2. 安装关联技能
本技能依赖以下技能,请确保已安装:
# 龙虎榜分析引擎
openclaw skills install longhu-analysis
# 资金合力分析引擎
openclaw skills install fund-convergence-analyzer
# 资金流向数据库(推荐)
openclaw skills install stock-fund-catcher
3. 验证安装
# 测试龙虎榜数据获取
python ~/.sosoagent/skills/longhu-analysis/scripts/analyze_v3.py
# 测试资金合力数据获取
python ~/.sosoagent/skills/fund-convergence-analyzer/scripts/analyze.py
# 测试编排脚本
python scripts/orchestrator.py
配置说明
修改定时任务
默认每交易日 16:45 执行,如需修改:
# 查看当前定时任务
cron list
# 修改执行时间(示例:改为 17:00)
cron update <jobId> --schedule "0 17 * * 1-5"
# 暂停定时任务
cron update <jobId> --enabled false
# 恢复定时任务
cron update <jobId> --enabled true
修改输出格式
编辑 scripts/orchestrator.py,修改 FORMAT 变量:
FORMAT = "brief" # 简洁版(默认)
FORMAT = "full" # 完整版 JSON
FORMAT = "html" # HTML 报告
常见问题
Q: 非交易时间运行会怎样?
A: 脚本会自动检测,输出"非交易时间,跳过更新",不会产生错误数据。
Q: 数据获取失败怎么办?
A: 可能原因:
- 网络问题 → 检查网络连接
- akshare 接口变更 → 运行
pip install --upgrade akshare更新 - 东方财富服务器维护 → 等待后重试
Q: 如何查看历史推荐记录?
A: 推荐记录保存在对话历史中,也可以查看编排脚本的输出日志:
# 查看最近一次运行结果
cat createContent/reports/longhu-report-*.html
Q: 可以分析特定股票吗?
A: 可以,直接对话即可:
分析 000001 平安银行的龙虎榜和资金流向
Q: 情绪周期判断准确吗?
A: 情绪周期基于涨停家数、连板高度、跌停家数、炸板率四维指标综合计算,历史回测准确率约 70%。但市场情绪变化快,仅供参考。
更新日志
v1.0.0 (2026-07-22)
- 🎉 首次发布
- ✅ 双引擎架构(龙虎榜 V3.0 + 资金合力 V2.0)
- ✅ 情绪周期四阶段判断
- ✅ 六级分类推荐
- ✅ 交叉验证逻辑
- ✅ 每交易日 16:45 自动执行
- ✅ 免费公测
v0.9.0 (2026-07-20)
- 内测版本
- 基础双引擎联动
技术架构
目录结构
longhu-smart-agent/
├── SKILL.md # 技能说明文档
├── .sosoclaw-market.json # 市场元数据
├── scripts/
│ └── orchestrator.py # 双引擎编排脚本
└── assets/
└── logo.png # 技能图标
数据流
akshare API
↓
┌─────────────────┐ ┌─────────────────┐
│ 龙虎榜 V3.0 │ │ 资金合力 V2.0 │
│ analyze_v3.py │ │ analyze.py │
└────────┬────────┘ └────────┬────────┘
│ │
└───────────┬───────────┘
↓
┌───────────────────────┐
│ orchestrator.py │
│ 交叉验证 + 综合评分 │
└───────────┬───────────┘
↓
┌───────────────────────┐
│ 推送到对话 / 报告 │
└───────────────────────┘
风险提示
本技能提供分析参考,不构成投资建议。投资有风险,决策需谨慎。
红线:
- ❌ 不保证收益
- ❌ 不鼓励借钱投资
- ❌ 不鼓励满仓操作
- ✅ 默认立场:先不亏,再赚钱
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决股票投资者高频刚需:龙虎榜+资金流向自动化分析决策
- 双引擎交叉验证架构显著提升分析可靠性
- 提供情绪周期判断+六级分类+仓位建议的完整投资决策链
Highlights
- 触发词覆盖多种自然语言变体,边界清晰无歧义
- 精准匹配龙虎榜+资金合力交叉验证的核心场景
Areas to improve
-
缺少独立When to Use章节 Reported severity: Minor
文档中'使用方式'实质覆盖了使用场景,但未按标准模板设置独立When to Use章节
Recommendation: 建议在概述后增加独立When to Use章节,明确适用场景和使用时机
Highlights
- 双引擎架构图清晰展示数据处理流程
- 情绪周期四阶段和六级分类表格标准化程度高
- 输出格式示例完整覆盖简洁版和详细版场景
Highlights
- 数据源明确标注akshare接口和本地数据库路径
- 异常处理覆盖网络问题、接口变更、服务器维护等常见场景
- 非交易时间自动检测避免无效执行
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 165, 236
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.