food-safety-claim-calculator

Compensation calculation and rights-claim tool for ordinary consumers who bought problematic food or health products. From a plain-language user description, it automatically extracts case type, price paid, and physical-evidence details; determines applicability of Article 148 of the Food Safety Law (tenfold compensation with a statutory minimum of 1,000 RMB); calculates the claimable amount; and generates complaint wording, evidence checklist, negotiation scripts, and a shareable calculation summary. v1.1.0 adds natural-language intake, action-ready outputs, and shareable images.

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 "food-safety-claim-calculator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-054aab337fcd4b95562f45e17d09aa56d90b4746171b90048b0beaaf922713e1. Verify the upstream source and version against https://skillhub.cn/skills/user_af5149c6/food-safety-claim-calculator 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

Compensation calculation and rights-claim tool for ordinary consumers who bought problematic food or health products. From a plain-language user description, it automatically extracts case type, price paid, and physical-evidence details; determines applicability of Article 148 of the Food Safety Law (tenfold compensation with a statutory minimum of 1,000 RMB); calculates the claimable amount; and generates complaint wording, evidence checklist, negotiation scripts, and a shareable calculation summary. v1.1.0 adds natural-language intake, action-ready outputs, and shareable images.

0 Downloads

Introduction source: third_party · user_af5149c6 · 1.1.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: food-safety-claim-calculator
display_name: 问题食品维权赔偿测算器
version: 1.1.0
category: 生活服务
tags:
  - "食品吃出异物赔多少"
  - "食品安全法十倍赔偿"
  - "买到不合格食品怎么维权"
  - "食品异物赔偿测算"
  - "预包装食品索赔"
  - "外卖吃出虫子怎么办"
  - "消费者权益"
  - "民生维权工具箱"
author: Felix
trigger: >
  食品吃出异物赔多少、食品安全法十倍赔偿、买到不合格食品怎么维权、食品异物赔偿测算、
  预包装食品索赔金额、外卖吃出虫子怎么办、吃出蟑螂赔一千、问题食品退款加十倍
description: >
  面向买到问题食品/保健品的普通消费者的维权赔偿测算与流程生成工具。帮你从"大白话描述"开始,
  自动抽取情形类型/价款/实物证据 → 判定是否适用《食品安全法》第148条十倍赔偿(法定最低1000元底线)
  → 测算可主张金额 → 一键生成投诉话术/取证清单/协商话术与可截图分享的维权测算单。
  v1.1.0 新增自然语言 intake + 行动层成品生成 + 分享图。

问题食品维权赔偿测算器 v1.1.0

Overview

本技能帮助遭遇问题食品的消费者把"我能不能赔、能赔多少、怎么取证、怎么投诉、话术怎么写"一次讲清。

v1.1.0 升级重点:不再要求用户手动提供 JSON——直接用大白话描述你的情况,技能自动抽取关键信息;算完金额后,主动帮你一键生成投诉话术/取证清单/协商话术/可分享的测算单图片,从"计算器"升级为"办事助手"。

聚焦"食品异物/不合格"单一高频场景,区别于泛化法律咨询与通用投诉助手。

完整处理流程(6 步)

Step 0 · 自然语言 intake(用户说大白话即可)

收到用户诉求后,先调用 scripts/parse_intake.py 抽取字段:

python scripts/parse_intake.py '用户的大白话描述'

脚本自动输出:

  • extracted:已抽出的字段(情形类型、购买价款、是否保留实物/照片/小票、损失、商家是否要求先寄回)
  • missing:仍未获取的关键字段列表
  • hints:给助手用于追问的友好提示(每次最多问 2 个)

如果 missing 为空 → 直接进入 Step 2。 如果 missing 不为空 → 进入 Step 1 缺失引导。

Step 1 · 缺失引导(按优先级追问,每次最多 2 个问题)

根据 parse_intake.py 输出的 hints 逐批追问。优先级顺序:

  1. 未说情形 → 问:"具体是什么问题?吃出异物、买到通报的不合格批次,还是仅标签瑕疵?"
  2. 未给价款 → 问:"这件食品你花了多少钱买的?(小票/订单金额即可,作为十倍基数)"
  3. 未确认证据 → 问:"有没有保留实物 / 拍照 / 小票订单?(这是主张十倍赔偿的关键证据)"

若用户仅说"食品有问题想维权" → 先追问价款 + 具体情形 + 是否保留实物。

Step 2 · 结构化判定

将补全后的字段组装为命令行,调用 scripts/claim_calc.py --json:

python scripts/claim_calc.py --price 2.5 --json
# 标签瑕疵情形:python scripts/claim_calc.py --price 25 --type label --json

输出 JSON 包含:是否适用十倍、购买价款、十倍基准、法定底线是否触发、赔偿额、应退价款、合计可主张、法条依据。

Step 3 · 结构化可视化呈现

将判定结果渲染为 Markdown 卡片(用户可直接阅读):

┌─────────────────────────────────────┐
│ 🍱 问题食品 · 维权测算单            │
├─────────────────────────────────────┤
│ 购买价款:¥2.5                       │
│ 十倍赔偿:¥1000(法定底线保护)      │
│ 合计可主张:¥1002.5                 │
│                                     │
│ ✅ 适用《食安法》148 条十倍          │
│                                     │
│ 🔹 维权步骤                          │
│   ① 固定实物/照片/小票               │
│   ② 联系商家主张退款+十倍            │
│   ③ 12315 / 市场监管投诉             │
└─────────────────────────────────────┘

