Back to Skills

ml-expert

DNYoussef
Updated Today
35 views
9
2
9
View on GitHub
Designaidesign

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 CommandRecommended
/plugin add https://github.com/DNYoussef/context-cascade
Git CloneAlternative
git clone https://github.com/DNYoussef/context-cascade.git ~/.claude/skills/ml-expert

Copy 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-debugger first).

Guardrails

  • Structure-first: maintain SKILL.md, examples/, tests/, resources/, and agents/; 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

  1. Intake & Goals
    • Identify objective, metrics (accuracy/F1/RMSE/latency), constraints (hardware, model size, privacy).
    • Confirm data availability, provenance, and allowed tooling.
  2. Design
    • Choose architecture and loss/optimization strategy; plan data splits and augmentation; define monitoring signals.
    • Draft experiment plan with baseline + targeted variants.
  3. 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.
  4. 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.
  5. 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

DNYoussef/context-cascade
Path: skills/specialists/ml-expert

Related Skills

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

creating-opencode-plugins

Meta

This skill provides the structure and API specifications for creating OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It offers implementation patterns for JavaScript/TypeScript modules that intercept and extend the AI assistant's lifecycle. Use it when you need to build event-driven plugins for monitoring, custom handling, or extending OpenCode's capabilities.

View skill

sglang

Meta

SGLang 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.

View skill

evaluating-llms-harness

Testing

This 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.

View skill