stock-daily

stock-daily is a skill for Claude Code, Codex from Taosheng777/BigA-stock-skills. It costs 99 tokens per session (3,181 once invoked), scanned A, original, MIT.

A manual end-of-day routine for an Obsidian investment vault, a folder of linked notes, that tracks holdings, performance, watchlists, daily reviews, and next-day tasks.

In plain words
What is it for?
Use it after an A-share trading day to refresh verified holdings and performance data, update a T+N stock-tracking record, create a review outline and next-trading-day checklist, and save Git snapshots.
Why use it?
It turns several after-market record-keeping steps into one checked workflow while avoiding invented data, trading actions, and automated background runs.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the a-stock-skills plugin — 4 skills shipped together

Good fit Use it after an A-share trading day to refresh verified holdings and performance data, update a T+N stock-tracking record, create a review outline and next-trading-day checklist, and save Git snapshots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/taosheng777/biga-stock-skills/stock-daily
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Taosheng777/BigA-stock-skills --skill stock-daily
Clone the repo
git clone --depth 1 https://github.com/Taosheng777/BigA-stock-skills

Made for: Claude Code, Codex.

Or install a-stock-skills, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stock-daily

README.md
[![agentmods](https://agentmods.dev/badge/skills/taosheng777/biga-stock-skills/stock-daily/github.svg)](https://agentmods.dev/skills/taosheng777/biga-stock-skills/stock-daily)
Your own site
<a href="https://agentmods.dev/skills/taosheng777/biga-stock-skills/stock-daily"><img src="https://agentmods.dev/badge/skills/taosheng777/biga-stock-skills/stock-daily/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for stock-daily

Your own site · 80×15
<a href="https://agentmods.dev/skills/taosheng777/biga-stock-skills/stock-daily"><img src="https://agentmods.dev/badge/skills/taosheng777/biga-stock-skills/stock-daily.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,181 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00099 $0.03181
Opus 5 $0.00049 $0.01590
Sonnet 5 $0.00020 $0.00636
Haiku 4.5 $0.00010 $0.00318

Measured 12d ago against content hash 9d4ec707c112, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

stock-daily scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/a-stock-skills/skills/stock-daily/SKILL.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Stock Daily 盘后例行

按固定顺序完成投资 vault 的日终流转。只搬运、计算和核对已验证数据,不代写盘面观点,不生成交易建议。

本文件自包含,是 Claude Code 运行时适配器,git identity 使用 [ai:claude]

配置段(装好后先改这里)

Vault 根路径必须改成你自己的 Obsidian 投资 vault(且该 vault 需已 git init,否则前后快照无法执行)。下列 vault 内相对路径是本 skill 假定的目录结构示例,可按自己的 vault 调整,但六步编排引用到的文件必须真实存在。

  • Vault 根:~/Documents/投资笔记(示例占位,改成你的)
  • 硬护栏:00-系统/AI操作规则.md
  • 仓库规则:00-系统/仓库架构与整理规则.md
  • 账户纪律:01-投资体系/账户纪律计划书.md
  • 持仓:03-持仓跟踪/持仓.md
  • 净值绩效:02-每日复盘/账户净值与绩效.md
  • 台账:09-选股池跟踪/选股策略胜率台账.md
  • 复盘目录:02-每日复盘/每日复盘总结/
  • 次日目录:08-下个交易日/
  • 首页:投资笔记.md
  • 行情 CLI:~/.claude/skills/hithink-market-query/scripts/cli.py(需自装同花顺问财 CLI,见仓库 README 依赖说明)

硬边界

  • 只在人在场时手动触发;不做定时、不创建 automation、cron 或后台监控。
  • 不下单、不碰委托、不动钱,不替用户作买卖决定。
  • 不编数据。每个行情数字必须带来源和数据日;缺失就写缺口。
  • 不写未来行情。下一交易日的日期和待办可以写,但不得附带未来价格、涨跌幅或资金数据。
  • 只写六处白名单:持仓、净值绩效、台账、当日复盘、次日清单、首页;不写 04/05/06/07,不更新 HTML 仪表盘。
  • 白名单写入和 git 快照视为随本 skill 的启用一并授权,不逐次询问;范围外写入仍先问。
  • 一个数据源或一个批次失败,只让对应步骤记 未跑(原因);其他彼此独立的步骤可以继续。

运行前检查

  1. cd 到 vault,读取硬护栏、仓库规则、账户纪律、持仓、台账、首页,以及当日已有复盘/交易记录和最新次日清单。先看真实文件,不沿用会话摘要。
  2. 用系统时间确认当前日期和时区。默认例行数据日必须是“今天”;若用户明确指定补跑某个历史交易日,再使用指定日期。
  3. source ~/.zshrc,只检查 IWENCAI_API_KEY 是否存在,绝不打印密钥。
  4. 用 hithink 查询上证指数、沪深300、深证成指、创业板指、科创50的最新收盘价与涨跌幅,核对返回字段中的数据日。
  5. 默认触发若拿不到“今天”的完整收盘数据,停止所有写入并回复 未跑(今日非交易日、尚未收盘或当日收盘数据不可验证)。不要把上一交易日数据冒充今天。

六步编排

1. git 快照(前)

在任何 vault 写入前执行:

git status --short
git add -A
git commit --allow-empty -m "[ai:claude] 盘后例行前快照 YYYY-MM-DD"
git rev-parse --short HEAD

记录前快照 hash。提交失败就停止所有写入;不要在没有回滚点时继续。

2. 刷新持仓与纪律对照

  1. 持仓.md 读取股票账户现有代码、数量、成本和现金状态;若 06-交易记录/ 有数据日当天的已验证成交记录,只读并据此同步数量和成本。没有成交来源时不得推测交易。
  2. 按代码分批调用 hithink,查询数据日收盘价和涨跌幅。返回记录必须逐只核对代码、简称和日期;最多按 hithink 规则放宽重试 2 次。
  3. 只有全部主动持仓都取得同一数据日的收盘价时,才更新股票账户表。任一标的缺失则整项写 未跑(持仓行情不完整:代码列表),不做半套刷新。
  4. 用明确公式计算:
    • 市值 = 持仓数量 × 收盘价。
    • 盈亏率 = (收盘价 / 成本 - 1) × 100%
    • 仓位 = 总市值 / 总资产;只有现金或总资产有可追溯来源时才计算。
    • 单股集中度 = 单股市值 / 总资产;卫星总占比 = 卫星仓总市值 / 总资产。
  5. 现金、总资产或成本没有券商/交易记录新证据时保留原值并显著标 沿用估算,待券商核对;不得把沿用值写成数据日实测值。基金账户无新来源时保持原样并说明未刷新。
  6. 逐项读取账户纪律当前版本,不在 skill 内沿用旧阈值;一切阈值以纪律文件当前内容为准,本 skill 不内置任何数值。只写 触发 / 未触发 / 无法核对,不写买卖指令。
  7. 更新 frontmatter、数据源说明、账户层面摘要、变更记录和待办;所有数字注明数据日。

Read the full file on GitHub · 142 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 142 lines · 99 tokens per session scan A 9d4ec707c112

Subscribe to this mod's changes

stock-daily is a skill published in the GitHub repository Taosheng777/BigA-stock-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 99 tokens to every session and 3,181 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.