OpenParable
Skip to content
← Back to skills

Use Venv

Development
use-venv

Use Venv is an Agent Skill for development published in the BnanZ0/ok-nte repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Prefer the repository .venv Python interpreter for Python commands, tests, scripts, package tooling, and AI coding workflows when .venv exists.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/BnanZ0/ok-nte/blob/HEAD/.agents/skills/use_venv/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/use-venv, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Use Repository Virtual Environment

When running Python commands in this repository, use the local virtual environment if it exists.

PowerShell

Before Python commands, resolve the interpreter:

$py = if (Test-Path .\.venv\Scripts\python.exe) { ".\.venv\Scripts\python.exe" } else { "python" }

Then run commands through that interpreter:

& $py -m py_compile ok\util\logger.py
& $py -m pytest tests
& $py .\.agents\skills\compile_i18n\add_translation.py --help
& $py -m pip install -r requirements.txt

Do not call global python, pip, or pytest directly when .venv exists. Use & $py, & $py -m pip, and & $py -m pytest instead.