搜索

PythonReactSEOPDF
OpenClaw

ping-model

Measure and display AI model response latency. Use when the user types /ping or /ping followed by a model name to test round-trip time. Captures precise timing between command receipt and response generation, with smart duration formatting (ms, seconds, or minutes). Supports cross-model testing by temporarily switching models and measuring latency.

dofbi0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install dofbi/ping-model

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Ping Model

Measure AI model response latency with consistent formatting.

Quick Start

Simple Ping (current model)
bash command:"node {baseDir}/ping-model.js"
Ping Specific Model
bash command:"node {baseDir}/ping-model.js --model minimax"
Compare Multiple Models
bash command:"node {baseDir}/ping-model.js --compare kimi,minimax,deepseek"

Command Reference

Command Description
/ping Ping current active model
/ping kimi Switch to kimi, ping, return
/ping minimax Switch to minimax, ping, return
/ping deepseek Switch to deepseek, ping, return
/ping all Compare all available models

Output Format

Required format - ALWAYS use this exact structure:

🧪 PING {model-name}

📤 Sent:     {HH:MM:SS.mmm}
📥 Received: {HH:MM:SS.mmm}
⏱️  Latency:  {formatted-duration}

🎯 Pong!
Latency Formatting Rules
  • < 1 second: Display as XXXms (e.g., 847ms)
  • ≥ 1 second, < 60 seconds: Display as X.XXs (e.g., 1.23s)
  • ≥ 60 seconds: Display as X.XXmin (e.g., 2.5min)
Examples

Fast response (< 1s):

🧪 PING kimi

📤 Sent:     09:34:15.123
📥 Received: 09:34:15.247
⏱️  Latency:  124ms

🎯 Pong!

Medium response (1-60s):

🧪 PING minimax

📤 Sent:     09:34:15.123
📥 Received: 09:34:16.456
⏱️  Latency:  1.33s

🎯 Pong!

Slow response (> 60s):

🧪 PING gemini

📤 Sent:     09:34:15.123
📥 Received: 09:35:25.456
⏱️  Latency:  1.17min

🎯 Pong!

Cross-Model Testing

When testing a non-active model:

  1. Save current model context
  2. Switch to target model
  3. Execute ping
  4. Measure latency
  5. Restore original model
  6. Display result

Critical: Always return to the original model after testing.

Comparison Mode

bash command:"node {baseDir}/ping-model.js --compare kimi,minimax,deepseek,gpt"

Output format:

══════════════════════════════════════════════════
🧪 MODEL...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/dofbi/ping-model
Version
—
Commit
82c11b35fc40d896f9124f2b8f7476b8e6081d1c
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# Ping Model

Measure AI model response latency with consistent formatting.

## Quick Start

### Simple Ping (current model)
```bash
bash command:"node {baseDir}/ping-model.js"
```

### Ping Specific Model
```bash
bash command:"node {baseDir}/ping-model.js --model minimax"
```

### Compare Multiple Models
```bash
bash command:"node {baseDir}/ping-model.js --compare kimi,minimax,deepseek"
```

## Command Reference

| Command | Description |
|---------|-------------|
| `/ping` | Ping current active model |
| `/ping kimi` | Switch to kimi, ping, return |
| `/ping minimax` | Switch to minimax, ping, return |
| `/ping deepseek` | Switch to deepseek, ping, return |
| `/ping all` | Compare all available models |

## Output Format

**Required format - ALWAYS use this exact structure:**

```
🧪 PING {model-name}

📤 Sent:     {HH:MM:SS.mmm}
📥 Received: {HH:MM:SS.mmm}
⏱️  Latency:  {formatted-duration}

🎯 Pong!
```

### Latency Formatting Rules

- **< 1 second**: Display as `XXXms` (e.g., `847ms`)
- **≥ 1 second, < 60 seconds**: Display as `X.XXs` (e.g., `1.23s`)
- **≥ 60 seconds**: Display as `X.XXmin` (e.g., `2.5min`)

### Examples

**Fast response (< 1s):**
```
🧪 PING kimi

📤 Sent:     09:34:15.123
📥 Received: 09:34:15.247
⏱️  Latency:  124ms

🎯 Pong!
```

**Medium response (1-60s):**
```
🧪 PING minimax

📤 Sent:     09:34:15.123
📥 Received: 09:34:16.456
⏱️  Latency:  1.33s

🎯 Pong!
```

**Slow response (> 60s):**
```
🧪 PING gemini

📤 Sent:     09:34:15.123
📥 Received: 09:35:25.456
⏱️  Latency:  1.17min

🎯 Pong!
```

## Cross-Model Testing

When testing a non-active model:

1. Save current model context
2. Switch to target model
3. Execute ping
4. Measure latency
5. Restore original model
6. Display result

**Critical:** Always return to the original model after testing.

## Comparison Mode

```bash
bash command:"node {baseDir}/ping-model.js --compare kimi,minimax,deepseek,gpt"
```

Output format:
```
══════════════════════════════════════════════════
🧪 MODEL...

相关技能

OpenClaw

x402hub

capncoconut

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...

OpenClaw

claw

capevace

Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.

OpenClaw

captchas-openclaw

captchasco

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.