- Home
- Skills
- Agents & Orchestration
- Customer Churn Predictor
Customer Churn Predictor
XGBoost-based telecom churn predictor that scores customer risk and suggests retention actions.
Free
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
| Metric | Value |
|---|---|
| Churn Probability | 0.742 |
| Prediction | CHURN |
| Risk Level | HIGH |
| Tenure | 3 Months |
| Contract | Month-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
- Run
python scripts/predict.py --csv path/to/customers.csvto check if these patterns are consistent across your segment. - Review the
TotalChargesvsMonthlyChargesratio to verify if there are unpaid balances contributing to the score.
customers.csv
CSV · data export
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
- Provide customer data as a JSON object or a path to a CSV file.
- The agent validates the input against
model/schema.jsonto ensure all 19 required fields (tenure, contract type, charges, etc.) are present and valid. - The skill runs
scripts/predict.pyto load thechurn_model.jsonXGBoost model. - 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Creator
Pratiksha Singh
Learner
Frequently Asked Questions
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.