tougu-adjust-report
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 "tougu-adjust-report" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b5867d98db85f29c67ef01770f8a11a9574ea5a3531a10d342523ecd92673a63. Verify the upstream source and version against https://skillhub.cn/skills/user_0a563829/tougutiaocang 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
Investment-advisor rebalancing daily report with a five-layer structure (consensus → major strategy → details → statistics → notes). Filters items with changes ≥10% and delivers results as table-style cards.
Introduction source: third_party · user_0a563829 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: tougu-adjust-report
description: "投顾调仓日报:5层结构(共识→大幅策略→明细→统计→说明),≥10%过滤,表格卡片推送。"投顾调仓日报
生成投顾调仓日报,输出为 5 层结构化 markdown 表格卡片,推送到群聊或单聊。
执行流程
Step 1:获取查询当时时间
exec: date '+%Y-%m-%d %H:%M:%S'
取查询当时的日期时间,统计日由查询当时动态推算。从查询当时的日期倒推:尝试 tcHistory 拉取当天数据,如为空则用前一天。不硬编码"昨天"。
Step 2:拉取数据
按顺序调用:
getTouguCompareBasicInfo(pageNo=1, pageSize=200)— 获取全平台投顾策略列表(含 platform 字段)- 对每个策略,调用
getTouguCompareAdjustDateList(tgName, channel)筛选统计日有调仓的 - 对有调仓的策略,调用
tcHistory(pageNo=1, pageSize=100)拉取调仓详情
将 basicInfo 的平台信息(platform 字段)与 tcHistory 结果做 join,补齐每条调仓记录的所属平台。
Step 3:Python 聚合
用 exec 执行 Python 完成三层聚合。处理逻辑见 scripts/aggregate.py,所有数据使用查询当时的实时 API 返回值:
- 基金共识层(表3+表4):按 fundCode GROUP BY,统计每只基金被多少投顾加仓/减仓、仓位变化总和,分加仓共识和减仓共识各取 TOP5
- 大幅调仓层(表2+表5):筛选
|仓位变化| ≥ 10的记录,按策略维度输出(带平台列),按明细维度输出(带调前/调后占比列) - 统计总数、大幅数、共识数
Step 4:格式化输出(5层结构,表格卡片形式)
按 ↓ 顺序输出,每层一个表格卡片。
🔥 第一层:基金集体动向(加仓共识)
━━ 🔥 加仓共识 TOP5(按被调仓投顾数降序)━━
| # | 基金名称 | 代码 | 被调数 | 仓位变化 |
| 1 | xxx | xxx | 4 | +49% |
🔻 第二层:基金集体动向(减仓共识)
━━ 🔻 减仓共识 TOP5(按被调仓投顾数降序)━━
| # | 基金名称 | 代码 | 被调数 | 仓位变化 |
| 1 | xxx | xxx | 5 | -53.86% |
⚡ 第三层:大幅调仓策略(≥10%,按变化降序)
━━ ⚡ 大幅调仓策略(仓位变化 ≥10%)━━
| # | 策略 | 机构 | 平台 | 基金 | 变化 |
| 1 | 專时货币佳 | 博时基金 | 天天基金 | 华夏沃利货币B | +14% |
🔍 第四层:大幅调仓明细(≥10%,按变化降序)
━━ 🔍 大幅调仓明细(仓位变化 ≥10%)━━
| # | 基金 | 代码 | 平台 | 机构 | 策略 | 方向 | 调前% | 调后% | 变化 |
| 1 | 万家宏观择时 | 017787 | 天天基金 | 国联民生 | 表量化指数 | 减仓 | 2.04 | 0 | -2.04 |
📌 第五层:统计概览 + 数据说明
📌 查询当时共 {n} 条调仓,涉及 {x} 策略 / {y} 只基金
其中大幅调仓(≥10%){z} 条、加仓共识 {a} 只、减仓共识 {b} 只
⚠️ 仅展示仓位变化 ≥10% 的记录,微调已过滤
数值 "-" 表示平台未公开披露实际占比
数据来源:乐数接口(查询当时 {yyyy-MM-dd HH:MM})
输出规则
- 表格必须用 markdown 格式,列名和行数据对齐
- 加仓/减仓方向用
+/-前缀区分(如+14%/-2.04) - 无调仓时简洁回复:
📌 查询当时暂无可监测到的投顾调仓记录 - 最后附接口调用清单表格(见 AGENTS.md 规范)
- 控制在 800 字内,表格紧凑优先
推送
用 message 工具发送,目标由调度方(cron 或用户)指定。
约束
- 所有数值计算必须通过
execPython 执行,禁止心算 - 仅展示 ≥10% 仓位变化,微调(±0.01% 量级)直接过滤
- 数据来源标注查询当时的具体时间
- 不构成投资建议,仅作运营监控
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向金融运营监控场景,具有明确的业务价值和高频使用需求
- 能显著提升投顾调仓信息的聚合与展示效率
Highlights
- description 明确描述了核心功能(5层结构、≥10%过滤、表格卡片推送)
- 触发词完整且边界清晰
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档中缺少 When to Use 章节,影响用户快速理解使用场景
Recommendation: 建议补充 When to Use 章节,说明该 Skill 的典型使用场景和时机
-
缺少具体示例章节 Reported severity: Minor
虽有输出模板但缺少真实数据的具体示例
Recommendation: 建议补充一个完整的具体示例,展示真实数据下的输出效果
Highlights
- Phase/步骤清晰(Step 1-4),有出口条件(无调仓时简洁回复)
- 含端到端示例,frontmatter 完整,单文件未超500行
Highlights
- 工具来源明确(getTouguCompareBasicInfo、getTouguCompareAdjustDateList、tcHistory、exec Python、message)
- 参数正确,覆盖主要异常(无调仓时处理)
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.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
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.