sdicsc-crowding-degree
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 "sdicsc-crowding-degree" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ed4b87f166609c0a3ca8fcf2e66afffe4ab2c357fdbfd11e9ef72a63ff780ff0. Verify the upstream source and version against https://skillhub.cn/skills/org-0q3x1etg/sdicsc-crowding-degree 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
Industry crowding-degree query tool by Guotou Securities. Uses market-wide turnover, total market value, turnover rate and related indicators to provide industry crowding-degree data queries. Used to query industry crowding and related market conditions.
Introduction source: third_party · org-0q3x1etg · 1.0.2 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: sdicsc-crowding-degree
displayName: 国投证券行业拥挤度
version: 1.0.2
description: 国投证券行业拥挤度查询工具,依托全市场成交额、总市值、换手率等指标,提供行业拥挤度数据查询服务。当用户查询行业拥挤度、某行业市场情况时使用此skill。
trigger_keywords:
- A股行业拥挤度
- 行业拥挤度
- 某行业交易市场情况
- 半导体拥挤度
- 互联网拥挤度
- 医药拥挤度
- 新能源拥挤度
allowed-tools:
- execute_command行业拥挤度查询工具
概述
提供行业拥挤度数据查询服务,依托全市场成交额、总市值、换手率等指标,帮助投资者了解各行业的市场交易情况。
工作流程
用户请求 → API Key检查 → 设置环境变量 → 调用脚本取数 → 解析JSON → 输出行业拥挤度报告 → 添加免责声明 → 结束
执行步骤:
-
API Key 检查 — 读取
memory.md,确认已配置 API Key;未配置则提示用户先获取 -
设置环境变量 — 从
memory.md读取 API Key,设置环境变量GT_CROWDING_DEGREE_API_KEY -
提取行业关键词 — 从用户输入中提取行业关键词(如"半导体"、"医药"、"新能源"等)
-
调用脚本取数 — 无需读取 industry_info.json 文件,直接执行命令:
python scripts/query_crowding.py 关键词 -
解析返回数据 — 解析 JSON 结构,输出数据:
- 使用md表格输出数据
- 基于数据输出指标解读
- 提示客户数据来源:国投证券
JSON 结构解析:
code:状态码msg:信息data:数组,包含:code:指数代码name:行业名称crowding_data:原始拥挤度数据
- 映射关系:
- Max → stats.max
- Min → stats.min
- Now → stats.now
- 分位数 → stats.quantile
- 本周数据 → trend.last_week
- 本周环比增减 → trend.diff_week
- 环比增幅 → trend.diff_pct
- 上周环比增减 → trend.last_diff_week
- 环比增幅 → trend.last_diff_pct
- 上上周环比增减 → trend.last2_diff_week
- 环比增幅 → trend.last2_diff_pct
-
输出 Markdown 报告 — 按指定格式输出行业拥挤度数据
-
添加风险提示 — 报告末尾必须完整展示
assets/disclaimer.md的声明内容
前置配置
获取 API Key
该技能依赖国投证券的数据服务,需要先配置 API Key。
如未配置 API Key,请提示用户前往以下地址获取: https://www.sdicsc.com.cn/skills
API Key 持久化存储
当用户提供 API Key 并完成凭证配置后,智能体必须执行以下操作:
-
立即写入 memory.md:
-
创建或更新
./memory.md文件 -
添加以下内容:
## 行业拥挤度服务配置 - API Key: [用户提供的API Key] - 环境变量名: GT_CROWDING_DEGREE_API_KEY - 配置时间: [当前时间]
-
-
后续调用脚本时设置环境变量:
- 从 memory.md 读取 API Key
- 在调用脚本前设置环境变量:
import os api_key = 从memory.md读取的API Key os.environ["GT_CROWDING_DEGREE_API_KEY"] = api_key - 然后调用脚本执行行业拥挤度查询
-
确认存储成功:告知用户 API Key 已保存,后续使用无需重复配置
注意事项:
- memory.md 用于智能体长期记忆,确保 API Key 在会话间保持有效
- 环境变量
GT_CROWDING_DEGREE_API_KEY是脚本读取 API Key 的唯一途径 - 每次调用脚本前必须设置该环境变量,否则脚本将无法获取 API Key
- 如用户更换 API Key,需同步更新 memory.md 中的配置
异常处理
API Key 异常
- 返回
401:未携带 API Key,引导用户按上述步骤配置 - 返回
403:API Key 无效,引导用户重新获取并更新memory.md
数据查询异常
- 返回
超时(Timeout):自动重试,最多3次,间隔≥2秒 - 返回
500:服务器错误,自动重试,最多3次,间隔≥2秒 - 无响应:网络问题,检查网络连接后重试
数据为空
- 若
crowding_data为空,输出:当前指数暂无拥挤度统计数据 - 若返回
data为空数组,输出:未找到匹配的行业,请检查行业名称是否正确
输出规范
行业拥挤度监测数据
数据统计时间:{{crowding_data.calc_time}}
指数信息
指数代码:{{code}}|行业名称:{{name}}
一、5日维度拥挤度指标表
| 指标行 | 成交额占比-近5日平均值占比 | 总市值占比-近5日平均值占比 | 换手率占比-近5日平均值占比 |
|---|---|---|---|
| Max | {{crowding_data.5d.amount_ratio.stats.max}} | {{crowding_data.5d.total_market_value_ratio.stats.max}} | {{crowding_data.5d.turnover_ratio.stats.max}} |
| Min | {{crowding_data.5d.amount_ratio.stats.min}} | {{crowding_data.5d.total_market_value_ratio.stats.min}} | {{crowding_data.5d.turnover_ratio.stats.min}} |
| Now(当前周期) | {{crowding_data.5d.amount_ratio.stats.now}} | {{crowding_data.5d.total_market_value_ratio.stats.now}} | {{crowding_data.5d.turnover_ratio.stats.now}} |
| 分位数 | {{crowding_data.5d.amount_ratio.stats.quantile}} | {{crowding_data.5d.total_market_value_ratio.stats.quantile}} | {{crowding_data.5d.turnover_ratio.stats.quantile}} |
| 上周数据 | {{crowding_data.5d.amount_ratio.trend.last_week}} | {{crowding_data.5d.total_market_value_ratio.trend.last_week}} | {{crowding_data.5d.turnover_ratio.trend.last_week}} |
| 本周环比增减 | {{crowding_data.5d.amount_ratio.trend.diff_week}} | {{crowding_data.5d.total_market_value_ratio.trend.diff_week}} | {{crowding_data.5d.turnover_ratio.trend.diff_week}} |
| 环比增幅 | {{crowding_data.5d.amount_ratio.trend.diff_pct}} | {{crowding_data.5d.total_market_value_ratio.trend.diff_pct}} | {{crowding_data.5d.turnover_ratio.trend.diff_pct}} |
| 上周环比增减 | {{crowding_data.5d.amount_ratio.trend.last_diff_week}} | {{crowding_data.5d.total_market_value_ratio.trend.last_diff_week}} | {{crowding_data.5d.turnover_ratio.trend.last_diff_week}} |
| 环比增幅 | {{crowding_data.5d.amount_ratio.trend.last_diff_pct}} | {{crowding_data.5d.total_market_value_ratio.trend.last_diff_pct}} | {{crowding_data.5d.turnover_ratio.trend.last_diff_pct}} |
| 上上周环比增减 | {{crowding_data.5d.amount_ratio.trend.last2_diff_week}} | {{crowding_data.5d.total_market_value_ratio.trend.last2_diff_week}} | {{crowding_data.5d.turnover_ratio.trend.last2_diff_week}} |
| 环比增幅 | {{crowding_data.5d.amount_ratio.trend.last2_diff_pct}} | {{crowding_data.5d.total_market_value_ratio.trend.last2_diff_pct}} | {{crowding_data.5d.turnover_ratio.trend.last2_diff_pct}} |
二、20日维度拥挤度指标表
| 指标行 | 成交额占比-近20日平均值占比 | 总市值占比-近20日平均值占比 | 换手率占比-近20日平均值占比 |
|---|---|---|---|
| Max | {{crowding_data.20d.amount_ratio.stats.max}} | {{crowding_data.20d.total_market_value_ratio.stats.max}} | {{crowding_data.20d.turnover_ratio.stats.max}} |
| Min | {{crowding_data.20d.amount_ratio.stats.min}} | {{crowding_data.20d.total_market_value_ratio.stats.min}} | {{crowding_data.20d.turnover_ratio.stats.min}} |
| Now(当前周期) | {{crowding_data.20d.amount_ratio.stats.now}} | {{crowding_data.20d.total_market_value_ratio.stats.now}} | {{crowding_data.20d.turnover_ratio.stats.now}} |
| 分位数 | {{crowding_data.20d.amount_ratio.stats.quantile}} | {{crowding_data.20d.total_market_value_ratio.stats.quantile}} | {{crowding_data.20d.turnover_ratio.stats.quantile}} |
| 上周数据 | {{crowding_data.20d.amount_ratio.trend.last_week}} | {{crowding_data.20d.total_market_value_ratio.trend.last_week}} | {{crowding_data.20d.turnover_ratio.trend.last_week}} |
| 本周环比增减 | {{crowding_data.20d.amount_ratio.trend.diff_week}} | {{crowding_data.20d.total_market_value_ratio.trend.diff_week}} | {{crowding_data.20d.turnover_ratio.trend.diff_week}} |
| 环比增幅 | {{crowding_data.20d.amount_ratio.trend.diff_pct}} | {{crowding_data.20d.total_market_value_ratio.trend.diff_pct}} | {{crowding_data.20d.turnover_ratio.trend.diff_pct}} |
| 上周环比增减 | {{crowding_data.20d.amount_ratio.trend.last_diff_week}} | {{crowding_data.20d.total_market_value_ratio.trend.last_diff_week}} | {{crowding_data.20d.turnover_ratio.trend.last_diff_week}} |
| 环比增幅 | {{crowding_data.20d.amount_ratio.trend.last_diff_pct}} | {{crowding_data.20d.total_market_value_ratio.trend.last_diff_pct}} | {{crowding_data.20d.turnover_ratio.trend.last_diff_pct}} |
| 上上周环比增减 | {{crowding_data.20d.amount_ratio.trend.last2_diff_week}} | {{crowding_data.20d.total_market_value_ratio.trend.last2_diff_week}} | {{crowding_data.20d.turnover_ratio.trend.last2_diff_week}} |
| 环比增幅 | {{crowding_data.20d.amount_ratio.trend.last2_diff_pct}} | {{crowding_data.20d.total_market_value_ratio.trend.last2_diff_pct}} | {{crowding_data.20d.turnover_ratio.trend.last2_diff_pct}} |
数据来源
数据来源:国投证券
注意事项
【重要】风险提示及免责声明 — 报告末尾必须完整展示 assets/disclaimer.md 的声明内容,不得省略
Current listing version
1.0.2
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供A股行业拥挤度查询服务,解决投资者了解行业市场交易情况的需求
- 依托成交额、总市值、换手率等指标,具有实际投资参考价值
Highlights
- 触发词覆盖'A股行业拥挤度'、'行业拥挤度'及具体行业关键词,边界清晰
- 支持多种变体查询,如'某行业交易市场情况'
Areas to improve
-
Document is too long Reported severity: Minor
SKILL.md文档内容超过500行,影响可读性
Recommendation: 建议将部分内容拆分为独立文件或精简描述
-
缺少When to Use章节 Reported severity: Minor
文档中未明确提及When to Use章节
Recommendation: 建议添加When to Use章节,明确说明Skill的使用场景
Highlights
- 工作流程清晰,包含Phase划分和执行步骤
- frontmatter完整,包含name、displayName、version、description、trigger_keywords、allowed-tools
Areas to improve
-
依赖外部API Key配置 Reported severity: Major
Skill依赖用户配置国投证券API Key,存在配置失败风险
Recommendation: 建议提供更详细的API Key获取和配置指引,或考虑内置默认Key
Highlights
- 覆盖主要异常情况,包括API Key异常、数据查询异常、数据为空等
- 有自动重试机制(最多3次,间隔≥2秒)
- 不可逆操作有确认机制(API Key持久化存储)
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.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 32, 34, 76, 78, 80
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.
- www.sdicsc.com.cn
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
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.