Xpersona
K

kmdr - Kmoe Manga Downloader

CLAWHUB · Unverified

Kmoe 漫画下载器。支持搜索漫画、下载漫画、管理凭证池等。当用户想要从 Kmoe 网站下载漫画、搜索漫画、管理下载账号配额时触发此 skill。 Skill: kmdr - Kmoe Manga Downloader Owner: chrisis58 Summary: Kmoe 漫画下载器。支持搜索漫画、下载漫画、管理凭证池等。当用户想要从 Kmoe 网站下载漫画、搜索漫画、管理下载账号配额时触发此 skill。 Tags: latest:1.0.0-a4, pre:1.0.0-a0 Version history: v1.0.0-a4 | 2026-08-08T07:06:25.821Z | user - Updated required kmoe-manga-downloader version to >=1.4.0.a3,<2.0.0 in installation instructions. - Removed skill-card.md file. v1.0.0-a3 | 2026-06-27T17:58:23.938Z | user No major chan

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K 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: low.

clawhub skill install s1782kqtzdyw788kpvrytw54js84f8xv:kmdr
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  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-chrisis58-kmdr/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

94,362 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: kmdr
description: "Kmoe 漫画下载器。支持搜索漫画、下载漫画、管理凭证池等。当用户想要从 Kmoe 网站下载漫画、搜索漫画、管理下载账号配额时触发此 skill。"
compatibility: "Requires kmdr CLI installed and valid credentials configured"
user-invocable: true
---

# kmdr - Kmoe 漫画下载器

## 概述

