mlops-initialization
Guide to initialize a new MLOps project with standard tools (uv, git, VS Code) and best practices.
Install
mkdir -p .claude/skills/mlops-initialization && curl -L -o skill.zip "https://mcp.directory/api/skills/download/6876" && unzip -o skill.zip -d .claude/skills/mlops-initialization && rm skill.zipInstalls to .claude/skills/mlops-initialization
About this skill
MLOps Initialization
Goal
To initialize a robust, production-ready MLOps project structure using the modern Python toolchain (uv), industry-standard version control (git), and a configured development environment (VS Code). This skill ensures reproducibility, collaboration, and high code quality from day one.
Prerequisites
- Language: Python (latest stable version recommended)
- Manager:
uv(replaces pip, venv, poetry, pyenv) - VCS: Git
- IDE: VS Code (recommended)
Instructions
1. System & Toolchain Verification
Before modifying files, verify that the essential tools are available.
- Check
uv:- Ensure
uvis installed:uv --version - If missing, install it:
curl -LsSf https://astral.sh/uv/install.sh | sh
- Ensure
- Check
git:- Ensure
gitis installed:git --version
- Ensure
2. Project Initialization
Initialize the project structure using uv to ensure modern standards (pyproject.toml).
- Create Directory (if not already inside):
mkdir <project_name> && cd <project_name>
- Initialize Project:
- Run
uv init - This creates
pyproject.toml,.python-version, and a basichello.py.
- Run
- Configure
pyproject.toml:-
Update metadata:
name,version,description,authors,license. -
Set requires-python: Ensure it matches the project's target environment (e.g.,
>=3.10). -
Example Structure:
[project] name = "my-mlops-project" version = "0.1.0" description = "A robust MLOps project." readme = "README.md" requires-python = ">=3.11" license = { file = "LICENSE" } authors = [{ name = "Your Name", email = "your.email@example.com" }] dependencies = [ "pandas>=2.2.0", "loguru>=0.7.0", # Add other runtime dependencies here ] [project.urls] Repository = "https://github.com/username/my-mlops-project" Documentation = "https://username.github.io/my-mlops-project" [project.optional-dependencies] dev = [ "pytest>=8.0.0", "ruff>=0.3.0", "mypy>=1.9.0", ] [build-system] requires = ["hatchling"] build-backend = "hatchling.build"
-
3. Dependency Management
Establish a clean separation between production and development dependencies.
- Add Runtime Dependencies (Production):
- Use
uv add <package>for libraries needed in production (e.g.,fastapi,numpy,torch). - These go into
[project.dependencies]inpyproject.toml.
- Use
- Add Dev Dependencies (Development):
- Use
uv add --dev <package>(or--group dev) for tools likepytest,ruff,pre-commit. - These go into
[project.optional-dependencies]and are kept separate from production builds.
- Use
- Sync Environment:
- Run
uv syncto resolve dependencies, create the.venv, and generate theuv.lockfile. - Critical: The
uv.lockfile pins exact versions of all dependencies (including transitive ones). It ensures that every developer and CI/CD pipeline uses the exact same environment, preventing "it works on my machine" issues. Commit this file to git.
- Run
4. Version Control (Git)
Set up a clean repository and ensure unwanted files are ignored.
- Initialize Git:
git initgit branch -M main
- Create
.gitignore:- Write a robust
.gitignoretailored for Python/MLOps. - Must Include:
- Environment:
.venv/,.env - Caches:
__pycache__/,.pytest_cache/,.ruff_cache/,.mypy_cache/ - Builds:
dist/,build/,*.egg-info/ - Data/Models:
data/,models/,outputs/(unless using DVC/LFS) - IDE:
.vscode/(selectively),.idea/,.DS_Store - Note: It is often good practice to commit project-specific
.vscode/settings.jsonbut ignoreUsersettings.
- Environment:
- Write a robust
- Verify Status:
git statusshould show only source files, config files, and the lockfile.
5. IDE Configuration (VS Code)
Standardize the developer experience (DX) by committing project-specific settings.
- Install Recommended Extensions:
- Python Tier A:
ms-python.python,headers.ruff,ms-python.vscode-pylance,ms-toolsai.jupyter. - Productivity:
eamodio.gitlens,alefragnani.project-manager,usernamehw.errorlens.
- Python Tier A:
- Create
.vscodeDirectory:mkdir .vscode
- Create
settings.json:-
Configure settings to enforce code quality and use the
uvenvironment. -
Key Settings:
{ "[python]": { "editor.defaultFormatter": "charliermarsh.ruff", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.organizeImports": "explicit" } }, "python.defaultInterpreterPath": ".venv/bin/python", "python.terminal.activateEnvironment": true, "python.analysis.typeCheckingMode": "basic", "python.testing.pytestEnabled": true, "files.trimTrailingWhitespace": true, "files.insertFinalNewline": true, "editor.rulers": [88], "files.exclude": { "**/__pycache__": true, "**/.pytest_cache": true, "**/.ruff_cache": true, "**/.venv": true } }
-
6. Verification & First Commit
Finalize the initialization.
- Verify Environment:
- Run
uv run python -c "import sys; print(sys.executable)"to confirm it uses the.venv.
- Run
- Initial Commit:
git add .git commit -m "chore: initialize project with uv, git, and vscode settings"
7. Best Practices Summary
- One Command Setup: ideally,
uv syncshould be the only command needed to set up the environment. - Lockfile: Always commit
uv.lockto ensure all environments are identical. - Editor Config: Checked-in
.vscode/settings.jsonreduces onboarding friction and enforces standards (formatting, linting). - Dependency Separation: Keep production dependencies light; put testing/linting tools in
dev.
Self-Correction Checklist
- Lockfile: Does
uv.lockexist? - Virtual Env: Is
.venv/created and ignored in.gitignore? - Project Config: Does
pyproject.tomlvalidly describe the project? - Git Cleanliness: Are secrets and large data files excluded?
- Reproducibility: Can another developer
git cloneanduv syncto get the exact same state?
More by fmind
View all skills by fmind →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversSupercharge your NextJS projects with AI-powered tools for diagnostics, upgrades, and docs. Accelerate development and b
Guide your software projects with structured prompts from requirements to code using the waterfall development model and
Streamline project docs with Specs Workflow: automate software project plan templates, tracking, and OpenAPI-driven prog
Organize projects using leading project track software. Convert tasks with dependency tracking for optimal time manageme
Spec-Driven Development integrates with IBM DOORS software to track software licenses, automate requirements, and enforc
Discover Modus Design System: comprehensive docs, specs, and guides for React UI library and component implementation in
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.