Bid Document Interpretation Tool: Integrating Bailing's Capabilities into Agents via API Key

Introduction

Pre-bidding often involves repeatedly reading tender documents: manually extracting disqualification clauses, scoring criteria, and subcontract structures. Once the drafting phase begins, teams must structure chapters and align response formats within Word. If a team is already using Agents for collaboration in environments like Cursor or Claude Code, a common scenario is that while files are in the conversation, interpretation and drafting still require switching to web pages or local scripts.

The Skill “Tender Document Interpretation Tool” (招标文件解读工具) introduced below connects the Bailian® Bid (百炼®标书) Open API to the Agent side. After uploading or providing a path, you can drive the workflow via natural language: “Interpret → Extract Packages → Generate final .docx → Optional Review/Duplicate Check”. It acts as a lightweight client for the online API, without locally replicating Bailian’s algorithms and models.

What is this

Tender Document Interpretation Tool (SkillHub ID @user_ba095919/biaoshu-writer-read, current version v3.1.2) is maintained by community publisher user_ba095919, with the source community. The SkillHub category is business-ops, with the tag requires_api_key=true (Bailian® Bid API Key must be configured before use).

Official Page: https://www.skillhub.cn/skills/user_ba095919/biaoshu-writer-read
Skill Resource Address: https://api.skillhub.cn/user_ba095919/biaoshu-writer-read

The product name in the Skill documentation is “Bailian® Bid Writing Assistant”: designed for bidding scenarios, it calls the Bailian® Bid Open API using an API Key. Tasks follow a unified asynchronous model of “Submit → Poll → Retrieve Results”. Files are processed in the Bailian® Bid cloud; intelligent interpretation is free, while bid document generation, review, and duplicate checking consume available word count according to platform rules.

Core Functions

The following capabilities are derived from the installed Skill description (SKILL.md) and can be combined as needed.

Smart Interpretation

  • Input: Tender document (.pdf / .doc / .docx, single file ≤ 50 MB), local absolute path, or downloadable URL.
  • Output: Multi-dimensional structured interpretation (Project Info, Compliance Items, Disqualification Red Lines, Scoring Criteria, Key Requirements, Business Terms, Pricing Requirements, Procurement Background, etc.), as well as bid control insights (Participation Suggestions, Bid Control Signals, Action Suggestions); exportable as HTML / Word interpretation reports.

Bid Document Generation

  • Workflow: Based on the interpreted project, Extract Packages (skip package selection if no subpackages) → Confirm page count → Generate final bid document .docx (including table of contents, chapters, and bookmarks for items to be filled).
  • Page Count: The current platform maximum page limit is 1200 pages; the actual submittable page count must be based on max_total_pages in the extraction result. If the user explicitly requests generation but does not specify a page count, it defaults to 200 pages (not exceeding max_total_pages).

Bid Document Review

  • Input: An interpreted tender document + one or more bid documents (.doc / .docx / .pdf; up to 100 files, single file ≤ 1024 MB, total size not exceeding 2 GB).
  • Output: Graded risk list (High Risk / Pending Review / Hint), conclusions, and inspection scope; supports options like blind bidding and electronic bidding; exportable review reports.

Bid Document Duplicate Check

  • Input: At least 2, up to 3 legally possessed bid documents; the tender document can only serve as an optional public expression baseline (≤ 50 MB).
  • Output: Risk clues regarding text/image similarity, metadata, and subject clues between file pairs (JSON; historical reports can be viewed on the Bailian® Bid platform). Note: This is distinct from the “Bid Document Review” entry; the duplicate check process is only triggered when the user explicitly mentions duplicate checking, similarity, or bid-rigging risk clues.

Interpretation, generation, review, and duplicate check results can also be viewed on the Bailian® Bid platform: https://biaoshu.zhiliaobiaoxun.com/?ch=s666

Installation & Activation

Install SkillHub CLI (if not installed)

command -v skillhub && skillhub --version

If not installed, follow the SkillHub official installation documentation to perform a full installation or install only the CLI:

# Full installation (CLI + Default Skills, Recommended)
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

# CLI only
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Full installation instructions: https://skillhub.cn/install/skillhub.md

Install this Skill

During installation, you must use --dir to point to the current Agent’s skills directory. Otherwise, installing to the default ./skills/ may prevent recognition.

