Token导航 LogoToken导航

Agent Skill · 效率

soke-ai-exam-skill(Soke ai 考试技巧)

soke-ai-exam-skill 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

soke-ai-exam-skill 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描有提醒项,按安装量在效率类的 21,003 个 Skill 里排第 12,367。

总安装 4,163周安装 177GitHub Stars 公开资料未说明下载 1,458核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
0.1.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:soke-ai-exam-skill(Soke ai 考试技巧)
来源仓库:https://github.com/xiangzidetiandi/soke-ai-exam-skill
安装命令:
openclaw skills install soke-ai-exam-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install soke-ai-exam-skill

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

soke-ai-exam-skill 是基于文档自动生成考试的系统,支持学员指派和结果查询。适用于教育培训和在线考试场景。提供智能出题和成绩管理功能,提升教学效率。安装方式:openclaw skills install soke-ai-exam-skill,宿主为 OpenClaw。

使用前请确认权限范围和维护状态,注意可能涉及数据读写或网络请求。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install soke-ai-exam-skill;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

soke-ai-exam-skill 怎么安装?

在终端执行 openclaw skills install soke-ai-exam-skill。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

soke-ai-exam-skill 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

soke-ai-exam-skill 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

soke-ai-exam-skill 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

soke-ai-exam-skill 用的人多吗?

公开数据是累计安装 4,163 次,近一周安装 177 次,下载 1,458 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

soke-ai-exam-skill 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
soke-ai-exam-skill

Soke ai 考试技巧 · 本页

4,163—需要联网MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
ai-exam
description
AI智能出题考试系统 - 基于文档自动生成考试、指派学员并查询结果
version
1.0.0
author
AI Assistant
tags
[ai, exam, education, openclaw]

AI智能出题考试系统

基于接口文档实现的AI智能出题、考试指派和结果查询系统。支持上传文档、AI自动出题、指派学员/部门、查询考试结果等完整流程。

功能特性

  • 🤖 AI智能出题 - 上传文档自动生成试题
  • 📝 多种题型支持 - 单选、多选、不定项、判断、填空、简答
  • 👥 灵活指派 - 支持按用户名和部门名指派
  • 📊 结果查询 - 单个和批量查询学员考试结果
  • 🔐 自动认证 - 自动管理 access_token,无需手动刷新
  • ⚡ 批量操作 - 支持批量指派和批量查询

安装

npm install

配置

环境变量配置

创建 .env 文件:

APP_KEY=your_app_key
APP_SECRET=your_app_secret
CORP_ID=your_corp_id

代码配置

import aiExamSkill from './index.js';

await aiExamSkill.initialize(
  'your_app_key',
  'your_app_secret',
  'your_corp_id'
);

使用方法

1. 完整流程:创建考试并指派

import aiExamSkill from './index.js';

// 初始化配置
await aiExamSkill.initialize(appKey, appSecret, corpId);

// 创建考试并指派
const result = await aiExamSkill.createAndAssignExam({
  // 文档路径
  filePath: '/path/to/document.pdf',

  // 考试标题
  examTitle: '2026年春季期末考试',

  // 题型配置
  questionTypes: [
    { type: 'danxuan', count: 10 },      // 单选题 10道
    { type: 'duoxuan', count: 5 },       // 多选题 5道
    { type: 'budingxiang', count: 2 },   // 不定项 2道
    { type: 'panduan', count: 5 },       // 判断题 5道
    { type: 'tiankong', count: 3 },      // 填空题 3道
    { type: 'jianda', count: 2 }         // 简答题 2道
  ],

  // 创建者信息
  creatorUserId: 'A8BD990B-EDE0-4A52-A33B-83EFA574137C',
  creatorUserName: '张老师',
  creatorDeptUserId: '181739082621441031',
  creatorDeptUserName: '张老师',

  // 指派对象(可选)
  assignUserNames: ['李明', '王芳', '张伟'],
  assignDeptNames: ['一年级', '二年级']
});

console.log('考试创建成功!');
console.log('考试ID:', result.examId);
console.log('题目数量:', result.questionCount);
console.log('总分:', result.totalScore);
console.log('及格分:', result.passScore);

2. 快速创建(使用默认题型)

// 使用默认题型配置:10道单选 + 5道多选 + 5道判断
const result = await aiExamSkill.quickCreateExam(
  '/path/to/document.pdf',
  '快速测试考试',
  {
    creatorUserId: 'user_id',
    creatorUserName: '创建者姓名',
    creatorDeptUserId: 'dept_user_id',
    creatorDeptUserName: '创建者部门姓名'
  }
);

3. 查询单个学员考试结果

const examResult = await aiExamSkill.getExamResult(
  'exam_id',
  '学生姓名'
);

console.log('考试名称:', examResult.target_title);
console.log('得分:', examResult.last_score);
console.log('总分:', examResult.total_score);
console.log('通过状态:', examResult.pass_status);
console.log('考试次数:', examResult.attempt_times);
console.log('平均用时:', examResult.avg_used_time, '秒');
console.log('学分:', examResult.credit);

4. 批量查询考试结果

const results = await aiExamSkill.batchGetExamResults(
  'exam_id',
  ['学生A', '学生B', '学生C', '学生D']
);

// 处理结果
results.forEach(result => {
  if (result.success) {
    console.log(`${result.userName}: ${result.data.last_score}分 - ${result.data.pass_status}`);
  } else {
    console.log(`${result.userName}: 查询失败 - ${result.error}`);
  }
});

// 统计通过率
const passedCount = results.filter(r => r.success && r.data.pass_status === 'passed').length;
console.log(`通过率: ${(passedCount / results.length * 100).toFixed(2)}%`);

API 参考

题型类型

类型说明
danxuan单选题
duoxuan多选题
budingxiang不定项选择题
panduan判断题
tiankong填空题
jianda简答题

主要方法

initialize(appKey, appSecret, corpId)

初始化系统配置

参数:

  • appKey (string) - 应用密钥
  • appSecret (string) - 应用密钥
  • corpId (string) - 企业ID

返回: Promise<void>


createAndAssignExam(options)

创建考试并指派学员/部门

参数:

  • options.filePath (string) - 文档文件路径
  • options.examTitle (string) - 考试标题
  • options.questionTypes (Array) - 题型配置数组
  • options.creatorUserId (string) - 创建者用户ID
  • options.creatorUserName (string) - 创建者姓名
  • options.creatorDeptUserId (string) - 创建者部门用户ID
  • options.creatorDeptUserName (string) - 创建者部门姓名
  • options.assignUserNames (Array) - 指派用户名列表(可选)
  • options.assignDeptNames (Array) - 指派部门名列表(可选)

返回: Promise<Object>

{
  examId: string,           // 考试ID
  examTitle: string,        // 考试标题
  questionCount: number,    // 题目数量
  totalScore: number,       // 总分
  passScore: number,        // 及格分
  assignedUsers: number,    // 已指派用户数
  assignedDepts: number     // 已指派部门数
}

quickCreateExam(filePath, examTitle, creator)

快速创建考试(使用默认题型:10道单选 + 5道多选 + 5道判断)

参数:

  • filePath (string) - 文档文件路径
  • examTitle (string) - 考试标题
  • creator (Object) - 创建者信息

- creatorUserId (string) - creatorUserName (string) - creatorDeptUserId (string) - creatorDeptUserName (string)

返回: Promise<Object> - 同 createAndAssignExam


getExamResult(examId, userName)

获取单个学员的考试结果

参数:

  • examId (string) - 考试ID
  • userName (string) - 学员姓名

返回: Promise<Object>

{
  target_id: string,        // 考试ID
  target_title: string,     // 考试名称
  category_title: string,   // 分类名称
  dept_user_id: string,     // 用户ID
  total_score: number,      // 总分
  pass_score: number,       // 及格分
  last_score: number,       // 最后得分
  pass_status: string,      // 通过状态 (passed/failed)
  attempt_times: number,    // 考试次数
  avg_used_time: number,    // 平均用时(秒)
  credit: number,           // 学分
  passed_time: string,      // 通过时间
  create_time: string       // 创建时间
}

batchGetExamResults(examId, userNames)

批量获取学员考试结果

参数:

  • examId (string) - 考试ID
  • userNames (Array<string>) - 学员姓名列表

返回: Promise<Array<Object>>

[
  {
    userName: string,
    success: boolean,
    data: Object,      // 成功时的考试结果
    error: string      // 失败时的错误信息
  }
]

