agentsclimarketplace

Hlzd office doc

Skill Alexxiang2008/hlzd-b2b-export-skills/skills/hlzd-office-doc

Agent Skills for B2B industrial exporters — market research (HS code, UN Comtrade, Google Trends, tender), buyer finding (Alibaba + Volza customs), inquiry qualification, voice-contract HTML reports. By HLZD (海联智达).

Install
npx -y skills add Alexxiang2008/hlzd-b2b-export-skills --skill hlzd-office-doc

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 23 days oldThe repository was created 23 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

B2B 工业品出口文档生成 v0.1 — 纯 stdlib DOCX 写入 + HLZD 抬头纸 (PI / CI / PL / COA / 合同 / 发票 / 装箱单 / 报价单 / 质检证书 / 抬头模板)。Use when 用户需要生成 B2B 出口单证 (.docx)、填充 HLZD 抬头信息 (公司名 / 地址 / 电话 / 邮箱 / 网址)、把 B2B 调研内容转成客户级 PDF/DOCX 模板。v0.1 仅 stdlib (zipfile + xml),无 libreoffice / pandoc 依赖;PDF/Excel/PPTX 互转 v0.2 加。

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

2.6 KB, 664 tokens by cl100k_base, as published. Nobody here has run it

HLZD Office Doc (v0.1 lightweight)

最小化 .docx 生成器 — 纯 Python stdlib(zipfile + xml),无需 libreoffice / pandoc / python-docx。

v0.1 范围(够用)

能力状态
生成 .docx(title + body + letterhead)✅ 跑通
HLZD 默认抬头纸✅ 跑通
XML escape(<script> & " 防注入)✅ 跑通
19 个 pytest 单测✅ 全 pass

v0.2 范围(不跑通,留作下版)

  • 完整 HLZD 抬头纸模板(logo 占位 / 多语言)
  • DOCX ↔ PDF 互转(需 libreoffice)
  • DOCX ↔ Excel/PPTX 互转(需 libreoffice / pandoc)
  • B2B 模板库(合同 / 发票 / COA / 装箱单标准模板)
  • Letterhead PDF 渲染

用法

from scripts import lib

# 1) 简单 DOCX
lib.generate_minimal_docx(
    "output.docx",
    title="报价单 / Quotation",
    body_lines=[
        "客户: Aramco Trading Co.",
        "产品: API 5CT OCTG Casing",
        "数量: 5000 meters",
        "报价: USD 1450/meter CIF Jeddah",
    ],
    letterhead="深圳海联智达科技有限公司 HLZD",
)

# 2) HLZD 默认抬头
letterhead = lib.standard_letterhead_hlzd()

# 3) 自定义抬头
custom = lib.add_letterhead(
    "ACME Industrial",
    address="...",
    phone="+86 ...",
    email="...",
    website="...",
)

# 4) End-to-end
result = lib.run_pipeline("out.docx", "Title", ["line1", "line2"])
# -> {"output_path": "...", "size_bytes": ..., ...}

CLI(v0.1 stub)

# 暂无 CLI; v0.2 加 scripts/cli.py

Related Skills

  • hlzd-cold-outreach (上游) — 邮件 + 报价正文
  • hlzd-quotation-gen (上游) — 报价数字
  • hlzd-market-report (姊妹) — HTML 报告 (非 .docx)

Versioning

版本说明
0.1.0首版:纯 stdlib DOCX 生成 + letterhead + 19 tests

What ships with it: 2 files

12.6 KB alongside SKILL.md, 2 of them executable

scripts/

tests/

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.