返回 Skill 列表
extension
分类: 其它无需 API Key

监理通知单-docx

监理通知单-docx · AI 一键生成标准格式建设工程监理通知单 【功能简介】 输入一段问题描述 + 现场照片,AI 自动生成符合标准格式的《建设工程监理通知单》DOCX 文档,无需手动排版,版式 1:1 还原工程现场常用模板。 【核心能力】 · 版式精准还原:基于标准模板生成,标题黑体、正文字号、表格边框线型、页边距逐格与官方样张一致。 · 规范自动引用:依据问题自动检索适用规范条款(优先调用 IMA 知识库,无结果再联网核验,确保规范号与条文准确)。 · 现场照片附件:照片以 0.5pt 边框表格承载、居中图题,排版整齐规范。 · XX 占位预设:工程名称 / 监理方 / 施工方 / 监理工程师姓名未提供时一律以「XX」占位,可随时预设。 【适用场景】 房建、市政、水利等建设工程的监理工程师,在巡检发现质量/安全问题后,快速出具标准化整改通知单。 【使用方式】 对 WorkBuddy 说:「生成监理通知单:<问题描述>」并附上现场照片即可。

person作者: user_8c865e02hubcommunity

监理通知单-docx

Overview

Generate a standard Chinese construction supervision notice (监理通知单) as a DOCX file. Parse the user's issue description and uploaded photos, retrieve applicable engineering codes and standards, and produce a professionally formatted document that matches the structure of the sample notices in the workspace.

When to Use

Activate this skill when the user asks for:

  • Generating a 监理通知单 / 监理通知单 docx / 监理工程师通知单
  • Creating a supervision notice from photos and a brief problem description
  • Auto-filling a standard GB/T 50319 style supervision notice
  • Producing a DOCX with bordered site photos attached

Required Presets

Before the first generation, ensure the following project metadata is available. If missing, ask the user to provide or confirm them:

  1. project_name — 工程名称
  2. supervisor_name — 监理方名称 / 项目监理机构
  3. construction_party — 施工方名称
  4. engineer_name — 总监理工程师或专业监理工程师姓名

Store these values in a local config file so they persist across sessions:

<skill-config-path>/config.json

Example:

{
  "project_name": "开元大道西延",
  "supervisor_name": "XX项目监理部",
  "construction_party": "河南六建",
  "engineer_name": "李帅兵"
}

Default behavior: when a preset field is not provided, fill it with XX (e.g. 工程名称:XX, 编号:XX, 致:XX, 项目监理机构:XX(盖章) 总/专业监理工程师:XX). The date defaults to today's date when omitted.

Workflow

Step 1 — Collect Inputs

  • Read the user's natural-language description of the problem (e.g., "沟槽开挖5米深未放坡").
  • Collect any uploaded photos. Accept paths or image attachments.
  • Ask for notice_number (编号) and date (日期) if not provided. Default date is today in YYYY-MM-DD.
  • Ask for the engineering specialty (专业) if it helps select the correct codes.

Step 2 — Build the Subject

  • Compose a concise 事由 line in the form: 关于……的事由.
  • Do not include the word "事由" twice in the final output.

Step 3 — Retrieve Standards and Codes

Retrieve relevant national / industry standards to support the rectification requirements.

Priority order:

  1. IMA knowledge base (preferred)

    • If the user has configured an IMA knowledge base ID/name, use ima-skill:knowledge-base or ima-skills:knowledge-base to search for applicable norms.
    • Example query: "沟槽开挖 放坡 支护 规范 JGJ 120 GB 51004".
    • If results are found, quote the exact standard number, name, and clause.
  2. Web search (fallback)

    • If IMA is not configured or returns no results, search the web.
    • Use queries that include the issue, standard number if known, and "规范" / "条文说明".
    • Verify the standard number and clause are current and accurate. Prefer authoritative sources (国家标准化管理委员会, 住建部, 行业协会). Avoid blogs or unverified forums.

Record each cited standard as: 《规范名称》标准号 第X.X.X条.

Step 4 — Compose the Body

Structure the 内容 paragraph(s) in this order:

  1. Inspection finding — describe what was observed during the patrol/inspection.
  2. Problem list — enumerate issues (1、2、3…). Reference photos when relevant.
  3. Rectification requirements — for each problem, state:
    • Specific corrective actions
    • Basis standard / clause
  4. Completion and acceptance — require the construction party to rectify within X days, self-inspect, and report to the supervision team before proceeding.

Use formal engineering supervision language. Keep sentences clear and enforceable.

Step 5 — Generate the DOCX

  • Build a JSON input for the generation script (scripts/generate_jianli_docx.py). Omit any preset field to have it rendered as XX.
  • Run the script with the managed Python environment:
<python_venv>/Scripts/python.exe scripts/generate_jianli_docx.py <input.json> <output.docx>
  • The script copies assets/template.docx and replaces text, preserving the original formatting.
  • Verify the output file exists.

Step 6 — Present the Result

  • Call present_files with the generated DOCX.
  • Summarize the generated notice: project, recipient, subject, cited standards, and photo count.

Output Format

The generated DOCX is produced by copying assets/template.docx (which carries the exact fonts, sizes, borders and margins of the reference notices) and replacing placeholder text. This guarantees pixel-level fidelity with the samples.

Resulting layout:

  • A 4-row table, 3 logical columns, table width 9350 dxa, indent 151 dxa, all borders 0.5pt (single, auto).
  • Row 1 (merged): centered title 监理通知单, 黑体 16pt.
  • Row 2: 工程名称:{project_name} (left, merged 2 cols); 编号:{notice_number} (right).
  • Row 3 (merged 3 cols, three paragraphs):
    • 致:{construction_party}
    • 事由:{subject} (half-width colon, matching the sample)
    • 内容:{body} (justified, 12pt)
  • Row 4: left cell blank; right cell (merged 2 cols) two paragraphs:
    • 项目监理机构:{supervisor_name}(盖章) 总/专业监理工程师:{engineer_name}
    • 日 期 :{date}

If photos are provided, append a section titled 附件:现场照片. Each photo is placed in a single-cell bordered table (0.5pt border, matching the form) with a centered caption below.

IMA Knowledge Base Integration

  • The skill reserves an IMA connection channel. Configurable via config.json:
{
  "ima_kb_id": "",
  "ima_kb_name": ""
}
  • When ima_kb_id or ima_kb_name is set, query that knowledge base first for relevant standards.
  • If the user wants to configure IMA later, store empty values and fall back to web search until configured.

Script Reference

  • scripts/generate_jianli_docx.py — deterministic DOCX generator based on the bundled template.
  • Input: JSON file with fields described in the script docstring. Omitted preset fields default to XX; date defaults to today.
  • Output: DOCX file inheriting the reference notice's exact formatting.
  • assets/template.docx — the original-format template copied at generation time.

References

  • references/format_spec.md — detailed layout and typography rules derived from the sample notices.
  • references/examples.md — deconstructed examples from the workspace for style reference.