agentleFS
The-BiomechanistThe-Biomechanist/Windows-Dev-Agent/skills/package-install/SKILL.md

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.

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
  1. Very specific:

    Call package_install with execute: false.

    line 15
  2. Very specific:

    When installation is actually requested, call the same tool with execute: true.

    line 16
  3. Distinctive:

    Verify the resulting host state on the narrowest relevant surface: executable discovery, version output, or the task-specific check that …

    line 18
  4. Very specific:

    Never interpolate a package ID into a shell string.

    line 29
  5. Very specific:

    Never set execute: true merely to test availability.

    line 30
  6. Distinctive:

    Never claim an install succeeded without observing the installer result and a relevant post-install check.

    line 31
  7. Distinctive:

    Never bypass, disable, or imitate the active host's permission boundary.

    line 32

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. 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.
  2. Call package_install with execute: false. Present the returned source, exact package ID, argv, command, and agreement flags as the planned mutation.
  3. When installation is actually requested, call the same tool with execute: true. The active host's permission system decides whether that exact call proceeds.
  4. Inspect stdout/stderr, return code, and execution_started. Do not infer success from installer invocation. A failed installer can still partially mutate host state.
  5. 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: true merely 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.