Agent skill

Use Local Venv

by AliceJump in AliceJump/ok-end-field

Prefer the repository-local Python virtual environment for coding-agent work.

AGPL-3.0Auto-check passedDevelopment

Install Use Local Venv

skills CLI
$ npx skills add AliceJump/ok-end-field --skill use-local-venv -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AliceJump/ok-end-field use-local-venv --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AliceJump/ok-end-field.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/use-local-venv .claude/skills/use-local-venv && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
use-local-venv
GitHub stars
555
Token cost
~688 tokens
SKILL.md length
287 words
Files
2
Skills in repo
14
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Prefer the repository-local Python virtual environment for coding-agent work.

  • Running Python scripts
  • SKILL.md covers Overview, Rule, PowerShell and POSIX Shells, plus 1 more section
  • Calls uv
  • Package installs

What it does

Use Local Venv is an agent skill from AliceJump/ok-end-field. Prefer the repository-local Python virtual environment for coding-agent work. Use when running Python scripts, tests, linters, formatters, package installs, dependency checks, or any Python command in a repo that uses uv and a .venv; keep pyproject.toml plus uv.lock authoritative and avoid global Python drift.

Its SKILL.md is about 690 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Development, covering Linting and formatting. It works with Python. The repository describes itself as: 终末地 End Field Automation 基于ok-script开发的自动化. The licence is AGPL-3.0.

When your agent uses it

  • Running Python scripts
  • Package installs
  • Dependency checks
  • Any Python command in a repo that uses uv and a .venv

Example prompts

  • “/use-local-venv”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 54e11e5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Use Local Venv loads about 688 tokens when it runs. Until then it costs about 82 tokens; SKILL.md has 287 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~82
When it runs · the whole SKILL.md, loaded when a task matches
~688

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from AliceJump/ok-end-field at commit 54e11e5, republished under its AGPL-3.0 licence (© AliceJump). 287 words, ~688 tokens.

Download SKILL.mdSave it as .claude/skills/use-local-venv/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
use-local-venv
description
Prefer the repository-local Python virtual environment for coding-agent work. Use when running Python scripts, tests, linters, formatters, package installs, dependency checks, or any Python command in a repo that uses uv and a .venv; keep pyproject.toml plus uv.lock authoritative and avoid global Python drift.

Use Local Venv

Overview

Use the project .venv for Python commands so agent work uses the same dependencies as the repository instead of the global Python installation.

The .venv is created and synced by uv sync from pyproject.toml and uv.lock. In this repository, use uv sync --locked and uv run --locked ... so a verification command cannot silently rewrite the lockfile or resolve different dependency versions.

Rule

  • Run from the repository root unless the script explicitly supports another working directory.
  • Prefer uv run --locked python ...; it selects the repository .venv without activation and verifies the lockfile.
  • Use the direct .venv interpreter only for bootstrap diagnostics when uv is unavailable; it is not a valid formal test or lint entry point.
  • Do not fall back to global Python in this repository. If uv or .venv is missing, run uv sync --locked or report the environment problem instead of executing with unknown dependencies.
  • pyproject.toml and uv.lock are dependency sources of truth. requirements.txt is a publishing derivative and must not be hand-edited.

PowerShell

Normal commands:

powershell
uv sync --locked
uv run --locked python -m unittest tests.TestCheckLang -v
uv run --locked python -m py_compile path/to/script.py

If a Windows shell uses a legacy code page, run Python in UTF-8 mode for scripts or tests that read UTF-8 files without an explicit encoding or emit Chinese/emoji logs:

powershell
uv run --locked python -X utf8 -m unittest tests.TestZipLineConfig -v

Without UTF-8 mode, a test can exit successfully while its logging handler prints UnicodeEncodeError, or a text-reading script can fail with UnicodeDecodeError.

Direct-interpreter bootstrap diagnostic after confirming it exists:

powershell
& ".\.venv\Scripts\python.exe" --version

POSIX Shells

bash
uv sync --locked
uv run --locked python -m unittest discover -s tests

Tests

  • Full repository suite: scripts/testing/run_tests.ps1 (which uses uv run --locked).
  • Focused unittest: uv run --locked python -m unittest tests.TestModule -v.
  • Do not use a direct .venv interpreter invocation as formal verification; all formal checks use a locked uv entry point.
  • Preserve and report pre-existing independent failures; do not hide them by switching interpreters or dependencies.

© AliceJump, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .agents/skills/use-local-venv of AliceJump/ok-end-field.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 54e11e5

Compare with similar skills

Use Local Venv next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Use Local Venv compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Use Local Venv this skillAliceJump/ok-end-field555—~688Automated safety check: PassAGPL-3.0
Minimizing Ty Ecosystem Changesastral-sh/ruff50k—~4.6kAutomated safety check: PassMIT
Summarise Ecosystem Resultsastral-sh/ruff50k—~2.2kAutomated safety check: PassMIT
Kedro Babysitkedro-org/kedro11k—~4kAutomated safety check: PassCustom licence
Saleor Commit Workflowsaleor/saleor23k—~575Automated safety check: PassBSD-3-Clause
Adding Ty Diagnosticsastral-sh/ruff50k—~556Automated safety check: PassMIT

