A share feature engineering

From aifinlab/FinClaw · View interactive version

A share feature engineering is an AI agent skill from the GitHub repository aifinlab/FinClaw. A股特征工程/因子合成。当用户说"特征工程"、"因子合成"、"feature engineering"、"特征构造"、"因子加工"、"特征变换"时触发。基于 cn-stock-data 获取数据,进行系统化特征工程与因子合成。支持 formal/brief 两种输出风格。

How to use this skill

Skill file

特征工程/因子合成助手

数据获取

通过 cn-stock-data skill 获取数据:

分析工作流

Step 1: 基础特征构造

Step 2: 高阶特征合成

Step 3: 特征质量评估

Step 4: 特征选择与降维

Step 5: 输出报告

输出格式

formal 风格(研报级)

# 特征工程报告

## 一、特征池概览
| 类别 | 数量 | 有效率 |
|------|------|--------|

## 二、Top特征
[特征名、IC、ICIR、覆盖率]

## 三、特征组合
[最终特征集、相关性矩阵]

## 四、建议
[特征优化方向]

brief 风格(快速分析)

## 特征工程速览
- 构造 200 个候选特征
- 有效特征 45 个 (IC>0.02)
- Top特征:20日动量IC=0.05
- 建议:加入行业中性化特征

参考 references/feature-engineering-guide.md 获取详细方法论与 A股实证研究。

使用示例

示例 1: 基本使用

# 调用 skill
result = run_skill({
    "param1": "value1",
    "param2": "value2"
})

示例 2: 命令行使用

python scripts/run_skill.py --input data.json
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.