python-packaging-environments
Skill4 starsChanged 2 months agoApache-2.0View on GitHub
Diagnose or change Python environments, dependencies, pyproject metadata, imports, or packaging. Use for uv/pip/build-backend issues; use pyo3-wheel-release for native ABI and wheel qualification.
In this repository81 other files it gives its agents.
- agent-cli-designSkill
- agent-tool-boundariesSkill
- behavior-first-implementationSkill
- bounded-prototypeSkill
- bounded-pr-sliceSkill
- building-fdd-validationSkill
- context-efficiencySkill
- cross-language-contractsSkill
- cross-platform-agent-instructionsSkill
- design-interviewSkill
- diagnosis-loopSkill
- domain-languageSkill
- edge-cloud-syncSkill
- handoff-continuitySkill
- immutable-pr-reviewSkill
- memory-context-hygieneSkill
- module-designSkill
- orchestrateSkill
- owner-decision-gateSkill
- parallel-portfolioSkill
- pr-gate-loopSkill
- pyo3-async-lifecycleSkill
- pyo3-buffer-performanceSkill
- pyo3-free-threadingSkill
- pyo3-ownership-errorsSkill
- pyo3-wheel-releaseSkill
- python-api-typingSkill
- python-async-concurrencySkill
- python-ci-releaseSkill
- python-data-boundariesSkill
- python-performanceSkill
- python-pytestSkill
- python-reviewSkill
- python-test-designSkill
- python-threading-workersSkill
- python-workflowSkill
- react-components-stateSkill
- react-performanceSkill
- repository-groundingSkill
- rust-api-designSkill
- rust-async-concurrencySkill
- rust-build-diagnosticsSkill
- rust-ci-releaseSkill
- rust-memory-layoutSkill
- rust-nextestSkill
- rust-numerics-simdSkill
- rust-performanceSkill
- rust-protocol-codecsSkill
- rust-python-bindingsSkill
- rust-reviewSkill
- rust-storage-durabilitySkill
- rust-test-designSkill
- rust-unsafe-ffiSkill
- rust-workflowSkill
- rust-workspace-dependenciesSkill
- shadcn-react-componentsSkill
- shadcn-svelte-componentsSkill
- simplify-existing-codeSkill
- source-verificationSkill
- svelte-components-runesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
Read environment decisions for concrete commands and limits.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Python Packaging and Environments
Inspect the existing package manager, interpreter selectors, lock/requirements files, build backend, and source layout. Prefer the established uv or venv/pip workflow; do not migrate managers, add redundant lockfiles, or update unrelated dependencies for a small task.
Resolve the actual environment
Record the executable and version used for installation, tests, and builds. A shell activation or pyproject requires-python field does not prove which interpreter ran. Inspect installed package versions and module origins when imports are surprising. Distinguish distribution names from import names and editable source from a built wheel.
For uv projects understand --locked, --frozen, and --no-sync before selecting one. --locked checks lock freshness; --frozen uses the existing lock without that check; --no-sync leaves the environment unchanged and can therefore leave it stale. Ordinary uv run/sync may change files or environments. Do not silently upgrade the interpreter or replace a candidate wheel during validation.
Keep virtual environments local and owned by one task/agent while modifying them. Do not use sudo pip, install into system Python, dump all environment variables, or expose private index credentials. Package installation and build backends execute code; use trusted declared sources and explicit network permission.
Keep metadata and runtime consistent
Separate build dependencies, runtime dependencies, optional extras, and development groups. A test dependency present in the development environment can mask a missing runtime requirement. Retain library compatibility ranges while locking the development/application environment appropriately. Check the supported Python floor before upgrading syntax or libraries.
A build backend runs in its own environment under build isolation. Ensure native and generated files required to build are in the source distribution. Inspect dynamic version sources, package data, stubs, entry points, and licenses. Never infer the contents of a wheel from the source tree.
Verify the artifact
Build with the intended backend and interpreter. Install the explicit new wheel in a fresh environment with declared runtime dependencies, run from outside the checkout, and inspect module origin. For release changes also build from the sdist in a clean directory; local path dependencies and generated files must not be accidentally supplied by the working tree.
For a native extension, use pyo3-wheel-release when available or independently verify ABI, native platform, and build dependencies. Editable/maturin develop success is development evidence only.
Report the environment problem, minimal changes, dependency effects, artifacts actually tested, and remaining platform gaps.
Read environment decisions for concrete commands and limits.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

