Referral abuse detection v1

From vivekhaldar/proceda · View interactive version

Referral abuse detection v1 is an AI agent skill from the GitHub repository vivekhaldar/proceda. Detects referral abuse violations by investigating accounts, analyzing traffic patterns, and scoring violation indicators to determine enforcement action.

How to use this skill

Skill file

Step 1: Investigate Account

Call investigate_account with account_id. Record all returned fields: address_validity, email_pattern_suspicious, website_verified, business_description, account_status, connected_accounts, and login_geographic_consistency.

Step 2: Analyze Traffic Patterns

Call analyze_traffic_patterns with account_id. Record all returned fields: revenue_amount, click_through_rate, page_views, device_distribution, referral_source_quality, payment_method_shared, and order_patterns_suspicious.

Step 3: Get Enforcement Guidelines

Call determine_enforcement_action with account_id to retrieve enforcement action guidelines.

Step 4: Calculate Violation Scores and Determine Enforcement Action

Using the data from Steps 1 and 2, calculate four violation scores by counting how many indicators are TRUE for each category:

Abusive Account Creation Score (threshold >= 3):

Misleading Ad Copy Score (threshold >= 3):

Personal Orders Score (threshold >= 3):

No Violation Score (threshold >= 4):

Determine the violation type based on the HIGHEST score that meets its threshold. If multiple scores meet their thresholds, choose the highest score. If tied, use priority: Abusive Account Creation > Misleading Ad Copy > Personal Orders. If no score meets any threshold, the result is INCONCLUSIVE.

Apply the enforcement action:

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.