xingaokaopaike
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "xingaokaopaike" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4a6938c0e22a06e3a8c3746de8b0e7362d56a407f81b8f2c618ffcf24e67bf00. Verify the upstream source and version against https://skillhub.cn/skills/user_a16b2e76/xingaokaopaike before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Automated scheduling skill for the new college entrance exam (3+1+2 / 3+3). Models 'administrative classes (Chinese/Math/English) + streamed classes (elective subjects)' as a constraint-satisfaction problem and automatically generates conflict-free schedules for administrative classes, teaching groups, and teachers. Used for scheduling in middle schools adopting the streamed elective system, generating elective/streamed timetables, resolving student/teacher/classroom conflicts, and handling 3+1+2 or 3+3 subject selection scheduling needs.
Introduction source: third_party · user_a16b2e76 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- python scripts/schedule.py --students students.csv --teachers teachers.csv \ --config config.json --out ./output
- Testing
- Not tested
Browse files
Frontmatter
name: gaokao-auto-schedule
description: 新高考(3+1+2 / 3+3)自动排课技能。将"行政班(语数外)+ 走班(选考科目)"建模为约束满足问题, 自动生成无冲突的行政班/教学班/教师三套课表。当用户需要为实施新高考走班制的中学排课、生成选课走班课表、求解学生/教师/教室冲突, 或处理"3+1+2""3+3"选科排课需求时使用。
agent_created: true新高考自动排课 (Gaokao Auto Schedule)
适用场景
- 实施新高考"走班制"的中学需要为选考科目排课;
- 用户提到 "3+1+2"、"3+3"、"走班"、"教学班"、"选课排课"、"排课冲突" 等关键词;
- 需要产出行政班课表、教学班课表、教师课表;
- 需要校验学生/教师/教室三方冲突。
排课模型(速览)
- 行政班: 语文、数学、外语全员必考, 在固定行政班内上课。
- 走班(教学班): 选考科目按单科把选修学生集中, 按教室容量拆分为若干教学班, 学生跨行政班走班上课。
- 一名学生同一节次只能在一个地点上课 → 这是核心约束, 决定了排课为 CSP 问题。
详细选科组合、行政班/教学班区别见 references/gaokao_models.md;
约束清单、参数与求解器说明见 references/constraints.md。
工作流程
1. 准备输入
支持两种入口:
- 演示/快速验证: 直接用内置演示数据(无需输入文件)。
- 真实数据: 用户提供以下文件, 参考
assets/下的模板:students.csv:id,admin_class,elective(elective 为逗号分隔选考科目)teachers.csv:teacher,subjects(覆盖默认教师池, 可选)config.json: 排课参数(可选, 见references/constraints.md第 3 节)
若用户没有提供输入, 可先用 scripts/generate_sample_input.py 生成示例:
python scripts/generate_sample_input.py --out ./sample_input --mode 3+1+2
2. 运行排课引擎
# 完整能力(推荐, 需 ortools): 在含 ortools 的 Python 环境中运行
python scripts/schedule.py --students students.csv --teachers teachers.csv \
--config config.json --out ./output
# 无输入快速演示
python scripts/schedule.py --demo --mode 3+1+2 --out ./output
- 引擎优先使用 OR-Tools CP-SAT 求解器(对 3+3 等密集冲突场景稳定);
- 未安装
ortools时自动回退到内置贪心 + 交换修复引擎(3+1+2 同样可解)。
运行环境: 若使用 CP-SAT, 需在已安装
ortools的虚拟环境中执行 (参见技能目录requirements.txt)。用python -m venv建隔离环境并pip install ortools后, 用该环境的python运行scripts/schedule.py。
3. 检查输出
运行后在 --out 目录生成:
schedule_result.html—— 可视化课表, 含「行政班 / 教学班 / 教师」三个分页;timetable_admin.csv/timetable_teacher.csv/timetable_elective.csv;conflicts.txt—— 仅当校验发现冲突时才生成(正常情况不出现)。
引擎已内置三重冲突校验(学生/教师/教室)。若仍出现 未排满节次 > 0 或冲突,
按 references/constraints.md 第 3 节调整参数(如增加 elective_room_count、
降低 students_per_class、提高 cp_timeout)后重跑。
常见调整
- 模式切换:
--mode 3+3处理六选三。 - 规模调整: 编辑
config.json的admin_classes、students_per_class、elective_room_count等。 - 课时调整: 改
required_periods/elective_periods。 - 教师资源: 提供
teachers.csv指定各科目可用教师(影响教学班拆分与并发上限)。
资源索引
scripts/schedule.py—— 核心排课引擎(CP-SAT + 贪心回退 + 冲突校验 + 课表导出)。scripts/generate_sample_input.py—— 生成示例输入(学生/教师/配置)。references/gaokao_models.md—— 新高考选科模式与走班制详解。references/constraints.md—— 约束清单、参数表、求解器与输入/输出格式。assets/students_template.csv/assets/teachers_template.csv/assets/config_template.json—— 输入模板。requirements.txt—— 依赖(ortools)。
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决新高考走班制排课这一中学教务刚需
- 支持 3+1+2 和 3+3 两种主流选科模式
- 具备完整输入输出闭环和冲突校验机制
Highlights
- 触发词精准覆盖 "3+1+2"、"3+3"、"走班"、"教学班" 等关键词
- 边界清晰,不易误触或漏触
Areas to improve
-
缺少显式 When to Use 章节 Reported severity: Minor
文档结构良好但缺少显式的 When to Use 章节标题
Recommendation: 建议在适用场景后增加显式的 When to Use 章节以增强规范性
Highlights
- 工作流程分阶段清晰(准备输入 → 运行引擎 → 检查输出)
- 包含端到端命令行示例
- frontmatter 完整
Areas to improve
-
依赖环境说明可更明确 Reported severity: Minor
ortools 安装说明较简略,可能影响用户首次执行成功率
Recommendation: 建议增加更详细的虚拟环境创建和依赖安装步骤说明
Highlights
- 工具来源明确(OR-Tools CP-SAT + 贪心回退双引擎)
- 覆盖主要异常场景(未安装 ortools 时自动回退)
- 内置三重冲突校验机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 57
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
python scripts/schedule.py --students students.csv --teachers teachers.csv \ --config config.json --out ./output
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.