windows-safety

仓库创建 2026年7月28日最近提交 1 天前SkillHot 收录 1 天前
▸ 精选理由

防止误删与非授权提权,适合开发/运维场景。

这个 Skill 做什么

为代理在 Windows 上提供防止破坏性操作的安全默认策略。

为在 Windows 上跑的编码代理设定一组安全默认规则,阻止无意识的提权、关闭 Defender/SmartScreen/UAC、以及在系统外做递归删除等危险操作。遇到要用管理员 PowerShell、改 ExecutionPolicy、改 PATH/注册表或处理凭据时先触发检查。核心是非必要不升权、任何破坏性或影响系统安全的步骤都要停下来解释并征得明确确认,减少代理误操作风险。

▸ 展开 SKILL.md 英文原文

Safe defaults for AI coding agents on Windows. Use before destructive commands, privilege elevation, ExecutionPolicy changes, Defender exclusions, PATH or registry edits, credential handling, or when an agent suggests admin PowerShell, recursive deletes, or disabling security features.

Skill 开发管理安全权限防护通用
1
Stars
0
Forks
7
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/javeckbila/windows-agent-skills/master/skills/windows-safety/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/javeckbila/windows-agent-skills/master/skills/windows-safety/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Windows safety for coding agents

## Non-negotiables

1. **No silent admin elevation.** If a step needs Administrator, stop and explain why.
2. **No disabling Defender / SmartScreen / UAC** unless the user explicitly requests it and understands the risk.
3. **No recursive delete** outside the project workspace without resolving the full path and confirming intent.
4. **No committing secrets** (`.env`, `*.pfx`, connection strings, Azure publish profiles, `id_rsa`).
5. **No drive-wide searches that rewrite files** (`Get-ChildItem C:\ -Recurse` + mass edit).

## High-risk command patterns

| Pattern | Risk | Safer alternative |
|---------|------|-------------------|
| `Remove-Item -Recurse -F
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有