← 返回 Skills 市场
yehan5555

ApiTest

作者 yehan5555 · GitHub ↗ · v1.0.2
cross-platform ⚠ suspicious
423
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install apitest
功能描述
当用户需要从本地服务器获取工具数据时,调用 localhost:8080/gettool 接口获取工具信息。需要从环境变量 API_TEST_KEY 获取认证密钥。
使用说明 (SKILL.md)

ApiTest Skill

当用户需要从本地服务器获取工具数据时,自动调用 http://localhost:8080/gettool 接口。

认证方式

本 skill 从环境变量 API_TEST_KEY 获取认证密钥,并在请求时使用 Bearer Token 认证。

请求格式:

curl -H "Authorization: Bearer ${API_TEST_KEY}" http://localhost:8080/gettool

触发条件

当用户提及以下内容时自动触发:

  • "访问localhost获取工具"
  • "获取工具数据"
  • "调用 localhost:8080/gettool"
  • 其他本地服务器工具获取请求

执行流程

  1. 监听用户请求
  2. 从环境变量 API_TEST_KEY 获取认证密钥
  3. 调用 http://localhost:8080/gettool 接口,带上认证头
  4. 返回获取到的工具数据

API 说明

  • 接口地址: http://localhost:8080/gettool
  • 请求方法: GET
  • 认证方式: Bearer Token(从环境变量 API_TEST_KEY 获取)
  • 请求头: Authorization: Bearer {API_TEST_KEY}
  • 预期响应: 工具数据列表(JSON 格式)
安全使用建议
Before installing: (1) note that this skill will read an environment variable (API_TEST_KEY) and automatically call http://localhost:8080/gettool when trigger patterns match — if that token is sensitive, avoid exposing it globally or consider using a least-privilege token. (2) Ask the author to fix registry metadata to declare API_TEST_KEY as a required env var and to set the credential scope to read-only if possible. (3) Consider disabling auto-invoke or narrowing the trigger patterns to avoid accidental invocations in unrelated conversations. (4) Ensure the local service on localhost:8080 is trusted (an attacker-controlled local service could return sensitive data). If these issues concern you and cannot be addressed, treat the skill as potentially risky and do not install it system-wide.
功能分析
Type: OpenClaw Skill Name: apitest Version: 1.0.2 The skill is designed to fetch tool data from a local API endpoint (http://localhost:8080/gettool) using a Bearer token stored in the API_TEST_KEY environment variable. All operations are confined to the local machine, and the instructions in SKILL.md and README.md are consistent with the stated purpose of local API testing without any signs of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
The skill name/description match the runtime instructions: it will call http://localhost:8080/gettool and use an API_TEST_KEY from the environment. However, the registry metadata lists no required env vars while SKILL.md declares API_TEST_KEY as required/primary; this metadata mismatch is unexpected and should be corrected.
Instruction Scope
SKILL.md explicitly instructs the agent to read API_TEST_KEY and issue a GET to /gettool — that behavior is scoped. But auto_invoke is true with fairly broad trigger patterns (e.g., '调用.*接口' or '请求.*localhost'), which could cause the skill to run in contexts the user did not intend. Automatic reading of a sensitive environment variable and making network calls to localhost increases the chance of accidental exposure or unexpected interactions with local services.
Install Mechanism
No install spec and no code files — the skill is instruction-only and does not write files or download code. This is low-risk from an installation perspective.
Credentials
The only secret the skill needs is API_TEST_KEY, which is proportionate to calling an authenticated local API. That said, the registry metadata failing to declare this required env var is an inconsistency. Also the SKILL.md lists the credential scope as 'read-write' even though the skill performs a GET (read) operation — 'read' would be a more appropriate scope to request.
Persistence & Privilege
The skill does not request always:true and does not persist configuration or modify other skills. Autonomous invocation is enabled (normal), but combined with the broad triggers (see instruction_scope) this raises the main operational concern rather than a persistence/privilege issue.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install apitest
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /apitest 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- 更新描述和文档,明确 Skill 用于自动获取本地服务器工具数据 - 详细说明认证方式,需从环境变量 API_TEST_KEY 获取 Bearer Token - 补充用户触发例句和自动触发的关键词模式 - 新增完整执行流程和请求示例 - 规范化接口说明,包括请求方法、认证和响应格式
元数据
Slug apitest
版本 1.0.2
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

ApiTest 是什么?

当用户需要从本地服务器获取工具数据时,调用 localhost:8080/gettool 接口获取工具信息。需要从环境变量 API_TEST_KEY 获取认证密钥。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 423 次。

如何安装 ApiTest?

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

ApiTest 是免费的吗?

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

ApiTest 支持哪些平台?

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

谁开发了 ApiTest?

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

💬 留言讨论