← 返回 Skills 市场
bytesagain1

Apimon

作者 bytesagain1 · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ✓ 安全检测通过
319
总下载
0
收藏
1
当前安装
10
版本数
在 OpenClaw 中安装
/install apimon
功能描述
Monitor API endpoints and track response times to catch outages. Use when checking uptime, validating schemas, or generating status reports.
使用说明 (SKILL.md)

APIMon

Apimon v2.0.0 — a devtools command-line toolkit for checking, validating, generating, formatting, linting, explaining, converting, templating, diffing, previewing, fixing, and reporting on API-related tasks. All operations are timestamped and logged, with built-in search, statistics, and multi-format export.

Commands

Command Description
apimon check \x3Cinput> Record a check entry (no args = show recent checks)
apimon validate \x3Cinput> Record a validation entry (no args = show recent validations)
apimon generate \x3Cinput> Record a generation entry (no args = show recent generations)
apimon format \x3Cinput> Record a format entry (no args = show recent formats)
apimon lint \x3Cinput> Record a lint entry (no args = show recent lints)
apimon explain \x3Cinput> Record an explain entry (no args = show recent explains)
apimon convert \x3Cinput> Record a conversion entry (no args = show recent conversions)
apimon template \x3Cinput> Record a template entry (no args = show recent templates)
apimon diff \x3Cinput> Record a diff entry (no args = show recent diffs)
apimon preview \x3Cinput> Record a preview entry (no args = show recent previews)
apimon fix \x3Cinput> Record a fix entry (no args = show recent fixes)
apimon report \x3Cinput> Record a report entry (no args = show recent reports)
apimon stats Show summary statistics across all log files
apimon export \x3Cfmt> Export all data in json, csv, or txt format
apimon search \x3Cterm> Search across all entries for a keyword
apimon recent Show the 20 most recent activity entries
apimon status Health check — version, data dir, entry count, disk usage
apimon help Show usage info and all available commands
apimon version Show version (v2.0.0)

How It Works

Each command (check, validate, generate, format, etc.) works as a timestamped log recorder:

  • With arguments: saves the input to ~/.local/share/apimon/\x3Ccommand>.log with a timestamp, then confirms the entry count.
  • Without arguments: displays the 20 most recent entries from that command's log file.

All activity is also recorded in a central history.log for cross-command traceability.

Data Storage

  • Location: ~/.local/share/apimon/
  • Log files: One .log file per command (e.g., check.log, validate.log, format.log)
  • History: history.log — central activity log across all commands
  • Export: export.json, export.csv, or export.txt generated on demand
  • Format: Each log line is YYYY-MM-DD HH:MM|\x3Cinput>

Requirements

  • Bash (4.0+)
  • Standard Unix utilities (wc, du, grep, tail, head, date)
  • No external dependencies or API keys required

When to Use

  1. API health monitoring — use apimon check "GET /health returned 200 in 45ms" to log each endpoint check with response details
  2. Schema validation tracking — run apimon validate "OpenAPI spec v3.1 passed all rules" to record validation outcomes over time
  3. Generating mock data records — use apimon generate "Mock /users response with 50 entries" to log data generation tasks
  4. Linting API definitions — run apimon lint "spectral lint passed for orders.yaml" to track lint history
  5. Uptime reporting — use apimon report "Daily uptime: 99.97%" to log uptime metrics, then apimon export json to build dashboards

Examples

# Check an API endpoint
apimon check "GET https://api.example.com/health — 200 OK, 32ms"

# Validate a response schema
apimon validate "POST /orders response matches OrderSchema v2"

# Generate mock data
apimon generate "10 sample user objects for /api/users"

# Format an API response
apimon format "pretty-print JSON response from /api/products"

# Lint an API spec
apimon lint "openapi-lint passed for petstore.yaml"

# Explain an HTTP status
apimon explain "502 Bad Gateway — upstream server not responding"

