Agent skill
python-environment
Python environment setup with uv, shared utilities, and script structure guidelines.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/python-environment
SKILL.md
Python Environment
Always use uv run. Never search for Python or use venv directly.
uv run uses the venv from the nearest pyproject.toml up the directory tree. Run scripts from the project root:
cd /path/to/project # directory with pyproject.toml
uv run python experiments/experiment_X/fit/run_fit.py
Shared Utilities
shared-utils is a project dependency. Import directly:
from shared_utils import compile_model, fit_model, check_convergence, ...
Read the package source at /workspace/shared_utils/ for API details.
Script Structure
Write small, focused scripts - not monolithic files. Separate concerns:
experiment_X/
fit/
run_fit.py # Main entry point
diagnostics.py # Convergence checks
plots.py # Visualization
Each script should:
- Do one thing well
- Be runnable independently via
uv run python script.py - Import shared logic from
shared_utils
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?