← Back to Skills Marketplace
92
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install gesphw
Description
为GESP等级考试生成作业卷子,包含选择/判断/编程题。知识点定制,答案随机分布防猜测。触发:生成作业、出题、制作练习卷。
README (SKILL.md)
GESP作业生成器
适用场景
当用户要求:
- 生成某知识点的作业
- 制作练习卷/测验卷
- 出题
- 为某班级制作作业卷子
作业结构(符合GESP考试标准)
| 题型 | 题数 | 每题分值 | 总分 |
|---|---|---|---|
| 选择题 | 10 | 10 | 100 |
| 判断题 | 5 | 10 | 50 |
| 编程题 | 6 | 100 | 600 |
| 合计 | 21 | - | 750 |
文件命名规范
班级名/日期 - 知识点.md # 作业题目
班级名/日期 - 知识点 - 答案.md # 答案
示例:
庞桢扬班/4月 2 日 - 二进制与进制转换.md庞桢扬班/4月 2 日 - 二进制与进制转换 - 答案.md
生成流程
1. 收集信息
确认以下信息(用户未明确则推断):
- 班级名:从上下文推断
- 日期:从文件名推断
- 知识点:用户指定,用户说什么就覆盖什么
- 排除内容:用户明确不要的内容(如不要位运算、不要指针等)
2. 生成题目
选择题要求:
- 每题包含4个选项(A/B/C/D)
- 正确选项用冒号后面紧跟字母(如
A. xxx) - 选项之间空一行
- 覆盖用户指定的知识点
- 排除用户明确不要的内容
判断题要求:
- T表示正确,F表示错误
- 题目陈述要有一定迷惑性
3. 生成答案
答案文件格式:
1. X
2. X
3. X
...
15. X
16. cpp
17. cpp
(选择题和判断题用字母/T/F,编程题用 cpp)
4. 答案分布原则
选择题:
- A/B/C/D 四个选项都要出现
- 正确答案分布要均匀(各2-3个)
- 错误选项要有一定迷惑性
判断题:
- 禁止固定比例!如3T2F、2T3F等固定模式
- 每套题单独设计,不能有规律可循
- 可以偶尔全部正确或全部错误(但要配合选择题整体难度)
- 核心原则:学生无法通过猜测规律得分
5. 设计故事背景
故事背景要求:
- 根据知识点主题设计一个有趣的情境故事(科幻、冒险、历史、侦探等风格)
- 故事要能自然引出题目内容
- 每套试卷的故事背景要不同,避免重复
- 故事要有代入感,让学生更有兴趣答题
题目故事化要求:
- 每道选择题、判断题、编程题都要融入故事情境
- 题目描述要以故事角色的视角展开
- 编程题的任务要成为故事中的「关卡任务」
- 让整套试卷像一部连续的冒险故事
6. 创建文件
使用 create_file 工具创建两个文件:
- 作业题目文件
- 答案文件
题目内容设计原则
知识点覆盖
- 知识点来源:完全由用户指定,用户说什么知识点就覆盖什么
- 常见知识点:C++基础语法、循环结构、数组、字符串、结构体、排序算法、贪心算法、位运算、二进制、进制转换等
- 如果用户没有明确知识点,从上下文推断(查看最近的PPT或教学文档)
选择题设计
- 每题包含4个选项(A/B/C/D)
- 覆盖用户指定知识点的核心概念和应用
- 错误选项要有迷惑性,像真实易错点
- 故事化:题目描述融入故事情境,成为故事中的一个关卡或挑战
判断题设计
- T表示正确,F表示错误
- 题目陈述要有一定迷惑性
- 可以考察概念辨析、常见误区等
- 故事化:题目描述融入故事情境,成为故事中需要判断真假的线索
编程题设计
从洛谷选取与知识点匹配的编程题:
- 访问 https://www.luogu.com.cn 搜索相关题目
- 选择6道合适的编程题
- 每个编程题链接后标注分值
- 故事化:将编程题包装成故事中的关键任务,比如「破解密码」「修复系统」「传送数据」等
示例结构
---
title: "4 月 2 日作业 - 二进制与进制转换"
description: 二进制与进制转换专题练习
---
## 故事背景
> 公元 2200 年,人类在火星建立了第一座外星基地「新伊甸」。基地的中央控制系统采用二进制语言进行通信。作为基地的实习工程师,你需要破解系统密码、转换数据格式,才能启动生命维持系统。每一道题都是一道安全关卡,只有答对才能获得能源晶石。准备好了吗?冒险开始!
## 一、选择题(每题 10 分,共 100 分)
### 第 1 题【第一道关卡】(10分)
你来到基地大门前,屏幕上显示着一个二进制密码:`101101`。系统提示:「将此密码转换为十进制数,方可开启大门。」你快速计算后输入的答案是?
- A. 45
- B. 46
- C. 47
- D. 48
---
### 第 2 题【能源核心】(10分)
穿过大门,你来到能源核心控制台。控制台显示:「当前能源储量:37 单位。请将储量转换为二进制格式以便系统读取。」你应该输入的二进制数是?
- A. 100101
- B. 100110
- C. 100111
- D. 101001
---
...(继续10道选择题,每题都是故事中的一个关卡)
## 二、判断题(每题 10 分,共 50 分)
### 第 11 题【系统日志】(10分)
你查看基地的系统日志,发现一条记录:「二进制系统是所有计算机的基础,它只使用 0 和 1 两个数字。」你判断这条记录是否正确?
- T. 正确
- F. 错误
---
### 第 12 题【紧急警报】
警报响起!系统显示:「检测到异常数据:十进制 64 对应的二进制是 `1000000`,请确认是否需要修复。」你判断这条信息是否正确?
- T. 正确
- F. 错误
---
...(继续5道判断题,每题都是故事中需要判断真假的线索)
## 三、编程题(每题 100 分,共 600 分)
### 任务 1:破解密码锁 (100分)
\x3Ca href="https://fslong.iok.la/problem/1290" target="_blank">二进制转十进制\x3C/a>
**故事背景**
你来到生命维持系统的控制室,发现密码锁被设置为二进制模式。屏幕上闪烁着一串二进制数字,你需要在 60 秒内将其转换为十进制才能解锁系统。时间紧迫,快用你的程序来破解它!
**任务描述**
输入一个二进制正整数,将其转换成十进制输出。
**输入格式**
一行,一个由 0 和 1 组成的二进制正整数。
**输出格式**
一行,转换后的十进制数。
**样例输入**
110
**样例输出**
6
---
### 任务 2:数据传送 (100分)
\x3Ca href="https://fslong.iok.la/problem/P7591" target="_blank">十进制转二进制\x3C/a>
**故事背景**
基地的通讯系统需要将十进制数据转换为二进制格式才能发送到地球总部。作为值班工程师,你需要编写一个转换程序,将所有待传送的十进制数据转换为二进制。
**任务描述**
...(编程题格式同上)
答案文件格式
1. A
2. A
3. A
4. C
5. B
6. B
7. A
8. B
9. B
10. C
11. T
12. T
13. F
14. T
15. T
16. cpp
17. cpp
常见知识点作业参考
| 知识点 | 选择题 | 判断题 |
|---|---|---|
| 二进制与进制转换 | 二进制/八进制/十六进制转换、原码反码补码 | 进制规则、补码优势 |
| 结构体排序 | 结构体定义、成员访问、排序比较函数 | 结构体基础概念 |
| 贪心算法 | 贪心策略选择、排序贪心、区间贪心 | 贪心正确性条件 |
注意事项
- 答案分布:判断题不能有固定模式(如3T2F),答案要随机分布,避免学生猜测规律
- 知识点定制:严格按照用户指定的知识点出题
- 排除内容:用户明确不要的内容不要出现(如位运算)
- 文件路径:先确认班级目录存在,再创建文件
Usage Guidance
This skill appears to do what it claims (generate exam worksheets), but before installing:
- Be aware the instructions tell the agent to 'infer from context' and to 'check recent PPTs/teaching documents' — that could cause the agent to read local files or school materials. If you don't want that, provide explicit knowledge points instead of relying on inference.
- The skill will create files in class directories. Confirm the exact target path you want (and the agent's permission to create files) before running it to avoid unexpected writes.
- The skill will fetch programming problems from external sites (luogu). If network access is a concern, ask the skill to avoid external fetching and instead supply problem links.
- If you need higher assurance, ask the developer to remove the '查看最近的PPT或教学文档' instruction or to make file-read behavior explicit (which files/paths and require user consent). Grant the agent the minimal permissions required — e.g., supply the knowledge points and target folder path yourself rather than letting it search your documents.
What would change this assessment: explicit, limited instructions about which files/paths the agent may read (or removing the file-reading inference) and confirmation prompts before creating files would make the skill coherent/benign. Conversely, if the skill actually performed broader file-system or network access beyond what's described, the rating would become more severe.
Capability Analysis
Type: OpenClaw Skill
Name: gesphw
Version: 1.1.0
The skill bundle is designed to generate GESP-standard C++ homework assignments with a storytelling theme. It provides structured instructions for an AI agent to create markdown files containing multiple-choice, true/false, and programming questions (referencing Luogu and a local problem set host), and it lacks any indicators of data exfiltration, malicious execution, or harmful prompt injection.
Capability Assessment
Purpose & Capability
The name/description and requested actions (generate multiple question types, produce answer file, fetch programming problems from luogu) are coherent. No unrelated environment variables, binaries, or installs are requested. Fetching public problems from luogu and creating local worksheet/answer files is consistent with the stated purpose.
Instruction Scope
SKILL.md instructs the agent to '从上下文推断' and specifically to '查看最近的PPT或教学文档' when the user doesn't specify knowledge points — this implies reading user files or system documents not declared in the skill metadata, which is scope creep and a privacy risk. It also directs creating files in class directories via a create_file tool and to check that a class directory exists; those filesystem operations are reasonable for file generation but should be explicit and permissioned. The skill's network access (visit luogu to pick problems) is expected for sourcing problems but is an external endpoint the agent will contact.
Install Mechanism
Instruction-only skill with no install spec and no code files — lowest install risk. Nothing is downloaded or written by an installer in the manifest.
Credentials
The skill declares no required environment variables or credentials. That is proportionate to its purpose. The remaining concern is not env vars but the instruction to access local documents without declaring which paths or asking explicit permission.
Persistence & Privilege
always is false and the skill doesn't request persistent system privileges or modify other skills/config. It will create files (expected for its purpose) but does not claim elevated or global privileges.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install gesphw - After installation, invoke the skill by name or use
/gesphw - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
增加故事背景,题目故事化设计,description去掉级别字样
v1.0.0
- Initial release of GESP作业生成器 skill.
- Generates homework sets for GESP exams covering user-specified knowledge points with single-choice, true/false, and programming questions.
- Ensures customizable content, random answer distribution to prevent guesswork, and clear file naming conventions.
- Adheres to GESP exam standards in structure and scoring.
- Automatically creates homework and answer files with appropriate formats.
Metadata
Frequently Asked Questions
What is GESP作业生成器?
为GESP等级考试生成作业卷子,包含选择/判断/编程题。知识点定制,答案随机分布防猜测。触发:生成作业、出题、制作练习卷。 It is an AI Agent Skill for Claude Code / OpenClaw, with 92 downloads so far.
How do I install GESP作业生成器?
Run "/install gesphw" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is GESP作业生成器 free?
Yes, GESP作业生成器 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does GESP作业生成器 support?
GESP作业生成器 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created GESP作业生成器?
It is built and maintained by fslong (@fslong520); the current version is v1.1.0.
More Skills