Skip to content
Back to skills

179 Bid Format Template

ASecurity

通用投标文件格式排版技能。按照招标文件格式要求自动生成投标文件框架。 支持四种编号体系(阿拉伯级联、符号转换、政府格式、工程格式); 支持解析招标文件 docx 提取章节结构和格式信息; 支持自定义项目编号、封面【正本】标签、X/100 页脚格式。 技能不包含任何公司专属信息,可以自由分享和使用。

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
developmentjavascriptpythonjavabashnode

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add winlem2024/workbuddy-skills --skill 179-bid-format-template --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 179 Bid Format Template?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 179 Bid Format Template
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/winlem2024-179-bid-format-template/badge)](https://www.skillsdirectory.com/skills/winlem2024-179-bid-format-template)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: 投标文件编制专家
description: >
  通用投标文件格式排版技能。按照招标文件格式要求自动生成投标文件框架。
  支持四种编号体系(阿拉伯级联、符号转换、政府格式、工程格式);
  支持解析招标文件 docx 提取章节结构和格式信息;
  支持自定义项目编号、封面【正本】标签、X/100 页脚格式。
  技能不包含任何公司专属信息,可以自由分享和使用。
agent_created: true
---

# 投标文件编制专家

## 概述

此技能用于按照每份招标文件的具体格式要求,生成结构正确的投标文件骨架。

核心能力:
- **解析招标文件** — 自动提取章节结构、页面设置、字体信息、编号体系
- **灵活格式配置** — 四套预设编号体系 + 字体/字号/加粗逐级自定义
- **动态章节结构** — 从招标文件大纲提取,而非固定章节
- **标准输出** — 封面【正本】、页眉页脚(X/100)、目录域、全部宋体/A4/2.5cm边距

## 工作流程

```
┌─ Step 1 — 获取章节结构 ──────────────────────────────────┐
│                                                           │
│  方式A(推荐):上传招标文件 .docx → 自动解析提取章节大纲    │
│  方式B:手动输入章节列表(逐行 H1~H5)                     │
│  方式C:使用默认14章节框架                                 │
│                                                           │
│  → 用户确认/编辑章节列表后继续                            │
└───────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─ Step 2 — 选择编号体系并确认格式 ──────────────────────────┐
│                                                           │
│  ▸ 体系一:纯阿拉伯数字级联(推荐默认)                     │
│     1 → 1.1 → 1.1.1 → 1.1.1.1 → 1.1.1.1.1               │
│  ▸ 体系二:阿拉伯数字+符号转换                             │
│     1 → 1.1 → 1.1.1 → (1) → ①                            │
│  ▸ 体系三:政府/事业单位格式                                │
│     一 → (一) → 1 → (1) → ①                          │
│  ▸ 体系四:工程类格式                                      │
│     第一章 → 第一节 → 一、 → (一) → 1.                 │
│                                                           │
│  ▸ 字体配置(可逐级修改):                                │
│    正文:宋体 小四    H1:宋体 小二 加粗                    │
│    H2:宋体 三号 加粗  H3:宋体 小三 加粗                  │
│    H4:宋体 四号 加粗  H5:宋体 小四 加粗                  │
└───────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─ Step 3 — 填写项目信息 ───────────────────────────────────┐
│  项目名称:________    代理编号:________                  │
│  投标人:________      招标人:________                    │
│  自定义编号:________  (按招标文件封面格式填入)           │
│  日期:________                                           │
└───────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─ Step 4 — 生成投标文件骨架 ───────────────────────────────┐
│  输出:格式正确的 .docx 骨架文件                            │
│  ├─ 封面(【正本】右上角,含自定义编号)                    │
│  ├─ 目录(自动生成的 TOC 域)                              │
│  ├─ 各章节(按确认的章节结构+编号体系)                     │
│  └─ 页眉页脚(项目名称 + X/100,首页不显示,从2起编)       │
└───────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─ Step 5 — 填充内容 ──────────────────────────────────────┐
│  方式A:引导使用知识库(参见【标书内容生成技能】)           │
│  方式B:手动逐章编写                                      │
└───────────────────────────────────────────────────────────┘
```

## 格式规范

详见 `references/formatting.md`。

核心格式要点:
- 页面:A4纸,上下左右2.5cm等边距
- 字体:默认全部宋体(可配置,正文字体与标题字体可分开)
- 正文:小四(12pt),1.5倍行距,首行缩进2字符
- 标题:加粗,H1=小二(18pt) / H2=三号(16pt) / H3=小三(15pt) / H4=四号(14pt) / H5=小四(12pt)
- 表格:宋体,表头小四加粗浅蓝底,表体五号,行距1.25倍
- 封面:右上角【正本】/【副本】,无页眉页脚
- 页脚:X/100 格式,首页不显示,从第二页开始,页码从2开始
- 目录:展示至前三级标题,TOC域自动生成

## 标题编号体系(四套预设)

| 层级 | 体系一(默认) | 体系二 | 体系三(政府) | 体系四(工程) |
|------|--------------|--------|--------------|--------------|
| H1 | 1 | 1 | 一 | 第一章 |
| H2 | 1.1 | 1.1 | (一) | 第一节 |
| H3 | 1.1.1 | 1.1.1 | 1 | 一、 |
| H4 | 1.1.1.1 | (1) | (1) | (一) |
| H5 | 1.1.1.1.1 | ① | ① | 1. |

## 使用时机

- 用户需要编制新的投标文件,需要生成格式正确的骨架
- 用户有招标文件(.docx),需要自动匹配格式
- 用户需要设置标题多级编号和字体格式
- 用户需要按招标文件要求排版标书

## 使用脚本

### 1. 解析招标文件

```bash
python scripts/parse_bidding_docx.py 招标文件.docx --output config.json
```

输出包含:章节结构、检测到的编号体系、页面设置、字体信息。

### 2. 生成投标文件

```bash
# 方式一:使用配置文件
NODE_PATH=$(npm root -g) node scripts/generate_bid_template.js --config config.json --out 投标文件.docx

# 方式二:直接在 JS 中调用
# const { generateBidDocument } = require('./scripts/generate_bid_template.js');
# const buf = await generateBidDocument({ numbering: 'scheme1', ... });
```

### 3. 修复 XML(docx-js 9.6.1 已知问题)

```bash
python scripts/fix_xml.py 投标文件.docx
```

## 完整使用示例

```javascript
const { generateBidDocument } = require('./scripts/generate_bid_template.js');

const config = {
  numbering: 'scheme1',   // 编号体系
  project: {
    name: '【项目名称】',
    bidder: '【投标人名称】',
    address: '【投标人地址】',
    tenderer: '【招标人名称】',
    agentNo: '【代理编号】',
    customNo: '【项目编号(按招标文件格式)】',
    date: '20XX年X月',
    copyMark: '【正本】'
  },
  fonts: {
    body: { name: 'SimSun', size: 24, bold: false },
    h1: { name: 'SimSun', size: 36, bold: true },
    h2: { name: 'SimSun', size: 32, bold: true },
    h3: { name: 'SimSun', size: 30, bold: true },
    h4: { name: 'SimSun', size: 28, bold: true },
    h5: { name: 'SimSun', size: 24, bold: true },
  },
  // 可从 parse_bidding_docx.py 输出直接获取
  chapters: [
    { level: 1, title: '投标函' },
    { level: 1, title: '法定代表人身份证明' },
    { level: 1, title: '技术方案' },
    { level: 2, title: '项目理解' },
    { level: 3, title: '业务需求分析' },
    { level: 3, title: '技术需求分析' },
  ]
};

const buf = await generateBidDocument(config);
require('fs').writeFileSync('投标文件.docx', buf);
```

## 注意事项

- 本技能为通用技能,不包含任何公司专属信息
- 公司名称、资质证书、案例数据、人员信息、报价等需用户自行填入
- 解析招标文件时,务必在用户确认/编辑后再生成
- 若招标文件为 PDF 格式,无法自动解析,建议用户手动输入章节或选择默认框架

Files in this skill

  • SKILL.md8.9 KB
  • _meta.json112 B
  • _skillhub_meta.json777 B
  • references/formatting.md6.9 KB
  • references/structure.md3.5 KB
  • scripts/fix_xml.py1.6 KB
  • scripts/generate_bid_template.js17.8 KB
  • scripts/parse_bidding_docx.py7.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.