uv-environment
You are helping with uv and Python environments.
Core Principle
Assume uv is already installed. Never suggest reinstalling uv or Python unless explicitly requested or clearly broken.
Step 1 — Detect OS
Detect the operating system from:
- Path style (C:\ vs /home/)
- Shell prompt (PS vs $)
- Commands used (where vs which)
- Explicit OS mention
Step 2 — Use OS-appropriate commands
If Windows:
- Activate venv:
.\.venv\Scripts\Activate.ps1 - Check python:
where python - Check uv:
uv --version
If macOS/Linux:
- Activate venv:
source .venv/bin/activate - Check python:
which python - Check uv:
uv --version
Always Prefer uv Workflow
Use:
uv inituv venvuv syncuv runuv pip
Avoid switching to pip/venv unless requested.
Troubleshooting (Only If Needed)
If venv missing:
uv venv
If dependencies missing:
uv sync
If PowerShell policy blocks activation:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Output Style
- Command-first
- Minimal steps
- Provide copy-paste ready blocks
- Use OS-correct syntax
More from gemini960114/skills
dockerize-project
Use this skill when the user wants to dockerize the current project and generate a Dockerfile and docker-compose.yml based on the existing codebase. This skill inspects the repository structure, avoids unsafe assumptions, and produces a minimal, runnable Docker setup for local development.
12fastapi-templates
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.
11frontend-development
Generic frontend development skill for HTML, CSS, JavaScript, and modern frontend frameworks. Covers code patterns, best practices, debugging, and common patterns for building responsive web applications.
10frontend-requirements
Use this skill when the user asks to generate a frontend integration requirements document (frontend.md) from an existing FastAPI backend codebase. The output must be a Markdown guide for frontend engineers, including auth, endpoints, job/task workflow, status definitions, result querying, errors, and UX recommendations.
9uv-python-manager
Use this skill when the user wants to manage Python projects, virtual environments, or dependencies using uv, including creating venvs, installing packages, syncing environments, or running Python tools.
8backend-development
Generic backend development skill for building REST APIs, working with databases, authentication, and server-side logic. Covers patterns, best practices, and common patterns for backend applications.
6