unifiles-mcp: Skill for Cursor

.cursor/skills/windows-powershell-workflow/SKILL.md

windows-powershell-workflow is a skill for Cursor from Asheng008/unifiles-mcp. It costs 65 tokens per session (1,285 once invoked), scanned C, original, MIT.

A workflow guide for running coding-agent tasks in Windows PowerShell, including paths, text encoding, virtual environments, and file commands.

In plain words
What is it for?
Use it when executing commands, managing Python environments, handling files, or troubleshooting Windows-specific development workflows.
Why use it?
It reduces errors caused by differences between Windows PowerShell and other shells or operating systems.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is Asheng008/unifiles-mcp's own configuration. It tells Cursor how to work on unifiles-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything unifiles-mcp configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/Asheng008/unifiles-mcp/main/.cursor/skills/windows-powershell-workflow/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Asheng008/unifiles-mcp

Made for: Cursor.

Wrote 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.

agentmods badge for windows-powershell-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/asheng008/unifiles-mcp/windows-powershell-workflow/github.svg)](https://agentmods.dev/skills/asheng008/unifiles-mcp/windows-powershell-workflow)
Your own site
<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.

agentmods 80×15 button for windows-powershell-workflow

Your own site · 80×15
<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>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,285 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 8d ago against content hash cec2e9ff3a0e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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`
.cursor/skills/windows-powershell-workflow/SKILL.md · 229 lines

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-ChildItemls
  • touch → 使用 New-Item -ItemType File
  • rm -rf → 使用 Remove-Item -Recurse -Force
  • source → 使用 .&
  • make → 使用 PowerShell 脚本或直接命令

Python 命令执行

执行 Python 脚本

.\.venv\Scripts\Activate.ps1; python script.py

Read the full file on GitHub · 229 lines

Changes

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.

  1. 8d ago First seen · 229 lines · 65 tokens per session scan C cec2e9ff3a0e

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

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…

microsoft/ai-agents-for-beginners · 200 tokens

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…

vercel/next.js · 95 tokens

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…

vercel/next.js · 83 tokens

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…

vercel/next.js · 170 tokens

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…

vercel/next.js · 103 tokens