eotel/claude-marketplace/python-devenv-setup

Claude Code and agent skill by eotel/claude-marketplace

Trust tier 3
  • community
Source check pending

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-setup

SKILL.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

ToolPurpose
devenvNix-based declarative development environment
uvFast Python package manager (replaces pip/poetry)
ruffUltra-fast Python linter and formatter
tyExtremely fast Python type checker (Astral)
treefmtMulti-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:

AskUserQuestion({
questions: [
{
question: "What is the project name?",
header: "Project",
options: [
{ label: "<inferred-name>", description: "Inferred from current directory" },
{ label: "custom", description: "Enter a different name" }
],
multiSelect: false
},
{
question: "Which Python version?",
header: "Python",
options: [
{ label: "3.12 (Recommended)", description: "Latest stable, widest ecosystem support" },
{ label: "3.13", description: "Newest release" },
{ label: "3.11", description: "Previous stable" }
],
multiSelect: false
},
{
question: "Do you need database or web framework support?",
header: "Extras",
options: [
{ label: "None", description: "Base setup only" },
{ label: "FastAPI", description: "Async web framework" },
{ label: "Django", description: "Full-stack web framework" },
{ label: "Flask", description: "Lightweight web framework" }
],
multiSelect: false
}
]
})

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
VariableDescriptionDefault
PROJECT_NAMEProject name in kebab-case (e.g. simple-a2a-agent)Required
PYTHON_VERSIONPython version (e.g. 3.12)3.12
DEPSProduction dependencies, space-separated(empty)
DEV_DEPSDevelopment dependencies, space-separated(empty)
TARGET_DIROutput directoryCurrent directory
Usage
bash
# Basic setup
PROJECT_NAME="my-project" PYTHON_VERSION="3.12" \
bash "${CLAUDE_PLUGIN_ROOT}/skills/python-devenv-setup/setup.sh"
# With dependencies
PROJECT_NAME="my-api" PYTHON_VERSION="3.12" \
DEPS="fastapi uvicorn" DEV_DEPS="pytest-asyncio httpx" \
bash "${CLAUDE_PLUGIN_ROOT}/skills/python-devenv-setup/setup.sh"
Generated Files
FilePurpose
devenv.yamlNix flake inputs + cachix configuration
devenv.nixDevelopment environment definition
.envrcdirenv integration for auto-activation
pyproject.tomlProject config with hatch, ruff, pytest settings
treefmt.tomlMulti-language formatter config
.gitignoreDevelopment artifact exclusions
src/<package>/Source package directory with __init__.py
tests/Test directory with __init__.py

Post-Setup

After running the script:

bash
# Activate the environment
direnv allow
# Install Python dependencies
uv sync
# Verify
python --version
ruff --version
uv run ty --version

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

bash
# Check devenv status
devenv info
# Run type check
uv run ty check
# Run linter
ruff check .
# Check formatting
ruff format --check .
treefmt --check

Troubleshooting

direnv not loading

Ensure direnv is hooked into shell:

bash
# For bash
echo 'eval "$(direnv hook bash)"' >> ~/.bashrc
# For zsh
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc
# Then allow the directory
direnv allow
ty not finding packages

Ensure virtual environment exists and packages are installed:

bash
uv sync
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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/eotel/claude-marketplace/python-devenv-setup/badge)](https://verified-skill.com/skills/eotel/claude-marketplace/python-devenv-setup)

Something wrong with this skill or its page? Tell us.