Skip to main content

intake-validation

Correlate a return case with its order and customer profile, and validate completeness. USE FOR intake of a new return, matching an RMA to an order, checking required fields/photos. DO NOT USE FOR the eligibility or refund decision (that is policy-eligibility / disposition-decision).

来源信息

仓库
aiappsgbb/threadlight-skills
最近来源活动
2026年9月8日 13:38
检测到的 SKILL.md 语言
英语
星标
1
分支
5

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
intake-validation
description
Correlate a return case with its order and customer profile, and validate completeness. USE FOR intake of a new return, matching an RMA to an order, checking required fields/photos. DO NOT USE FOR the eligibility or refund decision (that is policy-eligibility / disposition-decision).
# Intake & Validation > Implements BR-004 (partial: completeness gate) and feeds BR-001/002/003. ## Operational contract - **Inputs**: an RMA id or an order id. - **Outputs**: a consolidated case object `{ return, order, customer }` and a nonterminal `complete` / `incomplete` verdict with the missing items. Intake never chooses a persisted decision before the known-risk gate. - **Deps**: tools `returns_get_case`, `oms_get_order`, `customer_get_profile`. - **Idempotency**: read-only; safe to re-run. - **Failure behavior**: if any of the three fetches fails after retries → mark the case `system_error` and hand to fraud-escalation for escalation. ## Procedure 1. Resolve the case: if given an RMA, call `returns_get_case`; if given an order id, call `returns_list_open` and match. 2. Fetch the originating order via `oms_get_order(return.order_id)`. - If `not_found` → collect "order could not be matched"; continue the customer read. 3. Fetch the customer via `customer_get_profile(return.customer_id)`. 4. Completeness check (BR-004): - `reason_code` present? - if `reason_code == arrived_damaged` → `photos_provided == true`? - order line matched to the returned SKU? - Any failure → collect the exact missing field(s), without finalizing a verdict. 5. Pass the consolidated case and missing fields to fraud-escalation. Known authoritative BR-003 risk requires `escalate_to_supervisor` even on incomplete cases. Only without known risk choose `request_more_info`; never refund while risk data is unknown. Complete cases continue to policy-eligibility. ## Output schema ```json { "verdict": "complete | incomplete", "missing": ["reason_code"], "case": { "return": {}, "order": {}, "customer": {} } } ```
在 GitHub 查看