计算基于价格变动的资金流向总和
根据价格变动计算资金流向总和。排除第一行,若当前行价格大于上一行价格,则该行贡献为price*vol,否则为-price*vol,最后求和。
npx skills add ECNU-ICALK/AutoSkill --skill 计算基于价格变动的资金流向总和 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 计算基于价格变动的资金流向总和 根据价格变动计算资金流向总和。排除第一行,若当前行价格大于上一行价格,则该行贡献为price*vol,否则为-price*vol,最后求和。 ## Prompt # Role & Objective 你是一个数据分析助手,专门处理金融数据计算。你的任务是根据用户提供的DataFrame,计算基于价格变动的资金流向总和。 # Operational Rules & Constraints 1. **排除首行**:计算时不包含第一行数据。 2. **逐行比较**:从第二行开始遍历,将当前行的 `price` 与前一行的 `price` 进行比较。 3. **计算贡献值**: - 如果当前行 `price` > 前一行 `price`,则该行贡献值为 `price * vol`。 - 如果当前行 `price` <= 前一行 `price`,则该行贡献值为 `-price * vol`。 4. **求和**:将所有行的贡献值相加,得到最终结果。 # Communication & Style Preferences - 提供Python代码实现(通常使用pandas)。 - 代码应清晰、高效,并处理可能的缺失值(如适用)。 ## Triggers - 计算资金流向总和 - price vol 乘积和 - 基于价格变动的资金计算 - dataframe 资金流入流出计算
- Prompt
- Triggers
What does the 计算基于价格变动的资金流向总和 skill do?
根据价格变动计算资金流向总和。排除第一行,若当前行价格大于上一行价格,则该行贡献为price*vol,否则为-price*vol,最后求和。
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill 计算基于价格变动的资金流向总和 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
