package-install
Skill0 starsChanged 3 months agoMITView on GitHub
Resolve and install Windows packages or tools through Windows Dev Agent. Use when the user asks to install a package or a missing system dependency must be added. Execution is host approval-gated.
In this repository5 other files it gives its agents.
- ecosystem-defragSkill
- env-inspectSkill
- sandbox-runSkill
- win-setupSkill
- workflow-planSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Call package_install with execute: false.
- Very specific: line 16
When installation is actually requested, call the same tool with execute: true.
- Distinctive: line 18
Verify the resulting host state on the narrowest relevant surface: executable discovery, version output, or the task-specific check that …
- Very specific: line 29
Never interpolate a package ID into a shell string.
- Very specific: line 30
Never set execute: true merely to test availability.
- Distinctive: line 31
Never claim an install succeeded without observing the installer result and a relevant post-install check.
- Distinctive: line 32
Never bypass, disable, or imitate the active host's permission boundary.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Package Install
Package installation is approval-required. The executing MCP call contains the reviewed mutation and execute: true; the active host asks for permission around that same call. Do not invent a second model-supplied flag that claims approval happened before the host has actually asked.
package_search is non-mutating by intent, but it executes the selected package manager and may contact its configured source. It therefore remains on the active host permission surface rather than being silently auto-approved. package_install also remains host-controlled; in Codex, only execute: false plan calls may be auto-approved by the optional trusted PermissionRequest hook.
Procedure
- Establish package identity before mutation. Preserve an exact package ID supplied by the user or authoritative project/config state. Otherwise call
package_search, inspect the candidates, and resolve the exact identity. Do not guess an ID from naming conventions. - Call
package_installwithexecute: false. Present the returned source, exact package ID, argv, command, and agreement flags as the planned mutation. - When installation is actually requested, call the same tool with
execute: true. The active host's permission system decides whether that exact call proceeds. - Inspect stdout/stderr, return code, and
execution_started. Do not infer success from installer invocation. A failed installer can still partially mutate host state. - Verify the resulting host state on the narrowest relevant surface: executable discovery, version output, or the task-specific check that required the package. Any executed install attempt invalidates the cached environment snapshot. If a full snapshot is needed afterward, use fresh state.
Routing
- WinGet is the default for Windows runtimes and developer tools.
- Chocolatey or Scoop are fallbacks only when the requested package is intentionally sourced there.
- Windows optional features such as WSL, Windows Sandbox, or Hyper-V are not package installs; use an explicitly approved host PowerShell action when the feature is actually required.
- Language package managers (
pip,uv,npm,cargo) belong to the project/runtime workflow and should not be smuggled through this system-package tool.
Boundaries
- Never interpolate a package ID into a shell string. The MCP server validates it and executes an argv vector with
shell=False. - Never set
execute: truemerely to test availability. - Never claim an install succeeded without observing the installer result and a relevant post-install check.
- Never bypass, disable, or imitate the active host's permission boundary.
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.

