← Back to Skills Marketplace
211
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install fintech-risk-control
Description
数字金融科技与风控策略专家。当用户要求进行数据分析、使用Python处理金融数据、构建风控模型(决策树、分箱)、进行特征工程与分箱、分析信用风险、生成风控规则、构建评分卡等场景时使用此技能。
README (SKILL.md)
数字金融科技与风控策略专家
核心能力
- Python数据分析:使用pandas、numpy进行数据处理与统计分析
- 机器学习建模:决策树、随机森林等算法构建风控模型
- 特征工程:WOE编码、IV值计算、特征分箱与选择
- 风控策略:生成决策规则、构建评分卡、风险分层
工作流程
1. 数据预处理
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
# 数据加载与清洗
def load_and_clean_data(file_path):
df = pd.read_csv(file_path)
df = df.fillna(df.median())
for col in numeric_cols:
q1, q3 = df[col].quantile([0.25, 0.75])
iqr = q3 - q1
df = df[(df[col] >= q1 - 1.5*iqr) & (df[col] \x3C= q3 + 1.5*iqr)]
return df
2. 特征分箱(WOE/IV)
def calculate_woe_iv(df, feature, target, bins=10):
df['bin'] = pd.qcut(df[feature], q=bins, duplicates='drop')
grouped = df.groupby('bin')[target].agg(['sum', 'count'])
grouped.columns = ['bad', 'total']
grouped['good'] = grouped['total'] - grouped['bad']
total_bad = grouped['bad'].sum()
total_good = grouped['good'].sum()
grouped['woe'] = np.log((grouped['bad'] / total_bad) / (grouped['good'] / total_good + 1e-10))
grouped['iv'] = (grouped['bad']/total_bad - grouped['good']/total_good) * grouped['woe']
return grouped, grouped['iv'].sum()
3. 决策树建模
from sklearn.tree import DecisionTreeClassifier
from sklearn.metrics import roc_auc_score
def build_decision_tree_model(X_train, X_test, y_train, y_test, max_depth=5):
dt = DecisionTreeClassifier(max_depth=max_depth, min_samples_split=50,
min_samples_leaf=25, class_weight='balanced')
dt.fit(X_train, y_train)
auc = roc_auc_score(y_test, dt.predict_proba(X_test)[:, 1])
return dt, auc
4. 风控规则生成
from sklearn.tree import export_text
def generate_risk_rules(tree_model, feature_names):
return export_text(tree_model, feature_names=feature_names)
常用指标阈值
| 指标 | 阈值建议 |
|---|---|
| KS值 | >0.2 可接受 |
| AUC | >0.7 较好 |
| IV值 | >0.3 强特征 |
| PSI | \x3C0.1 稳定 |
触发关键词
风控、信用评分、风险评估、决策树、分箱、WOE、IV、特征工程、变量筛选、评分卡、规则引擎、逾期率、坏账率、欺诈检测
Usage Guidance
This skill is instruction-only and coherent with its stated purpose, but before using it: (1) ensure the agent's runtime has the expected Python libraries (pandas, numpy, scikit-learn); (2) never feed sensitive production data unless you trust the execution environment — test on anonymized or sample data first; (3) review and/or run the provided code snippets in a sandbox because there are minor bugs (e.g., undefined numeric_cols) and you should validate that outputs meet your regulatory and business requirements; (4) if you expect the agent to run these snippets autonomously, confirm the agent does not have network or filesystem permissions you don't intend to allow.
Capability Analysis
Type: OpenClaw Skill
Name: fintech-risk-control
Version: 1.0.0
The skill bundle provides standard Python-based templates and instructions for financial risk modeling, including feature engineering (WOE/IV) and decision tree construction. The code in SKILL.md uses legitimate data science libraries (pandas, scikit-learn) and lacks any indicators of malicious intent, data exfiltration, or prompt injection.
Capability Assessment
Purpose & Capability
The name/description (financial risk modeling, WOE/IV, decision trees, scoring) match the SKILL.md content. The skill's examples and functions (pandas, numpy, sklearn) are exactly what you'd expect for the described capabilities; there are no unrelated credentials, binaries, or config requirements.
Instruction Scope
SKILL.md is an instruction-only document with Python snippets that operate on local CSV input, compute WOE/IV, build decision trees, and export rules. The instructions reference only data processing and ML tasks relevant to the stated purpose. Minor coding issues (e.g., numeric_cols is referenced but not defined) are implementation bugs rather than scope creep.
Install Mechanism
No install spec and no code files; nothing is downloaded or installed by the skill. This minimizes persistence and external install risk. The runtime does assume a Python environment with pandas/numpy/sklearn available, but the skill does not attempt to install them.
Credentials
The skill declares no environment variables, no credentials, and no config paths. That is proportionate for an instruction-only ML/risk-modeling helper that works on local data files.
Persistence & Privilege
always is false and model invocation is not disabled (normal). The skill does not request permanent presence or system-level changes and does not modify other skills or system configuration.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install fintech-risk-control - After installation, invoke the skill by name or use
/fintech-risk-control - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of fintech-risk-control.
- Provides digital finance technology and risk control strategy expertise.
- Supports Python data analysis, financial data processing, and machine learning modeling (e.g., decision trees, random forests).
- Includes feature engineering techniques like WOE encoding, IV calculation, and feature binning/selection.
- Enables generation of risk control rules and construction of credit scoring cards.
- Offers best-practice thresholds for key risk metrics (KS, AUC, IV, PSI).
- Activates on keywords such as 风控, 信用评分, 决策树, WOE, IV, 评分卡, etc.
Metadata
Frequently Asked Questions
What is FinTech Risk Control Expert?
数字金融科技与风控策略专家。当用户要求进行数据分析、使用Python处理金融数据、构建风控模型(决策树、分箱)、进行特征工程与分箱、分析信用风险、生成风控规则、构建评分卡等场景时使用此技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 211 downloads so far.
How do I install FinTech Risk Control Expert?
Run "/install fintech-risk-control" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is FinTech Risk Control Expert free?
Yes, FinTech Risk Control Expert is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does FinTech Risk Control Expert support?
FinTech Risk Control Expert is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created FinTech Risk Control Expert?
It is built and maintained by JhinKing (@jhinking); the current version is v1.0.0.
More Skills