env-management SKILL.md skillB
env-management from aipoch/open-science is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add aipoch/open-science/env-management@git:20260824.727a607Pins git:20260824.727a607 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- aipoch/open-science
- Path
resources/skills/env-management/SKILL.md- Versions recorded
- 3
- Latest version
- git:20260824.727a607, committed Aug 24, 2026
- First version recorded
- Jul 20, 2026
- Size
- 6,989 bytes
- Repository stars
- 5,279
- License
- Apache-2.0
Use when a notebook run fails on a missing package (ImportError, ModuleNotFoundError, "there is no package called"), when you need to inspect an installed package version, or when you need to install, add, or manage Python or R packages for the notebook runtime. Covers inspect_packages, routing Python vs R through manage_packages, why in-cell %pip/!pip/install.packages() and OS installers are forbidden, restarting the kernel after an install, and when to stop and ask the user.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Environment and package management The notebook runs against the session's **bound runtime**: the app-managed default (`default-python` / `default-r`) unless you bind another one with `notebook_bind_runtime` — a named environment you created, or one of the user's own detected interpreters. You never activate environments by hand, and you never install packages from inside a cell. Installs happen in the trusted main process through a single tool, `manage_packages`, and always land in the currently bound runtime. This page is the workflow for getting a package installed and for knowing when a package is not something you can install yourself. ## When a package is missing A run that fails with `ImportError` / `ModuleNotFoundError` (Python) or `Error in library(x): there is no package called 'x'` (R) means the package is not in the environment yet. The fix is one `manage_packages` call, not a code change. Do not rewrite the cell to use a different library that "does roughly the same thing" — install the package the task actually needs. Do not fall back to reading data or computing results a worse way to dodge the missing import. ## Check an installed version …
Read the whole file at its exact version.
How to install
mdr add aipoch/open-science/env-management@sha256:9421043a9c3e6337The line at the top of this page pins the label git:20260824.727a607, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_mup2z6nbbaiqmerw)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Jul 20, 2026 and Aug 24, 2026, about one every 17 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260824.727a607 latest | 2026-08-24 | 727a607 | 6,989 B | B | view · diff |
| git:20260729.6a5aa8e | 2026-07-29 | 6a5aa8e | 5,920 B | B | view · diff |
| git:20260720.6978302 | 2026-07-20 | 6978302 | 4,450 B | B | view |
Audit of the latest version
- fail: No curl or wget piped into a shell (matched: curl | bash)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6989 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
aipoch/open-science · 5,279 stars · license Apache-2.0 · pushed 2026-10-19 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_mup2z6nbbaiqmerw GET https://markdownregistry.com/api/v1/resolve?ref=aipoch/open-science/env-management GET https://markdownregistry.com/api/v1/blob/9421043a9c3e6337146fbb161e26b0b49dbb6ace091bcc01f43d7456ef0e33eb
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.