finance-review

Installation
SKILL.md

finance-review

确保所有金融计算使用 decimal.js——禁止 JavaScript 原生 Number+ - * / 运算符。

Leading Words

术语 定义
decimal.js 审计 扫描代码中所有 + - * / 在变量运算上下文中的出现,逐一判断是否涉及金额
字符串传输 金额通过 API 时使用 string 类型,接收后在计算时转为 Decimal

禁止模式

const profit = sellPrice - buyPrice;       // ❌
const total = quantity * price;            // ❌
const avg = sum / count;                   // ❌
const fee = amount * 0.001;               // ❌
Installs
3
Repository
grid0723/skills
GitHub Stars
2
First Seen
Aug 5, 2026
finance-review — grid0723/skills