ad-watchlist
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 "ad-watchlist" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-bb254859aa222a8a468f0192cc3d273c008ffd2600c5c74caf331ae42b0e572f. Verify the upstream source and version against https://skillhub.cn/skills/org-rwhv0nty/ad-watchlist 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
Watchlist management skill for China Galaxy Securities Xingyao Data Intelligence. Locally store watchlist stocks and group information, support multiple groups and custom group names, allow single or batch add/remove and stock lookup, and automatically generate display pages including market quotes and fundamental data.
Introduction source: third_party · org-rwhv0nty · 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
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: ad-watchlist
description: 中国银河证券星耀数智自选股管理技能。可本地存储自选股及分组信息,支持多分组管理、自定义分组名称,支持单只 / 批量增减、个股检索,自动生成包含行情、基本面数据的展示页面。自选股管理 (ad-watchlist)
基于银河证券「星耀数智」(AmazingData) 数据接口,把自选股与分组信息存进本地 SQLite,
提供分组管理、增删改查、搜索,并自动补全行情与基本面、生成 HTML 展示页。
全部通过命令行 python watchlist.py 执行。
能力覆盖
- 自选股分组 — 创建 / 重命名 / 列表 / 删除
- 添加自选股 — 单只 / 批量(联网,自动补全名称、行情、基本面)
- 删除自选股 — 单只 / 批量
- 查询展示 — 列表、详情、关键词搜索、CSV 导出
- HTML 网页 — 分组标签页、分页、排序、前端筛选,增删改后自动重写
- 安装python运行环境(推荐python3.8/3.9/3.10/3.11/3.12/3.13环境),并安装AmazingData依赖包。
从https://gitee.com/cgs2026/xysz clone整个项目,再用xysz_tools下的wheel文件安装tgw和AmazingData。
pip install tgw>=1.0.8.7 pip install AmazingData>=1.1.4 - 联系开户营业部申请账号、密码、服务器IP。
- 设置环境变量:
# Windows CMD set AD_USERNAME=your_username set AD_PASSWORD=your_password set AD_HOST=server_ip set AD_PORT=port
Windows PowerShell
$env:AD_USERNAME="your_username" $env:AD_PASSWORD="your_password" $env:AD_HOST="server_ip" $env:AD_PORT="port"
## 关键行为规则
### 联网要求
- **添加(add/add-batch)和刷新(--refresh)必须联网**才能补全行情与基本面。
- **查询(list/info/search/html/export)支持离线**(`--no-api` 下照常运行)。
- 离线模式下添加/刷新操作直接拒绝,提示需要联网。
### 数据刷新时机
- **当日首次调用**:若当天尚未刷新过,先对全市场自选股做一次全量刷新,再执行具体命令。
- **每次添加**(单只/批量):重算该分组全部股票的最新数据,并自动重写 HTML。
- **`--refresh`**:强制全量重算,忽略当日已刷新标记。
- 删除操作也会自动重写 HTML。
### 结果展示
- **任何增删改操作完成后,必须自动打开 HTML 展示页给用户看**。HTML 直接生成在当前工作空间下的 `data/watchlist.html`。
- 查询类操作(list/search/info)用文本输出即可,不必打开 HTML。
### 数据库
- SQLite 库文件默认 `data/watchlist.db`,可用 `--db` 指定。
- 三张表:`groups` / `stocks` / `meta`,详见 [references/database-schema.md](references/database_schema.md)。
### 自选价格
- 不指定 `-p` 时,自选价自动取添加时的最新价。
- 自选收益 = (最新价 - 自选价) / 自选价 × 100。
## 数据字段概览
每只自选股包含基础信息(代码/名称/市场/板块/自选原因)、行情(最新价/涨跌/成交额/本周本月今年涨幅)、基本面(PB/PE/股本/市值)及衍生指标(自选收益),共 18 个字段。完整字段定义见 [references/data-fields.md](references/data_fields.md)。
## 参考文档
| 文档 | 说明 |
|------|------|
| [references/cli-reference.md](references/cli_reference.md) | CLI 参考 — 全局参数、分组/添加/查询/删除/导出全部命令示例 |
| [references/data-fields.md](references/data_fields.md) | 数据字段 — 所有 18 个字段的含义和计算方式 |
| [references/database-schema.md](references/database_schema.md) | 数据库 Schema — 三张表的完整列定义与约束 |
## 注意事项
1. 星耀数智的数据接口调用前必须先通过环境变量配置认证信息,然后调用`ad.login()`登录
2. 必须设置以下4个环境变量:`AD_USERNAME`、`AD_PASSWORD`、`AD_HOST`、`AD_PORT`
3. 账号、密码、IP和端口需联系开户营业部申请
4. AmazingData限制单点登录,所以同一时间只能有一个AmazingData的登录链接Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的自选股管理功能,包括分组、增删改查、行情与基本面数据补全
- 支持本地 SQLite 存储和 HTML 展示页生成,具备端到端闭环体验
Areas to improve
-
description 未显式强调券商限定 Reported severity: Minor
description 未明确说明该 Skill 仅适用于中国银河证券用户,可能导致其他券商用户误触发
Recommendation: 建议在 description 开头显式标注“仅限中国银河证券用户”,提升触发精准度
Highlights
- 功能描述清晰,覆盖自选股管理的核心场景
Areas to improve
-
缺少具体命令示例 Reported severity: Minor
文档未提供 `python watchlist.py` 的具体命令示例(如 add、list 等子命令的完整用法)
Recommendation: 建议在“能力覆盖”或“CLI 参考”部分补充常用命令的完整示例,降低用户上手门槛
-
缺少 When to Use 说明 Reported severity: Minor
未明确说明该 Skill 的典型使用场景和目标用户
Recommendation: 建议增加“When to Use”章节,说明适合证券投资者、需要管理多分组自选股的用户
Highlights
- 文档结构清晰,分章节说明能力、安装、规则、字段等
- 提供了参考文档链接,便于用户深入了解
Areas to improve
-
未覆盖关键异常处理 Reported severity: Major
未说明 API 调用失败、网络超时、数据解析异常等常见错误的处理机制
Recommendation: 建议在“注意事项”或新增“错误处理”章节,说明各类异常的处理方式和用户应对建议
Highlights
- 明确了联网要求和离线模式的行为规则
- 说明了数据刷新时机和 HTML 自动生成机制
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 24, 25
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- gitee.com
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.