Token导航 LogoToken导航TokenDH.com
研究检索执行命令clawhub未标认证来源可访问clear审计通过

winget-package-managerwinget 包管理器

Agent Skill

winget-package-manager 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,672

周安装

150

GitHub Stars

公开资料未说明

下载量

1,188
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:winget-package-manager(winget 包管理器)
来源仓库:https://github.com/hongjiapeng/winget-package-manager
安装命令:
openclaw skills install winget-package-manager
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install winget-package-manager

简介

基于 winget 管理 Windows 软件包,支持搜索、安装与版本控制。

  • 适用于批量部署、依赖管理与环境标准化场景。
  • 调用命令 openclaw skills install winget-package-manager 安装。
  • 需以管理员权限运行,确保安装路径可写。
  • 建议锁定软件版本,避免自动升级引发兼容问题。

SKILL.md

name
winget-package-manager
description
|
metadata
openclaw
requires
bins
os
minWingetVersion
1.6
emoji
📦

Winget Package Manager Skill

Overview

This is a prompt-only Windows package management skill built around winget.

It does not provide its own executable wrapper scripts. Instead, it defines a safe workflow, decision rules, and behavior constraints for agents that already have access to a terminal, shell, or command-execution capability in the host environment.

The goal of this skill is to help an agent use winget safely and consistently on Windows without turning package management into arbitrary shell execution.

Host capability requirement

This skill assumes the host environment already provides a way to run Windows commands.

Examples of suitable host capabilities include:

  • A terminal tool
  • A shell execution tool
  • A controlled local command runner
  • An MCP/server/tool that can execute winget

If the host cannot execute commands, this skill can still provide workflow guidance, but it cannot directly perform package operations.

When to use this skill

Use this skill when the user wants to:

  • Search for an application available through WinGet
  • Inspect package details before taking action
  • Download an installer package without installing it
  • Install an application
  • Upgrade an application
  • Uninstall an application
  • List applications that have available upgrades

When NOT to use this skill

Do not use this skill for:

  • Running arbitrary PowerShell or shell commands
  • Editing files, registry keys, services, or scheduled tasks
  • Downloading files from custom URLs
  • Executing local .exe, .bat, .cmd, or .ps1 files outside the host's trusted execution model
  • Installing software from sources other than approved WinGet sources
  • Performing destructive actions when package identity is ambiguous

Supported operations

This skill supports exactly 7 operations:

  • search
  • show
  • download
  • install
  • upgrade
  • uninstall
  • list-upgrades

Do not expand the scope beyond these operations unless the skill is explicitly redesigned.

Safety rules

  1. Only use the 7 supported operations:

- search - show - download - install - upgrade - uninstall - list-upgrades

  1. Prefer exact package IDs over fuzzy names whenever possible.

Examples: - Microsoft.VisualStudioCode - Google.Chrome - Git.Git

  1. For install, upgrade, and uninstall:

- If the package identity is ambiguous, do not execute immediately. - Run search or show first. - Return all matching candidates and ask the user to choose.

  1. Only allow approved sources:

- winget - msstore

  1. Do not invent or append unsupported WinGet arguments.
  1. Do not transform this skill into a generic PowerShell executor or shell tool.
  1. Treat uninstall as high-risk:

- Always prefer an exact package ID. - If identity is unclear, stop and disambiguate before acting.

  1. Never automatically retry install, upgrade, or uninstall after failure.

Report the failure and let the user decide what to do next. Repeated retries may trigger repeated elevation prompts or vendor installer/uninstaller dialogs.

  1. Disambiguation is mandatory:

When multiple packages match a request, list all relevant candidates and ask which one should be used. Never silently operate on all matches.

  1. For uninstall, do not rely only on a success-looking message from the package manager.

If the host environment allows it, perform a post-check to verify whether the package still appears to be installed.

Allowed operations and risk levels

ActionDescriptionRisk Level
searchSearch for packagesLow
showView package detailsLow
downloadDownload installer onlyMedium
installInstall a packageMedium
upgradeUpgrade a packageMedium
uninstallUninstall a packageHigh
list-upgradesList updatable packagesLow

Core workflow

