2234839/tsfullstack/notecalc
Claude Code and agent skill by 2234839/tsfullstack
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
数学表达式计算工具。支持变量赋值、单位转换、等式验证。当用户需要进行数学计算时使用此技能。
Install
npx vskill@latest install 2234839/tsfullstack/notecalcSKILL.md
工作流(必须按此顺序执行)
- 理解用户的计算需求,按照下方语法规则将问题转化为表达式
- 调用 API 计算并验算——确保结果正确后再回复用户
- 展示结果给用户——使用截图或 iframe(优先截图,因为多数 AI 助手不支持渲染 iframe)
表达式语法
每行写一个表达式,用 \n 分隔多行。支持的语法:
赋值与变量
运算符
+ - * / ^(幂)%(取模)
数学函数
sqrt(16) abs(-5) pow(2,10) sin(1) cos(1) tan(1) log(100) log2(8) log10(100) exp(1) ceil(3.2) floor(3.8) round(3.5) max(1,2,3) min(1,2,3)
常量
pi = 3.14159... e = 2.71828...
单位转换
支持的单位类别:长度(mm/cm/m/km/inch/ft/mi/里/丈/尺/寸)、重量(mg/g/kg/t/lb/oz/斤/两)、面积(cm2/m2/km2/acre/ha)、体积(ml/L/gallon)、温度(°C/°F/K)、时间(ms/s/min/h/day)
等式验证
百分比
其他行类型
# 标题/## 副标题— 标题// 注释— 注释,不参与计算- 空行 — 跳过
API 调用
请求:
响应(superjson 格式):
结果类型
| type | 说明 | |
|---|---|---|
| expression | 普通表达式 | |
| assignment | 变量赋值(variable 字段为变量名) | |
| equation | 等式验证(isCorrect 字段) | |
| unitConversion | 单位转换 | |
| error | 计算错误(error 字段) | |
| normal | 非表达式文本 | |
| comment | 注释(// 开头) | |
| title/subtitle | 标题(# / ##) | |
| empty | 空行 |
展示结果给用户
方式一:网页截图(推荐,AI 助手可直接展示图片)
将计算内容拼入 URL,通过 Microlink 免费截图 API 生成图片:
示例——展示 1 + 2 和 价格 = 99.5:
注意:hash 中的 \n 需要保持为字面量 %5Cn(不要编码为真正的换行),多个表达式之间用 %5Cn 分隔。
方式二:iframe 嵌入(适用于支持 iframe 的环境)
参数说明
| 参数 | 类型 | 默认值 | 说明 | |
|---|---|---|---|---|
| content | string | 必填 | 多行表达式,\n 分隔 | |
| showPrecision | number | 4 | 显示精度(小数位数) |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingapps/website-frontend/src/pages/noteCalc/skill.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/2234839/tsfullstack/notecalc)