Preface¶
In bid preparation, formatting often takes as much time as the content itself: whether to mark the cover with [Original], which multi-level numbering scheme to use for headings, whether the footer should be “X/100”, and whether chapters must align with the “Bid Document Format” chapter in the tender documents. Manually setting up styles and tables of contents in Word can easily lead to omissions or inconsistencies with the specific formatting requirements of the current tender.
The following introduces the “Bid Document Compilation Expert” (投标文件编制专家) Agent Skill on SkillHub. It condenses the process of “reading tender formats → defining numbering and layout → outputting a docx skeleton” into a reusable workflow. It is executed by an Agent guided by SKILL.md and includes scripts for parsing docx and generating documents.
What is this¶
The “Bid Document Compilation Expert” is a Skill designed for general bid document formatting and layout. Its coordinate is @user_010a3d49/bid-format-template, current version v1.0.0, originating from the SkillHub community, categorized under office-efficiency (displayed as “Document Processing”). The publisher is user_010a3d49. The official entry addresses are:
- API Coordinate Page: https://api.skillhub.cn/user_010a3d49/bid-format-template
- SkillHub Display Page: https://www.skillhub.cn/skills/user_010a3d49/bid-format-template
Description: Automatically generates a bid document framework based on the formatting requirements of the tender document; the Skill contains no company-specific information and can be freely shared and used. The tag is requires_api_key=false, meaning installation and use do not depend on an API Key.
Core Functions¶
The following capabilities are derived from the official SKILL.md and the SkillHub description, and can be combined as needed.
Parse Tender Document docx¶
Upload or specify a tender document .docx, use scripts to extract chapter structures, page settings, and font information, infer the numbering system, and output a JSON configuration for subsequent generation.
Four Heading Numbering Systems¶
| System | Description |
|---|---|
| System 1 | Pure Arabic numeral cascading (Default): 1 → 1.1 → 1.1.1 … |
| System 2 | Arabic numerals + symbol conversion: The lowest level can be (1), ①, etc. |
| System 3 | Government/Public Institution: 一 → (一) → 1 → (1) → ① |
| System 4 | Engineering: 第一章 → 第一节 → 一、 → (一) → 1. |
The font, size, and boldness of headings at all levels can be adjusted level-by-level before generation according to the Skill instructions (SimSun is the default).
Layout, Cover, and Footer¶
The generation results are tailored to common bidding layout habits, including: A4, margins of approximately 2.5 cm, body text in size 12 (Xiaosi) with 1.5x line spacing, TOC fields for the table of contents, [Original] (or copy mark) in the top right corner of the cover, and X/100 in the footer (rules such as no display on the first page or starting page numbers from the second page can be found in references/formatting.md within the Skill).
Project Information and Chapter Sources¶
Supports filling in project name, agency number, bidder, tenderee, custom project number (according to the tender document cover format), date, etc. The chapter structure can come from: parsing the tender docx (recommended), manual input of an H1–H5 list, or using the default 14-chapter framework.
Included Scripts¶
The Skill package includes parse_bidding_docx.py, generate_bid_template.js, fix_xml.py, etc., used for parsing, generating docx, and fixing known XML issues in docx-js 9.6.1.
Installation and Activation¶
The Skill is based on the universal SKILL.md format. The SkillHub page provides three common entry points, which can be selected based on the environment.
Method 1: Let the Agent install according to official instructions (Recommended)¶
Send the following prompt to an AI that supports Skills (Cursor, Claude Code, Codex CLI, etc.), and let the Agent read the installation documentation and install it to the skills directory of the current environment:
Please install `@user_010a3d49/bid-format-template` according to https://skillhub.cn/install/skillhub.md.
Installation documentation requirement: When using skillhub install, you must add --dir pointing to the actual skills directory used by the current Agent; otherwise, it defaults to installing to ./skills/, which may not be recognized.
Common path examples from SkillHub documentation:
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
If the SkillHub CLI is not installed on your local machine, you can first execute (from https://skillhub.cn/install/skillhub.md):
command -v skillhub && skillhub --version
If not installed, you can use the full installation script (CLI + Default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Example of installing the skill (replace <skills directory> with the corresponding path above):
skillhub install user_010a3d49/bid-format-template --dir <skills directory>
Method 2: Download Zip¶
Use “Download Zip Package Installation” on the SkillHub skill page, and extract the package to the Agent’s skills directory (consistent with the --dir target above). The package contains SKILL.md, scripts/, and references/.
Method 3: WorkBuddy¶
The SkillHub page indicates that this Skill supports WorkBuddy; the WorkBuddy skills path is recorded as ~/.workbuddy/skills/ in the official installation documentation (if you use WorkBuddy, place it according to its product instructions).
After installation or extraction, state in the conversation that you want to compile a bid document and provide the tender docx or a chapter list. The Agent will guide you through a confirmation process following the five-step flow in the Skill before generating the document.
Typical Usage¶
The typical flow is consistent with the official SKILL.md: Define chapters → Select numbering and fonts → Fill in project info → Generate docx → Fill in content.
1. Parse Tender Document¶
Execute in the Skill directory (replace the path with your tender document):
python scripts/parse_bidding_docx.py 招标文件.docx --output config.json
The output includes chapter structure, detected numbering system, page, and font information. The parsing results should be confirmed or edited by the user before generation.
2. Generate Bid Document Skeleton¶
Generate using the configuration file (requires Node to be installed locally and NODE_PATH configured according to Skill instructions):
NODE_PATH=$(npm root -g) node scripts/generate_bid_template.js --config config.json --out 投标文件.docx
You can also call generateBidDocument in Node, passing in fields such as numbering (e.g., scheme1), project (including customNo, copyMark: '【正本】', etc.), fonts, chapters; for complete field examples, see the “Complete Usage Example” inside the Skill.
3. Fix docx XML (As needed)¶
If compatibility issues occur after using docx-js 9.6.1 for generation, you can execute:
python scripts/fix_xml.py 投标文件.docx
4. Collaborate with Agent¶
Without running scripts, you can also upload the tender docx in a conversation with the Skill enabled, letting the Agent select the numbering system, confirm chapters and project information according to the Skill flow, and then call the generation logic; content, qualifications, and quotations still need to be filled in by yourself or with the help of other knowledge base skills (Step 5 in the Skill mentions combining with “Bid Content Generation Skills”).
Applicable Scenarios and Notes¶
Who is it for
- Teams or individuals who bid frequently and need to quickly build a Word skeleton consistent with the tender format.
- Those who have the tender document in docx format and want to automatically align with the “Bid Document Format” chapter structure.
- Those who need to switch between multiple numbering systems (Government, Engineering, Pure Numeric Cascading, etc.) and unify cover, TOC, and footer rules.
Limitations and Notes
- If the tender document is in PDF, the Skill instructions state it cannot be parsed automatically; manual chapter input or selection of the default framework is required.
- The Skill does not provide company qualifications, cases, personnel, quotations, etc.; it only solves formatting and structure.
- Generation relies on the Python / Node scripts and environment within the Skill package; it is recommended to verify on a copy whether the layout meets the special requirements of the current tender document for the first time.
- The platform has performed security scans on this package (SkillHub page displays entry points for reports from Keen Security Lab and Yunding Lab stating “Safe, No Risk”), but it is still recommended to obtain the installation package only from the official SkillHub channel.
Conclusion¶
The “Bid Document Compilation Expert” solidifies the common layout requirements of bidding Word documents (numbering systems, cover [Original] mark, X/100 footer, TOC, and chapter skeleton) into an installable Agent Skill. It supports extracting structures from tender docx files, reducing the time spent repeatedly building templates. For installation or checking for updates, refer to the official SkillHub page:
https://www.skillhub.cn/skills/user_010a3d49/bid-format-template