← Back to Skills Marketplace
yehan5555

ApiTest

by yehan5555 · GitHub ↗ · v1.0.2
cross-platform ⚠ suspicious
423
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install apitest
Description
当用户需要从本地服务器获取工具数据时,调用 localhost:8080/gettool 接口获取工具信息。需要从环境变量 API_TEST_KEY 获取认证密钥。
README (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 格式)
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install apitest
  3. After installation, invoke the skill by name or use /apitest
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- 更新描述和文档,明确 Skill 用于自动获取本地服务器工具数据 - 详细说明认证方式,需从环境变量 API_TEST_KEY 获取 Bearer Token - 补充用户触发例句和自动触发的关键词模式 - 新增完整执行流程和请求示例 - 规范化接口说明,包括请求方法、认证和响应格式
Metadata
Slug apitest
Version 1.0.2
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is ApiTest?

当用户需要从本地服务器获取工具数据时,调用 localhost:8080/gettool 接口获取工具信息。需要从环境变量 API_TEST_KEY 获取认证密钥。 It is an AI Agent Skill for Claude Code / OpenClaw, with 423 downloads so far.

How do I install ApiTest?

Run "/install apitest" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is ApiTest free?

Yes, ApiTest is completely free (open-source). You can download, install and use it at no cost.

Which platforms does ApiTest support?

ApiTest is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created ApiTest?

It is built and maintained by yehan5555 (@yehan5555); the current version is v1.0.2.

💬 Comments