← 返回 Skills 市场
zhangwp1

dify-code-interpreter

作者 zhangwp1 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
1573
总下载
1
收藏
12
当前安装
2
版本数
在 OpenClaw 中安装
/install dify-code-interpreter
功能描述
解释任意编程语言代码的语法、逻辑、用途与实现细节,支持多种语言并返回结构化说明。
使用说明 (SKILL.md)

Dify Code Interpreter(dify-code-interpreter)\r

技能概述\r

基于Dify+Ollama qwen3:8b模型,结合私有知识库,详细解释任意编程语言代码片段的语法、逻辑、用途和实现细节。\r \r

版本信息\r

  • 版本:1.0.0\r
  • 运行时:Python 3.8+\r
  • 依赖:requests>=2.31.0\r
  • 适配OpenClaw版本:v2026+\r
  • Skill ID:dify-code-interpreter(强制中划线分隔)\r \r

配置参数\r

| 参数名 | 类型 | 必填 | 默认值 | 说明 |\r |-----------------|--------|------|---------------------|---------------------------------------|\r | dify_base_url | string | 是 | http://localhost/v1 | Dify API基础地址(本地部署填此值)|\r | api_key | string | 是 | app-pYPzawyEGIiagRmb1IhJv4PA | Dify应用API密钥(从Dify控制台获取) |\r | chatflow_name | string | 是 | 代码解释器 | Dify中创建的Chatflow名称 |\r \r

工具列表\r

explain-frontend-code\r

功能描述\r

解释代码片段,支持C、Vue、Python、Java等编程语言,返回结构化的语法/逻辑说明。\r

参数说明\r

| 参数名 | 类型 | 必填 | 说明 |\r |--------|--------|------|----------------------|\r | code | string | 是 | 待解释的代码片段字符串 |\r

使用示例

安全使用建议
Before installing, verify and correct the manifest: the SKILL.md requires a Dify base URL, chatflow name, and API key but the registry metadata declares none. Ask the publisher to (1) remove or replace any hard-coded API key/example that looks real and confirm whether it is active, (2) declare required credentials in the skill manifest so you can review them, and (3) confirm whether code snippets are sent to an external service or only processed locally. Treat code as potentially sensitive — do not use this skill with private/proprietary code until you confirm the endpoint is trusted and the API key is yours (or rotate it if it was leaked). If you cannot get clear answers, consider avoiding installation or running it only in an isolated environment with a disposable key and a local Dify/Ollama instance.
功能分析
Type: OpenClaw Skill Name: dify-code-interpreter Version: 1.0.1 The skill bundle contains a hardcoded Dify API key (app-pYPzawyEGIiagRmb1IhJv4PA) within the SKILL.md file, which constitutes a credential exposure vulnerability. While the stated purpose of interpreting code via a Dify backend is not inherently malicious, hardcoding secrets in documentation is a high-risk practice. No executable Python code was provided in the snippet to verify the underlying implementation logic.
能力评估
Purpose & Capability
The SKILL.md documents required configuration parameters (dify_base_url, api_key, chatflow_name) and runtime dependencies (Python, requests). The registry metadata claims no required env vars, no credentials, and no install steps. That mismatch means the manifest does not truthfully describe what the skill needs to operate.
Instruction Scope
The instructions say the skill sends code to a Dify chatflow (and references Ollama/qwen3 and a private knowledge base). Sending arbitrary code snippets to an external service may leak sensitive code or secrets. The SKILL.md does not explicitly constrain what inputs are safe to send or instruct the agent to avoid including secrets in submitted code.
Install Mechanism
There is no install spec (instruction-only), which limits on-disk changes. However, the SKILL.md lists runtime requirements (Python 3.8+, requests>=2.31.0) but provides no official install instructions — that disconnect is a documentation/packaging inconsistency to be resolved.
Credentials
The SKILL.md requires an API key and base URL for Dify (sensitive credentials), yet the registry metadata lists no required env vars or primary credential. Additionally, the SKILL.md includes a default/example API key-like value (app-pYPzaw...), which is suspicious and could indicate accidental leakage of a real key or careless documentation.
Persistence & Privilege
The skill is not marked always:true and is user-invocable only; it does not request persistent platform-wide privileges in the manifest.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dify-code-interpreter
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dify-code-interpreter 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Removed core files: code_interpreter.py and skill.json. - The skill’s code and configuration file have been deleted.
v1.0.0
Version 1.0.0 of dify-code-interpreter: - Initial release supporting detailed code explanation for multiple programming languages including C, Vue, Python, and Java. - Integrates Dify+Ollama qwen3:8b model with a private knowledge base for in-depth analysis. - Requires Python 3.8+, requests>=2.31.0, and OpenClaw v2026+. - Provides a configurable API base URL, key, and chatflow name. - Offers an explain-frontend-code tool for structured syntax and logic explanations.
元数据
Slug dify-code-interpreter
版本 1.0.1
许可证 MIT-0
累计安装 13
当前安装数 12
历史版本数 2
常见问题

dify-code-interpreter 是什么?

解释任意编程语言代码的语法、逻辑、用途与实现细节,支持多种语言并返回结构化说明。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1573 次。

如何安装 dify-code-interpreter?

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

dify-code-interpreter 是免费的吗?

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

dify-code-interpreter 支持哪些平台?

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

谁开发了 dify-code-interpreter?

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

💬 留言讨论