Similar skills

  • Official

    A skill your agent uses when a user says "minimize this ty ecosystem change", "reproduce this ecosystem result", "investigate a primer difference", "investigate a mypyprimer difference"…

    50k GitHub stars~4.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Official

    A skill your agent uses when a user says "summarise ecosystem results", "summarize this ty ecosystem report", "what changed in this ecosystem run?", or asks to summarise or summarize ty ecosystem…

    50k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Kedro Babysit

    kedro-org/kedro

    Run Kedro's local lint / format / type-check / tests on changed files (uses the project's pre-commit hooks, ruff, mypy, pytest, lint-imports, detect-secrets, Make targets — in the right venv), or…

    11k GitHub stars~4k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.

    23k GitHub stars~575 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Adding Ty Diagnostics

    astral-sh/ruff

    Official

    A skill your agent uses when a user says "add a ty rule", "add a ty diagnostic", "write this new ty diagnostic", "change a ty error message", "review ty diagnostics", or asks to add, update, or…

    50k GitHub stars~556 tokensUpdated today
    DevelopmentAuto-check passed
  • Qt6 QML Code Reviewer

    x-tools-author/x-tools

    Runs a 47-rule deterministic QML linter, then six parallel deep-analysis passes over bindings, layout, loaders, delegates, states, and performance.

    1.1k GitHub starsUsed in 1 repo~3.6k tokens
    DevelopmentAuto-check passed

More from AliceJump/ok-end-field

All 14 skills in this repo
  • Ok Script I18n

    AliceJump/ok-end-field

    Maintain gettext translations for ok-script task UI and runtime messages.

    555 GitHub stars~828 tokensUpdated today
    Auto-check passed
  • Deploy

    AliceJump/ok-end-field

    Commit validated changes, calculate an annotated stable/beta/alpha version tag, and push the release to the publishing remote.

    555 GitHub stars~625 tokensUpdated today
    Auto-check passed
  • GitHub Rulesets

    AliceJump/ok-end-field

    Diagnose or configure GitHub branch/tag rulesets on ok-script repos.

    555 GitHub stars~595 tokensUpdated today
    Auto-check passed
  • Ok Script PR Review

    AliceJump/ok-end-field

    Triage CodeRabbit reviews on ok-script pull requests. An agent skill from AliceJump/ok-end-field.

    555 GitHub stars~904 tokensUpdated today
    Auto-check passed
  • Ok Script Tasks

    AliceJump/ok-end-field

    Create, modify, register, or review ok-script BaseTask and TriggerTask classes.

    555 GitHub stars~619 tokensUpdated today
    Auto-check passed
  • Wiki Skill Sync

    AliceJump/ok-end-field

    Compare Endfield operator skills with official wiki data and update assets/data/characterskills/.json.

    555 GitHub stars~453 tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Use Local Venv

What does Use Local Venv do?

Prefer the repository-local Python virtual environment for coding-agent work. Use Local Venv is an agent skill from AliceJump/ok-end-field. Prefer the repository-local Python virtual environment for coding-agent work.

When should I use Use Local Venv?

Use Local Venv fits situations like: running Python scripts; package installs; dependency checks; any Python command in a repo that uses uv and a .venv.

How do I install Use Local Venv in Claude Code?

Run `npx skills add AliceJump/ok-end-field --skill use-local-venv -a claude-code`. Or copy the skill folder (.agents/skills/use-local-venv in AliceJump/ok-end-field) into .claude/skills/use-local-venv in your project. Claude Code loads it when a task matches its description.

How do I install Use Local Venv in Codex?

Run `npx skills add AliceJump/ok-end-field --skill use-local-venv -a codex`. Or copy the skill folder (.agents/skills/use-local-venv in AliceJump/ok-end-field) into .agents/skills/use-local-venv in your project. Codex loads it when a task matches its description.

Can I use Use Local Venv in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AliceJump/ok-end-field --skill use-local-venv -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/use-local-venv, .gemini/skills/use-local-venv, .github/skills/use-local-venv and .opencode/skills/use-local-venv in your project.

What does Use Local Venv need to run?

Going by SKILL.md and its folder, Use Local Venv needs the command-line tools its instructions call (uv). Our summary lists: Python 3.

Does Use Local Venv access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Use Local Venv safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Use Local Venv use?

Use Local Venv is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Use Local Venv use?

About 688 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Use Local Venv?

Skills that share tags, products or a category with Use Local Venv: Minimizing Ty Ecosystem Changes (astral-sh/ruff, 50k stars), Summarise Ecosystem Results (astral-sh/ruff, 50k stars), Kedro Babysit (kedro-org/kedro, 11k stars) and Saleor Commit Workflow (saleor/saleor, 23k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Use Local Venv?

AliceJump (a GitHub user) maintains it in AliceJump/ok-end-field, which has 555 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 11, 2026.

Source: AliceJump/ok-end-field on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.