Borrowing it
Nothing to install: this file belongs to Asheng008/unifiles-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Asheng008/unifiles-mcp/main/.cursor/skills/windows-powershell-workflow/SKILL.mdgit clone --depth 1 https://github.com/Asheng008/unifiles-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/asheng008/unifiles-mcp/windows-powershell-workflow)<a href="https://agentmods.dev/skills/asheng008/unifiles-mcp/windows-powershell-workflow"><img src="https://agentmods.dev/badge/skills/asheng008/unifiles-mcp/windows-powershell-workflow/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/asheng008/unifiles-mcp/windows-powershell-workflow"><img src="https://agentmods.dev/badge/skills/asheng008/unifiles-mcp/windows-powershell-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00065 | $0.01285 |
| Opus 5 | $0.00032 | $0.00642 |
| Sonnet 5 | $0.00013 | $0.00257 |
| Haiku 4.5 | $0.00006 | $0.00128 |
Grade C, and why
windows-powershell-workflow scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- `rm -rf` → 使用 `Remove-Item -Recurse -Force` How it starts
The opening of the file, as written. The whole thing — 229 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Windows PowerShell 工作流
在 Windows PowerShell 环境下执行命令和操作的工作流指南。
核心原则
环境约束
- OS: Windows 11
- Shell: PowerShell 5.1 / 7+
- Python: 必须使用项目虚拟环境
.\.venv\Scripts\
路径规范
- 代码中 (Python): 始终使用正斜杠
/或pathlib.Path - 终端命令中: 注意反斜杠
\的兼容性
编码设置
必须设置 UTF-8
执行任何可能输出中文的命令前,必须设置 UTF-8 编码:
chcp 65001; [Console]::OutputEncoding = [System.Text.UTF8Encoding]::UTF8
完整命令模板
chcp 65001; [Console]::OutputEncoding = [System.Text.UTF8Encoding]::UTF8; <your-command>
虚拟环境管理
激活虚拟环境
.\.venv\Scripts\Activate.ps1
检查 Python 版本
.\.venv\Scripts\python.exe --version
安装依赖
.\.venv\Scripts\Activate.ps1; pip install -r requirements.txt
开发依赖:
.\.venv\Scripts\Activate.ps1; pip install -e ".[dev]"
命令执行
链式命令
使用分号 ; 分隔多个命令:
chcp 65001; .\.venv\Scripts\Activate.ps1; python script.py
设置环境变量
$env:VAR_NAME = "value"
检查命令是否存在
Get-Command python -ErrorAction SilentlyContinue
文件操作
创建目录
New-Item -ItemType Directory -Path "path/to/dir"
创建多级目录:
New-Item -ItemType Directory -Path "path/to/dir" -Force
读取文件
Get-Content file.txt
或使用别名:
cat file.txt
写入文件
"content" | Out-File -FilePath "file.txt" -Encoding UTF8
检查文件/目录是否存在
Test-Path "path/to/file"
删除文件
Remove-Item "path/to/file"
删除目录(递归)
Remove-Item "path/to/dir" -Recurse -Force
禁止使用的命令
❌ 严禁使用 Linux 专属命令
export→ 使用$env:VAR = "value"ls -la→ 使用Get-ChildItem或lstouch→ 使用New-Item -ItemType Filerm -rf→ 使用Remove-Item -Recurse -Forcesource→ 使用.或&make→ 使用 PowerShell 脚本或直接命令
Python 命令执行
执行 Python 脚本
.\.venv\Scripts\Activate.ps1; python script.py
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 229 lines · 65 tokens per session scan C cec2e9ff3a0e
windows-powershell-workflow is a skill published in the GitHub repository Asheng008/unifiles-mcp (0 stars, last pushed 5mo ago), licensed MIT. It adds 65 tokens to every session and 1,285 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…