acquire-codebase-knowl…
Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like "map this codebase", "document…
Credit risk data cleaning and variable screening pipeline for pre-loan modeling. Use when working with raw credit data that needs quality assessment, missing value analysis, or variable selection before modeling. it covers data loading and formatting, abnormal period filtering,
$ npx -y skills add github/awesome-copilot --skill datanalysis-credit-risk --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/datanalysis-credit-riskContext preview
The summary Claude sees to decide when to auto-load this skill.
Credit risk data cleaning and variable screening pipeline for pre-loan modeling. Use when working with raw credit data that needs quality assessment, missing value analysis, or variable selection before modeling. it covers data loading and formatting, abnormal period filtering,
name: datanalysis-credit-risk description: Credit risk data cleaning and variable screening pipeline for pre-loan modeling. Use when working with raw credit data that needs quality assessment, missing value analysis, or variable selection before modeling. it covers data loading and formatting, abnormal period filtering, missing rate calculation, high-missing variable removal,low-IV variable filtering, high-PSI variable removal, Null Importance denoising, high-correlation variable removal, and cleaning report generation. Applicable scenarios arecredit risk data cleaning, variable screening, pre-loan modeling preprocessing.
# Run the complete data cleaning pipeline python ".github/skills/datanalysis-credit-risk/scripts/example.py"
The data cleaning pipeline consists of the following 11 steps, each executed independently without deleting the original data:
1. **Get Data** - Load and format raw data 2. **Organization Sample Analysis** - Statistics of sample count and bad sample rate for each organization 3. **Separate OOS Data** - Separate out-of-sample (OOS) samples from modeling samples 4. **Filter Abnormal Months** - Remove months with insufficient bad sample count or total sample count 5. **Calculate Missing Rate** - Calculate overall and organization-level missing rates for each feature 6. **Drop High Missing Rate Features** - Remove features with overall missing rate exceeding threshold 7. **Drop Low IV Features** - Remove features with overall IV too low or IV too low in too many organizations 8. **Drop High PSI Features** - Remove features with unstable PSI 9. **Null Importance Denoising** - Remove noise features using label permutation method 10. **Drop High Correlation Features** - Remove high correlation features based on original gain 11. **Export Report** - Generate Excel report containing details and statistics of all steps
| 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 |
The generated Excel report contains the following sheets:
1. **汇总** - Summary information of all steps, including operation results and conditions 2. **机构样本统计** - Sample count and bad sample rate for each organization 3. **分离OOS数据** - OOS sample and modeling sample counts 4. **Step4-异常月份处理** - Abnormal months that were removed 5. **缺失率明细** - Overall and organization-level missing rates for each feature 6. **Step5-有值率分布统计** - Distribution of features in different value ratio ranges 7. **Step6-高缺失率处理** - High missing rate features that were removed 8. **Step7-IV明细** - IV values of each feature in each organization and overall 9. **Step7-IV处理** - Features that do not meet IV conditions and low IV organizations 10. **Step7-IV分布统计** - Distribution of features in different IV ranges 11. **Step8-PSI明细** - PSI values of each feature in each organization each month 12. **Step8-PSI处理** - Features that do not meet PSI conditions and unstable organizations 13. **Step8-PSI分布统计** - Distribution of features in different PSI ranges 14. **Step9-null importance处理** - Noise features that were removed 15. **Step10-高相关性剔除** - High correlation features that were removed
A community-created collection of custom agents, instructions, skills, hooks, workflows, and plugins to supercharge your GitHub Copilot experience.
Repo: github/awesome-copilot
Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like "map this codebase", "document…
Run the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps `npx github:microsoft/agentrc…
Generate tailored AI agent instruction files via AgentRC instructions command. Produces .github/copilot-instructions.md (default, recommended for Copilot in VS…
Help the user pick, write, or apply an AgentRC policy. Policies customise readiness scoring by disabling irrelevant checks, overriding impact/level, setting…
Use this skill when the user shares ad campaign performance data and asks what to cut, scale, or test. Trigger for prompts like "analyze my ad campaigns",…
Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.