360 Secure SkillHub
360 安全技能中心

Roi Incremental Tracking

在交付发生时用 CSV 账本记录保守节省时间和已确认现金,按用户配置的月度成本、时薪与周期计算 ROI;每月结算时写入汇总并运行 Python 脚本生成 HTML 仪表盘,报告现金 ROI、含时薪 ROI、环比以及风险规避与资产情况。

thiagocaltoe
thiagocaltoe
热度 15.73
最近更新 2026-07-08 09:21:50
分类:数据依赖:代码执行 / 读写文件应用场景:财务 / 报告撰写 / 数据处理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add roi-incremental-tracking
Metadata
name
roi-incremental-tracking
description
Track your AI agent's ROI incrementally — log time saved and direct cash as deliveries happen, then close the cycle monthly with an HTML dashboard.

Incremental ROI Tracking

Use this skill when the user asks to measure, log, or close out the agent's ROI / value cycle.

Purpose

Measure the value the agent generates incrementally, as deliveries happen, instead of reconstructing it from memory at the end of the month. One lightweight ledger row per relevant delivery; a monthly closeout turns the ledger into numbers and a dashboard.

Files

All tracking data lives in <workspace>/reports/roi/:

File Role
config.json User parameters (cost, hourly value, currency, cycle day)
ledger-current.csv Incremental ledger for the current cycle
monthly-summary.csv One row per closed cycle
render_roi_report.py Dashboard generator (copied from this skill's scripts/ folder)
index.html Static HTML dashboard, regenerated at closeout

First-run setup

If <workspace>/reports/roi/config.json does not exist, run setup before anything else:

  1. Ask the user for:
    • Monthly cost of running the agent (subscription + API + infra), a single number.
    • Currency symbol or code (e.g. USD, EUR, R$).
    • Base hourly value of the user's time — the conservative rate used to price minutes saved.
    • Optional alternative hourly scenarios (e.g. 50, 100, 180) kept for comparison only.
    • Cycle start day (1–28). The cycle runs from that day to the day before it in the next month. Default: 1.
  2. Save the answers to config.json:
{
  "monthly_cost": 100.0,
  "currency": "USD",
  "base_hourly_value": 25.0,
  "alternative_hourly_scenarios": [50, 100],
  "cycle_start_day": 1
}
  1. Create ledger-current.csv containing only the header row (see Ledger fields).
  2. Copy render_roi_report.py from this skill's scripts/ directory into <workspace>/reports/roi/.

Rules

  • Do not run heavy continuous collection for ROI. This skill costs almost nothing to maintain.
  • Add one ledger row only when a relevant delivery happens (task automated, report produced, problem caught, deal supported).
  • Use conservative minutes saved. When in doubt, estimate low.
  • Count direct cash only when confirmed with a closed value (invoice paid, discount obtained, refund recovered). Never count pipeline or expected revenue.
  • Keep risk avoided as narrative unless the user explicitly authorizes a monetary assumption.
  • If an estimate is uncertain, set include_in_closeout=no until the user reviews it.

Ledger fields

date,cycle_start,cycle_end,title,category,minutes_saved,cash_direct,confidence,evidence,include_in_closeout,notes
  • date — ISO date of the delivery (YYYY-MM-DD).
  • cycle_start / cycle_end — ISO dates of the cycle this row belongs to (derived from cycle_start_day).
  • title — short name of the delivery.
  • category — free tag (e.g. automation, report, support, sales).
  • minutes_saved — conservative integer estimate; 0 if none.
  • cash_direct — confirmed cash in the configured currency; 0 if none.
  • confidence — high | medium | low.
  • evidence — where proof lives (message link, file path, ticket id).
  • include_in_closeout — yes | no.
  • notes — anything else.

Monthly closeout

At the end of each cycle (when the current date reaches cycle_start_day again, or when the user asks):

  1. Append one summary row for the cycle to monthly-summary.csv with the header:
cycle_start,cycle_end,entries,minutes_saved,hours_value,cash_direct,total_value,monthly_cost,roi_cash_only,roi_cash_plus_hours,notes

where hours_value = minutes_saved / 60 * base_hourly_value, total_value = cash_direct + hours_value, and ROI values are value / monthly_cost (only rows with include_in_closeout=yes count).

  1. Regenerate the dashboard:
python3 <workspace>/reports/roi/render_roi_report.py
  1. Start a fresh ledger-current.csv for the new cycle (archive the old one as ledger-<cycle_start>.csv if the user wants history).

  2. Report to the user:

    • Cash-only ROI (confirmed cash vs monthly cost);
    • Cash + base-hour ROI (cash plus priced minutes vs monthly cost);
    • Comparison against the previous month;
    • Dashboard location (index.html);
    • Major risks avoided and persistent assets created, narrated separately from money.

Once multiple closed months exist, the dashboard's multi-month chart becomes the trend view — use it in the report.