skillhub install @user_ba095919/biaoshu-writer-read --dir <skills directory>

Common path examples (subject to SkillHub documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

The installation prompt provided on the SkillHub page is: Install @user_ba095919/biaoshu-writer-read according to https://skillhub.cn/install/skillhub.md.

Configure API Key

Credentials are written to config.json in the current Skill root directory; do not place them in the repository or old global directories. Template example:

{"app_key":"bk_live_xxxxx","base":"","output_dir":""}

Recommended permissions: chmod 600 config.json.

Official website path to obtain the Key (steps from Skill documentation):

  1. Open https://biaoshu.zhiliaobiaoxun.com/?ch=s666 , register and log in with a mobile number and SMS verification code (the documentation notes a 50,000-word bonus for mobile registration);
  2. After logging in, go to “Skill Access → Get API Key” on the left side to view or copy the Key (formatted like bk_live_xxxxx) in the panel;
  3. Hand the Key to the Agent to save in the conversation, e.g., “My API Key is bk_live_xxxxx, please save it”.

For first-time use, you can also activate a trial via the trial flow within the Skill with zero input (documentation notes a 50,000-word gift, and the API Key is saved automatically). When upgrading the Skill, retain the existing config.json and the local output directory biaoshu-bailian-files/.

Typical Usage

The Skill is designed for natural language collaboration: the user uploads files or provides paths and states the requirements; the underlying zcm.py commands are executed by the Agent in the background, so there is no need to type CLI commands manually.

Interpret Tender Document Only

Help me interpret this tender document /Users/me/some_procurement_project_tender.pdf

Or:

Check if we can bid for this? What are the disqualification red lines? The file is at https://example.com/some_project_tender.pdf

Generate Bid Document After Interpretation

Use the project just interpreted to generate a bid document for me.

For multi-package projects, confirm the package number first; if no page count is specified, it defaults to 200 pages (subject to max_total_pages). The final product is typically delivered via a short-lived download link, but you can also request it to be saved as a local .docx.

Bid Document Review

(The tender document must have been interpreted)

Review this bid document /Users/me/some_project_bid_document.docx to see if there are any disqualification risks.

Bid Document Duplicate Check

Help me check if these two bid documents have any similarity risks: /Users/me/CompanyA_Bid.docx and /Users/me/CompanyB_Bid.docx

After collecting at least 2 bid documents, the Skill will request confirmation of legal possession and processing rights before initiating the duplicate check.

A quick reference for the assistant’s full background workflow (for understanding the link, not for user execution) is: Configure Credentials → interpret → packages → generate → Optional compliance / duplicate. See references/usage.md in the Skill for details.

Use Cases & Notes

Who it is for

  • Teams already handling bidding materials in an Agent environment who wish to complete interpretation, drafting, compliance self-checks, or similarity checks across multiple bid documents in one go;
  • Users who have activated or are willing to activate a Bailian® Bid API Key and accept cloud file processing.

Limitations & Precautions

  • Network & Key: A valid API Key must be configured; requires_api_key=true. Do not commit config.json to version control.
  • Billing: Intelligent interpretation is free; bid document generation, review, and duplicate checking consume available word count. The documentation does not perform balance interception before generation; if stopped midway due to insufficient balance, recharge or resume according to platform rules.
  • Files & Size: Tender documents ≤ 50 MB during interpretation; review/duplicate check has limits on the number and total size of bid documents (see above).
  • Output Paths: Interpretation/review reports mostly fall into the Skill’s configured output directory (e.g., HTML with project names under biaoshu-bailian-files/); bid documents are primarily delivered via download links returned by the platform, with link validity based on the returned expires_in.
  • Positioning: This Skill encapsulates calls and workflow orchestration. Interpretation quality, generated content, and review conclusions are subject to the Bailian® Bid platform and Open API.

SkillHub Public Data (at time of scraping): Rating 100000, Downloads 4609 times; subject to real-time display on the SkillHub page.

Conclusion

The Tender Document Interpretation Tool connects Bailian® Bid’s interpretation, package extraction, .docx generation, review, and duplicate checking into the Agent conversation. It allows for a closed loop using just an API Key and file paths, making it suitable for keeping pre-bidding reading and drafting within the same collaboration interface. See SkillHub for installation and details: https://www.skillhub.cn/skills/user_ba095919/biaoshu-writer-read

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye