Xpersona
Q

Qinglong Skills

CLAWHUB · Unverified

Manage QingLong (青龙) panel via REST API — cron jobs, environment variables, scripts, dependencies, subscriptions, logs and system operations. Use this skill... Skill: Qinglong Skills Owner: nnnnzs Summary: Manage QingLong (青龙) panel via REST API — cron jobs, environment variables, scripts, dependencies, subscriptions, logs and system operations. Use this skill... Tags: latest:1.0.2 Version history: v1.0.2 | 2026-04-24T07:28:27.238Z | auto - Added explicit usage guidance in SKILL.md, including patterns for handling user requests and best practices before modifying resources.

62
Rank
84
Safety
977
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 977 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: medium.

clawhub skill install s17456np3pkm873k4rwm6e46hn83hd5m:qinglong-skills
  1. Setup complexity is MEDIUM. Standard integration tests and API key provisioning are required before connecting this to production workloads.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-nnnnzs-qinglong-skills/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

89,725 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: qinglong
version: "1.0.2"
description: >
  Manage QingLong (青龙) panel via REST API — cron jobs, environment variables,
  scripts, dependencies, subscriptions, logs and system operations.
  Use this skill whenever the user mentions QingLong, 青龙面板, scheduled tasks
  on a self-hosted panel, or wants to manage cron jobs / env vars / scripts on
  their QingLong instance, even if they don't say "QingLong" explicitly.
  Also trigger for requests like "帮我查看定时任务", "添加环境变量", "运行脚本",
  "禁用任务", "查看日志" when the context is a QingLong panel.
metadata: {"openclaw": {"emoji": "🐉", "requires": {"bins": ["curl", "jq"], "env": ["QINGLONG_URL", "QINGLONG_CLIENT_ID", "QINGLONG_CLIENT_SECRET"]}}}
---

# QingLong Panel Skill

