FinPrism AGENTS.md

FinPrism AGENTS.md is an instructions file for Codex, OpenCode from Eric-KY-Zhang/FinPrism. It costs 1,986 tokens per session, scanned A, original, MIT.

A project-specific instruction guide for coding agents working on FinPrism, a desktop financial-data tool that uses Excel, VBA, and Python automation for five stock markets.

In plain words
What is it for?
Use it to guide bug fixes, planned implementation work, visual changes, documentation updates, releases, and coordination between planner, generator, reviewer, and auditor roles.
Why use it?
It gives agents shared rules for entering the project, collaborating, handling changes, preserving data, and checking their work.

Instructions file for CodexOpenCode

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/eric-ky-zhang/finprism/agents-md
Clone the repo
git clone --depth 1 https://github.com/Eric-KY-Zhang/FinPrism

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 FinPrism AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/eric-ky-zhang/finprism/agents-md.svg)](https://agentmods.dev/instructions/eric-ky-zhang/finprism/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/eric-ky-zhang/finprism/agents-md"><img src="https://agentmods.dev/badge/instructions/eric-ky-zhang/finprism/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,986 This file is loaded in full into every session.
When invoked 1,986 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.01986 $0.01986
Opus 5 $0.00993 $0.00993
Sonnet 5 $0.00397 $0.00397
Haiku 4.5 $0.00199 $0.00199

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

Security

Grade A, and why

FinPrism 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 5d 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 · 183 lines

How it starts

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

AGENTS.md — FinPrism Agent 协作原则

本文件是 FinPrism 项目的 agent 工作手册(原则层)。FinPrism 是 A/美/港/韩/台 5 市场上市公司财务数据 Excel 桌面工具。

本文档只放原则——可迁移到任何"本地 Excel + VBA + Python 自动化 + 多 agent 协作"型项目。本项目专属的详细规则、命令、文件清单、不变量见 CLAUDE.md

更新同步规则:每次修改 AGENTS.md 必须同步检视 CLAUDE.md 是否需要联动调整(具体规则 / 命令 / 路径常变,原则少变)。


1. Agent 进入项目的第一动作

先读以下文件,不要直接改代码:

  1. CLAUDE.md:本项目专属规则、不变量、回归命令、目录导航。
  2. STATUS.md 末尾收口段:只从最新阶段读起,再按需回溯。不要默认早期章节仍代表当前状态。
  3. ARCHITECTURE.md:做代码改动时必须读,尤其是模块依赖、sheet inventory、数据流、关键 invariants。
  4. 当前 phase plan 或用户最新 prompt:若 plan 与旧文档冲突,以用户最新明确决策为准,但要在报告里说明冲突点。

进入后先判断本轮属于哪类工作,按对应默认策略推进:

类型 默认策略
Bug 修复 先复现,再做最小补丁,再跑相关回归
Phase 实施 严格按 plan step 顺序做,不自由重排
UX / 视觉 不碰业务逻辑,按截图、cell range、颜色、行高列宽精确执行
文档收口 只更新当前事实,不重写历史决策
Release / 清理 保留用户数据,清理可再生数据和敏感缓存

2. 三角协作模型

本项目最有效的模式是三角协作:

Planner / Reviewer  ->  写 plan、定义边界、独立验收
Generator           ->  端到端实现、装表、跑回归、提交报告
Static Auditor      ->  扫全量代码,给 backlog,Reviewer 取舍

Agent 要遵守自己的角色边界:

  • Generator 不重新设计 Planner 已锁定的方案;遇到 plan 盲点时主动反馈,不擅自扩大范围。
  • Reviewer 不只看 Generator 自报,必须独立验证关键路径。
  • Static auditor 给建议,不等于必须全做;个人工具项目要按 ROI 砍掉过度工程。
  • 多 agent 协作只拆互不冲突的工作面(文档 / inspect / VBA wrapper / Python installer 等),不要让多个 agent 同时改同一 VBA 大模块的重叠区域。

3. 冻结边界:true frozen vs state-bound

这是本项目最重要的边界规则。

文件 / 对象类型 分类 规则
核心业务 helper、公开函数签名、fetch/cache/write/FX 主逻辑 True frozen 除非用户明确要求,否则不改
集成回归驱动(test_fx_live.py / diff_* 等) True frozen 不为让测试通过而改基线
inspect_phase*_state.py State-bound 当主线功能明确删除或移动 sheet/button/cell 时,必须同步 inspect
STATUS.md / 已闭环 phase 文档 历史追溯 追加收口段,不改写已闭环历史
README.md / ARCHITECTURE.md / CLAUDE.md 当前说明 跟随最终产品状态更新

如果 plan 写了 frozen 但用户新需求明确删除被检查对象,要停下或明确说明后再同步 state-bound inspect。不要把过时 inspect 当成产品真相。


4. 数据准确性优先级

财务工具里,错误数字比空值更危险。所有逻辑分支必须遵守:

  • 汇率缺失 → 空值 + FX_MISSING 诊断。永不 fallback 到 1。
  • 字段缺失 → 空值 + QA / diagnostic,而不是猜测。
  • HTTP 失败 → 明确来源、状态、重试次数、缓存状态。
  • 跨市场 BS / IS / CF 行项目不可比时,不强行合并;只合并已标准化的 18 项指标。
  • QA 规则以低误报为先,WARN 不阻断用户工作流。

Read the full file on GitHub · 183 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. 5d ago First seen · 183 lines · 1,986 tokens per session scan A d42b73ecef79

Subscribe to this mod's changes

FinPrism AGENTS.md is an instructions file published in the GitHub repository Eric-KY-Zhang/FinPrism (5 stars, last pushed 3mo ago), licensed MIT. It adds 1,986 tokens to every session, about $0.0099 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-31.

Related

Other instructions, from other repositories