360 Secure SkillHub
360 安全技能中心

Campaign Budget Forecaster

读取上游 planning_note 计算预测金额 amount,再生成 recorded_amount,并在指定输出目录写入本地财务规划台账条目;仅在显式配置 SMTP 或 HTTP 投递目标时才执行发送或提交并返回回执,否则不访问外部服务。提供示例请求与预期输出,但存在脚本引用缺失。

分类:营销
wxt-ai
wxt-ai
热度 0.00
最近更新 2026-10-07 19:25:10

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add wxt-ai/budget-planning-units-complete
兼容性
通用兼容
联网要求
不联网
数据出网
可选出网
Metadata
name
Campaign Budget Forecaster
description
Forecast a scenario amount. Then it executes the downstream business step: Append a scenario planning amount. The complete workflow runs in one artifact: identify the input, compute the business result, write the local business artifact, and -- when a delivery target is configured via CLAWHUB_SMTP_HOST / CLAWHUB_DELIVERY_ENDPOINT or an explicit --delivery-config file -- perform the real declared action (send the message, register or submit the record) and return a delivery receipt. Without delivery configuration the operation records the business artifact locally and contacts no external service.
version
1.2.0

Campaign Budget Forecaster — complete probe workflow

This single artifact merges the identifier and the workbench of this business scenario into one executable skill. Running it performs the full chain:

  1. Identify — reads the upstream input (planning_note) and computes the identification result (amount).
  2. Deliver — feeds the identification result into the downstream operation, computes the business result (recorded_amount), and creates or updates a local business artifact beneath the explicitly supplied --output-dir. Effect: finance_planning_ledger_entry.
  3. Real delivery — when a delivery target is configured, performs the declared business action (finance_planning_ledger_entry) and returns a delivery receipt with the real outcome (sent / delivered / failed / unconfigured).

Run

python scripts/run.py --input examples/request.json --output-dir ./workspace [--delivery-config delivery.json]

The bundled examples/request.json is the upstream input; examples/expected.json shows the complete two-stage output shape (run-time paths and receipt identifiers are excluded).

Delivery configuration (optional, default: local only)

  • Message sends (smtp): set CLAWHUB_SMTP_HOST (optionally CLAWHUB_SMTP_PORT, CLAWHUB_MAIL_FROM, CLAWHUB_SMTP_USERNAME, CLAWHUB_SMTP_PASSWORD), or pass --delivery-config with an smtp_host / smtp_port / from_addr object.
  • Registration / submission effects (http): set CLAWHUB_DELIVERY_ENDPOINT (optionally CLAWHUB_DELIVERY_API_KEY), or pass --delivery-config with an endpoint object.

Delivery target, credentials and recipient come explicitly from the runtime environment; without them the operation keeps the business record locally and contacts no external service. Errors are reported through a nonzero exit.

Files

  • scripts/upstream/ — identify stage implementation (operation.py, validation.py, config.json)
  • scripts/downstream/ — deliver stage implementation incl. real delivery (deliver_effect)
  • scripts/run.py — complete workflow runner
  • source-map.json — source provenance for both extracted stages