← 返回 Skills 市场
bylikai

job-status

作者 bylikai · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
154
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install job-status
功能描述
HPC/AI job status query skill. Fetches job status information by jobId from a specific API endpoint and parses the jobState field from the JSON response. **U...
使用说明 (SKILL.md)

Job Status Query Skill

🎯 Function Overview

This skill queries HPC/AI computing job status information. It accesses the API with the provided jobId, retrieves detailed job information, and extracts the key status field.

🔧 Technical Implementation

  • API Endpoint: http://www.aicnic.cn/jobs/api/jobs/infos/hpcai28/{jobId}
  • Response Format: JSON
  • Key Field: data.jobState
  • Error Handling: Network timeout, API errors, JSON parsing errors

📋 Quick Start

Method 1: Natural Language Call

User: Query job status, jobId is 15000
Assistant: Querying job 15000 status...

Method 2: Parameterized Call

{
  "jobId": "15000"
}

🚀 Usage Scenarios

Scenario 1: Query Single Job Status

{
  "jobId": "15000"
}

Scenario 2: Batch Job Status Query

User: Query status for jobs 15000, 15001, 15002

Scenario 3: Monitor Job Completion

User: Check if job 15000 is completed

🔍 Return Status Description

Common jobState values:

  • PENDING: Job is queued
  • RUNNING: Job is running
  • COMPLETED: Job completed successfully
  • FAILED: Job execution failed
  • CANCELLED: Job was cancelled
  • TIMEOUT: Job timed out

⚠️ Notes

  1. jobId Format: Must be a valid job ID
  2. Network Connectivity: Must be able to access www.aicnic.cn
  3. API Limits: Be aware of API rate limits
  4. Error Handling: Network errors or invalid jobId will return appropriate error messages

📊 Example Responses

Successful response:

{
  "success": true,
  "jobId": "15000",
  "status": "COMPLETED",
  "details": {
    "jobState": "COMPLETED",
    "endTime": "2024-12-09T09:30:10",
    "id": 20452
  },
  "message": "Job query successful",
  "timestamp": "2026-03-19T06:30:00Z"
}

Error response:

{
  "success": false,
  "jobId": "99999",
  "error": "Job not found or access failed",
  "message": "API returned error or network connection failed",
  "timestamp": "2026-03-19T06:30:30Z"
}

🔗 Related Skills

  • System Monitoring: Can be combined with system monitoring skills
  • Notification Alerts: Can trigger notifications on job status changes
  • Log Recording: Record job status history
安全使用建议
This skill appears internally consistent and implements exactly what it claims: querying a specific HTTP API for job status. Before installing, verify you trust the API host (www.aicnic.cn) because the scripts will make network requests to that domain. The installer copies files into ~/.openclaw/skills/job-status and may prompt to install the Python requests package via pip — run the installer interactively or inspect/install files in a sandbox if you prefer. If you need stricter controls, run the Python/Bash scripts manually or review/modify config.yaml (base_url, timeout) before use. If you have any doubt about the external endpoint, don’t grant network access or run the scripts until you confirm the API is trusted.
功能分析
Type: OpenClaw Skill Name: job-status Version: 1.0.1 The 'job-status' skill is a legitimate utility designed to query HPC/AI computing job statuses from a specific API endpoint (aicnic.cn). The bundle includes well-structured Python and Bash scripts, comprehensive unit tests in 'test/test_skill.py', and detailed documentation. No indicators of malicious intent, data exfiltration, or prompt injection were found; the installation script 'install.sh' performs standard dependency checks and file setup without suspicious side effects.
能力评估
Purpose & Capability
Name/description (job-status) align with the code and docs: Python/Bash scripts, config, and tool metadata all target the same API endpoint (http://www.aicnic.cn/jobs/api/jobs/infos/hpcai28/{jobId}) and only extract data.jobState and related fields.
Instruction Scope
SKILL.md and tool definition limit behavior to querying the stated API and handling JSON responses. The runtime instructions and scripts do not attempt to read arbitrary system files or unrelated credentials; they only reference standard paths (HOME, logs) and network access to the stated domain.
Install Mechanism
There is no external registry install spec; an included install.sh copies the skill into $HOME/.openclaw/skills/job-status, sets permissions, runs unit tests, and optionally prompts to pip-install the requests package. This is expected for a local skill installer, but it will modify files under the user's home and may call pip if the user agrees.
Credentials
The skill declares no required environment variables or credentials and the code does not read secret env vars. README mentions optional environment variables (JOB_STATUS_TIMEOUT, etc.) for convenience, but these are not required and do not introduce new privileges.
Persistence & Privilege
always:false (default) and the installer only writes to a skill-specific directory under the user's home. The skill does not modify other skills or global system configuration beyond copying its own files.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install job-status
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /job-status 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Removed the sample usage file: examples/openclaw_usage.md - Documentation updated: SKILL.md rewritten in English for broader accessibility; content remains functionally unchanged. - No functional or interface changes to the skill itself.
v1.0.0
- Initial release of the "job-status" skill for querying HPC/AI job statuses via jobId. - Supports retrieving job state (e.g., RUNNING, COMPLETED, FAILED) through a designated API. - Handles errors including network issues, API errors, and invalid job IDs. - Enables monitoring and progress tracking for computational tasks. - Returns structured JSON responses with clear job status information.
元数据
Slug job-status
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

job-status 是什么?

HPC/AI job status query skill. Fetches job status information by jobId from a specific API endpoint and parses the jobState field from the JSON response. **U... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 154 次。

如何安装 job-status?

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

job-status 是免费的吗?

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

job-status 支持哪些平台?

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

谁开发了 job-status?

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

💬 留言讨论