Preface¶
In foreign trade business, quotation sheets often need to include company letterhead, product images, specifications, MOQ, and USD unit prices simultaneously. Manually formatting, inserting images, and adjusting styles in Excel involves repetitive labor; general-purpose spreadsheet tools also don’t automatically apply quotation sheet layouts. If products come from a local CSV, or if upstream agents have already extracted structured data from e-commerce pages, a reproducible generation pipeline is still needed to write in-memory product lists into .xlsx files that customers can directly open.
Below we introduce the SkillHub community Skill quotation-builder (coordinate @user_c72f7801/quotation-builder, version 1.0.0). It targets agent workflows: searching local product libraries, generating Excel files with logos and images according to agreed fields, and extending layout logic for different sites or customers via rule packages under rules/. The page is marked requires_api_key=false, with no additional API key required.
What Is This¶
quotation-builder is a community-sourced (community) office-efficiency Skill, published by user_c72f7801, and categorized under office-efficiency on SkillHub. Its official description is: A foreign trade quotation generator, a professional Excel quotation generation tool supporting multi-rule package extensions, specifically designed for the foreign trade industry.
The Skill itself is based on the general SKILL.md convention: when users mention intents such as “generate quotation,” “quotation,” or “price list,” the agent calls the included Python entry point (main.py) according to the documentation, outputting a formatted quotation file. Web scraping is not directly handled by this Skill; documentation states it should be combined with scraping capabilities such as web-access, with this Skill responsible for Excel generation.
Core Features¶
The following capabilities are all derived from the published SKILL.md and included script descriptions, available for use as needed.
- search_csv: Search products from a local CSV product library by exact SKU or fuzzy name match.
- generate_excel: Generate an Excel quotation containing a company information area, headers, and data rows; supports embedded product images; default is a single-column layout, with support for a horizontal 3-column (3 products per row) mode.
- Rule package extension: Place rule packages under
rules/{rule-name}/; currently built-in dg-1688 (1688.com), including horizontal 3-column layout, color × size combinations, product name numbering logic; new rule packages can be loaded by adding directories andSKILL.md. - run_rule: Dynamically invoke rule packages through the main entry point, e.g., generating a specialized layout quotation for 1688 product detail URLs.
Runtime environment requirements (Skill documentation compatibility): Python 3.10+, dependencies xlsxwriter, Pillow, requests, pandas. Default convention paths include ./data/local_products.csv and ./config/company.json.
Installation and Activation¶
Install via SkillHub CLI¶
First confirm whether skillhub is already on your machine (see SkillHub installation documentation for installation methods). When installing the Skill, you must use --dir to point to the current agent’s skills directory, otherwise it will default to ./skills/ which may not be recognized.
skillhub install quotation-builder --namespace user_c72f7801 --dir <your Agent skills directory>
Common agent skills paths (as described in the same documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also provide the following prompt to an AI that supports Skills and let it execute according to official installation instructions:
Please install @user_c72f7801/quotation-builder according to https://skillhub.cn/install/skillhub.md.
Python Dependencies¶
After entering the Skill extraction directory, install dependencies to facilitate local execution of main.py or running self-checks:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
requirements.txt lists: xlsxwriter, Pillow, requests, pandas.
Typical Usage¶
1. Pre-release Self-check¶
Skill documentation requires running a smoke test before publishing or integration:
python scripts/smoke_test.py
Pass criteria include: main.py --help is executable, search_csv returns status=ok, and generate_excel generates smoke_test_quote.xlsx under output/.
2. Generate Quotation from Local CSV¶
First configure company information in config/company.json, maintain the product library in data/local_products.csv, then call step by step:
python main.py --action search_csv --query "mouse"
python main.py --action generate_excel --output ./output/quote.xlsx
search_csv can use --csv to specify a non-default CSV path.
3. Agent Integrated JSON Call¶
Suitable for having the agent construct product lists and company information in conversation, generating files with a single command:
python main.py --json '{"action":"generate_excel","products":[...],"company_info":{...}}'
Product fields must comply with the ProductDict convention (e.g., name, price are required; image_url, specs, moq, remarks are optional). Company information can reference CompanyInfo fields in config/company.json (name, logo_path, website, contact_name, phone, whatsapp, email, address, etc.).
4. Using the dg-1688 Rule Package¶
Trigger the rule package for 1688 product detail links (can pass extended parameters such as exchange rate):
python main.py --action run_rule --rule dg-1688 --url "https://detail.1688.com/offer/xxx.html"
python main.py --action run_rule \
--rule dg-1688 \
--url "https://detail.1688.com/offer/xxx.html" \
--rule-params '{"fx":7.2}'
Or in Python:
from rules.dg_1688.build_quote_from_detail import build_quote
output = build_quote("https://detail.1688.com/offer/xxx.html", fx=7.2)
The rule name supports interoperability between dg-1688 and dg_1688.
5. Complete Workflow Collaborating with web-access¶
The recommended pipeline provided in the documentation is as follows:
- The user provides the scraping target (e.g., a 1688 link) along with rules such as markup and exchange rate.
- The agent uses web-access to open the page, scroll to load, and
evalto extract titles, prices, and image URLs. - The agent calculates the final quotation in memory (including markup, currency conversion), assembling it into a list of ProductDicts.
- Call this Skill’s
generate_excel(or--jsonmode) to write out the Excel file and return the output path to the user.
Applicable Scenarios and Notes¶
Who It’s For
- Foreign trade sales, merchandisers, or operations personnel who want to use agents to fix “product data → standard quotation Excel” into repeatable steps.
- Those who already have a local CSV product library and need to batch generate quotations after keyword search.
- Those who need to maintain independent rule packages for specific customers (such as dg-1688’s 3-column layout) without modifying core generation code.
Things to Note
- This Skill does not directly handle general web scraping; when web-access is not installed or not invoked, you should use CSV or rule package entry points already implemented, avoiding the misconception that any URL can produce a quotation in one click.
- When company information is missing,
generate_excelwill report an error and not generate a file; image download failures will show a “No Image” placeholder and continue generating. - Excel layouts and exchange rate formulas (such as the CNY/USD calculation method in the dg-1688 documentation) are subject to the rule packages and
SKILL.md; it is recommended to runsmoke_test.pyor do a small-data trial generation with real samples before producing quotations. - SkillHub page statistics (at time of scraping): rating 100000, downloads 1025, installations 26; data changes with store updates, refer to the page when citing.
Conclusion¶
quotation-builder converges foreign trade quotations from “manual spreadsheet formatting” into agent-callable search_csv, generate_excel, and extensible rules/ rule packages, while clearly defining the division of labor with web-access. If you want to integrate it into Cursor or Claude Code, you can install it from SkillHub to the corresponding skills directory, then prepare company.json and product data according to the documentation.
Official Skill page: https://www.skillhub.cn/skills/user_c72f7801/quotation-builder
API coordinate address: https://api.skillhub.cn/user_c72f7801/quotation-builder