# Convert request format
apimon convert "curl command to Python requests"

# Create a request template
apimon template "GET with auth headers and pagination"

# Diff two API versions
apimon diff "v1 vs v2 breaking changes in /users endpoint"

# Preview a request
apimon preview "GET /api/search?q=test&limit=20"

# Record a fix
apimon fix "resolved timeout issue on /api/export endpoint"

# Generate a report entry
apimon report "Weekly API health summary: 99.9% uptime"

# View summary statistics
apimon stats

# Export all data as CSV
apimon export csv

# Search for keywords
apimon search "timeout"

# View recent activity
apimon recent

# Health check
apimon status

Output

Results go to stdout. Save with apimon export json > backup.json. All entries are persisted to the data directory for later retrieval and analysis.


Powered by BytesAgain | bytesagain.com | [email protected]

安全使用建议
This skill appears coherent with its stated purpose: it provides a simple local CLI logger that stores entries in ~/.local/share/apimon and can export them. Before installing/using: (1) be aware any input you log is persisted — avoid logging secrets or full API responses that include tokens; (2) the package includes scripts/script.sh but no automated install step, so you'll need to install or run the script yourself if you want an 'apimon' command; (3) if you plan to store logs long-term or share exports, consider restricting the data directory permissions or cleaning sensitive fields before logging. If you want higher assurance, inspect scripts/script.sh locally (it's plain bash) before running.
功能分析
Type: OpenClaw Skill Name: apimon Version: 2.0.1 APIMon is a simple Bash-based logging utility that allows an AI agent to record and track API-related activities (e.g., uptime checks, schema validations) in local log files located at ~/.local/share/apimon/. The script (scripts/script.sh) only performs basic file I/O, string appending, and standard Unix operations like grep and tail; it does not execute network requests, access sensitive credentials, or contain any instructions designed to subvert the agent's behavior.
能力评估
Purpose & Capability
The name/description (API monitoring, uptime, schema validation, reporting) align with the included commands and the script implementation: each command records timestamped entries to per-command log files and a central history. There are no unrelated binaries, env vars, or external cloud credentials requested.
Instruction Scope
Runtime instructions and the script are narrowly scoped to recording, listing, searching, exporting, and reporting log entries in the data directory (~/.local/share/apimon). The skill does not perform network calls or read other system configuration. Note: it persists whatever text you pass (which may include sensitive API responses or tokens) to disk — review inputs before logging.
Install Mechanism
The skill is instruction-only (no install spec) which is low risk, but a runnable implementation (scripts/script.sh) is included. SKILL.md assumes an 'apimon' CLI; there is no install instruction to place scripts/script.sh on PATH. This is an operational mismatch (you must manually install or invoke the script), not a security red flag.
Credentials
No environment variables or credentials are required. The script uses HOME to create and write to ~/.local/share/apimon — reasonable for a local logger, but be aware logs may contain sensitive data you supply (API keys, full responses).
Persistence & Privilege
The skill does not request always:true or elevated privileges and only writes to its own data directory. It does not modify other skills, system-wide agent settings, or read unrelated credential/config paths.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install apimon
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /apimon 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.1
update
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v1.0.7
old template -> domain-specific v2.0.0
v1.0.6
old template -> domain-specific v2.0.0
v1.0.5
Quality upgrade
v1.0.4
Quality upgrade: custom functionality
v1.0.3
De-template, unique content, script cleanup
v1.0.2
Quality fix: cleaner docs, removed flags
v1.0.1
Quality improvement: better docs, examples, cleaner text
v1.0.0
Initial release
元数据
Slug apimon
版本 2.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 10
常见问题

Apimon 是什么?

Monitor API endpoints and track response times to catch outages. Use when checking uptime, validating schemas, or generating status reports. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 319 次。

如何安装 Apimon?

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

Apimon 是免费的吗?

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

Apimon 支持哪些平台?

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

谁开发了 Apimon?

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

💬 留言讨论