一键导入
mlops-validation
Guide to implement rigorous validation layers including static analysis, automated testing, structured logging, and security scanning.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide to implement rigorous validation layers including static analysis, automated testing, structured logging, and security scanning.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Guide to refine MLOps projects with task automation, containerization, CI/CD pipelines, and robust experiment tracking.
Guide to prepare MLOps projects for sharing, collaboration, and community engagement.
Guide to transform prototypes into robust, distributable Python packages using the src layout, hybrid paradigm, and strict configuration management.
Guide to initialize a new MLOps project with standard tools (uv, git, VS Code) and best practices.
Guide to implement full stack observability including reproducibility, lineage, monitoring, alerting, and explainability.
Guide to create structured, reproducible Jupyter notebooks for MLOps prototyping, emphasizing configuration management and pipeline integrity.
| name | MLOps Validation |
| description | Guide to implement rigorous validation layers including static analysis, automated testing, structured logging, and security scanning. |
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?