Install
openclaw skills install student-ai-agent学术项目一键工作流。输入作业要求,自动完成 7 步:分析需求 → 方案设计 → 写代码 → 验证运行 → 生成 Word 报告 → 生成 PPT + 演讲稿 → 模拟 Q&A。输出可直接提交的 .docx、.pptx 和配套材料。
openclaw skills install student-ai-agent将一份作业要求转化为完整的交付物:代码、报告、PPT、演讲稿、Q&A 准备。
适用场景:
student-ai-agent/
├── SKILL.md ← 本文件
├── input/ ← 用户的作业要求
│ └── assignment.md
├── output/ ← 所有生成产物
│ ├── 01_analysis.json
│ ├── 02_brainstorm.json
│ ├── code/main.py
│ ├── figures/*.png
│ ├── report/report.docx
│ ├── presentation/slides.pptx
│ ├── presentation/speaker_notes.md
│ └── qa/qa_preparation.md
└── scripts/ ← 格式化输出工具
├── generate_report.py
├── generate_ppt.js
├── generate_notes.py
└── qa_simulator.py
pip install python-docx matplotlib numpy pandas Pillow
npm install -g pptxgenjs
安装检查:执行前先确认依赖已就绪,缺什么装什么,不阻塞用户。
收到用户作业要求后,按顺序执行以下步骤。每步完成后告知用户进度。
输入:用户提供的作业文本/PDF/图片 AI 任务:
输出:将结构化分析写入 output/01_analysis.json
{
"course": "课程名",
"topic": "项目主题",
"deadline": "截止日期",
"deliverables": ["report.docx", "code.py", "slides.pptx"],
"constraints": {"word_limit": 3000, "format": "APA", "language": "English"},
"grading_criteria": [{"item": "Technical correctness", "weight": 40}],
"key_questions": ["需要解决的核心问题"],
"technical_requirements": ["Python", "ML pipeline"]
}
AI 任务:
输出:写入 output/02_brainstorm.json
{
"approaches": [{"name": "方案名", "pros": [], "cons": []}],
"selected_approach": "选定方案及理由",
"architecture": "技术架构描述",
"methodology": "方法论",
"data_sources": ["数据来源"],
"innovation_points": ["创新点"]
}
AI 任务:
requirements.txt输出:
output/code/main.py — 主程序output/code/requirements.txt — 依赖约束:
python main.py 一键运行output/figures/AI 任务:
output/code/main.pyoutput/figures/输出:output/04_check_results.json
{
"syntax_check": true,
"runs_without_error": true,
"figures_saved": ["output/figures/fig1.png"],
"errors_found": [],
"fix_attempts": 0
}
AI 任务:
scripts/generate_report.py 生成 .docx执行命令:
cd ~/Desktop/student-ai-agent
python scripts/generate_report.py output/report/report_data.json
报告 JSON 格式(写入 output/report/report_data.json):
{
"title": "报告标题",
"student_name": "学生姓名",
"course_name": "课程名",
"sections": [
{"heading": "1. Introduction", "content": "完整段落文字...", "level": 1}
],
"figures": ["output/figures/fig1.png"],
"code_file": "output/code/main.py"
}
输出:output/report/report.docx
AI 任务:
PPT 大纲 JSON(写入 output/presentation/presentation_outline.json):
{
"author": "Student Name",
"design": {"theme": "dark_modern"},
"slides": [
{"type": "title", "title": "标题", "subtitle": "副标题", "notes": "演讲稿"},
{"type": "content", "title": "标题", "points": ["要点1", "要点2"], "notes": "演讲稿"},
{"type": "chart", "title": "Results", "image": "output/figures/fig1.png", "notes": "演讲稿"},
{"type": "qa", "content": "Thank you!"}
]
}
执行命令:
cd ~/Desktop/student-ai-agent
node scripts/generate_ppt.js output/presentation/presentation_outline.json output/presentation/slides.pptx
演讲稿:单独写一份详细的逐页演讲稿到 output/presentation/speaker_notes.md,包含:
输出:
output/presentation/slides.pptxoutput/presentation/speaker_notes.mdAI 任务:
输出:写入 output/qa/qa_preparation.md,格式:
# Q&A 准备
## 🟢 基础问题(一定会被问到)
### Q: Why did you choose this approach?
**回答框架**: 列 2-3 个备选方案 → 说评估标准 → 解释为什么选这个
**关键词**: scalability, simplicity, alignment with rubric
## 🟡 方法论问题
...
## 🔴 挑战性问题
...
## 💡 万能应对策略
- 不知道的:承认 → 假设 → 下一步
- 被 challenge 的:acknowledge → 解释 reasoning → 提出改进方向
用户也可以要求只跑其中一步:
| 用户说 | 执行 |
|---|---|
| "先分析一下这个作业" | 只跑 Step 1 |
| "帮我写代码" | Step 1-4 |
| "帮我写报告" | Step 1-5 |
| "帮我做 PPT" | Step 1-2 + Step 6 |
| "帮我准备 Q&A" | Step 1-2 + Step 7 |
| "按工作流跑一遍" | Step 1-7 全部 |
全部完成后,告诉用户:
✅ 全部完成!文件都在 output/ 目录下:
📁 output/
├── code/main.py — 源代码(可直接运行)
├── figures/ — 图表
├── report/report.docx — Word 报告
├── presentation/
│ ├── slides.pptx — PPT
│ └── speaker_notes.md — 演讲稿
└── qa/qa_preparation.md — Q&A 准备
需要我调整哪个部分吗?
| 主题 | 适用 | 主色 |
|---|---|---|
dark_modern | 技术/CS课程 | 深蓝 + 靛蓝 + 青色 |
ocean | 数据分析/商业 | 海蓝 + 深蓝 + 绿 |
forest | 环境/可持续 | 深绿 + 黄绿 + 金色 |