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.
npx skills add minguncle/a-share-agent-skills --skill a-share-session-bootstrapgit clone --depth 1 https://github.com/minguncle/a-share-agent-skillsWrote 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.
[](https://agentmods.dev/skills/minguncle/a-share-agent-skills/a-share-session-bootstrap)<a href="https://agentmods.dev/skills/minguncle/a-share-agent-skills/a-share-session-bootstrap"><img src="https://agentmods.dev/badge/skills/minguncle/a-share-agent-skills/a-share-session-bootstrap/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.
<a href="https://agentmods.dev/skills/minguncle/a-share-agent-skills/a-share-session-bootstrap"><img src="https://agentmods.dev/badge/skills/minguncle/a-share-agent-skills/a-share-session-bootstrap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00068 | $0.01550 |
| Opus 5 | $0.00034 | $0.00775 |
| Sonnet 5 | $0.00014 | $0.00310 |
| Haiku 4.5 | $0.00007 | $0.00155 |
Grade A, and why
a-share-session-bootstrap 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
A Share Session Bootstrap
Overview
这个 skill 用来在每次新会话开始时重建基础环境,但不保存任何跨会话状态。它只生成当次分析所需的临时工作包,后续可交给市场扫描、组合校准、动作路由等 skill 继续处理。
Core Rules
- 这是无状态 skill。不要假定昨天、上个线程、旧文件里的结论今天仍然有效。
- 遇到“今天”“最新”“盘中”“刚刚”,必须先做时间锚定,再抓新数据。
- 不能直接把用户截图或材料当成完整输入。先补齐账户、仓位、周期、风险偏好和执行约束。
- 若用户未提供某些输入,可以给出默认假设,但必须显式标记为“假设”而不是“事实”。
- 这个 skill 负责建“临时工作包”,不负责给最终买卖指令。
When To Use
- 新线程开始,用户说“分析今天 A 股”
- 用户刚贴持仓截图、账户信息、选股偏好
- 之前分析已明显过期,需要重开环境
- 要开始一轮全市场扫描,但基础约束还没统一
- 需要把后续多个 skill 统一到同一份临时输入口径
Workflow
Step 1: 建立时间锚点
- 写清当前日期、时区、市场状态
- 区分盘前、盘中、收盘后
- 明确后续数据的“新鲜度要求”,例如必须使用当日数据、可接受前一交易日数据、还是只做结构复盘
Step 2: 收集最小必要输入
优先从用户当前消息中提取。若缺失严重,再用一句话提示用户补关键项。
最低优先级输入如下:
- 持仓列表或持仓截图
- 总资产、可用现金、股票市值
- 交易周期:超短、日内观察、波段、趋势
- 风格偏好:右侧确认、左侧埋伏、只做主线、可做轮动
- 约束条件:最大持仓数、最大单票仓位、是否允许追高、是否只做 A 股主板
- 目标动作:诊断、调仓、找新票、复盘、只做观察
Step 3: 校准默认假设
若用户没有给完整偏好,按以下顺序设置临时默认项,并显式说明:
- 默认只做 A 股,不自动扩展到港股或美股
- 默认不做杠杆、不做自动下单
- 默认先看市场整体,再看板块,再看个股
- 默认优先主板与高流动性标的
- 默认用“触发条件/失效条件/仓位思路/核心风险”作为后续动作模板
Step 4: 抓基础市场环境
至少建立以下背景字段,作为后续 skill 共用的当次会话底座:
- 主要指数状态
- 市场广度
- 成交额与风格偏向
- 主线板块和反向压制板块
- 风险偏好处于扩散、抱团、退潮还是混沌
Step 5: 生成临时工作包
输出一份本次线程专用的“Session Packet”,包括:
- 已确认事实
- 用户偏好与约束
- 当前缺口
- 后续建议调用的 skill 顺序
模板见 session-packet-template.md。
Tool Rules
- A 股单票、基础行情、财务、技术指标:优先使用任意可靠的单票行情 API、MCP 或网页数据源
- 大盘、板块、广度、资金和东财页面:优先网页抓取或市场级数据接口
- 用户发截图时,可用图像解析或低风险桌面读取辅助提取,但只做读取和确认,不做高风险桌面操作
- 若信息可能已变,禁止仅靠记忆回答
Output Contract
默认输出以下结构:
会话锚点已确认输入默认假设当前缺口临时工作包建议下一步
Practical Notes
- 如果用户目标是“直接给票”,也要先补一遍会话环境,至少知道其周期和仓位约束
- 如果用户同时给了宏观材料和持仓,先完成会话校准,再决定是先调用材料拆解还是组合校准
- 若持仓信息过于残缺,先做“可分析部分”,不要停在问答阶段
Inputs & Preconditions
- 用户目标:复盘、找票、调仓、只做观察,至少要明确一种
- 当前时间锚点:必须知道是盘前、盘中还是收盘后
- 持仓与约束:有则提取,无则按“无持仓或未知持仓”处理并标记
- 周期与风格:用户未提供时可临时假设,但必须显式说明
Dependency Profile
- 必需依赖:一个支持 skill 的 agent 运行环境
- 建议依赖:至少一个可访问的 A 股市场级数据源或网页源
- 可选依赖:单票行情 API/MCP、截图解析、桌面只读辅助工具
- 降级策略:若实时市场源不可用,只输出会话校准结果与后续待补数据清单
Data Gap Handling
- 缺时间锚点时,先补时间语义,再开始会话初始化
- 缺持仓、周期或风格偏好时,允许使用默认假设,但必须标注为
假设 - 缺当日市场底稿时,只建立会话 packet,不提前生成交易结论
- 不伪造账户字段、仓位数字或实时盘口数据
What ships with it
2 files 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.
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.
- 8d ago First seen · 136 lines · 68 tokens per session scan A e9d04b8216f9
a-share-session-bootstrap is a skill published in the GitHub repository minguncle/a-share-agent-skills (2 stars, last pushed 4mo ago), licensed MIT. It adds 68 tokens to every session and 1,550 once invoked, about $0.0003 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.
Other skills, from other repositories
sector-rotation
An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.
strategy-pivot-designer
Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.
twitter-reader
Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…
chenhao-limit-up
A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.
trading-risk-gate
Unified pre-trade safety gate: Ruin check (Law #1), ergodicity audit, and win-rate dominance validation. Absorbs: ergodicity-check, law-of-ruin, win-rate-dominance.
vectorbt
High-performance vectorized backtesting with parameter optimization, portfolio simulation, and rich performance metrics.