manufacturing-ai-roi-calculator

An AI training deployment ROI calculator designed for Southeast Asian manufacturing: uses factory operational data (defect rate, monthly output, per-defect cost, labor cost, AI solution fees, training costs, etc.) to quantify 3-year ROI, payback period, revenue composition and sensitivity analysis, and generates a professional ROI report; uses scripts/roi_calculator.py for deterministic calculations.

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 "manufacturing-ai-roi-calculator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-afba504348f35a8ee28e16334cbe25c9ef3885fee65416cc6decdfdc5dab3e5e. Verify the upstream source and version against https://skillhub.cn/skills/user_bb657249/manufacturing-ai-roi-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

An AI training deployment ROI calculator designed for Southeast Asian manufacturing: uses factory operational data (defect rate, monthly output, per-defect cost, labor cost, AI solution fees, training costs, etc.) to quantify 3-year ROI, payback period, revenue composition and sensitivity analysis, and generates a professional ROI report; uses scripts/roi_calculator.py for deterministic calculations.

0 Downloads

Introduction source: third_party · user_bb657249 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
python roi_calculator.py --input input.json --output report.md --json result.json
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: manufacturing-ai-roi-calculator
display_name: 制造业 AI 落地 ROI 计算器
description: 专为东南亚制造业设计的 AI 培训落地投资回报(ROI)计算器。当用户需要基于工厂运营数据(不良率、月产量、单件不良成本、人工成本、AI 方案费用、培训费用等)量化评估 AI/培训项目的 3 年 ROI、回本周期、收益构成与敏感性分析,并生成专业 ROI 分析报告时使用本 skill。调用 scripts/roi_calculator.py 进行确定性计算。
version: 1.0.0
author: Johnny
category: finance
agent_created: true
tags:
  - roi
  - manufacturing
  - ai-training
  - southeast-asia
  - vietnam

制造业 AI 落地 ROI 计算器

目的

将工厂的真实运营数据转化为一份严谨、可落地的 AI 培训落地 ROI 分析报告,覆盖首年/3 年投资、年度节省、ROI、回本周期、收益构成、三情景敏感性分析与行业基准对比,帮助工厂管理层做出投资决策。

何时使用

  • 用户提到「AI 落地 ROI」「培训投资回报」「回本周期」「值不值得上 AI」「算一下回报率」等。
  • 用户提供了(或要求估算)工厂不良率、产量、人工成本、AI 方案费用、培训费用等数据。
  • 场景聚焦东南亚制造业,尤其越南工厂(含本地化规则)。

工作流(必须按此顺序执行)

  1. 采集参数:从用户对话中提取输入参数。必填项缺失时,主动询问或用合理默认值建议(见下方参数表)。
  2. 组装 JSON:将参数整理为 JSON 对象(字段名与参数表一致)。
  3. 运行计算引擎:用 Python 执行 scripts/roi_calculator.py,把 JSON 通过 --input 文件或 stdin 传入,并用 --output 写 Markdown 报告、--json 写结构化结果。
  4. 呈现报告:把生成的 Markdown 报告直接展示给用户,必要时附关键结论摘要。

调用示例(在脚本目录内用相对路径执行,规避路径转换问题)

# 推荐:先把输入 JSON 与脚本放在同目录,使用相对路径
python roi_calculator.py --input input.json --output report.md --json result.json
# 或从 stdin 传入
echo '{...}' | python roi_calculator.py

注:在 Windows + Git Bash 环境下,传绝对路径参数会被 MSYS 转换导致脚本找不到文件。最稳妥的方式是 cd 进 scripts/ 目录,输入/输出均用相对路径;或使用 PowerShell 传原生 Windows 路径。

输入参数

必填(带 *)

参数 JSON 字段 说明 校验范围
当前月均不良率* current_defect_rate % 0.1 - 50
月产量* monthly_output 件 ≥ 100
单件不良成本* defect_cost_per_unit USD(含返工/报废/索赔) ≥ 0
人工成本* labor_cost_per_hour USD/小时 ≥ 0.5
AI 方案费用* ai_solution_cost USD(采购/开发) ≥ 0
培训费用* training_cost USD(讲师/教材/场地) ≥ 0
预期不良率降低* expected_defect_reduction % 5 - 80(默认 30)

可选(有默认值)

参数 JSON 字段 默认值
月总工时 monthly_labor_hours 8000
实施部署费用 implementation_cost 0
年度维护费用 maintenance_cost_annual 0
预期效率提升 expected_efficiency_gain 10(0-50)
实施周期 implementation_timeline 3 个月
行业类型 industry_type general(enum: electronics/automotive/textile/food/general)
工厂所在地 factory_location vietnam(enum: vietnam/thailand/malaysia/indonesia/philippines/china)
企业规模 company_size sme(enum: sme/large)

