← 返回 Skills 市场
mohaiyan3-tal

english-dict

作者 mohaiyan3-tal · GitHub ↗ · v1.0.2
cross-platform ✓ 安全检测通过
413
总下载
0
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install english-dict
功能描述
English dictionary lookup tool. Query English words to get Chinese definitions and generate two example sentences. Use when user needs to look up English wor...
使用说明 (SKILL.md)

英语词典 (English Dictionary)

查询英语单词的中文释义,并自动生成两个例句。

功能

  • 🔍 查询英语单词释义
  • 📝 输出中文翻译
  • 💬 自动生成两个例句
  • 🔊 显示音标和词性

使用方式

命令行查询

python3 scripts/dict.py \x3C单词>

示例:

python3 scripts/dict.py hello
python3 scripts/dict.py python
python3 scripts/dict.py beautiful

输出格式

📚 HELLO
   音标: /həˈloʊ/
   词性: int./n.

📖 中文释义:
   1. 你好
   2. 喂
   3. 打招呼

💬 例句:
   1. Hello! It's so great to see you again!
      (中文翻译请自行理解或查询)
   2. Hello, could you help me with this?
      (中文翻译请自行理解或查询)

内置词库

当前包含以下基础词汇:

  • hello, world, python, openclaw
  • love, friend, work, study
  • happy, beautiful

扩展配置

如需查询更多单词,建议配置外部词典API:

有道词典 API

# 在 dict.py 中添加
import requests

def youdao_lookup(word):
    url = f"https://dict.youdao.com/jsonresult?q={word}"
    response = requests.get(url)
    return response.json()

牛津词典 API

需要在 https://developer.oxforddictionaries.com/ 申请 API Key

自定义词库

编辑脚本中的 BASIC_DICT 字典,添加新单词:

BASIC_DICT = {
    "yourword": {
        "phonetic": "/pronunciation/",
        "meanings": ["意思1", "意思2"],
        "pos": "词性"
    }
}

例句生成

脚本根据词性自动选择合适的例句模板:

  • 名词 (n.) → 描述事物
  • 动词 (v.) → 描述动作
  • 形容词 (adj.) → 描述特征
  • 副词 (adv.) → 描述方式

注意事项

  1. 当前使用内置基础词库,词汇量有限
  2. 建议配置外部词典API以获取更全面的释义
  3. 例句由模板生成,实际使用时应参考权威例句
安全使用建议
This skill is a small, self-contained dictionary tool that runs locally and is coherent with its description. By default it uses an internal word list and template-generated example sentences (no network calls). If you or the skill author add external API integrations (Youdao, Oxford), those will require adding network access and API keys — review where keys will be stored and prefer environment-based or secure secret storage. As with any third-party script, inspect the code before running and run it in a sandboxed environment if you have concerns.
功能分析
Type: OpenClaw Skill Name: english-dict Version: 1.0.2 The skill bundle provides an English dictionary lookup tool. The `SKILL.md` primarily documents the skill's usage and suggests ways to extend it (e.g., by adding external API calls), but these are not direct instructions for the AI agent to execute. The `scripts/dict.py` code is self-contained, using a hardcoded dictionary and sentence templates. It does not perform any network requests, file system operations (beyond its own execution), or execute arbitrary commands. While the input word is directly inserted into `str.format()` calls, this is generally safe from arbitrary code execution and does not demonstrate malicious intent. There is no evidence of data exfiltration, persistence, or other harmful behaviors.
能力评估
Purpose & Capability
Name/description match the included script: a small built-in word dictionary, phonetics, part-of-speech, and template-based example sentences. No unrelated binaries, credentials, or config paths are requested.
Instruction Scope
SKILL.md tells the agent to run the provided Python script and how to extend it. It suggests optional integration with external dictionary APIs (Youdao, Oxford) which is reasonable for expanded data; the default behavior is local and does not read unrelated files or credentials.
Install Mechanism
No install spec is provided (instruction-only with a bundled script). Nothing is downloaded or extracted by default, so there is no installation risk.
Credentials
The skill declares no required environment variables or credentials. SKILL.md shows an optional requests-based lookup example for external APIs — any API keys would be expected only if the user configures those integrations.
Persistence & Privilege
always is false and the skill does not request persistent system-level privileges or modify other skills. It runs only when invoked.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install english-dict
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /english-dict 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Added _meta.json file for metadata management. - No changes to functionality or documentation content.
v1.0.0
- Initial release of english-dict, an English dictionary lookup tool with Chinese definitions. - Provides phonetics, part of speech, and two auto-generated example sentences for queried words. - Supports command line queries for basic English vocabulary. - Includes a small built-in word list; users can expand it or connect to external dictionary APIs (Youdao, Oxford). - Offers detailed setup instructions and usage examples in SKILL.md.
元数据
Slug english-dict
版本 1.0.2
许可证
累计安装 2
当前安装数 2
历史版本数 2
常见问题

english-dict 是什么?

English dictionary lookup tool. Query English words to get Chinese definitions and generate two example sentences. Use when user needs to look up English wor... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 413 次。

如何安装 english-dict?

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

english-dict 是免费的吗?

是的,english-dict 完全免费(开源免费),可自由下载、安装和使用。

english-dict 支持哪些平台?

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

谁开发了 english-dict?

由 mohaiyan3-tal(@mohaiyan3-tal)开发并维护,当前版本 v1.0.2。

💬 留言讨论