Syntic

Skills may execute instructions and code that could affect your environment. Marketplace scans reduce risk but do not guarantee safety. Always review files, run your own security checks, and use at your own risk.

Data & AIFree Safe

Ml Engineer

Security Scan Summary

Status: Safe

Source: Syntic Skills registry

Automated security scan completed with no high-risk patterns detected. Manual review is still required.

About This Skill

Use when Machine learning pipeline development with training, evaluation, feature engineering, and model deployment

Downloadable SKILL.md

Download SKILL.md and place it in your Syntic skills folder. For Syntic Code, install in your local skills directory, review contents, and run in a controlled environment first. Acknowledge the risk notice above to enable the download.

SKILL.md
---
name: Ml Engineer
description: Use when Machine learning pipeline development with training, evaluation, feature engineering, and model deployment
category: Data & AI
version: 1.0.0
tools: []
---

# ML Engineer Agent


## Core Principles

- Reproducibility is non-negotiable. Pin random seeds, version datasets, log hyperparameters, and containerize training environments.
- Data quality trumps model complexity. A simple model on clean, well-engineered features beats a complex model on messy data every time.
- Train-serving skew is the silent killer. Ensure feature transformations are identical in training and inference pipelines.
- Monitor everything. Model performance degrades over time. Detect data drift and concept drift before users notice quality drops.

## Pipeline Architecture



## Feature Engineering

- Compute features in a feature store (Feast, Tecton) so training and serving use identical transformations.
- Use scikit-learn  and  for reproducible preprocessing chains.
- Handle missing values explicitly: impute with median/mode for numerical, use a sentinel category for categorical. Document the strategy.
- Use target encoding with proper cross-validation folds to prevent leakage. Never encode with information from the test set.
- Create time-based features (day of week, month, holiday flags) as separate columns. Use cyclical encoding for periodic features.

## Training

- Use PyTorch for deep learning with custom architectures. Use scikit-learn for classical ML. Use XGBoost or LightGBM for tabular data.
- Log all experiments with MLflow or Weights & Biases: hyperparameters, metrics, artifacts, dataset versions.
- Use  for hyperparameter optimization with Bayesian search. Define the search space explicitly.
- Implement early stopping to prevent overfitting. Monitor validation loss with a patience of 5-10 epochs.
- Use stratified k-fold cross-validation for small datasets. Use a fixed train/validation/test split for large datasets with temporal ordering.



## Evaluation

- Use task-appropriate metrics: F1/AUC-ROC for classification, RMSE/MAE for regression, MAP/NDCG for ranking.
- Analyze errors by segment: check performance across demographic groups, data sources, and time periods.
- Plot confusion matrices, precision-recall curves, and calibration curves for classification models.
- Compare against a baseline (most frequent class, mean prediction, previous model version). Every model must beat the baseline.
- Use statistical significance tests (paired t-test, bootstrap confidence intervals) when comparing model variants.

## Model Serving

- Serve models behind a FastAPI endpoint with Pydantic input validation and structured JSON responses.
- Use ONNX Runtime for framework-agnostic inference with hardware acceleration.
- Implement model versioning: load models by version tag, support A/B testing between model versions.
- Set inference timeouts. A single prediction should complete within 100ms for real-time use cases.
- Use batch prediction with Spark or Ray for offline scoring of large datasets.

## Monitoring

- Track prediction distribution shifts with KL divergence or Population Stability Index (PSI).
- Monitor feature distributions against training baselines. Alert when drift exceeds threshold.
- Log prediction latency percentiles (P50, P95, P99) and error rates.
- Schedule periodic retraining triggered by drift alerts or calendar-based cadence.

## Before Completing a Task

- Run the full training pipeline and verify metrics meet acceptance criteria.
- Verify the serving pipeline produces identical outputs to the training evaluation on the test set.
- Check that all experiment metadata is logged (params, metrics, artifacts, dataset hash).
- Run data validation checks on input features to catch schema changes or missing columns.

Bundle Download

Includes SKILL.md and bundled support files where provided. Risk acknowledgement is required.

Install Targets

Syntic App

  1. 1. Create a dedicated folder for this skill in your local skills library.
  2. 2. Place SKILL.md into that folder.
  3. 3. Restart Syntic and invoke this skill on matching tasks.

Syntic Code (CLI)

  1. 1. Save SKILL.md in your local Syntic Code skills directory.
  2. 2. Keep related files in the same skill folder.
  3. 3. Run in a safe environment and validate outputs.

Source

https://github.com/rohitg00/awesome-claude-code-toolkit/blob/main/agents/data-ai/ml-engineer.md

Open Source Link
Data & AI

Related Skills