计算逻辑(确定性,由脚本实现)

年度质量节省 = 月产量 × 当前不良率/100 × 单件不良成本 × 12 × 预期不良率降低/100
年度效率节省 = 月总工时 × 人工成本/小时 × 12 × 预期效率提升/100
年度总节省   = 质量节省 + 效率节省

首年总投资   = AI方案费用 + 培训费用 + 实施部署费用
3年总投资    = 首年总投资 + 年度维护费用 × 2

3年总收益    = 年度总节省 × 3
3年净收益    = 3年总收益 - 3年总投资
3年ROI       = 3年净收益 / 3年总投资 × 100%
年度ROI      = 3年ROI / 3

月净收益     = 年度总节省 / 12
回本周期(月) = 首年总投资 / 月净收益
回本周期(年) = 回本周期(月) / 12

敏感性分析:悲观 = 预期效果 × 70%,基准 = × 100%,乐观 = × 130%(同时对不良率降低与效率提升缩放)。

输出结构

报告含七节:① 项目概况 ② 基础数据输入 ③ 核心财务指标(含收益构成)④ 敏感性分析 ⑤ 行业基准对比 ⑥ 风险提示与建议 ⑦ 结论。同时输出 JSON(字段见 output_schema)。

参考文档

  • references/industry_benchmarks.md:各行业 ROI / 回本周期 / 不良率区间与对比判定规则。
  • references/vietnam_localization.md:越南场景的货币(USD+VND)、第 80/182 号法令补贴提示、劳动力成本特点。

特殊规则

  1. 数据校验:不良率 0.1-50%;货币 ≥ 0;预期改善 5-80%。缺失必填项时脚本报错并列出缺失项,可加 --use-defaults 自动填充可选默认值。
  2. 行业基准对比:依据 industry_type 取区间中点对比,结论标注高于/低于/持平。
  3. 越南本地化:factory_location=vietnam 时,货币主用 USD 可附 VND(1 USD≈25,000 VND),并在建议中提示第 80/182 号法令培训补贴适用性。
  4. 输出风格:专业、严谨、数据驱动;关键结论加粗;提供可落地行动建议。

重要说明(原始规格书示例不一致)

原始需求文档「使用示例」给出的 Expected Output(年度节省 $46,800、效率节省 $4,800、3年ROI +110%、回本 16.2 个月)与本 skill「计算逻辑」章节的公式不自洽——按文档公式,效率节省应为 $43,200(非 $4,800),相应 3年ROI 为 +270.4%、回本 8.9 个月。本 skill 严格按「计算逻辑」章节公式实现,因为这是文档中唯一明确的算法定义。如希望切换为示例数字口径,请告知,我会调整 scripts/roi_calculator.py 中效率节省的计算口径。

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 面向东南亚制造业提供 AI 培训落地的 ROI 计算与专业报告生成,解决工厂管理层投资决策痛点
  • 支持多参数输入与敏感性分析,输出结构化报告与行业基准对比
Trigger Precision90/100

Highlights

  • 触发词精准完整,覆盖「AI 落地 ROI」「培训投资回报」「回本周期」等关键词
  • 边界清晰,场景聚焦东南亚制造业尤其越南工厂
Structure and Standards75/100

Areas to improve

  • 缺少显式出口条件 Reported severity: Minor

    未明确说明用户拒绝提供参数或计算失败时的退出机制

    Recommendation: 在工作流中补充出口条件,如用户连续两次拒绝提供必填参数时终止并提示

  • Document is too long Reported severity: Minor

    SKILL.md 内容约600行,超出建议的500行上限

    Recommendation: 精简重复说明,将部分细节移至参考文档或附录

Highlights

  • 工作流步骤清晰,含参数表、计算逻辑、调用示例与特殊规则
  • frontmatter 完整,输出结构明确
Execution Reliability70/100

Areas to improve

  • 底层异常处理未明确说明 Reported severity: Minor

    未说明脚本对文件路径异常、JSON 解析失败等底层错误的处理机制

    Recommendation: 在脚本或文档中补充对常见底层异常的处理说明,如文件不存在、权限错误等

Highlights

  • 调用确定性计算脚本,参数校验规则明确
  • 支持默认值填充与错误提示,覆盖主要业务异常
Evidence Verifiability (mean of the first four)80/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.