- Home
- Skills
- Agents & Orchestration
- Feature Engineer (agent)
Feature Engineer (agent)
Feature Engineer (agent): Designs feature stores, feature pipelines, and encoding strategies that ensure consistent feature computation across training and serving
$10
Feature Engineer (agent)
Example session with this skill installed
Design a feature store architecture for a Laravel app that tracks user clickstream data to predict churn. We use Redis for real-time lookups and PostgreSQL for historical data.
- Read your context and instructions
- Compiled the feature engineer agent
I have designed a dual-layered feature store architecture for your churn prediction model, focusing on consistency between your Redis real-time layer and PostgreSQL historical records.
Feature Store Architecture: User Churn Prediction
1. Summary
A hybrid storage strategy using a 'Write-Aside' pattern. Real-time events update Redis counters for low-latency inference, while a daily ETL process synchronizes these into PostgreSQL for model retraining.
2. Details
Encoding Strategy
| Feature Name | Type | Encoding | Rationale |
|---|---|---|---|
last_login_at | Numerical | Recency (Days) | Converts timestamps to a decaying weight. |
session_duration | Numerical | Log Scaling | Normalizes outliers in long-running sessions. |
page_category | Categorical | One-Hot | Handles discrete navigation paths (Home, Pricing, Docs). |
Pipeline Definition
// app/Services/FeatureStore/ChurnFeatureEngine.php
namespace App\Services\FeatureStore;
class ChurnFeatureEngine
{
/**
* Computes real-time features from Redis clickstream data.
*/
public function getInferenceVector(int $userId): array
{
$data = Redis::hgetall("user:{$userId}:features");
return [
'login_recency' => $this->calculateDays($data['last_login']),
'view_count_24h' => (int) ($data['view_count'] ?? 0),
'pricing_hit' => (bool) ($data['hit_pricing'] ?? false),
];
}
}
3. Assumptions
- Redis keys are structured using user IDs as primary hashes.
- PostgreSQL contains a
sessionstable withstarted_atandended_attimestamps. - The model expects a flat vector of 12 features.
4. Risks and Open Questions
- Latency: If clickstream volume exceeds 10k events/sec, Redis atomic increments may require sharding.
- Skew: Ensure the PHP
calculateDayslogic exactly matches the Pythontimedeltalogic used in training.
5. Verification
- Checked against
shared/coding-standards.md: PSR-12 compliant. - Checked against
shared/security-guidelines.md: No raw SQL used; Redis keys are prefixed to prevent collision.
Next steps
- Implement the
ChurnFeatureEngineservice class. - Set up a Redis event listener to increment
view_count_24hon every PageView event. - Map the one-hot encoding values for
page_categoryto a shared JSON config.
Connects securely to your tools. The creator never sees your data.
About this skill
Inconsistent feature definitions and training-serving skew break machine learning models in production. This skill installs a senior Feature Engineer agent into your workflow to design feature stores, encoding strategies, and data pipelines specifically for Laravel environments. It ensures that the logic used to train your models matches the logic used in your live application.
What it does
- Architects feature stores by designing structured repositories for offline and online feature access.
- Defines encoding strategies for categorical and numerical data to maintain mathematical integrity across datasets.
- Builds pipeline specs that detail the transformation steps from raw data sources to model-ready tensors.
- Validates consistency between training environments and production Laravel applications to prevent drift.
How it works
- The agent analyzes your data schema and identifies specific machine learning objectives.
- It restates your goal and lists technical assumptions regarding your data sources and latency requirements.
- It drafts a plan for feature computation, including transformation logic and storage layers.
- It generates the final architecture and implementation details following strict Laravel and PHP coding standards.
Frameworks & tools
Tailored for the Laravel ecosystem and PHP 8.x environments. It integrates with common data architecture principles and follows specialized security and coding guidelines for data engineering.
Why this beats prompting it yourself
Standard prompts often hallucinate API capabilities or ignore the specific constraints of the Laravel framework. This skill uses a hardened prompt library that forces the agent to list assumptions and verify results against established security and architecture baselines.
Use cases
- Design a feature store for a Laravel-based recommendation engine.
- Create encoding pipelines for high-cardinality categorical data.
- Standardize feature computation logic between Python training scripts and PHP production APIs.
- Audit existing data pipelines for training-serving skew and security vulnerabilities.
Known limitations
Does not perform actual database migrations or destructive actions. It requires a clear description of the data schema to provide accurate architectural designs.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 7 days ago
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.