Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Berkshire Shared

ASecurity

AI Berkshire 共享工具库:金融严谨性验证工具(financial_rigor.py)、A股数据获取(ashare_data.py)、雪球爬虫(xueqiu_scraper.py)、股票筛选器(stock_screener.py)、动量回测(momentum_backtest.py)、晨星公允价值(morningstar_fair_value.py)、报告审计(report_audit.py)等。所有 berkshire-* 技能依赖此共享工具。

2 stars
0 votes
0 copies
0 views
Added 9/22/2026
ai-agentspythongobash

Security Analysis

A100/100

Scanned 9/22/2026

Install to Claude Code

$npx -y skills add hjdspace/SpaceCode --skill berkshire-shared --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Berkshire Shared?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Berkshire Shared
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hjdspace-berkshire-shared-spacecode/badge)](https://www.skillsdirectory.com/skills/hjdspace-berkshire-shared-spacecode)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: berkshire-shared
description: "AI Berkshire 共享工具库:金融严谨性验证工具(financial_rigor.py)、A股数据获取(ashare_data.py)、雪球爬虫(xueqiu_scraper.py)、股票筛选器(stock_screener.py)、动量回测(momentum_backtest.py)、晨星公允价值(morningstar_fair_value.py)、报告审计(report_audit.py)等。所有 berkshire-* 技能依赖此共享工具。"
---

# AI Berkshire 共享工具库

本技能包包含 AI Berkshire 投研框架的全部共享工具和数据文件。其他 `berkshire-*` 技能通过这些工具进行精确的金融计算、数据获取和报告审计。

## 工具清单

### `tools/financial_rigor.py` — 金融严谨性验证工具
所有计算使用 Python `decimal.Decimal`(精确十进制),杜绝 LLM 心算误差。

| 子命令 | 用途 | 示例 |
|--------|------|------|
| `verify-market-cap` | 市值验算(股价×总股本 vs 报告市值) | `python3 tools/financial_rigor.py verify-market-cap --price 510 --shares 9.11e9 --reported 4.65e12 --currency HKD` |
| `verify-valuation` | 估值验算(PE/PB/ROE/FCF Yield) | `python3 tools/financial_rigor.py verify-valuation --price 510 --eps 23.5 --bvps 120 --fcf-per-share 18 --dividend 2.4` |
| `cross-validate` | 多源交叉验证 | `python3 tools/financial_rigor.py cross-validate --field revenue --values '{"年报": 7518, "Yahoo": 7500}' --unit 亿` |
| `three-scenario` | 三情景估值(乐观/中性/悲观) | `python3 tools/financial_rigor.py three-scenario --base-earnings 100 --growth-low 0.05 --growth-mid 0.10 --growth-high 0.15` |
| `benford` | Benford定律检测 | `python3 tools/financial_rigor.py benford --values '[1234, 2345, 3456]'` |
| `calc` | 精确计算器 | `python3 tools/financial_rigor.py calc --expr '510 * 9.11e9'` |

### `tools/ashare_data.py` — A股数据获取
从东方财富等来源获取A股历史行情和财务数据。

### `tools/xueqiu_scraper.py` — 雪球数据爬虫
从雪球网获取股票实时行情、财务指标和公司基本信息。

### `tools/stock_screener.py` — 股票筛选器
按多条件筛选股票(市值、PE、PB、ROE、行业等)。

### `tools/morningstar_fair_value.py` — 晨星公允价值
获取 Morningstar 公允价值数据,与当前股价对比。

### `tools/momentum_backtest.py` / `tools/momentum_backtest_v2.py` — 动量回测
动量策略历史回测工具。

### `tools/report_audit.py` — 报告审计
对生成的投研报告进行质量审计:检查数据一致性、来源标注、格式规范。

### `tools/financial_rigor.py` — 金融严谨性验证(核心工具)
零外部依赖,仅使用 Python 标准库。要求 Python >= 3.7。

## 数据文件

### `data/fundamentals.json` — 基础财务数据
### `data/watchlist.json` — 观察列表
### `data/morningstar_fair_value_20260519.csv` — 晨星公允价值数据
### `data/correlation_3stocks_2021-2026.csv` — 三股票相关性数据
### `data/cross_asset_10y_2016-2026.csv` — 跨资产10年数据

## 使用方式

其他 `berkshire-*` 技能安装后,本共享工具包位于:
```
.claude/skills/berkshire-shared/tools/financial_rigor.py
.claude/skills/berkshire-shared/data/fundamentals.json
```

在技能中引用工具时,使用相对于会话工作目录的路径:
```bash
python3 .claude/skills/berkshire-shared/tools/financial_rigor.py verify-market-cap --price 510 --shares 9.11e9 --reported 4.65e12 --currency HKD
```

## 研究质量规则

1. **金融数据必须来自至少两个独立来源**,误差>1%须标记
2. **所有计算使用精确十进制工具**,不用 LLM 心算
3. **报告发布前须运行审计工具**:`python3 .claude/skills/berkshire-shared/tools/report_audit.py`
4. **低置信度结论须明确标注**,不使用推测伪装确定性
5. **本项目仅供学习和研究**,不构成任何投资建议

Attribution

hjdspacehjdspace
View sourceMore from hjdspace →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1066601 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

651 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →