← 返回 Skills 市场
fish1981bimmer

Learning Assistant App

作者 fish1981bimmer · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
31
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install learning-assistant-app
功能描述
一个集成多个免费API的学习助手应用
使用说明 (SKILL.md)

学习助手应用

一个完全免费的学习助手应用,集成多个免费API,无需任何认证。

功能特性

  • 📚 词典查询 - 使用DictionaryAPI查询单词定义和例句
  • 🌍 翻译工具 - 使用LibreTranslate进行多语言翻译
  • 💡 有趣事实 - 获取随机有趣的知识事实
  • 🔢 数学计算 - 支持复杂数学表达式计算
  • 📜 历史事件 - 查看历史上的今天发生的事件

技术栈

  • 后端: Node.js + Express
  • HTTP客户端: Axios
  • 前端: 原生HTML/CSS/JavaScript
  • 数据存储: 本地文件系统

集成的API

API 用途 认证
DictionaryAPI 词典查询
LibreTranslate 文本翻译
Useless Facts 有趣事实
MathJS 数学计算 ❌ (本地)
History API 历史事件

快速开始

  1. 安装依赖:
npm install
  1. 配置环境变量:
cp .env.example .env
# 编辑 .env 文件配置API地址
  1. 启动服务:
npm start
  1. 访问应用: 打开浏览器访问 http://localhost:3000

API端点

  • GET /api/dictionary/:word - 查询单词
  • POST /api/translate - 翻译文本
  • GET /api/fact - 获取有趣事实
  • POST /api/calculate - 数学计算
  • GET /api/history - 获取历史事件
  • GET /api/data/preferences - 获取用户偏好
  • POST /api/data/preferences - 保存用户偏好

项目结构

learning-assistant-app/
├── server.js              # Express服务器主文件
├── dataManager.js         # 数据管理类
├── api/                   # API路由
│   └── data.js           # 数据管理API
├── public/                # 静态资源
│   ├── index.html         # 前端页面
│   ├── script.js          # 前端脚本
│   └── style.css         # 前端样式
├── data/                  # 数据存储目录
├── package.json           # 项目配置
├── .env                   # 环境变量
└── .gitignore            # Git忽略文件

使用说明

  1. 词典查询: 输入英文单词,获取定义、音标和例句
  2. 翻译工具: 选择源语言和目标语言,输入文本进行翻译
  3. 有趣事实: 点击按钮获取随机有趣的知识事实
  4. 数学计算: 支持基本运算、函数调用等复杂数学表达式
  5. 历史事件: 查看历史上的今天发生的重要事件

开发计划

  • 添加更多API集成
  • 实现用户认证系统
  • 添加数据持久化
  • 优化UI界面
  • 添加移动端适配

许可证

MIT License

致谢

安全使用建议
Do not run this app as-is on a machine with sensitive files or credentials. If you still want to use it, replace the eval-based calculator, restrict the server to localhost, limit CORS, declare and control any API keys, and clear or disable local history for sensitive study or translation text.
功能分析
Type: OpenClaw Skill Name: learning-assistant-app Version: 1.0.0 The application contains a critical Remote Code Execution (RCE) vulnerability in `server.js` where user-provided input is passed directly to the `eval()` function within the `/api/calculate` endpoint. While a code comment acknowledges this is unsafe, it allows any user to execute arbitrary JavaScript on the server. Additionally, the data management logic in `api/data.js` and `dataManager.js` includes broad data import/export and 'clear all' capabilities that lack input validation, posing a risk of data corruption or unauthorized state manipulation.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The learning-assistant purpose is coherent, but the calculator is implemented with raw server-side eval of user input, which exceeds normal math-calculator needs.
Instruction Scope
The runtime HTTP API accepts broad user-controlled inputs without authentication or clear safeguards, including code-like calculator expressions and data import/export/clear operations.
Install Mechanism
The skill is documented as a manual npm install/npm start app with standard dependencies and no install scripts shown, but it references .env setup while no .env.example is included in the manifest.
Credentials
The metadata declares no credentials or required environment variables, but the server reads API URL environment variables and may send HISTORY_API_KEY to an external API.
Persistence & Privilege
The app stores search/translation/calculation history locally and exposes export/import/clear data routes; this is related to the app purpose but lacks authentication or strong containment.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install learning-assistant-app
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /learning-assistant-app 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
learning-assistant-app 1.0.0 初始发布 - 发布了集成多API的免费学习助手应用 - 提供词典、翻译、有趣事实、数学计算、历史事件功能 - 支持本地数据存储与用户偏好管理 - 前后端开源,基于 Node.js 与原生前端开发 - 全部API无需认证即可使用
元数据
Slug learning-assistant-app
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Learning Assistant App 是什么?

一个集成多个免费API的学习助手应用. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 31 次。

如何安装 Learning Assistant App?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install learning-assistant-app」即可一键安装,无需额外配置。

Learning Assistant App 是免费的吗?

是的,Learning Assistant App 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Learning Assistant App 支持哪些平台?

Learning Assistant App 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Learning Assistant App?

由 fish1981bimmer(@fish1981bimmer)开发并维护,当前版本 v1.0.0。

💬 留言讨论