소스 정보
- 저장소
- chefroger/smart-trade-ai
- 최근 소스 활동
- 2026년 8월 11일 06:52
- 감지된 SKILL.md 언어
- 중국어
- 스타
- 69
- 포크
- 9
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SOC 직업 분류 기준
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/chefroger/smart-trade-ai --skill b2b-doc-generation명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | b2b-doc-generation |
| description | 外贸单证生成 — 生成报价单/PI/合同/商业提案等外贸专用文档(DOCX/XLSX/PPTX) |
| when_to_use | ["用户要求生成外贸单证(报价单 / PI / 形式发票 / 装箱单 / 合同 / 商业提案)","需要可下载的外贸模板","用户提到「做一份报价」「生成PI」「出合同」","生成普通 Word/PPT 用 Hermes 内置 office skills 即可,不需要本技能","不要用于:读取文档(用 b2b-document);非外贸通用文档(用 Hermes 内置)"] |
| triggers | ["做报价单","生成PI","形式发票","出合同","外贸合同","装箱单模板","商业提案","报价单模板","proforma invoice","quotation template"] |
| category | 文档管理 |
| version | 1.3.0 |
| author | Foreign Trade Assistant |
你是 b2b-doc-generation 技能。用于生成专业商务文档(报价单/PI/合同/PPT/产品目录)。
════════════════════════════════════════ 核心原则 ════════════════════════════════════════
════════════════════════════════════════ 文档类型与生成策略 ════════════════════════════════════════
════════════════════════════════════════ 标准外贸单证字段清单(生成文档时必须包含) ════════════════════════════════════════
必须包含以下区块,每一区块内的字段除非标注「可选」否则必须填充:
A. 出口商信息 (Exporter / Seller)
B. 发票基本信息
C. 收货人信息 (Consignee / Buyer)
D. 运输信息
E. 货物明细表(必须表格化)
| 序号 | 品名 | 规格/型号 | HS编码 | 数量 | 单位 | 单价 | 币种 | 总金额 |
|---|
F. 唛头 (Shipping Marks) [如无唛头写 N/M]
G. 银行信息
H. 声明与签署
与商业发票结构相同,额外必填:
必须包含以下信息区块:
A. 订单基本信息
B. 买方信息 (Buyer) + 卖方信息 (Supplier)
C. 交货信息
D. 采购明细表
| 序号 | 品名 | 规格 | 数量 | 单位 | 单价 | 币种 | 总金额 | 交期 |
|---|
E. 金额汇总
F. 付款条款 + 备注条款(质保/验收标准/违约条款)
G. 审批签字区
CCPIT / CIQ 格式,12 个固定字段:
产地标准 (Origin Criterion):标记 "P"(完全获得)/ "W" + HS编码(实质性改变)
════════════════════════════════════════ 数据溯源(强制) ════════════════════════════════════════ 生成文档后必须输出溯源表:
| 文档位置 | 数据内容 | 来源文件 | 页码/行号 |
|---|---|---|---|
| A3 单元格 | 单价 $12.50 | price-list-2025.pdf | Page 3, Row 45-52 |
| 第 4 段 | 公司介绍文本 | company-profile.md | 全文 |
| Sheet 2 B5 | MOQ 200 | product-specs.xlsx | Sheet MOQ, Row 8 |
════════════════════════════════════════
-------|----------|----------|--------| | "注意到贵公司主营不锈钢板出口" | b2b-osint | 官网产品页 targetco.com/products | ✅ 高 | | "贵公司近年拓展了南美市场" | web_search | news.example.com/article | ⚠️ 间接 | | "如能与贵司深度合作" | - | AI 通用话术 | - |
Parties: Seller and Buyer legal names, addresses
Whereas: Background recitals
Article 1: Definitions
Article 2: Scope of Supply
Article 3: Pricing and Payment
Article 4: Delivery (Incoterms, lead time, shipping)
Article 5: Quality and Inspection
Article 6: Warranty
Article 7: Intellectual Property
Article 8: Confidentiality
Article 9: Force Majeure
Article 10: Termination
Article 11: Dispute Resolution
Article 12: Governing Law
Signature blocks
Annexes (if any)
Insert data with source citations:
# XLSX cell with citation
cell.value = f"{price} USD/unit"
cell.comment = "📄 price-list-2025.pdf | Page: 3 | Row: 45-52"
# Re-read the generated document to verify
from openpyxl import load_workbook
wb_verify = load_workbook("output/quotation.xlsx")
ws_verify = wb_verify.active
print(f"Total rows: {ws_verify.max_row}")
print(f"Header: {ws_verify['A1'].value}")
# Confirm no empty critical cells in pricing columns
# Verify PPTX
from pptx import Presentation
prs_verify = Presentation("output/proposal.pptx")
print(f"Total slides: {len(prs_verify.slides)}")
for i, slide in enumerate(prs_verify.slides, 1):
title = slide.shapes.title.text if slide.shapes.title else "(no title)"
print(f"Slide {i}: {title}")
Save to the appropriate location:
~/.trade/companies/{slug}/clients/{client}/quotes/~/.trade/companies/{slug}/clients/{client}/proposals/~/.trade/companies/{slug}/clients/{client}/contracts/Report to user:
✅ Quotation generated: {filename}
📄 Sources cited: 3 files
- price-list-2025.pdf (Sheet: 1, Row: 45-52)
- product-specs.xlsx (Sheet: MOQ, Row: 1-10)
- client-history.docx (Paragraph: pricing terms)
| Term | Meaning | Risk Transfer | Cost Responsibility |
|---|---|---|---|
| EXW | Ex Works | Buyer assumes at seller's premises | Buyer pays all |
| FOB | Free on Board | Seller delivers on vessel | Seller pays to port |
| CIF | Cost Insurance Freight | Seller delivers to destination port | Seller pays all |
| DDP | Delivered Duty Paid | Seller delivers to buyer premises | Seller pays all |
| DAP | Delivered at Place | Seller delivers to named place | Seller pays to destination |
Subject: Quotation for {Product} — {Ref No.}
Dear {Name},
Thank you for your inquiry. Please find attached our quotation for {product/project}.
Key terms:
- Validity: {X} days
- Payment: {T/T 30% deposit, 70% before shipment}
- Lead Time: {X} weeks after deposit
- Port: {FOB Shanghai / CIF Hamburg}
We look forward to your feedback.
Best regards,
{Your Name}
{Company}
Subject: {Company} Proposal for {Project} — {Date}
Dear {Name},
Thank you for your time during our call on {date}. Per our discussion, please find attached our proposal addressing your requirements on {topic}.
Key highlights:
1. {Advantage 1}
2. {Advantage 2}
3. {Advantage 3}
Please don't hesitate to reach out if you have any questions.
Best regards,
{Your Name}
b2b-document — Extract raw data from source filesb2b-customer-mgmt — Retrieve client context for customizationb2b-lead-generation — Client analysis for proposal personalization