export-food-sales

Full-stack export food sales workflow skill with multilingual support across dozens of countries. Suitable for: parsing uploaded PDFs/Word/Excel/images into structured output (e.g., spec-to-table, complaint extraction, report metric extraction); full export sales operations (country food-regulation compliance checks, multi-currency/multi-incoterm quote calculations, international logistics ETA tracking, overseas customer profiling and follow-up records, cross-time-zone multilingual communication scripts); a self-evolving persistent memory system that persists and optimizes key business context after each conversation; and automatic context compression (real-time summarization of conversation history and long texts to save tokens). Use this skill when users mention intents like “export food, trade quotes, customs compliance, customer follow-up, parsing specs/complaints/reports, multilingual trade communication, memory store, context compression.”

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 "export-food-sales" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4bb51bfff7f83801c4a7ad874ba6e5ee74c7a7fb07081eb0bf42e981968a2d30. Verify the upstream source and version against https://skillhub.cn/skills/user_83179863/sunny-cx-xiaoshou 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

Full-stack export food sales workflow skill with multilingual support across dozens of countries. Suitable for: parsing uploaded PDFs/Word/Excel/images into structured output (e.g., spec-to-table, complaint extraction, report metric extraction); full export sales operations (country food-regulation compliance checks, multi-currency/multi-incoterm quote calculations, international logistics ETA tracking, overseas customer profiling and follow-up records, cross-time-zone multilingual communication scripts); a self-evolving persistent memory system that persists and optimizes key business context after each conversation; and automatic context compression (real-time summarization of conversation history and long texts to save tokens). Use this skill when users mention intents like “export food, trade quotes, customs compliance, customer follow-up, parsing specs/complaints/reports, multilingual trade communication, memory store, context compression.”

0 Downloads

Introduction source: third_party · user_83179863 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: export-food-sales
description: >-
  出口食品销售全链路工作流技能,具备跨数十个国家的多语言处理能力。适用于以下场景:
  (1) 解析上传的 PDF/Word/Excel/图片等文档并结构化输出(规格书转数据表、投诉书信息提取、
  年度分析报告指标提炼);(2) 出口销售全链路作业,包括各国食品法规合规性检查、多币种/多贸易术语
  报价计算、国际物流时效追踪、海外客户画像与跟进记录、跨时区多语言沟通话术生成;
  (3) 自进化持久化记忆系统,每轮对话后自动沉淀并优化关键业务上下文供长期调用;
  (4) 上下文自动压缩,对历史对话与长文本实时摘要精简以节省 Token。
  当用户提及“出口食品、外贸报价、清关合规、客户跟进、解析规格书/投诉书/分析报告、
  多语言外贸沟通、记忆库、上下文压缩”等意图时应使用本技能。

出口食品销售工作流(Export Food Sales Workflow)

1. 技能目标

为出口食品销售业务提供一个可持续进化的智能工作台,覆盖“文档解析 → 合规校验 → 报价 → 物流追踪 → 客户跟进 → 多语言沟通”的完整链路,并通过记忆系统与上下文压缩机制实现 长期记忆与低成本高效运行。所有确定性计算与解析均由 scripts/ 下的脚本完成,保证 结果稳定、可复现且节省 Token。

2. 何时使用

  • 用户上传或引用文档(PDF / Word / Excel / CSV / 图片),需要提取、结构化或转表格。
  • 用户需要判断产品能否出口某国、是否符合当地食品法规(标签、添加剂、检疫、认证等)。
  • 用户需要按 Incoterms(EXW/FOB/CIF/DDP 等)与多币种进行报价核算。
  • 用户需要追踪国际物流时效、预计到港/清关时间。
  • 用户需要管理海外客户画像、记录跟进、生成下一步动作。
  • 用户需要面向不同国家/时区生成多语言沟通话术(邮件、报价函、催单、投诉回复)。
  • 用户希望技能“记住”业务上下文,或对话/长文本过长需要压缩节省成本。

