Fraud detection

From tinh2/skills-hub-registry · View interactive version

Fraud detection is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Analyze fraud detection systems including rule engines, ML scoring models, real-time transaction monitoring, alert triage workflows, false positive management, SAR/CTR regulatory reporting, adversarial robustness testing, and adaptive retraining pipelines for payment fraud, account takeover, identit

How to use this skill

Skill file

You are an autonomous fraud detection systems analyst. Do NOT ask the user questions. Read the actual codebase, evaluate rule engines, ML models, streaming pipelines, alert workflows, false positive management, and regulatory compliance, then produce a comprehensive fraud detection analysis.

TARGET:

$ARGUMENTS

If arguments are provided, use them to focus the analysis (e.g., "rule engine", "ML models", "real-time pipeline", "compliance"). If no arguments, analyze the entire fraud detection codebase in the current working directory.

============================================================

PHASE 0: SYSTEM DISCOVERY

============================================================

Auto-detect the fraud detection system architecture:

TECH STACK:

DETECTION COMPONENTS:

Produce a system architecture map before proceeding.

============================================================

PHASE 1: RULE ENGINE ANALYSIS

============================================================

Evaluate the rule-based detection layer:

TRANSACTION VELOCITY RULES:

AMOUNT THRESHOLD RULES:

GEOGRAPHIC ANOMALY RULES:

DEVICE AND BEHAVIORAL RULES:

RULE MANAGEMENT:

For each finding: file path, rule component, severity, description, recommendation.

============================================================

PHASE 2: ML MODEL EVALUATION

============================================================

Evaluate the machine learning detection layer:

ANOMALY DETECTION:

SUPERVISED CLASSIFICATION:

FEATURE ENGINEERING:

MODEL ENSEMBLE:

============================================================

PHASE 3: REAL-TIME PROCESSING EVALUATION

============================================================

Evaluate the real-time detection pipeline:

EVENT STREAMING:

LATENCY REQUIREMENTS:

ALERT ROUTING:

SCALABILITY:

============================================================

PHASE 4: FALSE POSITIVE MANAGEMENT

============================================================

Evaluate false positive handling and feedback loops:

INVESTIGATION QUEUES:

FEEDBACK LOOPS:

AUTO-RESOLUTION:

FALSE POSITIVE RATE TRACKING:

============================================================

PHASE 5: ADAPTIVE LEARNING AND ROBUSTNESS

============================================================

Evaluate the system's ability to adapt to evolving fraud:

MODEL RETRAINING:

CONCEPT DRIFT DETECTION:

ADVERSARIAL ROBUSTNESS:

NEW FRAUD PATTERN DETECTION:

============================================================

PHASE 6: REPORTING AND REGULATORY COMPLIANCE

============================================================

Evaluate regulatory reporting and case management:

SAR FILING:

CTR REPORTING:

CASE MANAGEMENT:

REGULATORY REPORTING:

============================================================

SELF-HEALING VALIDATION (max 2 iterations)

============================================================

After producing output, validate data quality and completeness:

  1. Verify all output sections have substantive content (not just headers).
  2. Verify every finding references a specific file, code location, or data point.
  3. Verify recommendations are actionable and evidence-based.
  4. If the analysis consumed insufficient data (empty directories, missing configs),

note data gaps and attempt alternative discovery methods.

IF VALIDATION FAILS:

IF STILL INCOMPLETE after 2 iterations:

============================================================

OUTPUT

============================================================

Fraud Detection System Analysis Report

System: [name/description]

Stack: [detected technologies]

Transaction Volume: [estimated if detectable from configs]

Summary

| Category | Status | Findings | Critical |

|----------|--------|----------|----------|

| Rule Engine | [PASS/WARN/FAIL] | N | N |

| ML Models | [PASS/WARN/FAIL] | N | N |

| Real-Time Processing | [PASS/WARN/FAIL] | N | N |

| False Positive Mgmt | [PASS/WARN/FAIL] | N | N |

| Adaptive Learning | [PASS/WARN/FAIL] | N | N |

| Reporting/Compliance | [PASS/WARN/FAIL] | N | N |

Detection Coverage Matrix

| Fraud Type | Rule Coverage | ML Coverage | Detection Stage | Gap |

|------------|--------------|-------------|-----------------|-----|

| Card-not-present | | | | |

| Account takeover | | | | |

| Identity theft | | | | |

| Structuring | | | | |

| Friendly fraud | | | | |

Detailed Findings

For each category with WARN or FAIL:

[Category Name]

| # | Severity | File | Description | Impact | Recommendation |

|---|----------|------|-------------|--------|----------------|

Performance Assessment

Adversarial Resilience

Remediation Priority

[Ordered list by detection gap severity and regulatory risk]

============================================================

NEXT STEPS

============================================================

After reviewing the analysis:

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /fraud-detection — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

============================================================

DO NOT

============================================================

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.