eotel/claude-marketplace/python-devenv-setup
Claude Code and agent skill by eotel/claude-marketplace
- community
Checking that the SKILL.md file is still in the repository.
Reproducible Nix-based Python development environment setup with devenv, uv, ruff, and ty.
Install
npx vskill@latest install eotel/claude-marketplace/python-devenv-setupSKILL.md
The same SKILL.md was published earlier as eotel/claude-marketplace/python-devenv-setup.
Python Development Environment Setup
Set up a complete, reproducible Python development environment using devenv, uv, ruff, and ty.
Tools Included
| Tool | Purpose | |
|---|---|---|
| devenv | Nix-based declarative development environment | |
| uv | Fast Python package manager (replaces pip/poetry) | |
| ruff | Ultra-fast Python linter and formatter | |
| ty | Extremely fast Python type checker (Astral) | |
| treefmt | Multi-language formatter orchestration |
Prerequisites
- Nix package manager installed
- direnv installed and hooked into shell
- devenv CLI installed
Implementation Workflow
Before running the setup script, gather parameters from the user using AskUserQuestion.
Step 1: Infer defaults
- PROJECT_NAME: Infer from the current directory name or git remote (e.g.
basename $(pwd)) - PYTHON_VERSION: Default to
3.12 - DEPS / DEV_DEPS: Infer from conversation context if the user mentioned specific libraries
Step 2: Ask the user to confirm
Use AskUserQuestion to confirm or adjust parameters. Ask all questions in a single call.
Example:
Adapt the options based on context — skip questions where the answer is already clear from the conversation.
Step 3: Run setup.sh
Build the command from the user's answers and execute.
Step 4: Apply customizations
If the user selected a database or framework, read the corresponding references/*.md file and apply the additional edits to devenv.nix and pyproject.toml.
Setup Script
setup.sh generates all configuration files and directory structure in one step.
Environment Variables
| Variable | Description | Default | |
|---|---|---|---|
PROJECT_NAME | Project name in kebab-case (e.g. simple-a2a-agent) | Required | |
PYTHON_VERSION | Python version (e.g. 3.12) | 3.12 | |
DEPS | Production dependencies, space-separated | (empty) | |
DEV_DEPS | Development dependencies, space-separated | (empty) | |
TARGET_DIR | Output directory | Current directory |
Usage
Generated Files
| File | Purpose | |
|---|---|---|
devenv.yaml | Nix flake inputs + cachix configuration | |
devenv.nix | Development environment definition | |
.envrc | direnv integration for auto-activation | |
pyproject.toml | Project config with hatch, ruff, pytest settings | |
treefmt.toml | Multi-language formatter config | |
.gitignore | Development artifact exclusions | |
src/<package>/ | Source package directory with __init__.py | |
tests/ | Test directory with __init__.py |
Post-Setup
After running the script:
Note: uv.sync.enable is intentionally disabled in the devenv.nix template to avoid bootstrap failures when src/<package>/ doesn't exist yet on first setup.
DB / Framework Customization
The setup script generates a base configuration. For database or web framework support, edit devenv.nix and pyproject.toml after running the script:
- Database support (MySQL, PostgreSQL, SQLite) — see
references/database-variants.md - Framework settings (Django, FastAPI, Flask) — see
references/framework-variants.md
Verification
Troubleshooting
direnv not loading
Ensure direnv is hooked into shell:
ty not finding packages
Ensure virtual environment exists and packages are installed:
Database compilation errors
See references/database-variants.md for required environment variables.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/nix-skills/skills/python-devenv-setup/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/eotel/claude-marketplace/python-devenv-setup)