Referral abuse detection v2

From vivekhaldar/proceda · View interactive version

Referral abuse detection v2 is an AI agent skill from the GitHub repository vivekhaldar/proceda. Detects and investigates referral abuse violations to determine risk severity and appropriate enforcement actions.

How to use this skill

Skill file

Step 1: Investigate Account Details

Call the investigate_account tool using the account_id parameter to retrieve account investigation data. Review the user's account, promotional websites, address validity, email authenticity, business description, account status, and account age.

Step 2: Analyze Temporal Patterns

Call the analyze_temporal_patterns tool using the account_id parameter to retrieve temporal activity data. Analyze registration timing for coordinated creation, review off-hours activity percentage, detect unusual traffic surges, and cross-reference registration timestamps with connected accounts.

Step 3: Analyze Traffic and Relations

Call the analyze_traffic_patterns tool using the account_id parameter to retrieve traffic and transaction data. Review key metrics (revenue patterns, click-through rates, page views, device distribution), conduct URL analysis, and perform relationship analysis (connected accounts, shared payment methods).

Step 4: Retrieve Violation History

Call the get_violation_history tool using the account_id parameter to retrieve detailed violation history. Review the previous violations count, last violation date, warning status, and rehabilitation status.

Step 5: Determine Financial Impact

Call the get_financial_impact tool using the account_id parameter to retrieve financial metrics. Assess the total lifetime revenue, refund rate percentage, and customer complaint count.

Step 6: Document Investigation Findings

[OPTIONAL]

Gather evidence such as screenshots, screen recordings, URLs, and any other relevant information to support the findings. Make a ticket if the total earnings on the account meet thresholds or if the enforcement action may attract Legal, PR, or Brand Safety concerns.

Step 7: Calculate Violation Indicators and Determine Violation Type

Calculate scores based on the gathered data by counting TRUE indicators (ensure boolean values are compared as true/false):

  1. Abusive Account Creation Score:

(Score >= 4 → Abusive Account Creation)

  1. Misleading Ad Copy Score:

(Score >= 4 → Misleading Ad Copy)

  1. Personal Orders Score:

(Score >= 3 → Personal Orders (Related))

  1. Temporal Fraud Score:

(Score >= 4 → Temporal Fraud Pattern)

  1. No Violation Score:

(Score >= 6 → No Violation)

Determine violation type based on HIGHEST score. If tied, use priority: Temporal Fraud > Abusive Account Creation > Misleading Ad Copy > Personal Orders. If no score meets its threshold, the result is INCONCLUSIVE.

Step 8: Calculate Risk Severity Level

Calculate Risk Severity for violations (not applicable for "No Violation" or "Inconclusive"):

CRITICAL Risk if ANY of:

HIGH Risk if ANY of:

MEDIUM Risk if ANY of:

LOW Risk:

Step 9: Determine Enforcement Action

Call the determine_enforcement_action tool using the account_id parameter, then apply the following enforcement matrix based on the violation type and risk severity:

For Abusive Account Creation or Misleading Ad Copy or Temporal Fraud:

For Personal Orders (Related):

For No Violation:

For INCONCLUSIVE:

[APPROVAL REQUIRED]

Step 10: Output Final Decision

Output the final enforcement decision using the exact value determined in the previous step. Include the final_decision value in the complete_step summary using XML tags.

Example:

<final_decision>Permanent Account Closure</final_decision>

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.