windows-package-manager-installer
by darkqiank
install windows software and windows package manager environments. use when the user wants to install a windows application, explicitly wants to install or configure winget or chocolatey, wants a windows package management environment set up, or wants chatgpt to decide whether to use winget or chocolatey for installation. prefer package-manager-based installation, install missing package managers when needed, configure chocolatey with the tsinghua mirror, and report clear success or failure status.
安装
claude skill add --url github.com/openclaw/skills/tree/main/skills/darkqiank/windows-package-manager-installer文档
Windows Package Manager Installer
Use this skill to handle Windows software installation requests through package managers instead of manual download flows whenever possible.
Workflow decision tree
-
Identify the user's goal.
- Install a specific Windows app -> follow Software installation workflow.
- Install or configure winget / chocolatey / Windows package management environment -> follow Package manager environment workflow.
-
Prefer package managers over direct-download instructions.
- Check whether the target software is available in
winget. - Check whether the target software is available in
choco. - If at least one package manager supports the target, use a package-manager-based solution.
- Check whether the target software is available in
-
Decide package manager priority.
- Prefer
wingetfirst for mainstream desktop apps available from the Microsoft ecosystem. - Prefer
chocowhenwingetis unavailable, broken, missing the package, or when the package is commonly better supported in Chocolatey. - If both are supported, choose the one with simpler and more reliable installation commands for the specific software.
- Prefer
-
If the selected package manager is missing, install it first.
- Missing
winget-> guide the user to install or repair App Installer / winget availability. - Missing
choco-> install Chocolatey. - After Chocolatey installation, configure the Tsinghua mirror.
- Missing
-
Finish every response with a status-oriented summary.
- Confirm what is already installed.
- Confirm what was installed or configured.
- State the exact command to run next if the user still needs to execute something.
- End with a clear success/failure-style message in Chinese.
Software installation workflow
Step 1: Normalize the target software
Extract the product name and normalize it to the likely package-manager search term.
Examples:
- "安装 vscode" -> search
Visual Studio Code/vscode - "安装微信" -> search
WeChat - "安装 7zip" -> search
7zip/7-Zip
When the user provides a vague app name, prefer a best-effort search-and-install approach instead of asking unnecessary follow-up questions.
Step 2: Check package-manager suitability
Use this order of reasoning:
- Is this clearly a Windows desktop or CLI app? If yes, package managers are likely appropriate.
- Is the app commonly distributed through
wingetorchoco? If yes, prefer package-manager installation. - If the app is not likely to exist in either package manager, say so plainly and fall back to vendor-download guidance.
Step 3: Check environment state
Before giving install commands, reason through these checks in order:
- Is the machine Windows?
- Is PowerShell available?
- Is the session likely elevated as administrator when needed?
- Is
wingetavailable? - Is
chocoavailable?
Use simple verification commands when helpful:
$PSVersionTable.PSVersion
Get-Command winget -ErrorAction SilentlyContinue
Get-Command choco -ErrorAction SilentlyContinue
Step 4: Choose commands
Default command patterns:
winget install
winget search <name>
winget install --id <exact.id> --accept-source-agreements --accept-package-agreements
choco install
choco search <name>
choco install <package-name> -y
Do not invent package IDs. If uncertain, tell the user to run the search command first and then provide the exact install command pattern.
Step 5: Provide concise execution steps
Keep the output action-oriented:
- Detect / confirm package manager availability
- Install missing package manager if needed
- Run the install command for the target software
- Verify installation if practical
Useful verification examples:
winget list --id <exact.id>
choco list --local-only
where.exe <binary-name>
Package manager environment workflow
winget workflow
Treat winget as a built-in-or-repairable Windows capability rather than a mirror-based package manager.
Use this approach:
- Detect whether
wingetexists.powershellGet-Command winget -ErrorAction SilentlyContinue - If present, repair/update sources when needed.
powershell
winget source reset --force winget source update winget --info - If missing, explain that
wingettypically comes from App Installer on supported Windows versions. - Recommend one of these repair/install approaches in order:
- Install or update App Installer from Microsoft Store
- If Store is unavailable, use the official offline bundle route only if the exact source is known in the current conversation
- After repair, verify:
powershell
winget --version winget source list
Do not claim that winget supports a standard Tsinghua mirror switch like Chocolatey. It usually does not.
chocolatey workflow
When Chocolatey is missing, provide the standard elevated PowerShell installation flow and then configure the Tsinghua mirror.
Installation command pattern:
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Then configure the Tsinghua mirror:
choco source disable -n chocolatey
choco source add -n tsinghua -s "https://mirrors.tuna.tsinghua.edu.cn/chocolatey/"
choco source list
If source replacement is not accepted by the local Chocolatey version or policy, explain that the default community source may remain enabled and clearly state the actual final source status.
full environment setup checklist
When the user says things like "安装 Windows 包管理环境" or "安装 choco、winget", follow this sequence:
- Check admin rights if relevant.
- Check whether
wingetexists. - If missing, instruct repair/install through App Installer.
- Check whether
chocoexists. - If missing, install Chocolatey.
- Configure Chocolatey with the Tsinghua mirror.
- Verify both tools.
- End with a clear environment-ready message.
Recommended verification block:
winget --version
winget source list
choco --version
choco source list
Output format
Use this response structure by default, adapting as needed:
1. 判断结果
State whether the request should use winget, choco, both, or neither.
2. 执行步骤
Provide the exact commands in a minimal sequence.
3. 验证命令
Provide one or more commands the user can run to confirm success.
4. 最终提示
Always end with one of these styles:
环境安装成功:winget 与 Chocolatey 已可用,Chocolatey 已配置清华源。软件安装成功:已通过 <winget/choco> 完成安装。环境部分完成:<state what succeeded>;<state what still needs manual action>.安装失败:<state the blocker plainly>.
Guardrails
- Stay within Windows context.
- Prefer package-manager installation over manual website download whenever realistic.
- Never claim a package exists in
wingetorchocounless the current conversation already established it. - Do not fabricate exact package IDs or source states.
- Be explicit when administrator privileges are required.
- When a package manager is missing, solve that before giving the target software install command.
- Always mention that Chocolatey is configured to use the Tsinghua mirror when that step is included.
相关 Skills
技能工坊
by anthropics
覆盖 Skill 从创建到迭代优化全流程:起草能力、补测试提示、跑评测与基准方差分析,并持续改写内容和描述,提升效果与触发准确率。
✎ 技能工坊把技能从创建、迭代到评测串成闭环,方差分析加描述优化,特别适合把触发准确率打磨得更稳。
表格处理
by anthropics
围绕 .xlsx、.xlsm、.csv、.tsv 做读写、修复、清洗、格式整理、公式计算与格式转换,适合修改现有表格、生成新报表或把杂乱数据整理成交付级电子表格。
✎ 做 Excel/CSV 相关任务很省心,能直接读写、修复、清洗和格式转换,尤其擅长把乱七八糟的表格整理成交付级文件。
PDF处理
by anthropics
遇到 PDF 读写、文本表格提取、合并拆分、旋转加水印、表单填写或加解密时直接用它,也能提取图片、生成新 PDF,并把扫描件通过 OCR 变成可搜索文档。
✎ PDF杂活别再来回切工具了,文本表格提取、合并拆分到OCR识别一次搞定,连扫描件也能变可搜索。
相关 MCP 服务
文件系统
编辑精选by Anthropic
Filesystem 是 MCP 官方参考服务器,让 LLM 安全读写本地文件系统。
✎ 这个服务器解决了让 Claude 直接操作本地文件的痛点,比如自动整理文档或生成代码文件。适合需要自动化文件处理的开发者,但注意它只是参考实现,生产环境需自行加固安全。
by wonderwhy-er
Desktop Commander 是让 AI 直接执行终端命令、管理文件和进程的 MCP 服务器。
✎ 这工具解决了 AI 无法直接操作本地环境的痛点,适合需要自动化脚本调试或文件批量处理的开发者。它能让你用自然语言指挥终端,但权限控制需谨慎,毕竟让 AI 执行 rm -rf 可不是闹着玩的。
EdgarTools
编辑精选by dgunning
EdgarTools 是无需 API 密钥即可解析 SEC EDGAR 财报的开源 Python 库。
✎ 这个工具解决了金融数据获取的痛点——直接让 AI 读取结构化财报,比如让 Claude 分析苹果的 10-K 文件。适合量化分析师或金融开发者快速构建数据管道。但注意,它依赖 SEC 网站稳定性,高峰期可能延迟。