china-stock-analyst: Instructions file for Claude Code

CLAUDE.md

china-stock-analyst CLAUDE.md is an instructions file for Claude Code from wjt0321/china-stock-analyst. It costs 3,602 tokens per session, scanned A, original, MIT.

A project guide for an A-share stock-analysis assistant, a tool for analyzing Chinese stock-market data and short-term trading signals. It covers its Python services, Tauri desktop app, data sources, plugins, backtesting, and tests.

In plain words
What is it for?
Use it when changing stock analysis, data auditing, expert or sentiment analysis, backtesting, plugins, persistence, or the desktop sidecar service.
Why use it?
It gives the coding agent the project’s testing commands and architecture, reducing the risk of breaking analysis, data handling, or desktop integration.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is wjt0321/china-stock-analyst's own configuration. It tells Claude Code 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 →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd ../...

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/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/wjt0321/china-stock-analyst

Made for: Claude Code.

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 CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/wjt0321/china-stock-analyst/claude-md/github.svg)](https://agentmods.dev/instructions/wjt0321/china-stock-analyst/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/wjt0321/china-stock-analyst/claude-md"><img src="https://agentmods.dev/badge/instructions/wjt0321/china-stock-analyst/claude-md/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 china-stock-analyst CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/wjt0321/china-stock-analyst/claude-md"><img src="https://agentmods.dev/badge/instructions/wjt0321/china-stock-analyst/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,602 This file is loaded in full into every session.
When invoked 3,602 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.03602 $0.03602
Opus 5 $0.01801 $0.01801
Sonnet 5 $0.00720 $0.00720
Haiku 4.5 $0.00360 $0.00360

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

Security

Grade A, and why

china-stock-analyst CLAUDE.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 10d 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.

CLAUDE.md · 378 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

项目概述

A股智能分析助手(china-stock-analyst)是一个 A 股短线交易分析工具。核心特点:「短线交易信号 + 营收质量」双轨研判体系,采用 Team-First 默认并行架构,支持插件化扩展、回测框架、策略优化。

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

当前版本:v3.2.0

运行测试

# 运行核心回归测试
python -m pytest tests/ -v

# 运行主测试
python -m pytest tests/test_stock_skill.py -v

# 运行集成测试
python -m pytest tests/test_integration.py -v

# 运行桌面端测试
python -m pytest desktop/tests -v

# 运行单个测试方法
python -m unittest tests.test_stock_skill.TestStockSkill.test_should_enable_agent_team_for_multi_stock_request -v

测试覆盖范围:路由判定、数据审计、专家鉴别、舆情治理、东方财富 API 集成、回测框架、插件系统、策略优化、归因分析、桌面端持久化与 Sidecar 命令。当前回归测试:145 项核心测试 + 62 项桌面端测试全部通过

目录结构

china-stock-analyst/
├── README.md                   # 项目说明(桌面端使用入口)
├── CLAUDE.md                   # 开发者指南
├── requirements.txt            # Python 依赖
├── config/
│   └── settings.json           # 外置配置
├── desktop/                    # Python Sidecar 服务
│   ├── service.py              # Sidecar 主服务
│   ├── storage.py              # SQLite 持久化
│   ├── data_fetcher.py         # 多源数据获取
│   ├── analysis_engine.py      # 分析引擎
│   ├── report_renderer.py      # Markdown 报告渲染
│   ├── scrapling_adapters/     # Scrapling 数据源适配器
│   └── tests/                  # 桌面端测试
├── src-tauri/                  # Tauri 桌面端
│   ├── ui/                     # React + Vite 前端
│   └── src/                    # Rust 宿主代码
├── scripts/                    # 原 Skill 核心脚本
│   ├── team_router.py          # 执行模式路由、插件系统
│   ├── generate_report.py      # 报告生成、数据解析、评分计算
│   ├── stock_utils.py          # 股票验证、时间戳处理、东方财富 API 封装
│   ├── report_constants.py     # 报告常量
│   ├── technical_indicators.py # 技术指标计算
│   ├── technical_report.py     # 技术分析报告生成
│   ├── backtest_framework.py   # 回测框架
│   ├── backtest_runner.py      # 回测运行器
│   ├── akshare_adapter.py      # AKShare 数据适配器
│   ├── strategy_optimizer.py   # 策略参数优化器
│   ├── plugin_base.py          # 插件抽象基类
│   ├── plugin_loader.py        # 插件加载器
│   ├── config_loader.py        # 配置加载器
│   └── platform_paths.py       # 跨平台路径管理
├── plugins/
│   ├── __init__.py
│   └── expert/
│       ├── technical_indicators_plugin.py
│       └── fund_flow_plugin.py
├── agents/                     # 预配置专家 Agent 定义
├── tests/                      # 核心回归测试
├── stock-reports/              # 生成的 Markdown 报告
├── docs/
│   ├── archive/                # 历史文档归档(编号 01-06)
│   ├── plans/                  # 实施计划
│   ├── superpowers/            # 设计规格
│   └── WINDOWS_SETUP.md        # Windows 配置指南
└── assets/
    └── 报告模板.md              # Obsidian 风格报告模板

Read the full file on GitHub · 378 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. 10d ago First seen · 378 lines · 3,602 tokens per session scan A e3fdcba70367

Subscribe to this mod's changes

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

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens