Guide · Agent skill
How to use the Credit Risk Data Cleaning agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The Credit Risk Data Cleaning skill (datanalysis-credit-risk) gives an AI agent a ready-made pipeline for preparing raw credit data before a pre-loan model is built. It is aimed at credit risk modelers, data analysts who need a documented variable screening process, and teams that want an Excel record of why each variable was removed. After following this guide you will know how to install the skill, how to ask the agent to run it, and what the output report contains.
Quick start
- 1Install the skill. Download the ZIP from this page and unzip it into ~/.claude/skills/ or your project's .claude/skills/ folder, or upload it under Settings → Capabilities → Skills.
- 2Install the Python packages. Make sure Python, pandas, numpy, toad, lightgbm, scikit-learn, openpyxl, joblib and tqdm are available.
- 3Prepare your dataset. Place a credit dataset in parquet, csv, xlsx or pkl format. Parquet is the format the source recommends.
- 4Ask the agent in plain language. Describe the task, name your file and columns, and mention credit data cleaning or variable screening.
- 5Set or accept the parameters. Enter thresholds for each step, or press through to use the defaults such as a 0.6 missing rate and a 0.1 IV threshold.
- 6Review the Excel report. Open the generated workbook and check the summary sheet and the removed-feature sheets for each step.
What is an agent skill and what does this one do?
An agent skill is a folder of instructions and scripts that an AI agent can load when a task matches the skill's description. This one contains a SKILL.md file, two Python modules in references/ (analysis.py and func.py), and an example script in scripts/example.py.
Once installed, the agent can run an 11-step cleaning pipeline. Each step runs independently and does not delete the original data, so results can be compared between steps.
- Load and format the raw data
- Count samples and bad sample rate per organization, and separate out-of-sample (OOS) data
- Filter abnormal months with too few bad or total samples
- Calculate missing rates and drop features that are mostly empty
- Drop features with low IV (information value) overall or in too many organizations
- Drop features with unstable PSI (population stability index)
- Remove noise features with Null Importance denoising
- Remove highly correlated features based on original gain
- Export an Excel cleaning report
How do you install the skill?
Download the ZIP file for datanalysis-credit-risk from this page. Then choose one of the two options below.
For a personal install across all projects, unzip the file into ~/.claude/skills/. For a single project, unzip it into that project's .claude/skills/ folder. You can also upload the skill in the Claude apps under Settings → Capabilities → Skills.
- Personal: ~/.claude/skills/
- Project: .claude/skills/ inside your project folder
- Claude apps: Settings → Capabilities → Skills, then upload the ZIP
What do you need before running it?
The skill runs Python scripts, so Python must be available. It also needs several Python packages and a credit dataset in one of the supported formats. The source lists parquet as the best format for DATA_PATH, and also accepts csv, xlsx or pkl files.
- Python
- pandas, numpy, toad, lightgbm, scikit-learn, openpyxl, joblib, tqdm
- A credit dataset in parquet, csv, xlsx or pkl format
- Columns for the date, label (Y), organization and primary key
How do you trigger the skill with a natural request?
You do not need to type a command. Describe the task in plain language and mention credit data cleaning or variable screening. The agent matches your request to the skill's description and loads it. Name your file and columns so the agent can set the parameters.
Example requests you can type:
- Clean my credit dataset at data/loans.parquet. The date column is apply_month, the label is y, the organization column is org and the key is loan_id.
- Screen the variables in this loan data before I build a pre-loan model, and give me an Excel report.
- Remove features with more than 60% missing values and low IV from this credit file, then tell me what was dropped.
What does a run look like?
The quick-start script is run with Python from the skill folder. The skill's own instructions show this command:
- Parameters can be entered before each step, and default values are used if you leave them blank.
- Defaults include a minimum of 10 bad samples and 500 total samples per month, a missing rate threshold of 0.6, an IV threshold of 0.1 and a PSI threshold of 0.1.
- IV and PSI calculations can use multiple processes to run faster.
- The final output is an Excel workbook with one sheet per step, plus a summary sheet.
python ".github/skills/datanalysis-credit-risk/scripts/example.py"What should you check before using it on sensitive data?
The skill runs scripts, so read the files before running them on your machine. Run it locally on data you are allowed to process.
The source states that the skill does not use the network. It also notes that network use is not documented in the files, so check this yourself before running it on sensitive data that contains personal information. The skill only filters data and does not validate a model, so model validation and human review are still needed before any lending decision.
- Runs scripts: yes
- Uses network: no (as stated in the listing, which also advises checking before use on sensitive data)
- The skill cleans and screens data; it does not approve or reject loans
- Keep your original data backed up, although the pipeline does not delete it
Tips for getting reliable results
Check the defaults against your own policy before running. The thresholds are parameters, so adjust them rather than accepting them blindly.
Read the Excel sheets for the steps that matter most to you, especially the removed-feature sheets, to confirm each drop makes sense.
- Convert your data to parquet where possible, since the source recommends it.
- Set the organization and OOS organization lists correctly so OOS samples are separated from modeling samples.
- Use the step-by-step sheets (for example Step7-IV明细 and Step8-PSI明细) to trace why a variable was removed.
- Record the parameters you used so the cleaning can be repeated.
What people use it for
- Preparing a multi-organization loan dataset for a pre-loan scoring model
- Dropping features that are mostly empty before modeling
- Checking whether a variable's predictive power (IV) holds across organizations
- Finding variables whose distribution shifts over time (PSI) and documenting their removal
- Producing an Excel audit trail of variable screening for a model review
Frequently asked questions
Is the datanalysis-credit-risk skill free to use?
The listing states the skill is released under the MIT licence. Check the licence file in the download for the full terms before using it in your work.
How do I install an agent skill like this one?
Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use or into a project's .claude/skills/ folder. You can also upload it in the Claude apps under Settings → Capabilities → Skills.
What Python packages does the credit risk data cleaning skill need?
The listing requires Python with pandas, numpy, toad, lightgbm, scikit-learn, openpyxl, joblib and tqdm. Your dataset must be in parquet, csv, xlsx or pkl format.
Does the skill use the internet?
The listing says it does not use the network. It also says network use is not documented in the files, so check this before running it on sensitive personal data.
Can I use this skill for non-credit data?
No. The listing says it is not for general data cleaning unrelated to credit or lending, because the thresholds and steps are specific to credit risk modeling.
Does the skill decide whether to approve a loan?
No. The skill only filters and screens data. It does not validate the model, so model validation and human review are still required before lending decisions.
What should I do if the skill does not load?
Check that the folder is in ~/.claude/skills/ or .claude/skills/ and that the SKILL.md file is inside it. Confirm that the required Python packages are installed and that your dataset is in a supported format.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
This skill suits credit risk modelers and analysts who want a documented, repeatable way to screen variables before a pre-loan model and who need an Excel audit trail. It is not suited to general data cleaning, to making lending decisions without model validation, or to sensitive personal data until you have checked its network behaviour yourself.
Download the skill