deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
Nzssm1/dsh-a-stock-five-dimension
A DeepSeek Harness (DSH) community agent preset for rigorous A-share five-dimension (technical/valuation/fundamental/capital-flow/news) standardized analysis: persona, skill knowledge base, hard risk gate, deterministic Python scoring core, Tencent-first collectors. Not an investment recommendation.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Nzssm1/dsh-a-stock-five-dimension
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness (DSH) community agent preset for rigorous standardized analysis of single A-share stocks across five dimensions: technical (技术面), valuation (估值面), fundamental (基本面), capital flow (资金面), and news/sentiment (消息面). It follows the author's own standard operating procedure (《A股五维分析流程》) and outputs an auditable analysis card with a five-dimension radar score.
Community project — NOT an official DeepSeek preset and not endorsed by DeepSeek. See Relationship with DeepSeek.
Disclaimer: this preset only standardizes information collection and structured presentation. It does not constitute investment advice, recommendations, or return promises.
dsh-a-stock-five-dimension (the directory name; must match [a-z0-9][a-z0-9-]*)A generic chat model reduces "stock analysis" to a vibe check. This SOP makes it auditable:
Three parts, all shipped with the repo:
agent.cordis.yml injects the researcher identity through @deepseek-ai/dsh-persona, embedding the SOP workflow (data prep → hard gate → five dimensions → weighting → report), the forced discipline, and the boundary (no investment advice).skills/a-stock-five-dimension-analysis/ is registered through @deepseek-ai/dsh-skill-filesystem's customSkillDirs; the model loads the relevant chapter (e.g. ch03 for valuation, ch05 for capital flow) with the skill tool.scripts/fetch_*.py prefer Tencent Finance (行情快照 / 日线 K 线, no token, stdlib-only tencent.py) and default to the last 60 trading days when no time range is given; AkShare remains primary for 资金面/基本面/消息面 (Tencent exposes no stable A-share fund-flow/fundamentals/news API — probed 2026-08-21; explicitly documented 未获取 on failure). scripts/score_five_dim.py computes the gate verdict, per-dimension scores, renormalized weights, composite, completeness/confidence. JSON in / JSON out with as_of, source stamps, and warning fields. The scripts/ layer is READ-ONLY for the Agent; see SCRIPTS.md.The toolset keeps the full standard coding capability; only the identity and knowledge change, so the tool catalog — and thus the request-prefix cache — stays stable.
git clone https://github.com/Nzssm1/dsh-a-stock-five-dimension.git \
"$HOME/.dsh/.agent-presets/dsh-a-stock-five-dimension"
Or copy the repository directory into ${DSH_HOME:-$HOME/.dsh}/.agent-presets/ with the exact id name. Then open a new session and pick A股五维分析研究员 in the preset selector.
Requirements: DeepSeek Harness 0.1.0-rc.6+. The preset (persona + skill + tencent.py + deterministic core) needs Python 3.9+ only — no pip packages. The optional akshare (pip install akshare) is needed only for the collector fallback chains (资金面/基本面/消息面).
分析 600519 → full five-dimension report (technical / valuation / fundamental / capital flow / news sentiment, composite score, radar, gate result, bull/bear logic, risk notes).*ST or investigated/delisting-risk tickers → verdict 回避 with the hit gate items listed, instead of a weighted score.skill a-stock-five-dimension-analysis ch03 (valuation) etc.Deterministic core (score_five_dim.py) and collectors (tencent.py + fetch_daily.py, fetch_valuation.py, fetch_fundamentals.py, fetch_capital_flow.py, fetch_news.py) — JSON in/out, Tencent-first priority, default last 60 trading days, ak.__version__ printed, interface existence checked, cache-by-trading-day, warnings instead of silent cleaning, explicit "未获取" on failure. Full contract in SCRIPTS.md.
# evidence JSON → gate verdict + scores + composite + completeness
echo '{"symbol":"600519","name":"贵州茅台","as_of":"2026-08-20","gate":{...},"dimensions":{...}}' \
| python3 scripts/score_five_dim.py
python3 scripts/fetch_daily.py --code 600519 # last 60 trading days, Tencent first
python3 scripts/fetch_valuation.py --code 600519 # cached under .cache/, JSON to stdout
python3 -m pytest tests -m "not network" # deterministic core + contract tests (offline, no akshare required)
python3 -m pytest tests -m network # optional live smoke tests (require network + akshare)
dsh-a-stock-five-dimension/
├── preset.yml # display metadata (name + description)
├── agent.cordis.yml # Cordis composition: persona + full standard tools + skill
├── skills/a-stock-five-dimension-analysis/
│ ├── SKILL.md # core framework + chapter/topic index
│ ├── chapters/ch00…ch09.md # overview, data sources, technical, valuation,
│ │ # fundamental, capital flow, news sentiment,
│ │ # scoring & output, data quality, disclaimer
│ ├── glossary.md / patterns.md / cheatsheet.md / report-template.md
├── scripts/ # deterministic score core + AkShare-first collectors
├── tests/ # offline unit tests (default) + network smoke markers
├── SCRIPTS.md / README.md / README.zh-CN.md / LICENSE / NOTICE / package.json
└── .github/workflows/test.yml # CI: offline test suite
stock_zh_a_spot_em "市盈率" field is a dynamic PE and must not be used as TTM); PB uses latest net assets; main-force flows = super-large + large orders (东财口径); financials = 归母 + 扣非; technical lines use 前复权, valuation uses latest close (unadjusted) + latest shares.This is a community project by Nzssm1. It is not an official DeepSeek preset, is not endorsed or sponsored by DeepSeek, and DeepSeek does not review or approve it. The composition is adapted from the standard preset shipped with DeepSeek Harness (MIT). See NOTICE.
MIT — see LICENSE. GitHub topic: dsh-plugin (used for discovery of DSH community plugins).
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。