← Back to Skills Marketplace
zouboy

Graduation Skill

by zouboy · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
87
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install graduation-skill
Description
软件技术专业毕业设计全流程工作流。从需求分析、系统设计、原型设计到文档生成的完整指导,包含PDF原型图生成、Word文档格式规范、图表制作等最佳实践。
README (SKILL.md)

毕业设计全流程工作流

软件技术专业毕业设计从选题到文档交付的完整工作流。

何时使用

  • 软件技术/计算机专业毕业设计
  • 需要生成规范的毕业设计文档
  • 需要制作系统原型图、用例图、架构图
  • 需要统一Word文档格式

核心工作流

Phase 1: 需求分析

输出物清单:

  • 选题申请表
  • 开题报告
  • 需求规格说明书

关键检查点:

  • 选题具有实际应用价值
  • 技术栈明确(前端/后端/数据库)
  • 功能范围适中(3-5个核心模块)

Phase 2: 系统设计

输出物清单:

  • 系统架构图
  • 功能模块图
  • 数据库ER图
  • 用例图(用户端+管理端)
  • 时序图(核心业务流程)
  • 类图(核心模块)

图表规范:

# 配色方案 - 学术风格
COLORS = {
    'primary': '#9B2335',    # 深红 - 主色
    'secondary': '#C5963A',  # 金褐 - 强调
    'text': '#2D1F14',       # 深褐 - 文字
    'bg': '#FBF7F0',         # 暖白 - 背景
    'border': '#E0D5C5',     # 浅棕 - 边框
}

Phase 3: 原型设计

移动端原型(用户端):

  • 启动页
  • 登录/注册页
  • 首页
  • 核心功能页(如答题中心)
  • 个人中心

Web端原型(管理端):

  • 登录页
  • 仪表盘
  • 数据管理页(用户/课程/题库)
  • 数据统计页

PDF生成脚本模板:

# scripts/generate_prototype.py
from reportlab.lib.pagesizes import A4
from reportlab.pdfgen import canvas
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont

# 注册中文字体
pdfmetrics.registerFont(TTFont('STXIHEI', r'C:\Windows\Fonts\STXIHEI.TTF'))

def draw_phone_frame(c, x, y, w, h):
    """绘制手机外框"""
    c.setFillColor('#ccc7c0')
    c.roundRect(x-5, y-5, w+10, h+10, 12, fill=1, stroke=0)
    c.setFillColor('#ffffff')
    c.roundRect(x, y, w, h, 8, fill=1, stroke=1)

def add_title(c, fig_num, title):
    """添加图标题"""
    c.setFont('STXIHEI', 12)
    c.drawCentredString(105*mm, 280*mm, f'图{fig_num} {title}')

Phase 4: 文档整理

格式规范(依据学校模板):

元素 格式
正文 Times New Roman, 10.5pt, 首行缩进2字符
一级标题 Times New Roman, 15pt, 加粗
二级标题 Arial, 14pt
三级标题 Times New Roman, 12pt
图表标题 等线 Light, 10pt
页边距 上下3.4/3.0cm, 左右3.2cm

Word格式批量修复脚本:

# scripts/fix_word_format.py
from docx import Document
from docx.shared import Pt, Cm

def apply_standard_format(doc_path, output_path):
    doc = Document(doc_path)
    
    # 设置样式
    doc.styles['Normal'].font.name = 'Times New Roman'
    doc.styles['Normal'].font.size = Pt(10.5)
    
    # 正文段落首行缩进
    for para in doc.paragraphs:
        if len(para.text.strip()) > 20:
            para.paragraph_format.first_line_indent = Cm(0.74)
    
    doc.save(output_path)

项目目录结构

project/
├── docs/                    # 文档输出
│   ├── 图2-1_xxx.pdf       # 系统设计图
│   ├── 图3-1_xxx.pdf       # 架构图
│   ├── 图4-1_xxx.pdf       # 原型图
│   └── 第三章_系统设计全套图表.pdf
├── frontend/               # 前端源码
├── backend/                # 后端源码
├── admin/                  # 管理端源码
├── sql/                    # 数据库脚本
├── 毕业设计作品.docx        # 主文档
└── scripts/                # 辅助脚本
    ├── generate_diagrams.py
    ├── generate_prototypes.py
    └── fix_word_format.py

快速命令

# 生成所有原型图
python scripts/generate_prototypes.py

# 合并PDF
python -m PyPDF2 merge docs/*.pdf output.pdf

# 修复Word格式
python scripts/fix_word_format.py input.docx output.docx

常见陷阱

  1. 字体问题:Windows用STXIHEI,Mac用STHeiti,Linux用WenQuanYi
  2. 图片分辨率:PDF中图片至少150dpi,避免模糊
  3. 版本控制:docx文件用Git管理时差异大,建议同时保存markdown备份
  4. 格式漂移:不同Word版本打开可能样式变化,定稿前用PDF确认

检查清单

提交前逐项检查:

  • 封面信息完整(姓名/学号/导师)
  • 页码连续(摘要罗马数字,正文阿拉伯数字)
  • 图表编号连续(图2-1, 图2-2...)
  • 参考文献格式统一(GB/T 7714)
  • 代码截图清晰(高亮语法)
  • 数据库表名统一(小写下划线)
  • API接口文档完整(请求/响应/状态码)
Usage Guidance
This skill appears to do what it says: generate PDF prototypes and fix Word formatting locally. Before installing or running: 1) Run the scripts in a controlled environment (virtualenv) and inspect the code yourself — they only read/write local docx/pdf files. 2) Note two small inconsistencies you'll likely want to fix: the SKILL.md quick command uses PyPDF2 for merging but PyPDF2 is not listed as an install package (add it if you need merge functionality), and one example in SKILL.md refers to generate_prototype.py while the actual file is generate_prototypes.py. 3) The font registration uses a Windows font path (C:\Windows\Fonts\STXIHEI.TTF) — on non-Windows systems you may need to change the font or install equivalent fonts. 4) As always, avoid running on sensitive documents until you're comfortable with the tool and consider testing on sample files first.
Capability Assessment
Purpose & Capability
Name/description (graduation project workflow, PDF prototype generation, Word format fixes) match the included Python scripts and instructions. Declared required binary (python) and the pip packages referenced in SKILL.md (python-docx, reportlab) are appropriate for the described tasks.
Instruction Scope
Runtime instructions are limited to reading/writing local files (docx, pdfs) and running the provided scripts. They do not reference external credentials, network endpoints, or system paths outside the user's project. Minor issues: SKILL.md includes a quick command using PyPDF2 for PDF merging but PyPDF2 is not listed in the install packages; an earlier example code block mentions scripts/generate_prototype.py (singular) while the actual file is generate_prototypes.py (plural). These are implementation inconsistencies, not hostile behavior.
Install Mechanism
This is an instruction-only skill with no install spec in the registry; SKILL.md lists pip packages (python-docx, reportlab). Installing those packages via pip is expected for the functionality. There are no remote downloads or obscure installers.
Credentials
The skill requires no environment variables, no credentials, and no config paths. The scripts operate on user-supplied document files only, so requested access is proportionate to the purpose.
Persistence & Privilege
The skill does not request persistent or elevated privileges (always:false). It does not modify other skills or agent-wide configuration. Autonomous invocation is allowed by default but not combined with other red flags.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install graduation-skill
  3. After installation, invoke the skill by name or use /graduation-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
graduation-skill 1.0.0 — Initial Release - Provides a comprehensive workflow for software engineering graduation projects, from requirements analysis to final document submission. - Includes practical templates for generating PDF prototypes and fixing Word document formatting using Python scripts. - Specifies best practices for diagram formatting, document structure, and style standards based on academic templates. - Offers checklists, command-line usage examples, and troubleshooting tips for common issues in graduation project documentation.
Metadata
Slug graduation-skill
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Graduation Skill?

软件技术专业毕业设计全流程工作流。从需求分析、系统设计、原型设计到文档生成的完整指导,包含PDF原型图生成、Word文档格式规范、图表制作等最佳实践。 It is an AI Agent Skill for Claude Code / OpenClaw, with 87 downloads so far.

How do I install Graduation Skill?

Run "/install graduation-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Graduation Skill free?

Yes, Graduation Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Graduation Skill support?

Graduation Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Graduation Skill?

It is built and maintained by zouboy (@zouboy); the current version is v1.0.0.

💬 Comments