ml-expert
About
The ml-expert skill designs, implements, and optimizes production-grade machine learning models and training pipelines. Use it for architecture design, translating research to code, and optimizing inference, but not for pure data analysis. It enforces structured project organization and includes explicit guardrails for resilient ML system development.
Quick Install
Claude Code
Recommended/plugin add https://github.com/DNYoussef/context-cascadegit clone https://github.com/DNYoussef/context-cascade.git ~/.claude/skills/ml-expertCopy and paste this command in Claude Code to install this skill
Documentation
STANDARD OPERATING PROCEDURE
Purpose
Ship resilient ML systems: architecture design, training pipelines, optimization, and deployment readiness with explicit guardrails.
Triggers
- Positive: Implementing architectures, training/tuning models, fixing training instabilities, optimizing inference, translating research into code.
- Negative: Pure data analysis (route to data scientist) or root-cause training incidents (prefer
ml-training-debuggerfirst).
Guardrails
- Structure-first: maintain
SKILL.md,examples/,tests/,resources/, andagents/; backfill missing docs before execution. - Constraint hygiene (prompt-architect): collect HARD/SOFT/INFERRED requirements (targets, latency, memory, compliance).
- Validation discipline (skill-forge): adversarial tests for data leakage, class imbalance, and distribution shift; always run baseline + ablations.
- Evidence + confidence ceiling: report metrics with data splits and
Confidence: X.XX (ceiling: TYPE Y.YY)(inference/report 0.70; research 0.85; observation/definition 0.95). - Safety: never evaluate on train data; never touch test set until final validation; document assumptions and monitoring plan.
Execution Phases
- Intake & Goals
- Identify objective, metrics (accuracy/F1/RMSE/latency), constraints (hardware, model size, privacy).
- Confirm data availability, provenance, and allowed tooling.
- Design
- Choose architecture and loss/optimization strategy; plan data splits and augmentation; define monitoring signals.
- Draft experiment plan with baseline + targeted variants.
- Implementation
- Build reproducible pipelines (seed control, config versioning); implement training loop with logging (TensorBoard/MLflow/W&B).
- Enforce safe defaults: mixed precision gated by tests, gradient clipping where appropriate, checkpointing with retention policy.
- Validation
- Run baseline then ablations; check class-wise metrics, calibration, and drift sensitivity.
- Profile training/inference latency; quantify memory footprint.
- Security checks: adversarial probes, prompt/feature injection handling for LLM/vision models.
- Deployment Readiness
- Package artifacts (model weights, config, preprocessing, schema); provide rollout + rollback steps.
- Attach monitoring plan (drift, performance, cost) and ownership.
Output Format
- Request summary and constraints (HARD/SOFT/INFERRED).
- Architecture + data plan, experiment matrix, and validation results.
- Deployment checklist with monitoring hooks and rollback path.
- Confidence statement with ceiling and evidence source.
Validation Checklist
- Data splits clean (no leakage) and documented.
- Baseline + ablations executed; metrics reported with variance.
- Latency/memory within targets; profiling attached.
- Safety checks run (bias, drift, adversarial probes) or noted N/A.
- Reproducibility ensured (seeds/configs/versioning).
- Confidence ceiling stated.
VCL COMPLIANCE APPENDIX (Internal)
[[HON:teineigo]] [[MOR:root:M-L]] [[COM:Model+Schmiede]] [[CLS:ge_skill]] [[EVD:-DI<gozlem>]] [[ASP:nesov.]] [[SPC:path:/skills/specialists/ml-expert]]
[[HON:teineigo]] [[MOR:root:E-P-S]] [[COM:Epistemik+Tavan]] [[CLS:ge_rule]] [[EVD:-DI<gozlem>]] [[ASP:nesov.]] [[SPC:coord:EVD-CONF]]
[[HON:teineigo]] [[MOR:root:S-F-T]] [[COM:Safety+Test]] [[CLS:ge_guardrail]] [[EVD:-DI<gozlem>]] [[ASP:nesov.]] [[SPC:axis:quality]]
Confidence: 0.74 (ceiling: inference 0.70) - SOP rebuilt with prompt-architect constraints and skill-forge validation loops while preserving ML execution depth.
GitHub Repository
Related Skills
sglang
MetaSGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.
evaluating-llms-harness
TestingThis Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.
llamaguard
OtherLlamaGuard is Meta's 7-8B parameter model for moderating LLM inputs and outputs across six safety categories like violence and hate speech. It offers 94-95% accuracy and can be deployed using vLLM, Hugging Face, or Amazon SageMaker. Use this skill to easily integrate content filtering and safety guardrails into your AI applications.
langchain
MetaLangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.
