Install
$ agentstack add skill-mlops-courses-mlops-coding-skills-mlops-validation ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
MLOps Validation
Goal
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).
Prerequisites
- Language: Python
- Manager:
uv - Context: Ensuring code quality before merge/deploy.
Instructions
1. Static Analysis (Typing & Linting)
Catch errors before they run.
- Typing:
- Tool:
ty. - Rule: No
Any(unless absolutely necessary). Fully typed function signatures. - DataFrames: Use
panderaschemas to validate DataFrame structures/types. - Classes: Use
pydanticfor data modeling and runtime validation.
- Linting & Formatting:
- Tool:
ruff(replaces black, isort, pylint, flake8). - Rule: Zero tolerance for linter errors. Use
noqasparingly and with justification. - Config: Centralize in
pyproject.toml.
2. Testing Strategy
Verify behavior and prevent regressions.
- Tool:
pytest. - Structure: Mirror
src/intests/.
``text src/pkg/mod.py -> tests/test_mod.py ``
- Fixtures: Use
tests/conftest.pyfor 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.
``python def test_pipeline_execution(input_data): # Given: Valid input data # When: The pipeline processes the data # Then: The output content matches expectations ``
3. Structured Logging
Enable observability and debugging.
- Tool:
loguru(replacing stdliblogging). - Format: Use structured logging (JSON) in production for queryability.
- Levels:
DEBUG: Low-level tracing (payloads, internal state).INFO: Key business events (Job started, Model saved).ERROR: Actionable failures (with stack traces).
- Context: Include context (Job ID, Model Version) in logs.
4. Security
Protect the supply chain and runtime.
- Dependencies: Use
GitHub Dependabotto patch vulnerable packages. - Code Scanning: Run
banditto detect hardcoded secrets or unsafe patterns (e.g.,eval,yaml.load). - Secrets: NEVER log secrets. Sanitize outputs.
Self-Correction Checklist
- [ ] Type Safety: Does
typass without errors? - [ ] Lint Cleanliness: Does
ruff checkpass? - [ ] Test Discovery: Does
pytestsuccessfully find modules insrc/? - [ ] Log Format: Are production logs serializing to JSON?
- [ ] Security: Has
banditscanned the codebase?
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: MLOps-Courses
- Source: MLOps-Courses/mlops-coding-skills
- License: MIT
- Homepage: https://mlops-coding-course.fmind.dev/0.%20Overview/0.6.%20Resources.html
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.