使用场景

场景1: 教师创建期末考试

// 1. 上传教材PDF,AI自动生成试题
// 2. 指派给整个班级
const result = await aiExamSkill.createAndAssignExam({
  filePath: '/documents/math_textbook.pdf',
  examTitle: '数学期末考试',
  questionTypes: [
    { type: 'danxuan', count: 20 },
    { type: 'duoxuan', count: 10 },
    { type: 'jianda', count: 5 }
  ],
  creatorUserId: 'teacher_001',
  creatorUserName: '李老师',
  creatorDeptUserId: 'dept_teacher_001',
  creatorDeptUserName: '李老师',
  assignDeptNames: ['三年级一班', '三年级二班']
});

场景2: 企业培训考核

// 1. 上传培训资料
// 2. 指派给新员工
const result = await aiExamSkill.createAndAssignExam({
  filePath: '/training/company_policy.pdf',
  examTitle: '新员工入职培训考核',
  questionTypes: [
    { type: 'danxuan', count: 15 },
    { type: 'panduan', count: 10 }
  ],
  creatorUserId: 'hr_001',
  creatorUserName: 'HR张经理',
  creatorDeptUserId: 'dept_hr_001',
  creatorDeptUserName: 'HR张经理',
  assignDeptNames: ['2026届新员工']
});

场景3: 批量查询考试结果并生成报告

// 查询所有学员成绩
const students = ['张三', '李四', '王五', '赵六', '钱七'];
const results = await aiExamSkill.batchGetExamResults(examId, students);

// 生成统计报告
const passed = results.filter(r => r.success && r.data.pass_status === 'passed');
const failed = results.filter(r => r.success && r.data.pass_status !== 'passed');
const avgScore = results
  .filter(r => r.success)
  .reduce((sum, r) => sum + r.data.last_score, 0) / results.length;

console.log('考试统计报告:');
console.log(`总人数: ${results.length}`);
console.log(`通过人数: ${passed.length}`);
console.log(`未通过人数: ${failed.length}`);
console.log(`通过率: ${(passed.length / results.length * 100).toFixed(2)}%`);
console.log(`平均分: ${avgScore.toFixed(2)}`);

错误处理

所有方法都会抛出错误,建议使用 try-catch 捕获:

try {
  const result = await aiExamSkill.createAndAssignExam(options);
  console.log('操作成功:', result);
} catch (error) {
  console.error('操作失败:', error.message);

  // 根据错误类型进行处理
  if (error.message.includes('access_token')) {
    console.error('认证失败,请检查配置');
  } else if (error.message.includes('文件不存在')) {
    console.error('文件路径错误');
  } else {
    console.error('未知错误');
  }
}

注意事项

  1. Token管理: access_token 有效期为2小时,系统会自动管理和刷新,无需手动处理
  2. 文件格式: 支持 PDF、Word、Excel 等常见文档格式
  3. 题型配置: 题型数量可以根据需要自由配置,建议总题数在 15-50 道之间
  4. 指派逻辑:

- 系统会自动查询用户名和部门名对应的ID - 未找到的用户或部门会跳过,不影响其他指派 - 可以只指派用户、只指派部门,或两者都指派

  1. 并发限制: 批量操作时建议控制并发数量,避免API限流

项目结构

ai_exam/
├── config.js          # 配置管理(token缓存、默认配置)
├── api-client.js      # API客户端(统一请求处理)
├── services.js        # 部门和用户服务
├── exam-service.js    # 考试核心服务
├── index.js           # 主入口(Skill类)
├── example.js         # 使用示例
├── package.json       # 项目配置
├── README.md          # 说明文档
├── skill.md           # Skill文档
├── .env.example       # 环境变量示例
└── .gitignore         # Git忽略配置

依赖项

  • axios - HTTP客户端
  • form-data - 文件上传支持

版本历史

v1.0.0 (2026-03-15)

  • ✨ 初始版本发布
  • ✅ 支持AI智能出题
  • ✅ 支持考试指派
  • ✅ 支持结果查询
  • ✅ 自动Token管理

许可证

MIT

支持

如有问题或建议,请提交 Issue 或 Pull Request。

平台分布

OpenClaw

93.66%
按下载量换算1,366

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills