sumsub/agent-skills / skills/sumsub-create-kyt-rules
sumsub-create-kyt-rules
VerifiedConfigure KYT transaction monitoring rules with tags, applicant risk scoring and risk levels. TRIGGER when the user says "create / add / set up KYT rules / TM rules", "configure transaction monitoring", describes scoring logic (flag/block/hold transactions by amount, country, direction, peer, or other conditions), wants to "update / change / edit an existing rule" (by name or title), asks to "configure applicant scoring / risk scoring / assessment", "set up tags", "define risk levels / thresholds", or "configure applicant risk". SKIP for applicant levels, questionnaires, PoA presets, workflows, or non-TM tasks.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 33.5 KB |
| examples/eval-finance-hold.json | config | 340 B |
| examples/minimal.json | config | 49 B |
| references/kyt-rule-schema.md | markdown | 21.2 KB |
| scripts/create_kyt_client_list.shexecutable | script | 410 B |
| scripts/get_kyt_applicant_assessment.shexecutable | script | 346 B |
| scripts/get_kyt_bundle.sh | script | 550 B |
| scripts/get_kyt_client_list.shexecutable | script | 364 B |
| scripts/get_kyt_risk_level_settings.shexecutable | script | 314 B |
| scripts/get_kyt_rule.shexecutable | script | 346 B |
| scripts/get_kyt_rules.shexecutable | script | 565 B |
| scripts/get_kyt_tags.shexecutable | script | 331 B |
| scripts/patch_kyt_applicant_assessment.shexecutable | script | 1.8 KB |
| scripts/patch_kyt_risk_level_settings.shexecutable | script | 1.1 KB |
| scripts/post_kyt_rule.shexecutable | script | 1.1 KB |
| scripts/post_kyt_tag.shexecutable | script | 1015 B |
| scripts/sumsub_curl.shexecutable | script | 2.1 KB |
scripts/post_kyt_rule.sh
View on GitHub#!/usr/bin/env bash
# Create a KYT rule.
# Usage: post_kyt_rule.sh [PAYLOAD_FILE|-]
# Reads JSON payload from a file or stdin ("-" or omit for stdin).
# The payload is the rule object; this script wraps it in the request
# envelope: {"rule": <payload>, "metadata": {"source": "aiAgent"}}.
#
# Exit codes:
# 0 — HTTP 200; response body is KytTxnRuleView JSON (created rule).
# 1 — HTTP 4xx/5xx; response body contains the error message, HTTP status on stderr.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
: "${SUMSUB_APP_TOKEN:?}" "${SUMSUB_SECRET_KEY:?}"
BODY_ARG="${1:--}"
RULE_TMP="$(mktemp)"
trap 'rm -f "${RULE_TMP}"' EXIT
if [[ "${BODY_ARG}" == "-" ]]; then
cat >"${RULE_TMP}"
else
cp "${BODY_ARG}" "${RULE_TMP}"
fi
WRAPPED_TMP="$(mktemp)"
trap 'rm -f "${RULE_TMP}" "${WRAPPED_TMP}"' EXIT
python3 -c "
import json, sys
rule = json.load(open(sys.argv[1]))
print(json.dumps({'rule': rule, 'metadata': {'source': 'aiAgent'}}))
" "${RULE_TMP}" >"${WRAPPED_TMP}"
exec bash "$SCRIPT_DIR/sumsub_curl.sh" POST "/resources/api/agent/tm/rules" "${WRAPPED_TMP}"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |