Skill: guohongbin-git/mlops-automation-cn (version 1.0.0)

--- name: mlops-automation-cn version: 1.0.0 description: Task automation, containerization, CI/CD, and experiment tracking license: MIT --- # MLOps Automation 🤖 Automate tasks, containers, CI/CD, and ML experiments. ## Features ### 1. Task Runner (just) ⚡ Copy justfile: ```bash cp references/justfile ../your-project/ ``` Tasks: - `just check` - Run all checks - `just test` - Run tests - `just build` - Build package - `just clean` - Remove artifacts - `just train` - Run training ### 2. Docker 🐳 Multi-stage build: ```bash cp references/Dockerfile ../your-project/ docker build -t my-model . docker run my-model ``` Optimizations: - Layer caching (uv sync before copy src/) - Minimal runtime image - Non-root user ### 3. CI/CD (GitHub Actions) 🔄 Automated pipeline: ```bash cp references/ci-workflow.yml ../your-project/.github/workflows/ci.yml ``` Runs on push/PR: - Lint (Ruff + MyPy) - Test (pytest + coverage) - Build (package + Docker) ## Quick Start ```bash # Setup task runner cp references/justfile ./ # Setup CI mkdir -p .github/workflows cp references/ci-workflow.yml .github/workflows/ci.yml # Setup Docker cp references/Dockerfile ./ # Test locally just check docker build -t test . ``` ## MLflow Tracking ```python import mlflow mlflow.autolog() with mlflow.start_run(): mlflow.log_param("lr", 0.001) model.fit(X, y) mlflow.log_metric("accuracy", acc) ``` ## Author Converted from [MLOps Coding Course](https://github.com/MLOps-Courses/mlops-coding-skills) ## Changelog ### v1.0.0 (2026-02-18) - Initial OpenClaw conversion - Added justfile template - Added Dockerfile - Added CI workflow

path: package.json
content: {
  "name": "mlops-automation-cn",
  "version": "1.0.0",
  "description": "MLOps Automation - Task runner, Docker, CI/CD, experiment tracking",
  "main": "SKILL.md",
  "keywords": [
    "mlops",
    "automation",
    "docker",
    "ci-cd",
    "mlflow",
    "just"
  ],
  "author": "money-maker-ai",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/MLOps-Courses/mlops-coding-skills"
  }
}


path: references/ci-workflow.yml
content: name: CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  check:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ["3.10", "3.11", "3.12"]

    steps:
      - uses: actions/checkout@v4

      - name: Install uv
        uses: astral-sh/setup-uv@v4
        with:
          enable-cache: true

      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v5
        with:
          python-version: ${{ matrix.python-version }}

      - name: Install dependencies
        run: uv sync --all-extras --dev

      - name: Run linters
        run: |
          uv run ruff check src/ tests/
          uv run ruff format --check src/ tests/
          uv run mypy src/

      - name: Run tests
        run: uv run pytest tests/ -v --cov=src --cov-report=xml

      - name: Upload coverage
        uses: codecov/codecov-action@v4
        if: matrix.python-version == '3.11'
        with:
          file: ./coverage.xml

  build:
    runs-on: ubuntu-latest
    needs: check
    if: github.event_name == 'push' && github.ref == 'refs/heads/main'

    steps:
      - uses: actions/checkout@v4

      - name: Build package
        run: |
          pip install build
          python -m build

      - name: Build Docker image
        run: docker build -t my-model:${{ github.sha }} .


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)