.gemini/skills/MLOps Validation/SKILL.md
Guide to implement rigorous validation layers including static analysis, automated testing, structured logging, and security scanning.
npx skillsauth add fmind/mlops-python-package MLOps ValidationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
To ensure software quality, reliability, and security through automated validation layers. This skill enforces Strict Typing (ty), Unified Linting (ruff), Comprehensive Testing (pytest), and Structured Logging (loguru).
uvCatch errors before they run.
ty.Any (unless absolutely necessary). Fully typed function signatures.pandera schemas to validate DataFrame structures/types.pydantic for data modeling and runtime validation.ruff (replaces black, isort, pylint, flake8).noqa sparingly and with justification.pyproject.toml.Verify behavior and prevent regressions.
Tool: pytest.
Structure: Mirror src/ in tests/.
src/pkg/mod.py -> tests/test_mod.py
Fixtures: Use tests/conftest.py for shared setup (mock data, temp paths).
Coverage: Aim for high coverage (>80%) on core business logic. Use pytest-cov.
Pattern: Use Given-When-Then in comments.
def test_pipeline_execution(input_data):
# Given: Valid input data
# When: The pipeline processes the data
# Then: The output content matches expectations
Enable observability and debugging.
loguru (replacing stdlib logging).DEBUG: Low-level tracing (payloads, internal state).INFO: Key business events (Job started, Model saved).ERROR: Actionable failures (with stack traces).Protect the supply chain and runtime.
GitHub Dependabot to patch vulnerable packages.bandit to detect hardcoded secrets or unsafe patterns (e.g., eval, yaml.load).ty pass without errors?ruff check pass?pytest successfully find modules in src/?bandit scanned the codebase?testing
Guide to create structured, reproducible Jupyter notebooks for MLOps prototyping, emphasizing configuration management and pipeline integrity.
testing
Guide to implement full stack observability including reproducibility, lineage, monitoring, alerting, and explainability.
tools
Guide to initialize a new MLOps project with standard tools (uv, git, VS Code) and best practices.
development
Guide to transform prototypes into robust, distributable Python packages using the src layout, hybrid paradigm, and strict configuration management.