Skip to content

sumsub/agent-skills / skills/sumsub-create-kyt-rules

sumsub-create-kyt-rules

Verified

Configure 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.

FileKindSize
SKILL.mdskill md33.5 KB
examples/eval-finance-hold.jsonconfig340 B
examples/minimal.jsonconfig49 B
references/kyt-rule-schema.mdmarkdown21.2 KB
scripts/create_kyt_client_list.shexecutablescript410 B
scripts/get_kyt_applicant_assessment.shexecutablescript346 B
scripts/get_kyt_bundle.shscript550 B
scripts/get_kyt_client_list.shexecutablescript364 B
scripts/get_kyt_risk_level_settings.shexecutablescript314 B
scripts/get_kyt_rule.shexecutablescript346 B
scripts/get_kyt_rules.shexecutablescript565 B
scripts/get_kyt_tags.shexecutablescript331 B
scripts/patch_kyt_applicant_assessment.shexecutablescript1.8 KB
scripts/patch_kyt_risk_level_settings.shexecutablescript1.1 KB
scripts/post_kyt_rule.shexecutablescript1.1 KB
scripts/post_kyt_tag.shexecutablescript1015 B
scripts/sumsub_curl.shexecutablescript2.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}"
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
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: 196kUpdated Claude CodeCodexVerifiedInstall