首页龙虾技能列表 › Math Notes KaTeX — 技能工具

Math Notes KaTeX — 技能工具

v0.1.3

Render math-heavy notes to PNG using KaTeX (LaTeX) + headless Brave. Use when the user asks for a clean “solution/конспект as an image”, “formulas as a pictu...

0· 105·0 当前·0 累计
by @rokokol (ilysha)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/1
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
high confidence
The skill's purpose (render LaTeX notes to PNG) matches the provided scripts, but there are important mismatches around required binaries/dependencies and missing install instructions that make the package inconsistent and require extra care before use.
评估建议
This skill seems to do what it claims (turn LaTeX-like notes into PNGs) but it's incomplete in practice. Before installing or running it: - Do not run blindly. Inspect the full render_note_png.js (the portion that launches Brave) to confirm it only screenshots local HTML and does not fetch or post to external URLs. - The package has no install spec or package.json. You will need Node.js and the katex module available in the runtime, and an executable Brave/Chromium on PATH (or pass a full --b...
详细分析 ▾
用途与能力
Name/description match the code: the JS and shell scripts implement KaTeX -> HTML -> headless Brave screenshot flows. However the skill declares no required binaries or env vars while its runtime clearly needs node, the 'katex' node package, and a Chromium-family browser (Brave). That omission is an incoherence: someone building this feature would reasonably need to declare these dependencies or provide an install step.
指令范围
Runtime instructions (SKILL.md and scripts) stay on-topic: they read a local markdown file, split/render it, build local HTML, and invoke a headless browser to produce PNGs. There are no instructions to read unrelated system files or to send data to external endpoints. The troubleshooting notes explicitly call out the headless flags needed to access local files.
安装机制
No install specification is provided despite code that depends on Node modules (katex) and an external browser binary. There is no package.json or npm install guidance, so it's unclear how katex (and any other runtime modules) will be made available. This is a practical and security concern: missing install instructions may lead users to run ad-hoc installs or run the code in an unexpected environment.
凭证需求
The skill requests no environment variables or credentials. That is proportionate for the stated purpose. Note: runtime access to the filesystem (reading input file, writing out/ directories) is required and expected for rendering; no credentials are requested.
持久化与权限
The skill does not request elevated or persistent privileges and 'always' is false. It does invoke an external browser (headless Brave) which will be run when the script is executed — this is expected for the task and not flagged by itself.
scripts/render_note_png.js:379
Shell command execution detected (child_process).
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv0.1.32026/3/29

Tidy docs; clarify usage without extra security notes

● 无害

安装命令 点击复制

官方npx clawhub@latest install math-notes-katex
镜像加速npx clawhub@latest install math-notes-katex --registry https://cn.clawhub-mirror.com

技能文档

Core rule

  • Default: reply as normal text
  • Render a PNG only when explicitly requested ("as an image", "KaTeX skill", "нормально записанное решение") or when high-quality formula layout is needed
  • If using this skill → write formulas in LaTeX ($...$, $$...$$), not ASCII approximations
  • Inside the PNG: Markdown headings (#, ##) are NOT parsed. Use --title="..." for the page title; use plain text for section headers (e.g., 1) ...)

Input format

  • Save a UTF-8 text file (e.g. out/_scratch/notes/note.md)
  • Inline math: $...$
  • Display math: blocks between lines containing $$

Details: references/formatting.md

Render to PNG

Scripts:

  • scripts/render_note_png.js — single-page PNG
  • scripts/render_note_pages.sh — multi-page (splits into multiple PNGs)

Single-page steps: 1) Write your note (e.g. out/_scratch/notes/note.md) 2) Render (keep outputs in out/ to avoid cluttering repo root): - node skills/math-notes-katex/scripts/render_note_png.js out/_scratch/notes/note.md out/katex/note.png --title="Topic" --brave=/usr/bin/brave-browser 3) Send out/katex/note.png

Multi-page (when the note does not fit well into one image):

skills/math-notes-katex/scripts/render_note_pages.sh \
  out/_scratch/notes/note.md out/katex/note_pages "Topic" /usr/bin/brave-browser

This produces:

  • out/katex/note_pages/page-001.png, page-002.png, ...

Important: KaTeX CSS/fonts

  • KaTeX needs katex.min.css + fonts (fonts/...)
  • This skill links KaTeX CSS via a local file:///.../katex.min.css path so relative fonts/ resolve correctly

If formulas look broken: references/troubleshooting.md

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务