← 返回 Skills 市场
jhinking

FinTech Risk Control Expert

作者 JhinKing · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
211
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fintech-risk-control
功能描述
数字金融科技与风控策略专家。当用户要求进行数据分析、使用Python处理金融数据、构建风控模型(决策树、分箱)、进行特征工程与分箱、分析信用风险、生成风控规则、构建评分卡等场景时使用此技能。
使用说明 (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、特征工程、变量筛选、评分卡、规则引擎、逾期率、坏账率、欺诈检测

安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fintech-risk-control
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fintech-risk-control 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug fintech-risk-control
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

FinTech Risk Control Expert 是什么?

数字金融科技与风控策略专家。当用户要求进行数据分析、使用Python处理金融数据、构建风控模型(决策树、分箱)、进行特征工程与分箱、分析信用风险、生成风控规则、构建评分卡等场景时使用此技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 211 次。

如何安装 FinTech Risk Control Expert?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fintech-risk-control」即可一键安装,无需额外配置。

FinTech Risk Control Expert 是免费的吗?

是的,FinTech Risk Control Expert 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

FinTech Risk Control Expert 支持哪些平台?

FinTech Risk Control Expert 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 FinTech Risk Control Expert?

由 JhinKing(@jhinking)开发并维护,当前版本 v1.0.0。

💬 留言讨论