← 返回 Skills 市场
iamlovingit

EPAI

作者 Iamlovingit · GitHub ↗ · v1.0.4
cross-platform ⚠ suspicious
505
总下载
0
收藏
1
当前安装
5
版本数
在 OpenClaw 中安装
/install epaiskill
功能描述
EPAI 平台管理技能,通过 CLI 操作知识库、文档和目录。
使用说明 (SKILL.md)

\r \r

EPAI Skill\r

\r 此 Skill 封装了 EPAI 平台的管理操作,所有接口都通过 scripts/epaiclt.py 调用。\r \r

使用示例\r

\r

列出所有知识库\r

\r

python scripts/epaiclt.py --method kb_list\r
```\r
\r
### 创建知识库(必须指定 catalog_id)\r
\r
```bash\r
python scripts/epaiclt.py   --method kb_create   --name "知识库名称"   --description "知识库描述"   --catalog_id \x3C目录ID>\r
```\r
\r
### 删除知识库\r
\r
```bash\r
python scripts/epaiclt.py   --method kb_delete   --kb_ids kb_id1 kb_id2 ...\r
```\r
\r
### 上传文件到知识库\r
\r
```bash\r
python scripts/epaiclt.py   --method document_upload   --kb_id \x3C知识库ID>   --file ./file1.pdf ./file2.docx\r
```\r
\r
### 获取目录列表\r
\r
```bash\r
python scripts/epaiclt.py --method catalog_list\r
```\r
\r
### 创建目录(必须指定 parent_id)\r
\r
```bash\r
python scripts/epaiclt.py   --method catalog_create   --name "目录名称"   --parent_id \x3C父目录ID>\r
```\r
\r
### 删除目录\r
\r
```bash\r
python scripts/epaiclt.py   --method catalog_delete   --catalog_id \x3C目录ID>\r
```\r
\r
### 获取知识库文档列表\r
\r
```bash\r
python scripts/epaiclt.py   --method document_list   --kb_id \x3C知识库ID>\r
```\r
\r
### 批量删除知识库文档\r
\r
```bash\r
python scripts/epaiclt.py   --method document_delete   --doc_ids doc_id1 doc_id2 ...\r
```\r
\r
\r
安全使用建议
This skill appears to be a straightforward CLI client for an EPAI API and is internally consistent, but take these precautions before installing: - Only set EPAI_API_BASE to a trusted endpoint: the script will send your EPAI_API_KEY, EPAI_ACCOUNT, and any uploaded files to that base URL. - Be careful when uploading local files: the skill reads and posts the files you point it at; do not upload sensitive documents to an untrusted server. - Do not disable TLS verification (EPAI_VERIFY_TLS=false) unless you understand the risk; default is to verify TLS. - Ensure the runtime has the Python 'requests' library available or the script will fail. - The skill has no homepage or publisher metadata; if you need higher assurance, request provenance (who published it) or review/run it in an isolated environment first. - Use least-privilege API credentials (scoped key) and rotate/revoke the key if you stop using the skill. If you want a deeper assessment, provide the publisher details or any external endpoints the API_BASE should point to so I can flag unexpected domains or details.
功能分析
Type: OpenClaw Skill Name: epaiskill Version: 1.0.4 The skill is classified as suspicious due to a potential path traversal vulnerability in `scripts/epaiclt.py`. The `document_upload` function directly uses user-provided file paths (from the `--file` argument) with `os.path.exists` and `open(f, 'rb')`. While the `SKILL.md` declares `file-read` permission for document uploads, this direct usage without input sanitization could allow an attacker to instruct the AI agent (via prompt injection) to read arbitrary files from the host system (e.g., `/etc/passwd`) if the agent does not sanitize the file paths before passing them to the script. The script then attempts to upload these files to the configured `EPAI_API_BASE`, which could become an exfiltration vector if the API endpoint is compromised or controlled by an attacker, although the skill itself does not redirect to a malicious endpoint.
能力评估
Purpose & Capability
Name/description (EPAI platform management) match the code and SKILL.md: the script calls API endpoints to list/create/delete knowledge bases, catalogs and upload documents. The declared env vars (API base, API key, account, verify TLS) are appropriate and necessary for this purpose.
Instruction Scope
SKILL.md only instructs running the included Python CLI with explicit methods. It explicitly declares file-read permission for uploads and does not ask the agent to read unrelated system files or extra environment variables. The script opens local files only when performing document_upload, which is declared.
Install Mechanism
No install spec (instruction-only plus a bundled Python script) — low risk from installers. Note: the script depends on the 'requests' library but the SKILL.md doesn't list Python dependencies, so the runtime environment must provide requests or the script will fail.
Credentials
Required environment variables (EPAI_API_BASE, EPAI_API_KEY, EPAI_ACCOUNT, EPAI_VERIFY_TLS) are proportional to a service client. The script does not access additional secrets or unrelated system config paths.
Persistence & Privilege
Skill is not always-enabled, does not request persistent system-wide changes, and does not modify other skills' configuration. Autonomous invocation is permitted (platform default) but not combined with other high-risk flags.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install epaiskill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /epaiskill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.4
- No changes were made in this version. - The SKILL.md file remains unchanged from the previous release.
v1.0.3
- Added detailed examples and default values for environment variables in SKILL.md. - Declared file-read permission for uploading documents. - No code changes; documentation and permissions were updated only.
v1.0.2
Initial release with core EPAI platform management features. - Added example environment variable file (.env.example) for configuration guidance. - Supports managing knowledge bases, documents, and directories via CLI. - Introduces commands for listing, creating, uploading, and deleting for both knowledge bases and catalogs. - Enforces explicit specification of catalog_id and parent_id when creating knowledge bases and directories.
v1.0.1
- 增加了必需的环境变量 EPAI_VERIFY_TLS,用于控制安全验证设置 - 更新了环境变量配置说明,涵盖 Windows 和 Linux/macOS 平台 - 其余功能和操作未变
v1.0.0
epai 1.0.0 – Initial release - Provides management skills for the EPAI platform, including creating, listing, and deleting knowledge bases. - Supports document upload to specified knowledge bases. - All actions executed via the Python CLI script `epaiclt.py`. - Requires configuration of environment variables for API access. - Includes examples and instructions for common operations.
元数据
Slug epaiskill
版本 1.0.4
许可证
累计安装 1
当前安装数 1
历史版本数 5
常见问题

EPAI 是什么?

EPAI 平台管理技能,通过 CLI 操作知识库、文档和目录。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 505 次。

如何安装 EPAI?

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

EPAI 是免费的吗?

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

EPAI 支持哪些平台?

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

谁开发了 EPAI?

由 Iamlovingit(@iamlovingit)开发并维护,当前版本 v1.0.4。

💬 留言讨论