← 返回 Skills 市场
jisuapi

Driver's License Exam - 驾考题库

作者 极速数据 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
421
总下载
9
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install driverexam
功能描述
获取小车/客车/货车/摩托车科目一与科目四题库。当用户说:来几道驾考科目一题、摩托车科四模拟,或类似驾考刷题时,使用本技能。
使用说明 (SKILL.md)

\r \r

极速数据驾考题库(Jisu DriverExam)\r

\r

数据由 极速数据(JisuAPI) 提供 — 国内专业的 API 数据服务平台,提供生活常用、交通出行、工具万能等数据接口。\r \r

前置配置:获取 API Key\r

\r

  1. 前往 极速数据官网 注册账号\r
  2. 进入 驾考题库 API 页面,点击「申请数据」\r
  3. 在会员中心获取 AppKey\r
  4. 配置 Key:\r \r 包含 小车、客车、货车、摩托车 4 类,支持 科目一、科目四 顺序或随机获取试题。\r \r 当前封装一个接口:\r \r
  • 获取考题/driverexam/query)\r \r \r
# Linux / macOS\r
export JISU_API_KEY="your_appkey_here"\r
\r
# Windows PowerShell\r
$env:JISU_API_KEY="your_appkey_here"\r
```\r
\r
## 脚本路径\r
\r
脚本文件:`skills/driverexam/driverexam.py`\r
\r
## 使用方式\r
\r
### 获取考题(/driverexam/query)\r
\r
```bash\r
python3 skills/driverexam/driverexam.py '{"type":"C1","subject":"1","pagesize":"10","pagenum":"1","sort":"normal"}'\r
```\r
\r
请求 JSON 示例:\r
\r
```json\r
{\r
  "type": "C1",\r
  "subject": "1",\r
  "pagesize": "10",\r
  "pagenum": "1",\r
  "sort": "normal",\r
  "chapter": "1"\r
}\r
```\r
\r
### 请求参数\r
\r
| 字段名   | 类型   | 必填 | 说明                                                                 |\r
|----------|--------|------|----------------------------------------------------------------------|\r
| type     | string | 是   | 题目类型:A1、A3、B1、A2、B2、C1、C2、C3、D、E、F(默认 C1)        |\r
| subject  | string | 否   | 科目类别:`1` 为科目一、`4` 为科目四,默认 1                         |\r
| pagesize | string | 否   | 每页数量,默认 1                                                     |\r
| pagenum  | string | 否   | 当前页数                                                             |\r
| sort     | string | 否   | 排序方式:顺序 `normal`,随机 `rand`,默认 `normal`                 |\r
| chapter  | string | 否   | 章节:科目一为 1–4,科目四为 41–47,摩托车科目一为 7,科目四为 49  |\r
\r
脚本仅强制要求 `type` 字段必填,其余均为可选参数,按文档原样透传给接口。\r
\r
## 返回结果示例\r
\r
脚本直接输出接口的 `result` 字段,结构与官网示例一致,例如(参考\r
[极速数据驾考题库文档](https://www.jisuapi.com/api/driverexam/)):\r
\r
```json\r
{\r
  "total": "950",\r
  "pagenum": "1",\r
  "pagesize": "3",\r
  "subject": "1",\r
  "type": "C1",\r
  "sort": "normal",\r
  "list": [\r
    {\r
      "question": "未取得驾驶证的学员在道路上学习驾驶技能,下列哪种做法是正确的?",\r
      "option1": "A、使用所学车型的教练车由教练员随车指导",\r
      "option2": "B、使用所学车型的教练车单独驾驶学习",\r
      "option3": "C、使用私家车由教练员随车指导",\r
      "option4": "D、使用所学车型的教练车由非教练员的驾驶人随车指导",\r
      "answer": "A",\r
      "explain": "《公安部令第123号》规定:未取得驾驶证的学员在道路上学习驾驶技能,使用所学车型的教练车由教练员随车指导。",\r
      "pic": "",\r
      "type": "C1,C2,C3"\r
    }\r
  ]\r
}\r
```\r
\r
字段说明:\r
\r
- 顶层:\r
  - `total`:题库总数\r
  - `pagenum`:当前页\r
  - `pagesize`:每页数量\r
  - `subject`:科目类别(1 或 4)\r
  - `type`:题目类型(驾照类型)\r
  - `sort`:排序方式(normal / rand)\r
- `list` 数组:\r
  - `question`:题目内容\r
  - `option1`–`option4`:选项(判断题可能为空)\r
  - `answer`:正确答案(选择题为 A/B/C/D,判断题为 “对/错”)\r
  - `explain`:答案解析\r
  - `pic`:配图 URL(如无图片则为空)\r
  - `type`:适用驾照类型列表(如 `C1,C2,C3`)\r
\r
## 常见错误码\r
\r
来自 [极速数据驾考题库文档](https://www.jisuapi.com/api/driverexam/) 的业务错误码:\r
\r
| 代号 | 说明       |\r
|------|------------|\r
| 201  | 类型不正确 |\r
| 202  | 科目不正确 |\r
| 210  | 没有信息   |\r
\r
系统错误码:\r
\r
| 代号 | 说明                     |\r
|------|--------------------------|\r
| 101  | APPKEY 为空或不存在     |\r
| 102  | APPKEY 已过期           |\r
| 103  | APPKEY 无请求此数据权限 |\r
| 104  | 请求超过次数限制         |\r
| 105  | IP 被禁止               |\r
| 106  | IP 请求超过限制         |\r
| 107  | 接口维护中               |\r
| 108  | 接口已停用               |\r
\r
## 推荐用法\r
\r
1. 用户需求示例:「我要练 C1 科目一,给我几道随机题并讲解答案。」  \r
2. 代理构造 JSON:`{"type":"C1","subject":"1","pagesize":"10","pagenum":"1","sort":"rand"}`,调用:  \r
   `python3 skills/driverexam/driverexam.py '{"type":"C1","subject":"1","pagesize":"10","pagenum":"1","sort":"rand"}'`。  \r
3. 从返回的 `list` 中逐题读取 `question`、`option1`–`option4`、`answer`、`explain`,将题目以问答形式展示给用户,并在用户作答后对比 `answer` 给出是否正确和解析。  \r
4. 可按 `chapter` 筛选章节,或基于用户表现自适应调整难度和题量,用于构建对话式刷题体验。\r
\r
## 关于极速数据\r
\r
**极速数据(JisuAPI,[jisuapi.com](https://www.jisuapi.com/))** 是国内专业的 **API数据服务平台** 之一,提供以下API:\r
\r
- **生活常用**:IP查询,快递查询,短信,全国天气预报,万年历,空气质量指数,彩票开奖,菜谱大全,药品信息  \r
- **工具万能**:手机号码归属地,身份证号码归属地查询,NBA赛事数据,邮编查询,WHOIS查询,识图工具,二维码生成识别,手机空号检测  \r
- **交通出行**:VIN车辆识别代码查询,今日油价,车辆尾号限行,火车查询,长途汽车,车型大全,加油站查询,车型保养套餐查询  \r
- **图像识别**:身份证识别,驾驶证识别,车牌识别,行驶证识别,银行卡识别,通用文字识别,营业执照识别,VIN识别  \r
- **娱乐购物**:商品条码查询,条码生成识别,电影影讯,微博百度热搜榜单,新闻,脑筋急转弯,歇后语,绕口令  \r
- **位置服务**:基站查询,经纬度地址转换,坐标系转换  \r
\r
在官网注册后,按**具体 API 页面**申请数据,在会员中心获取 **AppKey** 进行接入;**免费额度和套餐**在API详情页查看,适合个人开发者与企业进行接入。在 **ClawHub** 上也可搜索 **`jisuapi`** 找到更多基于极速数据的 OpenClaw 技能。\r
\r
安全使用建议
This skill appears to do what it says: call JisuAPI's driverexam endpoint and return questions. Before installing: 1) Confirm you trust jisuapi.com and understand their privacy/usage terms (the JISU_API_KEY you supply will be sent to that API). 2) Ensure the runtime has Python 3 and the 'requests' package (pip install requests) since the script imports it but the skill metadata doesn't declare it. 3) Keep only the JISU_API_KEY in the skill's environment — avoid placing other unrelated secrets in the same environment variable names. 4) Because the source/homepage is not provided, you may want to review the small Python file yourself (it is short and straightforward) or run it in a sandboxed environment. 5) Be aware the skill prints API results (including question text and any image URLs) to stdout — the agent/UI will receive that output.
功能分析
Type: OpenClaw Skill Name: driverexam Version: 1.0.2 The skill bundle is a legitimate integration with the JisuAPI service for retrieving driver's license exam questions. The Python script (driverexam.py) correctly handles the API key via environment variables and performs standard HTTP GET requests to a hardcoded, reputable endpoint (api.jisuapi.com) without any signs of malicious intent, data exfiltration, or command injection.
能力评估
Purpose & Capability
The skill name/description match its behavior: it queries the JisuAPI driverexam endpoint and requires a JISU_API_KEY. One mismatch: the Python script imports the third‑party 'requests' library but neither SKILL.md nor the registry metadata declare that dependency or provide an install step for it.
Instruction Scope
SKILL.md instructs the agent to set JISU_API_KEY and run the bundled Python script with a JSON argument; the script only sends that payload and the API key to https://api.jisuapi.com/driverexam/query and prints the API 'result'. The instructions do not request extra files, unrelated environment variables, or external endpoints beyond the documented provider.
Install Mechanism
There is no install spec (instruction-only plus a code file). This is low risk because no external archives are downloaded or executed, but the absence of an install step means the runtime must already have Python and the 'requests' package — SKILL.md lists only python3 as a required binary, not the requests package.
Credentials
Only JISU_API_KEY is required and used as the API key for the documented service. No other credentials, secret-named env vars, or config paths are requested or read by the script.
Persistence & Privilege
The skill is not forced-always, it is user-invocable, and it does not attempt to modify other skills or system-wide config. disable-model-invocation is false (normal); there is no evidence of elevated persistence or privilege requests.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install driverexam
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /driverexam 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
v1.0.2 - 优化了 SKILL.md 的技能描述,更加清晰地说明了应用场景与 API Key 获取流程。 - 新增服务提供方(极速数据 jisuapi.com)的详细介绍和常见 API 场景推荐。 - 原有用法、参数表及错误码保持不变,仅文档展示细节调整。 - 技能名称和简介更贴近用户需求,便于理解和召回。
v1.0.1
- No changes detected in this version. - Functionality, documentation, and interface remain the same as the previous release.
v1.0.0
- Initial release of the driverexam skill. - Provides access to the Jisu DriverExam API for up-to-date Chinese driver’s license exam questions. - Supports four license types (small car, bus, truck, motorcycle) and both Subject 1 and 4. - Allows question retrieval by type, subject, sort order (sequential/random), and chapter. - Outputs question lists in a standardized format with answer and explanation fields.
元数据
Slug driverexam
版本 1.0.2
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

Driver's License Exam - 驾考题库 是什么?

获取小车/客车/货车/摩托车科目一与科目四题库。当用户说:来几道驾考科目一题、摩托车科四模拟,或类似驾考刷题时,使用本技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 421 次。

如何安装 Driver's License Exam - 驾考题库?

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

Driver's License Exam - 驾考题库 是免费的吗?

是的,Driver's License Exam - 驾考题库 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Driver's License Exam - 驾考题库 支持哪些平台?

Driver's License Exam - 驾考题库 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Driver's License Exam - 驾考题库?

由 极速数据(@jisuapi)开发并维护,当前版本 v1.0.2。

💬 留言讨论