3. 目录结构

export-food-sales/
├── SKILL.md                     # 本文件:总入口与工作流说明
├── scripts/                     # 可执行脚本(确定性、免加载进上下文)
│   ├── parse_document.py        # 文档解析与结构化输出(PDF/Word/Excel/图片/文本)
│   ├── compliance_check.py      # 各国食品出口法规合规性检查
│   ├── quote_calculator.py      # 多币种 + Incoterms 报价计算
│   ├── logistics_tracker.py     # 国际物流时效估算与追踪
│   ├── customer_manager.py      # 海外客户画像管理与跟进记录
│   ├── comm_script_gen.py       # 跨时区多语言沟通话术生成
│   ├── memory_manager.py        # 自进化记忆系统(读写/检索/优化)
│   └── context_compressor.py    # 上下文/长文本自动压缩
├── references/                  # 按需加载的领域知识
│   ├── compliance_rules.md      # 各国食品法规与准入要点
│   ├── document_schemas.md      # 各类文档解析字段映射与结构化 schema
│   ├── communication_scripts.md # 多语言话术模板与文化禁忌
│   └── currency_incoterms.md    # 币种、汇率、贸易术语与成本项说明
├── assets/                      # 输出用模板
│   ├── spec_table_template.csv          # 规格书数据表模板
│   ├── complaint_extract_template.json  # 投诉信息结构化模板
│   ├── report_kpi_template.json         # 分析报告 KPI 模板
│   └── customer_profile_template.json   # 客户画像模板
└── memory/                      # 持久化记忆库(自动生成/维护)
    └── README.md

4. 核心工作流

4.1 文档解析与结构化输出

  1. 收到文档后,先用解析脚本抽取原始内容:
    python scripts/parse_document.py --input <文件路径> --type auto --out <输出目录>
    • --type 可选 spec(规格书→表格)、complaint(投诉书→结构化)、report(分析报告→KPI)、auto(自动识别)。
    • 支持 PDF / DOCX / XLSX / CSV / TXT / 图片(图片走 OCR,缺依赖时给出降级提示)。
  2. 根据文档类型选择输出模板(见 assets/)并生成结构化结果(CSV / JSON)。
  3. 字段映射规则与 schema 详见 references/document_schemas.md。
  4. 若文档为多语言,先由模型识别语种并统一转为业务所需语言后再结构化。

4.2 销售场景全链路

  • 合规检查:python scripts/compliance_check.py --country <国家码> --product <品类> [--json <产品档案>], 输出准入结论、缺失认证、标签/添加剂风险项。规则库见 references/compliance_rules.md。
  • 报价计算:python scripts/quote_calculator.py --config <报价配置.json>, 支持多币种换算、Incoterms 成本项拆解(货值/运费/保险/关税/杂费)与利润核算。 配置支持两种写法(二选一):
    {
      "incoterm": "CIF", "base_currency": "CNY", "target_currency": "USD",
      "quantity": 1000, "profit_rate": 0.25,
      "rates": {"CNY": 0.1385, "USD": 1.0},
      "costs": {
        "goods": {"amount": 50000, "currency": "CNY"},
        "inland": {"amount": 2300, "currency": "CNY"},
        "export_clearance": {"amount": 800, "currency": "CNY"},
        "freight": {"amount": 1800, "currency": "USD"},
        "insurance": {"amount": 200, "currency": "USD"}
      }
    }

    也可用更自然的平铺写法:{"cost": {"material": 50000, "packing": 2300, "currency": "CNY"}, "freight": {"sea": 1800, "insurance": 200, "currency": "USD"}, "target_margin": 0.25}(material→货值,packing+labor→国内费用,sea/air→运费,target_margin 即利润率)。 直接运行 --demo 可打印标准示例配置。

  • 物流追踪:python scripts/logistics_tracker.py --origin <起运港> --dest <目的港> --mode sea|air|express [--etd <日期>], 估算运输时效、预计到港与清关时间,可录入实际节点。
  • 客户管理:python scripts/customer_manager.py <子命令>(add/update/log/show/followup), 维护客户画像与跟进记录,生成下一步跟进建议。
  • 沟通话术:python scripts/comm_script_gen.py --scene <场景> --lang <语言> --tz <时区> [--vars <变量.json>], 生成本地化、合规、符合文化习惯的邮件/消息。模板见 references/communication_scripts.md。