The agent should follow this workflow:

1. Search or identify the package

When the user provides a fuzzy name such as:

  • "install chrome"
  • "upgrade vscode"
  • "remove git"

the agent should first identify the correct package through winget search or equivalent host capability.

2. Inspect details when needed

If identity is uncertain, or the action is medium/high risk, inspect the package before acting.

Use show when helpful to confirm:

  • package ID
  • package name
  • source
  • version or metadata

3. Require precision for risky actions

For these actions:

  • install
  • upgrade
  • download
  • uninstall

the agent should prefer a precise package ID and avoid acting on vague names.

4. Execute the package operation

Only after the package is sufficiently identified should the agent execute the requested operation through the host's command capability.

5. Summarize the result clearly

Return a concise, structured result that includes:

  • action
  • package identity
  • source
  • whether the command appears successful
  • any important stdout/stderr details
  • whether follow-up verification is recommended

6. Verify uninstall results when possible

If the action is uninstall, and the host allows further checks, verify the result afterward. A vendor uninstaller may show its own dialog and may not always report cancellation in a reliable way.

Recommended command patterns

The exact execution mechanism depends on the host environment. However, the agent should generally use patterns like the following.

Search

winget search "Visual Studio Code"

Show package details

winget show --id Microsoft.VisualStudioCode --exact

Download installer only

winget download --id Google.Chrome --source winget --download-directory "$env:USERPROFILE\Downloads" --exact

Install

winget install --id Microsoft.VisualStudioCode --source winget --exact --accept-package-agreements --accept-source-agreements

Upgrade

winget upgrade --id Git.Git --source winget --exact --accept-package-agreements --accept-source-agreements

Uninstall

winget uninstall --id 7zip.7zip --source winget --exact

List upgradeable packages

winget upgrade

Output guidance

Because this is a prompt-only skill, the exact output format depends on the host tool.

When the host environment supports structured output, prefer a consistent JSON-like structure such as:

{
  "success": true,
  "action": "search",
  "query": "Visual Studio Code",
  "source": "winget",
  "candidates": [
    {
      "name": "Microsoft Visual Studio Code",
      "id": "Microsoft.VisualStudioCode",
      "version": "1.96.0"
    }
  ],
  "stdout": "...",
  "stderr": "",
  "exit_code": 0,
  "summary": "Search completed for 'Visual Studio Code'."
}

If the host does not support structured tool output, the agent should still present results using a stable and consistent schema in its response.

Behavioral requirements for ambiguous matches

If the user asks something like:

  • "install DevToys"
  • "uninstall DevToy"
  • "upgrade Python"

and multiple packages match, the agent must:

  1. List the candidates
  2. Explain that the request is ambiguous
  3. Ask which package should be used
  4. Avoid executing install, upgrade, or uninstall until the user clarifies

Example ambiguity handling:

  • DevToys.DevToys
  • DevToys.DevToys.Preview

Do not operate on both unless the user explicitly asks for both.

Error handling guidance

The agent should handle and clearly report situations such as:

  • winget is not installed
  • winget is not available in PATH
  • package not found
  • source not allowed
  • network failures
  • permission or elevation issues
  • ambiguous package matches
  • download path issues
  • uninstall command finishes, but the app may still be installed

When a failure occurs, report it clearly and do not automatically retry high-risk operations.

Security constraints

  • No arbitrary command execution
  • No unapproved package sources
  • No free-form parameter passthrough
  • No silent expansion into a generic shell skill
  • No destructive action without package disambiguation
  • No blind trust in uninstall success messages

Requirements

  • Windows 10 1809+ or Windows 11
  • winget 1.6+ recommended

- winget 1.6+ is especially useful for download - older versions may still support some other operations

Notes for maintainers

This skill is intentionally designed as a prompt-only / policy-only skill so it can be distributed in environments where script files may not be accepted.

A richer local version may additionally provide:

  • PowerShell wrappers
  • JSON normalization
  • post-check verification
  • source validation
  • logging and audit trails

Those implementation assets are useful, but they are outside the scope of this prompt-only distribution.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

91.16%
按下载量换算1,083

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install winget-package-manager 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills