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 언어
영어
스타
2
포크
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에서 보기