AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

MLOps Validation

skill-mlops-courses-mlops-coding-skills-mlops-validation · by MLOps-Courses

Guide to implement rigorous validation layers including static analysis, automated testing, structured logging, and security scanning.

No reviews yet
0 installs
31 views
0.0% view→install

Install

$ agentstack add skill-mlops-courses-mlops-coding-skills-mlops-validation

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

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

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-mlops-courses-mlops-coding-skills-mlops-validation)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of MLOps Validation? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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.

  1. Typing:
  • Tool: ty.
  • Rule: No Any (unless absolutely necessary). Fully typed function signatures.
  • DataFrames: Use pandera schemas to validate DataFrame structures/types.
  • Classes: Use pydantic for data modeling and runtime validation.
  1. Linting & Formatting:
  • Tool: ruff (replaces black, isort, pylint, flake8).
  • Rule: Zero tolerance for linter errors. Use noqa sparingly and with justification.
  • Config: Centralize in pyproject.toml.

2. Testing Strategy

Verify behavior and prevent regressions.

  1. Tool: pytest.
  2. Structure: Mirror src/ in tests/.

``text src/pkg/mod.py -> tests/test_mod.py ``

  1. Fixtures: Use tests/conftest.py for shared setup (mock data, temp paths).
  2. Coverage: Aim for high coverage (>80%) on core business logic. Use pytest-cov.
  3. 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.

  1. Tool: loguru (replacing stdlib logging).
  2. Format: Use structured logging (JSON) in production for queryability.
  3. Levels:
  • DEBUG: Low-level tracing (payloads, internal state).
  • INFO: Key business events (Job started, Model saved).
  • ERROR: Actionable failures (with stack traces).
  1. Context: Include context (Job ID, Model Version) in logs.

4. Security

Protect the supply chain and runtime.

  1. Dependencies: Use GitHub Dependabot to patch vulnerable packages.
  2. Code Scanning: Run bandit to detect hardcoded secrets or unsafe patterns (e.g., eval, yaml.load).
  3. Secrets: NEVER log secrets. Sanitize outputs.

Self-Correction Checklist

  • [ ] Type Safety: Does ty pass without errors?
  • [ ] Lint Cleanliness: Does ruff check pass?
  • [ ] Test Discovery: Does pytest successfully find modules in src/?
  • [ ] Log Format: Are production logs serializing to JSON?
  • [ ] Security: Has bandit scanned the codebase?

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.