china-stock-analyst: Instructions file for Codex

AGENTS.md

china-stock-analyst AGENTS.md is an instructions file for Codex, OpenCode from wjt0321/china-stock-analyst. It costs 1,085 tokens per session, scanned A, original, MIT.

Project instructions for an A-share stock analysis tool, covering its expert roles, file format, and execution order. A-shares are stocks listed on mainland Chinese exchanges.

In plain words
What is it for?
Use them when adding or changing stock-data auditing, financial, technical, quantitative, risk, macroeconomic, industry, event, or identity-analysis features.
Why use it?
They give coding agents the project context needed to work consistently with its Tauri desktop app, Python backend, and specialist analysis agents.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is wjt0321/china-stock-analyst's own configuration. It tells Codex and OpenCode how to work on china-stock-analyst itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything china-stock-analyst configures →

Reuse

Borrowing it

Nothing to install: this file belongs to wjt0321/china-stock-analyst. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/wjt0321/china-stock-analyst/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/wjt0321/china-stock-analyst

Made for: Codex, OpenCode.

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 china-stock-analyst AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/wjt0321/china-stock-analyst/agents-md.svg)](https://agentmods.dev/instructions/wjt0321/china-stock-analyst/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/wjt0321/china-stock-analyst/agents-md"><img src="https://agentmods.dev/badge/instructions/wjt0321/china-stock-analyst/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,085 This file is loaded in full into every session.
When invoked 1,085 The same file — it is already loaded in full.
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.01085 $0.01085
Opus 5 $0.00543 $0.00543
Sonnet 5 $0.00217 $0.00217
Haiku 4.5 $0.00109 $0.00109

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

Security

Grade A, and why

china-stock-analyst AGENTS.md 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.

AGENTS.md · 106 lines

How it starts

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

AGENTS.md

专家 Agent 定义说明文档。

项目概述

A股智能分析助手(china-stock-analyst)是一个 A 股短线交易分析工具。核心特点:「短线交易信号 + 营收质量」双轨研判体系,采用 Team-First 默认并行架构。

当前项目以 Tauri + Python Sidecar 桌面端 为主要运行形态,同时保留原 Claude Code Skill 的核心脚本与专家定义作为后端分析能力。

当前版本:v3.2.0

专家角色列表

编号 角色 分析重点 Agent 文件
00 数据审计专家 日期回退、时间戳冲突、来源类别充分性 agents/stock-data-auditor.md
01 基本面大师 财务数据、估值、行业地位 agents/stock-fundamental-expert.md
02 技术分析派 K线形态、均线、MACD、KDJ、短线指标 agents/stock-technical-expert.md
03 量化模型师 数据驱动、因子分析、资金流向 agents/stock-quant-flow-expert.md
04 风险控制官 下行风险、仓位管理、止损位 agents/stock-risk-expert.md
05 宏观策略师 政策面、资金面、市场周期 agents/stock-macro-expert.md
06 行业研究家 行业景气、竞争格局、驱动因子 agents/stock-industry-researcher.md
07 消息面猎手 公告政策、监管信号、事件冲击 agents/stock-event-hunter.md
08 专家鉴别Agent 身份校验、标的一致性、价格锚点偏差 agents/stock-identity-auditor.md

Agent 文件格式

每个 Agent 定义文件(.md)包含以下字段:

---
name: stock-xxx-expert
version: "3.1.0"
schema_version: "v2"
description: 专家描述
category: fundamental/technical/flow/industry/event/risk
---

# 专家角色说明

## 分析重点

...

## 输出 Schema

...

执行顺序

Team-First 模式下的固定执行顺序:

  1. stock-data-auditor - 数据真实性审计(前置门禁)
  2. stock-fundamental-expert - 基本面分析
  3. stock-technical-expert - 技术分析
  4. stock-quant-flow-expert - 量化分析
  5. stock-risk-expert - 风险评估
  6. stock-macro-expert - 宏观分析
  7. stock-industry-researcher - 行业研究
  8. stock-event-hunter - 事件驱动
  9. stock-identity-auditor - 身份校验(后置门禁)

插件扩展

除了预置的 Agent,还支持自定义专家插件:

位置plugins/expert/

示例插件

  • technical_indicators_plugin.py - 技术指标分析插件
  • fund_flow_plugin.py - 资金流向分析插件

创建自定义插件

from scripts.plugin_base import ExpertPlugin, PluginContext, PluginResult

class MyExpertPlugin(ExpertPlugin):
    name = "my_expert"
    version = "1.0.0"
    category = "custom"
    
    def can_handle(self, context: PluginContext) -> bool:
        return "自定义" in context.request
    
    def execute(self, context: PluginContext) -> PluginResult:
        return PluginResult(success=True, content="分析结果")

Read the full file on GitHub · 106 lines

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. 8d ago First seen · 106 lines · 1,085 tokens per session scan A 5487aeae1787

Subscribe to this mod's changes

china-stock-analyst AGENTS.md is an instructions file published in the GitHub repository wjt0321/china-stock-analyst (45 stars, last pushed 2mo ago), licensed MIT. It adds 1,085 tokens to every session, about $0.0054 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-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens