split-bid

Tool for generating and auditing randomized bid price lists from a bill of quantities. From a source XLSX, produces N randomized bid versions with total tax-included amounts within the "original tax-included ~ price cap" range; safety/civilization fees computed by linked formula; grouped by material type to ensure same material same price; enforces that N versions and the original have differing unit prices; audits pricing order constraints (larger specs should be priced higher than smaller ones). Suited for bid list splitting, randomized cap-range pricing, and multi-version bill generation.

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 "split-bid" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5afd239d5d9a89eceaad27a1ca8b2875ee1394340f51bfb16353b734c7481e4e. Verify the upstream source and version against https://skillhub.cn/skills/user_e9b6c641/split-bid 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

Tool for generating and auditing randomized bid price lists from a bill of quantities. From a source XLSX, produces N randomized bid versions with total tax-included amounts within the "original tax-included ~ price cap" range; safety/civilization fees computed by linked formula; grouped by material type to ensure same material same price; enforces that N versions and the original have differing unit prices; audits pricing order constraints (larger specs should be priced higher than smaller ones). Suited for bid list splitting, randomized cap-range pricing, and multi-version bill generation.

0 Downloads

Introduction source: third_party · user_e9b6c641 · 1.1.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
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: split-bid
slug: split-bid
displayName: 工程量清单随机化投标
description: 工程量清单随机化投标报价生成与审计。从一份源清单 xlsx 生成 N 份随机化投标报价,含税总计落在「原始含税~限价」区间内,安全文明施工费设为联动公式,按材料类型分组保证同材同价,强制 N 份+原始版单价互不相同,并审计价格顺序约束(大规格应贵于小规格)。适用于投标报价清单拆分、限价区间随机报价、工程量清单多版本生成等场景。触发词:投标清单随机化、工程量清单拆分、限价区间随机报价、清单单价随机、安全文明施工费公式、投标报价多份生成。
agent_created: true

工程量清单随机化投标报价生成器

概述

从一份源工程量清单 xlsx 生成 N 份随机化投标报价文件。每份含税总计严格落在 (原始含税, 限价) 区间内且互不相同;安全文明施工费行设为公式随主表联动; 同名同规格材料共用一个调整价;N 份 + 原始版每项单价互不相同;并自动审计 价格顺序约束(如 DN200 管应贵于 DN150)。

何时使用

  • 用户要把一份工程量清单拆成多份随机报价用于投标
  • 要求报价总额在限价区间内、低于限价
  • 要求安全文明施工费按公式取费
  • 要求同类材料价格一致、各版本单价互不相同
  • 要求审计大规格/小规格价格合理性

使用流程

第 1 步:分析源文件结构

读取源 xlsx,确认:主明细表名(含 名称/项目特征/工程量F/不含税单价G/含税单价H/合价I/含税合价J/税率K)、汇总表名、安全文明施工费所在行、明细行区间。脚本可自动探测安全文明施工费行(C 列含「安全文明施工」)与明细行(F>0 且 G 为数值)。

第 2 步:确定限价区间

  • 下限 = 原始含税总计(源文件实测,公式:S_items × (1+费率) × (1+税率))
  • 上限 = 招标限价

第 3 步:编写配置文件

复制 assets/config_example.py,按新工程修改:SRC、OUTDIR、MAIN、限价、 原始含税、约束行号、汇总表分类区间。关键参数说明见 references/workflow.md。

配置项要点:

  • MAIN/SUM_SHEET:主表与汇总表名
  • FEE_ROW:安全文明施工费行(不填自动探测)
  • LIMIT/ORIG_INCL:限价上下限
  • HIGH_PRICE_THRESHOLD/HIGH_RANGE/NORMAL_RANGE:随机幅度(高单价项加大)
  • CONSTRAINTS:价格顺序约束,格式 (描述, [(行号, 排名)]),排名 1=最便宜
  • MAIN_CAT_RANGES/SUM_CAT_ROWS:汇总表对齐(不配则跳过)

第 4 步:生成与校验

运行生成器(含自动校验):

python scripts/generate_bids.py --config <配置.py>

脚本输出:明细行数、材料类型数、各份含税总计、以及四项校验(含税区间/同价一致/ 顺序约束/唯一性)。任一失败以非零码退出。

第 5 步:独立审计(可选)

对已生成文件单独跑价格顺序审计:

python scripts/audit_ordering.py --config <配置.py>

输出每份文件中违反约束的明细(行号、价格、差额),用于定位修复。

第 6 步:仅校验已有文件

python scripts/generate_bids.py --config <配置.py> --validate-only

价格顺序约束定义

审计核心。识别「同类不同规格」的清单项,按工程常识排序。详见 references/workflow.md 第 5 节。要点:

  • 每组 = (描述, [(行号, 应有排名)]),排名小=便宜
  • 仅定义源文件本身已满足的约束(源文件不满足的会被跳过并提示)
  • 行号为主表实际 Excel 行号,换工程须重新核对

资源说明

  • scripts/generate_bids.py:参数化生成器,读取配置生成 N 份文件并自动校验
  • scripts/audit_ordering.py:独立价格顺序审计器
  • references/workflow.md:业务模型、随机化原理、约束定义、校验清单、常见问题
  • assets/config_example.py:基于园区九路的可运行配置示例

依赖与运行

  • Python 3.8+,openpyxl,numpy
  • 优先用含上述包的 Python(如系统 Python);managed Python 需先在隔离环境装包
  • 配置文件为 Python 模块,支持注释,便于标注行号含义

注意事项

  • 约束行号、分类区间、安全文明施工费行均与具体源文件结构绑定,换工程必须重新核对
  • 唯一性冲突偶发时,增大 NORMAL_RANGE 或更换 SEEDS 即可消除
  • 生成后务必确认四项校验全部通过后再交付

Current listing version

1.1.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 解决工程投标中多份随机报价生成的实际需求
  • 功能闭环完整(生成+审计+校验)
  • 适用于投标报价清单拆分、限价区间随机报价等明确场景
Trigger Precision85/100

Highlights

  • 提供6个具体触发词,覆盖主要使用场景
  • 触发词边界清晰,不易与其他Skill重叠
Structure and Standards92/100

Areas to improve

  • 引用文件缺失 Reported severity: Minor

    SKILL.md中引用了assets/config_example.py和references/workflow.md,但未确认这些文件是否实际传入ZIP包

    Recommendation: 请确保所有被引用的文件(config_example.py、workflow.md)都包含在Skill ZIP包中,或在文档中明确说明这些文件的位置

Highlights

  • 文档结构完整,包含概述、使用流程、约束定义等
  • 有端到端示例和具体bash命令
  • frontmatter完整,单文件未超500行
Execution Reliability88/100

Highlights

  • 依赖明确(Python 3.8+, openpyxl, numpy)
  • 含自动校验机制(四项校验)
  • 异常处理覆盖主要场景,有明确校验出口
Evidence Verifiability (mean of the first four)86/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.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

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.

Translation pending; see source documentation.

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