Customer Churn Predictor

    by Pratiksha Singh

    1

    XGBoost-based telecom churn predictor that scores customer risk and suggests retention actions.

    Free

    Security scanned

    Works with the AI Agents you already use

    Customer Churn Predictor

    Example session with this skill installed

    Analyze this customer: Female, not a senior, no partner or dependents, 3 months tenure, Fiber optic, no security/backup, Month-to-month contract, Electronic check, MonthlyCharges 80.5, Total 241.5.

    • Read your context and instructions
    • Compiled the customer churn predictor
    • Generated the data export

    I have processed the customer data through the XGBoost predictor. Here is the churn risk assessment based on the provided account details.

    Churn Risk Analysis

    MetricValue
    Churn Probability0.742
    PredictionCHURN
    Risk LevelHIGH
    Tenure3 Months
    ContractMonth-to-month

    Retention Strategy

    The model identifies this customer as a high churn risk, likely driven by the short tenure and the month-to-month contract combined with high-cost Fiber optic service without any security or backup value-adds.

    Recommended Actions:

    • Contract Migration: Offer a discount to move from Month-to-month to a One-year or Two-year contract to stabilize the account.
    • Value Bundling: Provide a 3-month trial of Online Security and Online Backup to increase product stickiness.
    • Tech Support Outreach: Proactively contact the customer to ensure the Fiber optic installation and service quality meet expectations.

    Next steps

    1. Run python scripts/predict.py --csv path/to/customers.csv to check if these patterns are consistent across your segment.
    2. Review the TotalCharges vs MonthlyCharges ratio to verify if there are unpaid balances contributing to the score.

    customers.csv

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Manual churn analysis is slow and prone to bias. This skill provides an XGBoost-powered classifier to identify high-risk telecom customers based on account activity and service usage.

    What it does

    • Risk Scoring calculates the churn probability (0.0 to 1.0) for individual customer profiles.
    • Categorical Classification labels customers as CHURN or STAY based on a 0.5 probability threshold.
    • Batch Processing handles CSV files to score entire customer databases in one operation.
    • Retention Strategy generates targeted suggestions like contract migrations or tech support outreach based on risk levels.
    • Validation enforces strict schema matching for 19 required customer fields to ensure model integrity.

    How it works

    1. Provide customer data as a JSON object or a path to a CSV file.
    2. The agent validates the input against model/schema.json to ensure all 19 required fields (tenure, contract type, charges, etc.) are present and valid.
    3. The skill runs scripts/predict.py to load the churn_model.json XGBoost model.
    4. It returns a risk report containing the probability, risk bucket (Low, Medium, High), and actionable retention advice.

    Frameworks & tools

    Python 3.9+, XGBoost, Pandas, and NumPy.

    Why this beats prompting it yourself

    Prompting an LLM to "predict churn" results in hallucinations based on general patterns rather than actual data distributions. This skill uses a localized XGBoost model trained on 7,043 real records, providing mathematical probability scores that an LLM cannot compute reliably.

    Use cases

    • Identify month-to-month customers with high charges for annual contract incentives.
    • Audit a CSV of recent cancellations to find common service friction points.
    • Generate weekly risk reports for customer success teams to prioritize outreach.

    Known limitations

    Trained specifically on telecom data. Recall on churners is approximately 55 percent, meaning it may miss nearly half of actual churners. Requires all 19 fields to be populated exactly.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    • Free with an Agensi account

    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Listed5 days ago

    What's inside

    Creator

    Pratiksha Singh

    Pratiksha Singh

    Learner

    Frequently Asked Questions

    The skill requires a specific set of 19 data points, including tenure, contract type, and monthly charges. A schema.json file is included to help you validate your data format before running predictions.

    Unlike LLMs that guess based on text, this skill uses a specialized XGBoost model trained on 7,043 real-world records to provide mathematically grounded probability scores. This ensures consistent, data-driven results rather than creative hallucinations.

    You will receive the pre-trained XGBoost model file, the Python prediction scripts, the data validation schema, and documentation on how to integrate the skill into your existing workflow.

    The model is currently optimized specifically for the telecommunications industry; while it can be adapted, using it for other sectors like SaaS or retail without retraining may result in lower accuracy.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Free