invest-skills: Instructions file for Claude Code

CLAUDE.md

invest-skills CLAUDE.md is an instructions file for Claude Code from Veblin/invest-skills. It costs 2,447 tokens per session, scanned A, original, MIT.

Repository instructions for an investment-research coding project. They define how to protect compatibility, control complexity, manage versions, and publish only carefully reviewed public material.

In plain words
What is it for?
Use them when changing shared project structure, updating versions, preparing public examples, or checking whether finance-related research content can be published.
Why use it?
They help contributors avoid breaking downstream copies or exposing individual-stock research and unsupported investment claims in public demos or articles.

Instructions file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is Veblin/invest-skills's own configuration. It tells Claude Code how to work on invest-skills 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 invest-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Veblin/invest-skills. 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/Veblin/invest-skills/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Veblin/invest-skills

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/veblin/invest-skills/claude-md"><img src="https://agentmods.dev/badge/instructions/veblin/invest-skills/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,447 This file is loaded in full into every session.
When invoked 2,447 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.02447 $0.02447
Opus 5.5 $0.00979 $0.00979
Sonnet 5.5 $0.00489 $0.00489
Haiku 4.5 $0.00245 $0.00245

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

Security

Grade A, and why

invest-skills 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 13d 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 · 112 lines

How it starts

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

CLAUDE.md — invest-skills 仓库开发说明

本文件是仓库内 Claude 的开发操作说明:本地命令、排障、开发约定、公开发布细则。

  • 跨平台长期边界与变更门禁(四条硬约束、扩张门禁)见 AGENTS.md
  • 运行时规则(报告质量、数字纪律、复检流程、措辞/分位)的唯一详细定义在随包规范 skills/lib/references/——本文件只留链接与本地命令例子,不复制条文

底座准则(复杂度控制)

本仓库是多个下游项目的底座(skillhub 镜像、WorkBuddy 分发、跨 harness 兼容等均依赖其既有约定)。因此:

  • 兼容性不可轻动:frontmatter 格式、SKILL.md 结构、多 harness 兼容性是对下游项目的承诺,任何改动须先评估对全部下游项目的影响
  • 目录结构不可轻动:skills/ 布局与路径约定是既有契约
  • 复杂度受控:新能力优先落在下游项目(如 invest-skills-skillhub),底座只收共享核心;改动从简,不叠架构
  • 替换优先:新增 Skill / 一级命令 / 默认报告栏目 / 强制数据源或 Agent 步骤前,按 AGENTS.md「扩张门禁」先交变更卡

运行命令(本仓库本地约定)

# 本仓库 Python CLI 一律 uv run python,确保从项目根 .venv 加载依赖
uv run python skills/invest-a-stock/scripts/invest.py <subcommand> <symbol> [--flags]

该约定只约束本仓库 Python CLI 的本地运行方式;MCP / 无 Python 的分发路径(WorkBuddy 等)另有执行方式(随包 bootstrap.sh 建包根 .venv),不被此句排除。完整理由与 pip 禁令见 development-rules.md D14。

常用子命令(完整清单以 --help 为准):

diagnose     # 检查数据源可用性
collect      # 采集数据(--with-news-pack 新闻三层架构)
report       # 生成报告
validate-analysis  # 校验分析 JSON 槽位(--draft 同时检查首版 MD 占位)
compare      # 双标的对比
diff         # 对比两次快照
store list   # 历史采集记录
rigor        # 财务验算(市值/估值/跨源)
audit        # 报告审计 extract/verdict
check        # 单标的质地检查(7 指标)
portfolio    # 组合风险特征
thesis       # 投资假设追踪
shock        # 价格冲击插值比例
notice-body  # 取公告正文(art_code 或详情页 url;原文不改写 + 截断三态,不做结构化抽取)

运行时规则的落点(索引)

规则条文不在此维护——按下表查随包规范(SkillHub / WorkBuddy / release 三种分发都携带):

规则 唯一详细定义
P0 数字铁律、引擎 derived 字段清单 delivery-qc.md §1
报告复检流程(第 0 层机器准出 + 三层人工复检) delivery-qc.md §2–§6
措辞规范 / 已知违规模式 / 事实边界 report-conventions.md §2–§3
点位引用证据等级(L1–L4) report-conventions.md §2.4
分析标记([事实]/[分析] + SOP-EV 四维) report-conventions.md §5
多情景参考与交易结构分析 report-conventions.md §6
宏观情景(指标清单 + 两段式输出合同) report-conventions.md §9.1
估值分位使用规则(含非正 PE/缺失判据口径) report-conventions.md §9.2
开发规范 D1–D14(/code-review 审查标准) development-rules.md
开发执行、角色交接与目标验收 development-workflow.md(开发流程,非报告运行时规则)
源策略原则、代理与 stderr 过滤 data-interface-map.md §G
九模块结构、技术指标规范 modules.md

Read the full file on GitHub · 112 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. 13d ago Changed · +3 tokens per session 1acb4f638b91
  2. 21d ago Changed · -158 lines · -3,732 tokens per session dca3c68cae95
  3. 1mo ago Changed · +10 lines · +517 tokens per session 06412b4c06d7
  4. 1mo ago First seen · 260 lines · 5,659 tokens per session scan A 2fcddfc7188d

Subscribe to this mod's changes

invest-skills CLAUDE.md is an instructions file published in the GitHub repository Veblin/invest-skills (17 stars, last pushed 13d ago), licensed MIT. It adds 2,447 tokens to every session, about $0.0098 per session on Opus 5.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-09-04.

Related

Other instructions, from other repositories