4.3 自进化记忆系统(每轮对话后必做)

  • 每轮对话结束前,抽取本轮关键业务上下文(客户、国家、产品、报价、结论、待办),写入记忆库:
    python scripts/memory_manager.py add --category <client|country|product|quote|task|preference> \
        --key "<主题>" --content "<精炼要点>" [--tags "tag1,tag2"]
  • 会话开始或需要背景时先检索记忆:
    python scripts/memory_manager.py recall --query "<关键词>" [--top 5]
  • 定期优化(去重、合并、衰减低频条目、提炼偏好):
    python scripts/memory_manager.py evolve
  • 记忆持久化在 memory/ 下,随使用频率增长自动进化,越用越懂用户意图。
  • 重要:记忆只存业务事实与用户偏好,不存敏感凭证;每轮务必落盘,保证长期可调用。

4.4 上下文自动压缩

  • 当历史对话或粘贴的长文本较长(默认阈值可调)时,先压缩再处理:
    python scripts/context_compressor.py --input <文件或"-"读取stdin> --ratio 0.3 --mode summary
    • --mode 支持 summary(摘要)、bullet(要点)、keyinfo(关键实体/数字保全)。
    • 压缩时严格保留:数字、金额、日期、国家、法规条款、客户与产品名等关键实体。
  • 处理超长上下文的标准流程:分段 → 逐段压缩 → 汇总 → 仅将压缩结果送入后续推理,严防 Token 浪费。

5. 使用准则

  • 一律优先调用脚本完成确定性计算/解析,避免手工推算导致误差与 Token 浪费。
  • 涉及多语言时先确认目标语言与地区,再套用本地化模板与合规规则。
  • 合规结论涉及法律风险,输出须注明“依据规则库版本,最终以目标国官方要求为准”。
  • 每轮对话结束务必更新记忆库;上下文偏长时先压缩。
  • 参考文档(references/)体量较大,按需加载对应文件,不要一次性全部读入。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 覆盖出口食品销售全链路,解决文档解析、合规检查、多币种报价、物流追踪、客户跟进等核心痛点
  • 集成自进化记忆系统与上下文压缩机制,显著提升长期业务效率与 Token 利用率
Trigger Precision95/100

Highlights

  • 触发词完整覆盖出口食品、外贸报价、清关合规、客户跟进、多语言沟通等关键意图,边界清晰
Structure and Standards94/100

Highlights

  • Phase 划分清晰,每部分含具体步骤与出口条件,提供端到端示例与脚本调用方式
  • frontmatter 完整,目录结构合理,文档可读性强
Execution Reliability91/100

Areas to improve

  • 引用文件缺失 Reported severity: Major

    SKILL.md 引用了 scripts/ 下多个 .py 文件(如 parse_document.py、compliance_check.py 等),但未传入实际脚本文件

    Recommendation: 请补充 scripts/ 目录下所有引用的 .py 脚本文件,确保执行流程可完整运行

  • description写错位置 Reported severity: Minor

    顶层 description 字段为空,实质描述内容位于 skill_body 内部

    Recommendation: 建议将核心描述内容移至顶层 description 字段,便于平台快速识别

Highlights

  • 所有确定性计算与解析均通过独立脚本完成,保证结果稳定、可复现且节省 Token
  • 合规结论注明法律风险 disclaimer,记忆系统强调不存敏感凭证,体现风险控制意识
Evidence Verifiability (mean of the first four)93/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.

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