专门用于完成所有 AP Classroom 学科的作业,包括 Reading Quiz、Writing Quiz、Progress Check、Practice Exam 等。
在任何情况下都不会关闭当前 Chrome 浏览器,除非先询问用户。
本 skill 支持所有 AP 课程,包括但不限于:
powershell
Start-Process "C:\Program Files\Google\Chrome\Application\chrome.exe" `
-ArgumentList "--remote-debugging-port=9223"
在浏览器中手动登录 College Board 账号。
powershell
cd ~/.agents/skills/ap-classroom
node select-course.js
或者在任务管理器中选择 [C] 切换课程。
powershell
# 使用任务管理器(推荐)
.\start.bat
# 或直接使用命令
node check-homework.js
powershell
node check-browser-status.js
显示当前登录的课程和用户信息。
powershell
node select-course.js
从可用课程列表中选择。
powershell
node check-homework.js
显示当前课程的所有待完成作业。
使用任务管理器或命令行工具完成作业。
脚本功能示例check-browser-status.js检查浏览器和登录状态node check-browser-status.js``select-course.js切换 AP 课程node select-course.js``check-homework.js检查待完成作业node check-homework.js
脚本功能示例open-assignment.js打开指定作业node open-assignment.js "作业名称"``get-questions.js获取当前题目和选项node get-questions.js``answer-question.js选择答案node answer-question.js A``next-question.js进入下一题node next-question.js``submit-quiz.js提交测验node submit-quiz.js
脚本功能说明complete-quiz.js完整自动化流程需要编辑答题逻辑
powershell
node list-courses.js
显示当前账号下所有可用的 AP 课程。
方法 1: 使用脚本
powershell
node select-course.js
方法 2: 使用任务管理器
[C] 切换课程方法 3: 手动导航
当前选择的课程信息保存在 current-course.json:
json
{
"name": "AP English Language and Composition",
"id": "12",
"student": "Rock",
"lastChecked": "2026-03-19T10:00:00Z"
}
所有 AP 课程都支持以下作业类型:
某些课程可能有特殊作业类型,本 skill 也支持:
如果你同时修多门 AP 课程:
powershell
# 1. 检查所有课程的作业
node check-all-courses.js
# 2. 查看优先级排序
node priority-list.js
# 3. 逐个完成
# ... 使用任务管理器或命令行工具
脚本会自动检测当前浏览器中打开的课程:
javascript
// 自动获取课程 ID
const courseId = await page.evaluate(() => {
const url = window.location.href;
const match = url.match(/\/(\d+)\/assignments/);
return match ? match[1] : null;
});
可以为不同课程创建特定配置:
javascript
// course-config.json
{
"12": {
"name": "AP English Language and Composition",
"shortName": "AP Lang",
"color": "blue"
},
"33": {
"name": "AP Statistics",
"shortName": "AP Stats",
"color": "green"
}
}
检查所有课程的作业:
powershell
node check-all-courses.js
当前选择的课程信息。
课程特定配置(可选)。
作业完成历史记录。
QUICKSTART.md 了解快速启动方法README.md 了解详细功能node check-browser-status.js 检查当前状态⚠️ 提醒: 提交测验前务必确认所有答案!