/data-engineering:datanalysis-credit-riskfrom data-engineering
Executes a credit risk data cleaning and variable screening pipeline for pre-loan modeling, including missing value analysis, abnormal period filtering, high-missing removal, low-IV filtering, high-PSI filtering, Null Importance denoising, high-correlation removal, organization-level analysis, OOS separation, and Excel report generation.
Ships in data-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Execute or adapt the bundled credit-risk preprocessing pipeline without deleting original data, using independent steps to produce a cleaned modeling dataset, separated OOS samples, out-of-sample documentation, modeling/OOS feature decisions, and an Excel cleaning report.
DATA_PATH when available.Use $ARGUMENTS as a path to the dataset, a config summary, or a request for a specific pipeline step. If $ARGUMENTS is empty, run the complete pipeline only when required parameters are already known; otherwise collect them.
| Parameter | Meaning |
|---|---|
DATA_PATH | Data file path; parquet format is preferred. |
DATE_COL | Date column name used for month/period analysis. |
Y_COL | Label column name for bad/good sample calculations. |
ORG_COL | Organization column name. |
KEY_COLS | Primary key column name list. |
OOS_ORGS | Out-of-sample organization list. |
Run steps independently and preserve intermediate outputs so results can be compared.
get_dataset().org_analysis().OOS_ORGS from modeling samples.drop_abnormal_ym().missing_check().missing_ratio with drop_highmiss_features().drop_lowiv_features().drop_highpsi_features().drop_highnoise_features().drop_highcorr_features().export_cleaning_report().Quick start:
python ".github/skills/datanalysis-credit-risk/scripts/example.py"
| Function | Purpose | Module |
|---|---|---|
get_dataset() | Load and format data. | references.func |
org_analysis() | Organization sample analysis. | references.func |
missing_check() | Calculate missing rate. | references.func |
drop_abnormal_ym() | Filter abnormal months. | references.analysis |
drop_highmiss_features() | Drop high missing rate features. | references.analysis |
drop_lowiv_features() | Drop low IV features. | references.analysis |
drop_highpsi_features() | Drop high PSI features. | references.analysis |
drop_highnoise_features() | Null Importance denoising. | references.analysis |
drop_highcorr_features() | Drop high correlation features. | references.analysis |
iv_distribution_by_org() | IV distribution statistics. | references.analysis |
psi_distribution_by_org() | PSI distribution statistics. | references.analysis |
value_ratio_distribution_by_org() | Value ratio distribution statistics. | references.analysis |
export_cleaning_report() | Export cleaning report. | references.analysis |
| Step | Parameter | Default | Meaning |
|---|---|---|---|
| Abnormal month filtering | min_ym_bad_sample | 10 | Minimum bad sample count per month. |
| Abnormal month filtering | min_ym_sample | 500 | Minimum total sample count per month. |
| Missing rate | missing_ratio | 0.6 | Overall missing rate threshold. |
| IV | overall_iv_threshold | 0.1 | Minimum overall IV. |
| IV | org_iv_threshold | 0.1 | Minimum single-organization IV. |
| IV | max_org_threshold | 2 | Maximum tolerated count of organizations below org_iv_threshold. |
| PSI | psi_threshold | 0.1 | PSI instability threshold. |
| PSI | max_months_ratio | 1/3 | Maximum unstable month ratio. |
| PSI | max_orgs | 6 | Maximum unstable organization count. |
| Null Importance | n_estimators | 100 | Number of trees. |
| Null Importance | max_depth | 5 | Maximum tree depth. |
| Null Importance | gain_threshold | 50 | Gain difference threshold. |
| High correlation | max_corr | 0.9 | Correlation threshold. |
| High correlation | top_n_keep | 20 | Keep top N features by original gain ranking. |
| Sheet | Contents |
|---|---|
汇总 | Summary information of all steps, operation results, and conditions. |
机构样本统计 | Sample count and bad sample rate for each organization. |
分离OOS数据 | OOS sample and modeling sample counts. |
Step4-异常月份处理 | Abnormal months removed. |
缺失率明细 | Overall and organization-level missing rates for each feature. |
Step5-有值率分布统计 | Distribution of features in value-ratio ranges. |
Step6-高缺失率处理 | High missing rate features removed. |
Step7-IV明细 | IV values by feature, organization, and overall. |
Step7-IV处理 | Features failing IV conditions and low-IV organizations. |
Step7-IV分布统计 | Distribution of features in IV ranges. |
Step8-PSI明细 | PSI values by feature, organization, and month. |
Step8-PSI处理 | Features failing PSI conditions and unstable organizations. |
Step8-PSI分布统计 | Distribution of features in PSI ranges. |
Step9-null importance处理 | Noise features removed by Null Importance. |
Step10-高相关性剔除 | High correlation features removed. |
scripts/example.py: runnable example for the complete data cleaning pipeline.references/func.py: data loading, formatting, organization analysis, and missing-rate support functions.references/analysis.py: abnormal month filtering, feature screening, distributions, denoising, correlation removal, and report export functions.OOS_ORGS before feature screening.## Credit risk cleaning result
**Status:** complete | partial | blocked
**Data:** `DATA_PATH=<path>`
**Label/date/org:** `Y_COL=<label>`, `DATE_COL=<date>`, `ORG_COL=<organization>`
**Keys:** `KEY_COLS=<columns>`
**OOS organizations:** `OOS_ORGS=<organizations>`
### Steps
| Step | Function | Result | Features removed | Notes |
| --- | --- | --- | --- | --- |
| Get Data | `get_dataset()` | pass | 0 | <shape> |
| Drop High Missing Rate Features | `drop_highmiss_features()` | pass | <count> | `missing_ratio=0.6` |
### Report
Generated Excel report with sheets: `汇总`, `机构样本统计`, `分离OOS数据`, `Step4-异常月份处理`, `缺失率明细`, `Step5-有值率分布统计`, `Step6-高缺失率处理`, `Step7-IV明细`, `Step7-IV处理`, `Step7-IV分布统计`, `Step8-PSI明细`, `Step8-PSI处理`, `Step8-PSI分布统计`, `Step9-null importance处理`, `Step10-高相关性剔除`.
DATA_PATH, DATE_COL, Y_COL, ORG_COL, KEY_COLS, and OOS_ORGS are known or explicitly reported missing.min_ym_bad_sample, min_ym_sample, missing_ratio, overall_iv_threshold, org_iv_threshold, max_org_threshold, psi_threshold, max_months_ratio, max_orgs, n_estimators, max_depth, gain_threshold, max_corr, and top_n_keep.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin data-engineering6 skills in this plugin
/bigquery-pipeline-auditAudit Python and BigQuery pipeline scripts for cost exposure, dry-run safety, bounded backfills, query pruning, idempotent writes, and observability. Use this skill when reviewing client.query, load_table_from_*, extract_table, copy_table, DDL/DML query jobs, external API calls, LLM calls, or storage writes before production use./pinecone-ragBuild production RAG pipelines and persistent agent memory with Pinecone as the vector database backend. Use this skill when indexing documents for semantic search, building retrieval-augmented generation, storing agent memory across sessions, implementing hybrid search, designing namespace isolation for multi-tenant agents, creating embedding pipelines, or scaling a searchable knowledge base beyond local storage./snowflake-semanticviewCreate, alter, validate, and troubleshoot Snowflake semantic views with Snowflake CLI. Use this skill when asked to build semantic layer DDL, validate CREATE SEMANTIC VIEW or ALTER SEMANTIC VIEW statements, add synonyms and comments, query SEMANTIC_VIEW output, or set up snow connections./sql-server-table-reconciliationCompare SQL Server tables across source and target instances for migration validation, ETL verification, production versus staging checks, schema drift, missing rows, extra rows, and column mismatches. Use this skill when the user asks for SQL Server reconciliation reports, and use mssql-python with Apache Arrow for fast extraction./ssma-consoleGenerate XML configuration and execute Microsoft SQL Server Migration Assistant for Oracle console operations without wrapper scripts. Use when asked to create an SSMA project, assess Oracle to SQL Server migration, convert schema, synchronize target schema, migrate data, or troubleshoot SSMAforOracleConsole.exe XML scripts.Other plugins' skills for the same job