kmdr 是一个用于从 [Kmoe](https://kxx.moe/) 网站下载漫画的命令行工具。

## 环境准备

安装:

```bash
pip install --pre "kmoe-manga-downloader>=1.4.0.a3,<2.0.0"
```

验证安装:

```bash
kmdr --mode toolcall version
```

登录(二选一):
- **推荐**:让用户在终端执行 `kmdr login -u <username> [-p <password>]`,凭证不会暴露给智能体
- **备选**:用户提供凭证,智能体执行 `kmdr --mode toolcall login -u <username> -p <password>`(凭证会出现在对话历史中)

检测登录状态:

```bash
kmdr --mode toolcall status
```

## 调用方式

**所有命令必须使用 `--mode toolcall`** 以获取结构化 JSON 输出。向用户建议手动执行命令时不要包含此参数。

`--fast-auth` 原则:**会话首次命令联网同步凭证,后续只读操作可跳过,写操作不要跳过以确保配额准确。**

- 会话首次命令(无论 search / download --explain)→ 不加 `--fast-auth`
- 后续只读(search、download --explain、progress、config --list、pool list)→ 加 `--fast-auth`
- 写操作(download、pool add/remove/use、config --set)→ 不加 `--fast-auth`
- status、login → `--fast-auth` 对其无效

## 命令速览

| 命令 | 语法 | 用途 |
|------|------|------|
| `search` | `kmdr --mode toolcall search <keyword> [-p N] [-m]` | 搜索漫画 |
| `download` | `kmdr --mode toolcall download -l <url> -v <vol> [--explain\|--background]` | 下载漫画 |
| `progress` | `kmdr --mode toolcall progress <task_id> [--wait N]` | 查询后台下载进度 |
| `login` | `kmdr --mode toolcall login -u <user> -p <pass>` | 登录账号 |
| `status` | `kmdr --mode toolcall status` | 查看配额 |
| `pool` | `kmdr --mode toolcall pool <add\|list\|use\|remove>` | 管理凭证池 |
| `config` | `kmdr --mode toolcall config <--set\|--list\|--clear>` | 管理配置 |

> 完整选项见 `kmdr --mode toolcall <command> --help`。输出格式详见 [./references/output-format.md](./references/output-format.md)。

## 典型工作流

```
搜索 → 获取详情 → 预估下载计划 → 确认配额 → 启动后台下载 → 响应用户进度查询 → 完成确认
```

| 步骤 | 命令 |
|------|------|
| 1. 检查环境 | 确认安装并登录(见「环境准备」) |
| 2. 搜索漫画 | `kmdr --mode toolcall search "漫画名称"` |
| 3. 获取详情 | 从搜索结果中取 `url` 字段(结合 `tags` 区分语言版本) |
| 4. 预估下载 | `kmdr --mode toolcall --fast-auth download -l <url> -v <volume> --explain` |
| 5. 确认配额 | `kmdr --mode toolcall --fast-auth status`,对比预估消耗决定是否继续 |
| 6. 启动后台下载 | `kmdr --mode toolcall download -l <url> -v <volume> --background`(返回 `task_id`) |
| 7. 响应用户查询 | 用户询问进度时执行 `kmdr --mode toolcall progress <task_id> [--wait N]` |
| 8. 完成确认 | 下载完成后报告结果(成功/失败/跳过数) |

> 实际顺序可能不同,遵循 `--fast-auth` 原则即可。

## 后台下载要点

- **预估**:先用 `--explain` 获取下载计划和配额预估(`estimate_quota_usage_mb`、`avai_quota_mb`)
- **启动**:`--background` 立即返回 `task_id`(格式 `YYYYMMDD_HHMMSS`)和 `pid`
- **查询**:`progress <task_id> [--wait N]`。用户随口一问用 `--wait 0`(即时返回),要求等完成用 `--wait 60`(阻塞等待,完成即返回)
- **判断**:通过 `data.is_finished` 判断——`false` 进行中(看 `data.volumes`),`true` 已完成(看 `completed/failed/skipped`)
- **task_id 是查询进度的唯一凭证**,智能体应在会话中记住它;无需主动轮询,仅在用户询问时响应

## 错误处理

命令通过 `code` 字段表示状态(0 = 成功)。**遇到非 0 的 code 时,必须查阅 [错误码文档](./references/error-codes.md) 获取恢复策略,不可自行猜测处理方式。**

## 注意事项

_meta.json

{
  "ownerId": "kn733vx5xg2v2nq3kma2mdj7jn84e3xs",
  "slug": "kmdr",
  "version": "1.0.0-a4",
  "publishedAt": 1786172785821
}

references/error-codes.md

# 错误状态码

## 状态码分类

| 范围 | 分类 | 说明 |
|------|------|------|
| 0 | 成功 | 命令顺利完成 |
| 1x | 基础/参数错误 | 工具初始化或参数解析问题 |
| 2x | 身份/凭证错误 | 账号登录或配额相关问题 |
| 3x | 重定向错误 | 站点强制重定向 |
| 4x | 用户输入受限 | 终端条件不足或内容不可用 |
| 5x | 服务端/网络异常 | 网络问题或服务器错误 |
| 50 | 未知错误 | 非 KmdrError 的预期外异常 |

## 恢复策略

| 状态码 | 恢复策略 |
|--------|----------|
| 1x | 检查命令和参数;尝试 `kmdr config --clear` 重置配置 |
| 2x | 检查凭证正确性;使用 `kmdr pool use <username>` 切换有配额账号;等待配额重置(每月) |
| 3x | 按错误消息提示更新 base_url:`kmdr config --set base_url=<new_url>` |
| 4x | 检查输入参数有效性;尝试配置代理:`kmdr config --set proxy=<proxy_url>`;尝试不同搜索关键字 |
| 5x | 检查网络连接;配置或更换代理;稍后重试;使用 `--retry` 增加重试次数 |
| 50 | 重试一次;若仍失败,报告用户错误消息(从 `msg` 字段获取)并建议提交 issue |

> 错误详情见输出的 `msg` 字段。以上策略覆盖所有子码,无需逐个记忆。

references/output-format.md

# JSON 输出格式

kmdr 在 toolcall 模式下输出 NDJSON(每行一个 JSON 对象)。

## 输出类型

| 类型 | 含义 | 出现场景 |
|------|------|----------|
| `result` | 最终结果 | 所有命令退出时 |
| `progress` | 进度更新 | 仅 download 命令执行过程中实时输出 |

## result 格式

```json
{"type": "result", "code": 0, "msg": "success", "data": {...}}
```

- `code`: 0 = 成功,非 0 = 错误(查阅 [error-codes.md](./error-codes.md))
- `data`: 成功时包含返回数据,失败时为 `null`

## progress 格式

```json
{"type": "progress", "status": "downloading", "percentage": 45.2, "volume": "第1卷", "size_mb": 50.0}
```

- `status`: `downloading` | `completed` | `failed` | `skipped`
- 每 10MB 输出一次,进度流以 `status: "completed"` 或 `"failed"` 结束

## 关键数据结构

### download --background 返回

```json
{"type": "result", "code": 0, "data": {"task_id": "20260415_143000", "pid": 12345}}
```

- `task_id` 格式 `YYYYMMDD_HHMMSS`,是查询进度的唯一凭证

### progress <task_id> 返回

统一返回 `result` 类型,通过 `data.is_finished` 区分:

- **进行中**:`"is_finished": false`,查看 `data.volumes` 获取各卷进度
- **已完成**:`"is_finished": true`,查看 `data.book`, `data.total`, `data.completed`, `data.failed`, `data.skipped`,以及 `data.volumes` 各卷最终状态
- **不存在**:`code: 45`(查阅 error-codes.md)

### --explain 返回

`data` 关键字段:`estimate_quota_usage_mb`, `avai_quota_mb`, `to_download[]`(含 `name` 和 `size`), `skipped[]`

### BookInfo(搜索/详情)

```json
{"id": "...", "name": "漫画名称", "url": "https://kxo.moe/c/abc123.htm", "author": "...", "status": "连载中", "tags": ["日語", "完結"], ...}
```

- `tags`:字符串数组。语言标签(`日語`/`英文`,无则为中文翻译版);状态标签(`完結`/`停更`)。用于区分同名条目的语言版本。

skill-card.md

## Description:

Kmoe manga downloader that helps agents search Kmoe manga, download selected volumes, manage credential pools, and report download progress.

This skill is ready for commercial/non-commercial use.

## Publisher:

[chrisis58](https://clawhub.ai/user/chrisis58)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to operate the kmdr CLI for finding Kmoe manga, estimating quota impact, starting downloads, and checking background-download progress.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The installation instructions use a mutable pre-release downloader package range.

Mitigation: Install in an isolated environment and pin or review the exact kmoe-manga-downloader version before use.

Risk: Password-based login can expose credentials if the agent receives or runs the password in chat or command arguments.

Mitigation: Prefer user-run terminal login and avoid sending passwords through chat, transcripts, or command history.

Risk: Downloads can consume account quota or save files to an unintended destination.

Mitigation: Use explain, status, and config checks before starting a background download.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/chrisis58/skills/kmdr)
- [Kmoe](https://kxx.moe/)
- [Output Format](references/output-format.md)
- [Error Codes](references/error-codes.md)

## Skill Output:

**Output Type(s):** [Shell commands, Configuration, Guidance, Markdown, JSON]

**Output Format:** [Markdown guidance with inline shell commands and NDJSON command outputs]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [kmdr toolcall mode emits result and progress JSON objects; background downloads return a task_id for later progress checks.]

## Skill Version(s):

1.0.0-a4 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to kmdr - Kmoe Manga Downloader and adjacent AI workflows.