Control your [QingLong (青龙)](https://github.com/whyour/qinglong) scheduled task panel via REST API using `scripts/ql.sh`.

📦 ClawHub: https://clawhub.ai/nnnnzs/qinglong-skills
📖 GitHub: https://github.com/NNNNzs/qinglong-skills

> First time setup? See [references/setup.md](references/setup.md) for installation and credential configuration.

> **Security note**: This skill only communicates with the user's own self-hosted QingLong panel using credentials they provide. It does not access any external services or exfiltrate data.

---

## How to approach user requests

When the user asks to manage their QingLong panel, follow this pattern:

1. **List first, then act** — before modifying anything, list the relevant resources so you know the IDs. For example, before disabling a cron job, run `cron list` to find its ID.
2. **Batch when possible** — most commands accept multiple IDs. If the user wants to disable all JD-related env vars, search first then pass all IDs in one call.
3. **Confirm destructive actions** — for delete operations, show the user what will be deleted before running the command.
4. **Check logs on failure** — if a cron job fails, use `cron log <id>` to fetch the latest log and surface the error.

---

## Quick Reference

### Cron Jobs

```bash
scripts/ql.sh cron list                                    # List all
scripts/ql.sh cron get <id>                                # Get detail
scripts/ql.sh cron create --command "task x.js" --schedule "0 0 * * *" --name "Task"
scripts/ql.sh cron update <id> --name "New Name"
scripts/ql.sh cron delete <id>                             # Delete (supports multiple IDs)
scripts/ql.sh cron run <id>                                # Run now
scripts/ql.sh cron stop <id>                               # Stop
scripts/ql.sh cron enable <id> / disable <id>              # Enable / Disable
scripts/ql.sh cron pin <id> / unpin <id>                   # Pin / Unpin
scripts/ql.sh cron log <id>                                # View latest log
```

### Environment Variables

```bash
scripts/ql.sh env list                                     # List all
scripts/ql.sh env list "JD"                                # Search by keyword
scripts/ql.sh env create --name "KEY" --value "VALUE" --remarks "note"
scri

README.md

# 🐉 qinglong-skills

OpenClaw / Claude Code skill for controlling [QingLong (青龙)](https://github.com/whyour/qinglong) panel.

**[中文文档](README_zh-CN.md)**

## Features

- **Cron Jobs** — list, create, update, delete, run, stop, enable/disable, pin/unpin, view logs
- **Environment Variables** — list, create, update, delete, enable/disable
- **Scripts** — list, read, save, run, stop, delete
- **Dependencies** — list, install, reinstall, cancel, delete (node/linux/python3)
- **Subscriptions** — list, run, stop, enable/disable, delete, view logs
- **Logs** — list, read, delete
- **System** — info, config, update, reload, command run/stop, auth reset
- **Config Files** — list, read, save

## Prerequisites

- `curl` and `jq` installed on your system
- A QingLong panel with Open API enabled

## Get QingLong API Credentials

1. Open your QingLong web UI
2. Go to **Configuration** → **Application**
3. Click **Create Application**
4. Select the scopes you need (e.g. crons, envs, scripts, logs, system)
5. Copy the **Client ID** and **Client Secret**

## Environment Variables

| Variable | Description | Required |
|----------|-------------|----------|
| `QINGLONG_URL` | Panel base URL (e.g. `http://192.168.1.100:5700`) | ✅ |
| `QINGLONG_CLIENT_ID` | Open API Client ID | ✅ |
| `QINGLONG_CLIENT_SECRET` | Open API Client Secret | ✅ |

---

## Option 1: Use with OpenClaw

### Install the Skill

**Option A: Via ClawHub (recommended)**

```bash
clawhub install qinglong-skills
```

**Option B: Via npx**

```bash
npx skills add NNNNzs/qinglong-skills
```

**Option C: Use `extraDirs` (recommended for development)**

Add to `~/.openclaw/openclaw.json`:

```json5
{
  "skills": {
    "load": {
      "extraDirs": ["/path/to/qinglong-skills"]
    }
  }
}
```

**Option D: Copy to workspace skills directory**

```bash
cp -r qinglong-skills ~/.openclaw/workspace/skills/qinglong
```

### Configure Environment Variables in `openclaw.json`

Open `~/.openclaw/openclaw.json` and find (or create) the `skills.entries.qinglong` object:

```json5
{
  "skills": {
    "entries": {
      "qinglong": {
        "enabled": true,
        "env": {
          "QINGLONG_URL": "https://ql.yourdomain.com",
          "QINGLONG_CLIENT_ID": "your_client_id_here",
          "QINGLONG_CLIENT_SECRET": "your_client_secret_here"
        }
      }
    }
  }
}
```

**Full path:** `skills.entries.qinglong.env.QINGLONG_URL` / `QINGLONG_CLIENT_ID` / `QINGLONG_CLIENT_SECRET`

> ⚠️ Note: The Gateway UI does **not** render input forms for `skills.entries.*.env`. You must edit `openclaw.json` directly or use the raw JSON editor in the Gateway UI.

After editing, restart the gateway:

```bash
openclaw gateway restart
```

Verify the skill is loaded:

```bash
openclaw skills list
```

You should see `🐉 qinglong` with status `✓ ready`.

### Usage with OpenClaw Agent

The agent will automatically use the skill when you ask about QingLong operations.

---

## Option 2: Use with Claude Code CLI

This skill is **not ti

_meta.json

{
  "ownerId": "kn7eeypp8tpaxaw5qezg2j8ctd82a2q7",
  "slug": "qinglong-skills",
  "version": "1.0.2",
  "publishedAt": 1777015707238
}

references/api.md

# QingLong API Reference

Base URL: `{{QINGLONG_URL}}/api`

Authentication: `Authorization: Bearer {{token}}`

Token is obtained via: `GET {{QINGLONG_URL}}/open/auth/token?client_id={{id}}&client_secret={{secret}}`

---

## Cron Jobs `/crons`

| Method | Endpoint | Description | Body |
|--------|----------|-------------|------|
| GET | `/crons` | List all cron jobs | — |
| GET | `/crons/detail?id=<id>` | Get cron detail | — |
| GET | `/crons/<id>` | Get cron by ID | — |
| POST | `/crons` | Create cron(s) | `{command, schedule, name?, labels?}` |
| PUT | `/crons` | Update cron | `{id, command?, schedule?, name?}` |
| DELETE | `/crons` | Delete crons | `[id, ...]` |
| PUT | `/crons/run` | Run crons | `[id, ...]` |
| PUT | `/crons/stop` | Stop running crons | `[id, ...]` |
| PUT | `/crons/enable` | Enable crons | `[id, ...]` |
| PUT | `/crons/disable` | Disable crons | `[id, ...]` |
| PUT | `/crons/pin` | Pin crons | `[id, ...]` |
| PUT | `/crons/unpin` | Unpin crons | `[id, ...]` |
| GET | `/crons/<id>/log` | Get cron log file content | — |
| GET | `/crons/<id>/logs` | List cron log files | — |
| PUT | `/crons/status` | Update cron status | `{ids, status, pid?, log_path?}` |

### Cron Object

```json
{
  "id": 1,
  "name": "Task Name",
  "command": "task test.js",
  "schedule": "0 0 * * *",
  "isDisabled": 0,
  "isPinned": 0,
  "labels": ["label1"],
  "status": 0,
  "pid": null,
  "last_running_time": null,
  "last_execution_time": null,
  "log_path": null,
  "createdAt": "2024-01-01T00:00:00.000Z",
  "updatedAt": "2024-01-01T00:00:00.000Z"
}
```

---

## Environment Variables `/envs`

| Method | Endpoint | Description | Body |
|--------|----------|-------------|------|
| GET | `/envs` | List all envs | — |
| GET | `/envs?searchValue=<q>` | Search envs | — |
| GET | `/envs/<id>` | Get env by ID | — |
| POST | `/envs` | Create env(s) | `[{name, value, remarks?}, ...]` |
| PUT | `/envs` | Update env | `{id, name, value, remarks?}` |
| DELETE | `/envs` | Delete envs | `[id, ...]` |
| PUT | `/envs/enable` | Enable envs | `[id, ...]` |
| PUT | `/envs/disable` | Disable envs | `[id, ...]` |
| PUT | `/envs/<id>/move` | Move env position | `{fromIndex, toIndex}` |
| PUT | `/envs/pin` | Pin envs | `[id, ...]` |
| PUT | `/envs/unpin` | Unpin envs | `[id, ...]` |
| PUT | `/envs/name` | Update env name | `{ids: [...], name}` |
| POST | `/envs/upload` | Upload env file | multipart/form-data |

### Env Object

```json
{
  "id": 1,
  "name": "JD_COOKIE",
  "value": "pt_key=xxx;pt_pin=xxx",
  "remarks": "备注",
  "timestamp": 1704067200000,
  "status": 0,
  "position": 1
}
```

---

## Scripts `/scripts`

| Method | Endpoint | Description | Body |
|--------|----------|-------------|------|
| GET | `/scripts` | List scripts | — |
| GET | `/scripts?path=<path>` | List scripts in path | — |
| GET | `/scripts/detail?file=<name>` | Get script content | — |
| GET | `/scripts/<file>` | Get script by filename | — |
| POST | `/scripts` | Upload/create script | `{filename, co

references/setup.md

# QingLong Skill Setup Guide

## Prerequisites

- `curl` and `jq` installed
- A running QingLong panel with Open API enabled

## Get QingLong API Credentials

1. Open QingLong web UI → **Configuration** → **Application**
2. Click **Create Application**
3. Select the scopes you need (crons / envs / scripts / logs / system)
4. Copy the **Client ID** and **Client Secret**

## Required Environment Variables

| Variable | Description |
|----------|-------------|
| `QINGLONG_URL` | Panel base URL (e.g. `http://192.168.1.100:5700`) |
| `QINGLONG_CLIENT_ID` | Open API Client ID |
| `QINGLONG_CLIENT_SECRET` | Open API Client Secret |

---

## Setup for Claude Code CLI

### 1. Set environment variables

Add to your `~/.bashrc` or `~/.zshrc`:

```bash
export QINGLONG_URL="https://ql.yourdomain.com"
export QINGLONG_CLIENT_ID="your_client_id"
export QINGLONG_CLIENT_SECRET="your_client_secret"
```

Then reload: `source ~/.bashrc`

### 2. Test the connection

```bash
scripts/ql.sh cron list
```

### 3. Use with Claude Code

Create a `CLAUDE.md` in your project root:

```markdown
# QingLong Panel Management

Use `scripts/ql.sh` to manage the QingLong panel.

Common commands:
- `scripts/ql.sh cron list` — List all cron jobs
- `scripts/ql.sh env list` — List environment variables
- `scripts/ql.sh system info` — Get system info

Full reference: see SKILL.md in this directory.
```

Then run: `claude "帮我查看青龙面板的定时任务"`

---

## Setup for OpenClaw

### Install

```bash
# Via ClawHub (recommended)
clawhub install qinglong-skills

# Or via npx
npx skills add NNNNzs/qinglong-skills

# Or manual copy
cp -r qinglong-skills ~/.openclaw/workspace/skills/qinglong
```

### Configure environment variables

Open `~/.openclaw/openclaw.json` and add under `skills.entries`:

```json5
{
  "skills": {
    "entries": {
      "qinglong": {
        "enabled": true,
        "env": {
          "QINGLONG_URL": "https://ql.yourdomain.com",
          "QINGLONG_CLIENT_ID": "your_client_id",
          "QINGLONG_CLIENT_SECRET": "your_client_secret"
        }
      }
    }
  }
}
```

Restart the gateway: `openclaw gateway restart`

Sponsored

Ads related to Qinglong Skills and adjacent AI workflows.