同时调用 scripts/make_share_image.py 生成可截图分享 PNG:

python scripts/make_share_image.py _assess.json ./食品维权测算单.png

主动展示图片给用户,并提示:"这张图可以截图发群或收藏备查。"

Step 4 · 下一步行动层(一键生成维权成品)⭐ 核心升级

算完金额后,不要结束对话——主动询问用户是否需要生成以下成品:

✅ 已完成测算。接下来我可以帮你一键生成:

  • 💬 12315 / 市场监管投诉话术(填好金额与法条,可直接复制)
  • 📋 取证清单(标准 6 项取证项 + 你已缺的项对照)
  • 💡 协商话术(含"商家要求先寄回实物"的证据防灭失应对)

需要生成哪个?告诉我姓名、商家名、商品名、订单号就能出投诉话术;或者先看测算单图片?

用户确认后,调用 scripts/generate_artifacts.py:

# 用户信息 JSON(姓名、商家、商品、订单号、购买日期、是否留证、商家是否要求先寄回)
echo '{"name":"张三","merchant":"某店","goods":"薯片","order_no":"O1","buy_date":"2026-07-20","has_physical":true,"merchant_ask_return":false}' > info.json
python scripts/generate_artifacts.py _assess.json info.json ./_artifacts

产出文件: | 文件 | 用途 | |------|------| | 投诉话术.txt | 12315 / 市场监管投诉话术(已填金额与法条) | | 取证清单.md | 标准 6 项取证项 + 当前证据状态 | | 协商话术.txt | 与商家协商退款赔十倍的沟通话术(含"先寄回实物"风险应对) |

将文件内容展示给用户,并提供下载指引。

Step 5 · 合集入口 + 留存引导

在所有输出末尾,追加:

  1. 留存引导:"建议收藏本方案备不时之需;可将测算单截图保存。"
  2. 跨技能推荐(民生维权工具箱合集入口):

    🔗 更多民生维权技能:

    • takeout-false-image-packfee-claim-assistant — 外卖图文不符+打包费乱收维权
    • ecommerce-price-protection-claim-calculator — 网购保价差价索赔
    • food-safety-claim-calculator — 问题食品维权赔偿测算
    • garment-fabric-false-label-claim-calculator — 服装面料成分虚标维权测算
    • 搜索「民生维权工具箱」查看全部技能

多轮记忆(同一会话内记住案件状态)

在同一对话中,用户可能分多轮补充信息("我找到订单截图了""商家让我先寄回实物")。助手应:

  • 在内存中保留当前案件的 extracted 字典;
  • 每轮更新新增字段,重新运行 claim_calc.py 更新测算结果;
  • 不重复追问已回答过的问题。

参考文件

文件 内容
references/food_safety_law.md 食安法148条法条、关键判定点、计算口径、投诉话术模板(第五节)、取证清单(第六节)、维权渠道、时效
examples/input_output.md 典型输入输出样例(薯片异物/信息缺失/标签瑕疵)
examples/example2_nl_intake.md v1.1.0 新增:自然语言 intake 示例(大白话→自动抽取→追问→判定→行动层)

脚本总览

脚本 功能 输入 输出
scripts/parse_intake.py 自然语言字段抽取 大白话文本 部分 JSON + missing + hints
scripts/claim_calc.py 赔偿金额测算(--json 结构化) 价款/损失/类型 判定 JSON 或人读文本
scripts/generate_artifacts.py 一键生成维权成品 判定 JSON + 用户信息 投诉话术 / 取证清单 / 协商话术
scripts/make_share_image.py 生成可分享测算单图 判定 JSON 1080×1350 PNG

免责声明与适用场景限制

  • 免责声明:本技能输出为基于《食品安全法》第148条的赔偿测算与维权流程参考,不构成法律意见、不构成诉讼结果承诺。实际赔偿以双方协商、调解或司法/行政裁决为准;争议较大时建议咨询专业律师或当地消协(12315)。
  • 适用场景限制:仅适用于中国大陆境内一般预包装食品、餐饮、外卖的食品安全索赔初算;不适用于药品/医疗器械、纯标签瑕疵且无安全影响情形、以及跨境/港澳台地区购买。法定条款存在修订可能,以最新有效法律文本为准。
  • 举证边界:无实物、无购买凭证时赔偿主张成功率显著下降,本技能无法替代证据收集。
  • 生成的投诉话术 / 清单 / 协商话术为模板参考,用户应根据自身实际情况修改后使用。

Current listing version

1.1.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 聚焦问题食品维权这一高频刚需场景,解决消费者‘能赔多少、怎么取证、怎么投诉’的实际痛点
  • 提供从自然语言输入到维权成品生成的完整闭环,显著提升维权效率
Trigger Precision95/100

Highlights

  • 触发词精准覆盖核心场景(如‘食品吃出异物赔多少’‘食品安全法十倍赔偿’),边界清晰
Structure and Standards95/100

Highlights

  • 流程分6步清晰,含端到端示例,frontmatter完整,结构规范
Execution Reliability90/100

Highlights

  • 工具调用明确,参数正确,覆盖主要异常(如缺失字段追问、法定底线保护),不可逆操作有确认机制
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.