Feature Engineering Toolkit
Create, select, and transform features to improve ML model performance, handling scaling, encoding, interaction terms, and importance analysis.
Overview
leverage the feature-engineering-toolkit plugin to enhance machine learning models. It automates the process of creating new features, selecting the most relevant ones, and transforming existing features to better suit the model's needs. Use this skill to improve the accuracy, efficiency, and interpretability of machine learning models.
How It Works
- Analyzing Requirements: Claude analyzes the user's request and identifies the specific feature engineering task required.
- Generating Code: Claude generates Python code using the feature-engineering-toolkit plugin to perform the requested task. This includes data validation and error handling.
- Executing Task: The generated code is executed, creating, selecting, or transforming features as requested.
- Providing Insights: Claude provides performance metrics and insights related to the feature engineering process, such as the importance of newly created features or the impact of transformations on model performance.
When to Use This Skill
This skill activates when you need to:
- Create new features from existing data to improve model accuracy.
- Select the most relevant features from a dataset to reduce model complexity and improve efficiency.
- Transform features to better suit the assumptions of a machine learning model (e.g., scaling, normalization, encoding).
Examples
Example 1: Improving Model Accuracy
User request: "Create new features from the existing 'age' and 'income' columns to improve the accuracy of a customer churn prediction model."
The skill will:
- Generate code to create interaction terms between 'age' and 'income' (e.g., age * income, age / income).
- Execute the code and evaluate the impact of the new features on model performance.
Example 2: Reducing Model Complexity
User request: "Select the top 10 most important features from the dataset to reduce the complexity of a fraud detection model."
The skill will:
- Generate code to calculate feature importance using a suitable method (e.g., Random Forest, SelectKBest).
- Execute the code and select the top 10 features based on their importance scores.
Best Practices
- Data Validation: Always validate the input data to ensure it is clean and consistent before performing feature engineering.
- Feature Scaling: Scale numerical features to prevent features with larger ranges from dominating the model.
- Encoding Categorical Features: Encode categorical features appropriately (e.g., one-hot encoding, label encoding) to make them suitable for machine learning models.
Integration
This skill integrates with the feature-engineering-toolkit plugin, providing a seamless way to create, select, and transform features for machine learning models. It can be used in conjunction with other Claude Code skills to build complete machine learning pipelines.
Prerequisites
- Appropriate file access permissions
- Required dependencies installed
Instructions
- Invoke this skill when the trigger conditions are met
- Provide necessary context and parameters
- Review the generated output
- Apply modifications as needed
Output
The skill produces structured output relevant to the task.
Error Handling
- Invalid input: Prompts for correction
- Missing dependencies: Lists required components
- Permission errors: Suggests remediation steps
Resources
- Project documentation
- Related skills and commands
1---
2name: engineering-features-for-machine-learning
3description: |
4 Execute create, select, and transform features to improve machine learning model performance. Handles feature scaling, encoding, and importance analysis. Use when asked to "engineer features" or "select features". Trigger with relevant phrases based on skill purpose.
5allowed-tools: Read, Write, Edit, Grep, Glob, Bash(cmd:*)
6version: 1.0.0
7author: Jeremy Longshore <jeremy@intentsolutions.io>
8license: MIT
9compatible-with: claude-code, codex, openclaw
10metadata:
11 source: https://skillmd.com/skills/micsapp/engineering-features-for-machine-learning
12---
13
14# Feature Engineering Toolkit
15
16Create, select, and transform features to improve ML model performance, handling scaling, encoding, interaction terms, and importance analysis.
17
18## Overview
19
20leverage the feature-engineering-toolkit plugin to enhance machine learning models. It automates the process of creating new features, selecting the most relevant ones, and transforming existing features to better suit the model's needs. Use this skill to improve the accuracy, efficiency, and interpretability of machine learning models.
21
22## How It Works
23
241. **Analyzing Requirements**: Claude analyzes the user's request and identifies the specific feature engineering task required.
252. **Generating Code**: Claude generates Python code using the feature-engineering-toolkit plugin to perform the requested task. This includes data validation and error handling.
263. **Executing Task**: The generated code is executed, creating, selecting, or transforming features as requested.
274. **Providing Insights**: Claude provides performance metrics and insights related to the feature engineering process, such as the importance of newly created features or the impact of transformations on model performance.
28
29## When to Use This Skill
30
31This skill activates when you need to:
32- Create new features from existing data to improve model accuracy.
33- Select the most relevant features from a dataset to reduce model complexity and improve efficiency.
34- Transform features to better suit the assumptions of a machine learning model (e.g., scaling, normalization, encoding).
35
36## Examples
37
38### Example 1: Improving Model Accuracy
39
40User request: "Create new features from the existing 'age' and 'income' columns to improve the accuracy of a customer churn prediction model."
41
42The skill will:
431. Generate code to create interaction terms between 'age' and 'income' (e.g., age * income, age / income).
442. Execute the code and evaluate the impact of the new features on model performance.
45
46### Example 2: Reducing Model Complexity
47
48User request: "Select the top 10 most important features from the dataset to reduce the complexity of a fraud detection model."
49
50The skill will:
511. Generate code to calculate feature importance using a suitable method (e.g., Random Forest, SelectKBest).
522. Execute the code and select the top 10 features based on their importance scores.
53
54## Best Practices
55
56- **Data Validation**: Always validate the input data to ensure it is clean and consistent before performing feature engineering.
57- **Feature Scaling**: Scale numerical features to prevent features with larger ranges from dominating the model.
58- **Encoding Categorical Features**: Encode categorical features appropriately (e.g., one-hot encoding, label encoding) to make them suitable for machine learning models.
59
60## Integration
61
62This skill integrates with the feature-engineering-toolkit plugin, providing a seamless way to create, select, and transform features for machine learning models. It can be used in conjunction with other Claude Code skills to build complete machine learning pipelines.
63
64## Prerequisites
65
66- Appropriate file access permissions
67- Required dependencies installed
68
69## Instructions
70
711. Invoke this skill when the trigger conditions are met
722. Provide necessary context and parameters
733. Review the generated output
744. Apply modifications as needed
75
76## Output
77
78The skill produces structured output relevant to the task.
79
80## Error Handling
81
82- Invalid input: Prompts for correction
83- Missing dependencies: Lists required components
84- Permission errors: Suggests remediation steps
85
86## Resources
87
88- Project documentation
89- Related skills and commands