a-share-action-router

a-share-action-router is a skill for Codex from minguncle/a-share-agent-skills. It costs 70 tokens per session (1,240 once invoked), scanned A, original, MIT.

A decision framework that combines the current Chinese stock market, a portfolio, and the investor's constraints into an order for keeping, reducing, selling, or adding positions.

In plain words
What is it for?
Use it to plan portfolio changes, decide which holdings to keep or reduce, choose a replacement or new position, and prepare responses to different next-day market openings.
Why use it?
It turns market and portfolio information into conditional actions while accounting for concentration, conflicting positions, liquidity, and risk.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to plan portfolio changes, decide which holdings to keep or reduce, choose a replacement or new position, and prepare responses to different next-day market openings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/minguncle/a-share-agent-skills/a-share-action-router
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 minguncle/a-share-agent-skills --skill a-share-action-router
Clone the repo
git clone --depth 1 https://github.com/minguncle/a-share-agent-skills

Made for: Codex.

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 a-share-action-router

README.md
[![agentmods](https://agentmods.dev/badge/skills/minguncle/a-share-agent-skills/a-share-action-router/github.svg)](https://agentmods.dev/skills/minguncle/a-share-agent-skills/a-share-action-router)
Your own site
<a href="https://agentmods.dev/skills/minguncle/a-share-agent-skills/a-share-action-router"><img src="https://agentmods.dev/badge/skills/minguncle/a-share-agent-skills/a-share-action-router/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 a-share-action-router

Your own site · 80×15
<a href="https://agentmods.dev/skills/minguncle/a-share-agent-skills/a-share-action-router"><img src="https://agentmods.dev/badge/skills/minguncle/a-share-agent-skills/a-share-action-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,240 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.00070 $0.01240
Opus 5 $0.00035 $0.00620
Sonnet 5 $0.00014 $0.00248
Haiku 4.5 $0.00007 $0.00124

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

Security

Grade A, and why

a-share-action-router 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 11d 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.

skills/core/a-share-action-router/SKILL.md · 141 lines

What it actually says

A Share Action Router

Overview

这个 skill 负责把信息汇总成动作,但动作必须建立在新鲜的市场底稿和已校准的组合底稿之上。它不靠情绪拍板,而是输出有触发条件和失效条件的动作序列。

Hard Rules

  1. 没有当日市场工作包时,不能直接给最终调仓结论。
  2. 没有组合校准时,不能做精细化仓位建议。
  3. 每个动作必须包含:触发条件、失效条件、仓位思路、核心风险。
  4. 不给“梭哈”“满仓切换”这类粗暴建议。
  5. 若用户只给一个大方向,不强行扩展成十几个动作,保持优先级。

When To Use

  • 用户问“我现在该怎么调”
  • 用户发了持仓,希望给留减清和处理顺序
  • 用户要结合盘面与持仓一起决策
  • 用户要一只新建仓标的,但已有现有持仓约束

Workflow

Step 1: 预检

先检查两类输入是否齐全:

  • 市场工作包是否足够新
  • 组合工作包是否足够完整

若缺任何一项,先补,不跳步。

Step 2: 确定主场景

把当前会话归到一个主场景,例如:

  • 主线扩散
  • 主线高位分歧
  • 防守轮动
  • 普跌退潮
  • 混沌震荡

Step 3: 逐仓分类

将持仓分成:

  • 保留
  • 减仓
  • 清理
  • 观察
  • 可替换成更优标的

Step 4: 排序

动作顺序必须明确,优先处理:

  • 单票集中度过高
  • 与当前主场景冲突的仓位
  • 流动性差、解释力弱的边缘票
  • 可腾挪出的资金来源

Step 5: 新建仓或替代方案

若用户要求“推荐今天建仓的一只”,必须在当前主场景内挑一只最匹配的,不做面面俱到的票池。并说明:

  • 为什么是它,不是板块内别的票
  • 适合什么买法
  • 什么时候不该买

完整动作模板见 router-template.md

Step 6: 次日执行剧本

给出至少三种盘口情景:

  • 高开
  • 平开震荡
  • 低开或分歧

每种情景下动作如何变化。

Tool Rules

  • 市场强弱与板块强弱优先来自当日数据
  • 个股动作不能只看盈亏,要看它与主线关系
  • 若用户提供的持仓截图时间不明,先按“当前截图”处理,但显式标注可能滞后

Output Contract

默认输出:

  • 主场景判断
  • 留减清加表
  • 处理顺序
  • 目标仓位结构
  • 次日剧本
  • 风险清单

Practical Notes

  • 若组合里最大的风险是单票过重,要先解决集中度,再谈新开仓
  • 若市场没有明确主线,不强推新票,优先保留现金与观察
  • 若用户偏好左侧埋伏,仍要告诉他右侧确认线在哪里

Inputs & Preconditions

  • 最好同时具备市场工作包和组合工作包
  • 若只具备其中一项,只能输出临时动作框架,不能伪装成最终执行单
  • 用户若要求新建仓,应先明确周期、主板约束和最大单票仓位

Dependency Profile

  • 必需依赖:一个支持 skill 的 agent 运行环境
  • 建议依赖:当日市场工作包 + 已校准持仓工作包
  • 可选依赖:单票行情页、公告或研报页,用于补强候选逻辑
  • 降级策略:缺市场或组合底稿时,只输出 provisional 动作顺序和待补项

Data Gap Handling

  • 缺市场底稿时,不把个股盈亏变化误写成调仓依据
  • 缺组合权重时,不给过细仓位比例,只给方向性框架
  • 若持仓截图时间不明,要标明“以当前截图口径处理,可能滞后”
  • 不伪造买点、止损线或次日盘口细节

Risk Language

  • 不使用“梭哈”“无脑切换”“必赚切仓”等表述
  • 新建仓建议必须配触发条件、失效条件和核心风险
  • 动作路由只给研究框架,不替代用户自主执行与复核

Short Disclaimer

本 skill 仅用于投资研究流程、信息整理与教育演示,不构成投资建议、个性化荐股、投顾服务或自动交易指令。

This skill is for research workflow, information organization, and educational use only. It is not investment advice, not personalized recommendation, and not for automated trading.

Files

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.

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. 11d ago First seen · 141 lines · 70 tokens per session scan A b49aa75681b0

Subscribe to this mod's changes

a-share-action-router is a skill published in the GitHub repository minguncle/a-share-agent-skills (2 stars, last pushed 4mo ago), licensed MIT. It adds 70 tokens to every session and 1,240 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.

Related

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.

HKUDS/Vibe-Trading · 39 tokens

strategy-pivot-designer

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

tradermonty/claude-trading-skills · 28 tokens

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…

himself65/finance-skills · 161 tokens

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.

questflowai/investorskills · 44 tokens

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.

winstonkoh87/Athena-Public · 53 tokens

furusato

A Japanese hometown-tax donation manager for furusato nozei, a system where donations to municipalities can qualify for an income-tax or local-tax deduction. It reads donation receipts, stores donation records, and calculates deduction limits.

kazukinagata/shinkoku · 102 tokens