Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问clear审计未展示

powershell-5.1-expertpowershell 5 1 专家

Agent Skill

powershell-5.1-expert 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,348

周安装

95

GitHub Stars

76

下载量

737
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:powershell-5.1-expert(powershell 5 1 专家)
来源仓库:https://github.com/404kidwiz/claude-supercode-skills
仓库路径:skills/powershell-5.1-expert
安装命令:
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill powershell-5.1-expert
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill powershell-5.1-expert

简介

powershell-5.1-expert 用于处理 GitHub 仓库、Issue、Pull Request 等协作信息,适合在代码协作场景中整理变更与状态。

  • 适用于围绕仓库状态、代码变更或协作事项的信息组织与汇总。
  • 通过 npx skills add 命令从 GitHub 仓库安装并使用。
  • 安装前应确认权限范围、维护状态及是否执行命令或访问文件。
  • 具体功能需参考原始 README 进一步验证。

SKILL.md

PowerShell 5.1 Expert

Purpose

Provides expertise in Windows PowerShell 5.1 for legacy Windows environments. Specializes in WMI queries, ADSI operations, COM automation, and maintaining scripts compatible with older Windows Server systems.

When to Use

  • Scripting for Windows Server 2012/2016/2019
  • Working with WMI for system management
  • Active Directory operations via ADSI
  • COM automation (Office, legacy apps)
  • Maintaining backward compatibility
  • DSC (Desired State Configuration)
  • Windows-specific automation
  • Legacy script maintenance

Quick Start

Invoke this skill when:

  • Working with Windows PowerShell 5.1 specifically
  • Using WMI for system queries
  • Automating with ADSI or COM objects
  • Maintaining legacy PowerShell scripts
  • DSC configuration management

Do NOT invoke when:

  • Cross-platform PowerShell → use /powershell-7-expert
  • GUI/TUI development → use /powershell-ui-architect
  • Security hardening → use /powershell-security-hardening
  • Module architecture → use /powershell-module-architect

Decision Framework

PowerShell Version Context?
├── Must run on older Windows
│   └── Use 5.1 with WMI/ADSI
├── Cross-platform needed
│   └── Use PowerShell 7+ instead
├── AD Management
│   ├── Simple → ADSI
│   └── Complex → AD Module
└── System Info
    ├── Legacy → WMI
    └── Modern → CIM (also works in 5.1)

Core Workflows

1. WMI System Query

  1. Identify WMI class (Win32_*)
  2. Construct WMI query
  3. Use Get-WmiObject or Get-CimInstance
  4. Filter results appropriately
  5. Format output
  6. Handle errors for remote systems

2. ADSI Operations

  1. Create DirectoryEntry object
  2. Navigate LDAP path
  3. Query or modify attributes
  4. Commit changes if modifying
  5. Handle authentication
  6. Clean up resources

3. COM Automation

  1. Create COM object with New-Object -ComObject
  2. Access object model
  3. Perform operations
  4. Handle COM errors
  5. Release COM objects properly
  6. Clean up with [System.Runtime.InteropServices.Marshal]

Best Practices

  • Use CIM cmdlets over WMI when possible (better remoting)
  • Always include error handling for remote operations
  • Release COM objects explicitly to prevent memory leaks
  • Test on target Windows versions
  • Document required PowerShell modules
  • Use approved verbs for functions

Anti-Patterns

Anti-PatternProblemCorrect Approach
Not releasing COMMemory leaksExplicit cleanup
WMI over slow networksPerformance issuesUse CIM with sessions
No error handlingSilent failuresTry/Catch with logging
Hardcoded pathsPortability issuesUse environment variables
Write-Host for outputCan't captureWrite-Output or return

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Claude Code

30.84%
按下载量换算227

OpenCode

21.15%
按下载量换算156

Codex

16.81%
按下载量换算124

Cursor

13.55%
按下载量换算100

Gemini CLI

7.34%
按下载量换算54

windsurf

3.57%
按下载量换算26

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills