training-report-completer

Training Report Completer: A one-click tool for training/practical assignments. It accepts the original docx (including screenshots) plus assignment requirements, automatically improves content, formatting, illustrations, and explanations, and outputs a submission-ready assignment document.

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 "training-report-completer" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7739f0c316c38f84e953e7f7463a700f06e16bf45a8156db3f0479e507e643a6. Verify the upstream source and version against https://skillhub.cn/skills/user_34a86992/350235 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

Training Report Completer: A one-click tool for training/practical assignments. It accepts the original docx (including screenshots) plus assignment requirements, automatically improves content, formatting, illustrations, and explanations, and outputs a submission-ready assignment document.

0 Downloads

Introduction source: third_party · user_34a86992 · 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
```bash
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: training-report-completer
version: 1.0.0
description: 集训实训作业一键完成工具。接收原始docx(含截图)+ 作业要求,自动完善内容、排版、插图和说明,输出可直接提交的作业文档。

集训作业一键完成工具 🛠️

"博士,作业这种事交给我就好——你睡你的,我修我的。" ——可露希尔

适用场景

  • 实训/集训类作业需要提交 docx 文档
  • 原始 docx 中已包含截图,需要补充说明文字、完善排版
  • 根据当日作业要求调整文档结构、插入内容

前置依赖

# python-docx 操作 docx 文件
pip install python-docx  # 已安装则跳过

工作流程

输入

项目 说明
原始 docx 已包含截图的作业文档
作业要求 文本描述(表格、标题要求、评分项等)
补充素材 可选:需要插入 docx 中的额外文件

处理步骤

Step 1: 读取原始 docx 文档结构(段落、图片、表格)
Step 2: 解析作业要求,确定需要补充的内容
Step 3: 在对应位置插入说明文字、调整排版
Step 4: 输出完善后的 docx 到指定路径

输出

  • 完善的 .docx 文件,可直接提交

操作指南

Step 1:读取原始文档结构

from docx import Document

doc = Document("原始作业.docx")

# 遍历段落
for i, para in enumerate(doc.paragraphs):
    print(f"[{i}] {para.text[:50]}  style={para.style.name}")

# 遍历表格
for ti, table in enumerate(doc.tables):
    print(f"表格{ti}: {len(table.rows)}行 x {len(table.columns)}列")

# 遍历图片(通过关系获取)
import docx.opc.constants
rels = doc.part.rels
for rel_id, rel in rels.items():
    if "image" in rel.reltype:
        print(f"图片: {rel.target_ref}")

Step 2:根据要求补充内容

添加标题/段落:

doc.add_heading("实验总结", level=1)
doc.add_paragraph("本次实训主要完成了……")

在图片后添加说明:

# 在文档中定位到图片所在段落,在其后插入说明
for i, para in enumerate(doc.paragraphs):
    if para.text.strip() == "" and any(r.element.xpath('.//a:blip') for r in para.runs):
        # 这是图片段落,在其后插入说明
        para.insert_paragraph_after().text = "图1:系统运行截图"

修改现有段落内容:

doc.paragraphs[3].text = "新的内容"
# 或保留格式只改文本
for run in doc.paragraphs[3].runs:
    run.text = "新文本"

处理表格:

table = doc.tables[0]
cell = table.cell(0, 0)  # 第1行第1列
cell.text = "新内容"

Step 3:排版调整

from docx.shared import Pt, Inches, Cm
from docx.enum.text import WD_ALIGN_PARAGRAPH

# 设置字体大小
for para in doc.paragraphs:
    for run in para.runs:
        run.font.size = Pt(12)

# 设置对齐
doc.paragraphs[0].alignment = WD_ALIGN_PARAGRAPH.CENTER

# 设置行距
from docx.oxml.ns import qn
for para in doc.paragraphs:
    spacing = para.paragraph_format
    spacing.line_spacing = 1.5

Step 4:保存输出

doc.save("完善后的作业.docx")

实训总结模板参考

当作业要求写"实训总结"时,参照以下结构填充:

# 【实训项目名称】实训报告

## 一、实训目的
(简述本次实训要实现的目标)

## 二、实训环境
- 操作系统:Ubuntu 24.04 LTS
- 编程语言:Python
- 开发工具:VS Code / Jupyter Notebook
(可根据实际情况调整)

## 三、实训内容与步骤

### 1. (步骤一标题)
(步骤说明)

(截图位置——文档中原有)

**图1:**(截图说明)

### 2. (步骤二标题)
(步骤说明)

(截图位置——文档中原有)

**图2:**(截图说明)

## 四、关键代码
```python
# 贴入关键代码段

五、实验结果与分析

(描述运行结果、遇到问题及解决方法)

六、实训总结

(总结学到了什么、有哪些收获)


## 安全审查(Skill Vetter 合规)

| 检查项 | 状态 |
|--------|------|
| ⬜ 读取外部网络 | ❌ 无网络请求 |
| ⬜ 读取敏感文件 | ❌ 仅操作指定 docx |
| ⬜ 安装额外包 | ❌ 无自动安装 |
| ⬜ 执行危险命令 | ❌ 无系统级操作 |
| ⬜ 外发数据 | ❌ 纯本地处理 |
| **风险等级** | 🟢 LOW |

## 快速使用示例

```bash
# 1. 确认依赖
pip install python-docx

# 2. 按上述步骤编辑脚本
python3 complete_report.py

注意事项

  • ⚠️ 操作前备份原始 docx 文件
  • ⚠️ 图片已在原始 docx 中时,只补充文字说明,不移动图片位置
  • ⚠️ 修改后务必在 WPS/Word 中打开检查排版是否正常
  • ⚠️ 确保输出文件名包含学号/姓名等提交要求

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value88/100

Highlights

  • 针对学生群体完成实训作业文档的刚需场景,具有明确实用价值
  • 能显著提升日常高频场景的效率,直接解决用户核心任务痛点
Trigger Precision92/100

Highlights

  • 触发词精准完整,覆盖多种变体(如'作业'、'docx'、'完善'等)
  • 边界清晰,不易误触或漏触
Structure and Standards95/100

Highlights

  • Phase/步骤清晰(Step 1-4),有出口条件
  • 含端到端示例,frontmatter 完整,单文件未超 500 行
Execution Reliability85/100

Highlights

  • 工具来源明确(python-docx),参数正确
  • 覆盖主要异常(如备份提醒、排版检查),不可逆操作有确认机制
Evidence Verifiability (mean of the first four)90/100

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.

  • Save or modify files

    Confirm the output directory and whether existing files will be replaced. Back up important files and prefer a new output directory.

    Mentioned in main document · lines 128
  • 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 21, 190

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

```bash

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.