Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add EthanYoQ/Skill-hub --skill windows-agent-env-clonegit clone --depth 1 https://github.com/EthanYoQ/Skill-hubWrote 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/ethanyoq/skill-hub/windows-agent-env-clone)<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/windows-agent-env-clone"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/windows-agent-env-clone/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/ethanyoq/skill-hub/windows-agent-env-clone"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/windows-agent-env-clone.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.00068 | $0.00805 |
| Opus 5.5 | $0.00027 | $0.00322 |
| Sonnet 5.5 | $0.00014 | $0.00161 |
| Haiku 4.5 | $0.00007 | $0.00081 |
Grade A, and why
windows-agent-env-clone scanned grade A with 0 findings 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 2mo 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Windows Agent 环境清单生成
硬性规则(用户反复强调)
- 只列本机实测已装:未安装的、建议类的、可选的一律不写;不出现"建议/如需/可选"措辞。
- 全局安装:禁止写入任何应用的隔离目录(
.workbuddy/binaries/...等),路径统一用全局位置。 - 空目录 / PATH 残留 ≠ 已装:必须 exe 或注册表命中才算。踩过坑:Ollama(仅 PATH 残留)、Notion / AutoGLM / Tokscale(空目录)。
- 用户点名排除的项要彻底删干净(正文、一键脚本、验证清单、PATH 四处都要查)。
扫描流程
- 写 Python 脚本到
tmp/再执行——Git Bash 里 heredoc 长脚本易截断,Write 文件最稳。 - 三源交叉核对:
- 注册表卸载项(HKLM 与 HKCU 的
Uninstall,含 WOW6432Node 共三处)→DisplayName+DisplayVersion+InstallLocation - 关键 exe 绝对路径探测
- 包管理器:
npm list -g、pip list(多个 Python 版本要分别扫,本机同时有 3.12 和 3.13)
- 注册表卸载项(HKLM 与 HKCU 的
- winget ID:用 Python
subprocess调winget list并过滤关键字。
已知坑
cmd /c "..."被安全策略拦截,不要用。- PowerShell 工具 stdout 常被吞(返回空)→ 写文件再读也可能失败,优先用 Python subprocess。
- Bash 里
node/python可能解析到隔离版,取真实系统版本要用绝对路径:C:/Program Files/nodejs/node.exe。 wsl.exe在安全黑名单,调用会被拒 → 只用注册表确认 WSL 已启用,发行版另查或标注"未检出"。- VS Code 扩展:读
~/.vscode/extensions目录名比执行code --list-extensions稳定。 - Electron 应用版本:读
resources/app/package.json;目录存在但为空 = 未真正安装,不列入。 code --list-extensions、npm list -g在 Python subprocess 里常因 PATH 找不到,改走目录读取。
输出文档结构(12 章)
基础运行时 → 编译工具链 → 开发工具(含 VS Code 扩展)→ AI/Agent 工具 → 沙箱与容器 → 命令行效率工具 → 常用桌面软件 → Python 全局包(按版本分块)→ PATH 参考 → 一键安装脚本(PowerShell)→ 安装后验证清单 → 明确未列入项(表格附排除原因)
收尾
写完后用 present_files 展示,并在回复里给一份精简清单摘要(用户偏好直接看结果,不爱冗长解释)。
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.
- 2mo ago First seen · 42 lines · 68 tokens per session scan A c8d78210f2f4
windows-agent-env-clone is a skill published in the GitHub repository EthanYoQ/Skill-hub (12 stars, last pushed 2d ago), licensed MIT. It adds 68 tokens to every session and 805 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.
windows-agent-env-clone compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| windows-agent-env-cloneEthanYoQ/Skill-hub | Skill | 12 | 2d ago | MIT | A | 68 | Claude Code, Codex |
| housecleanSethGammon/Citadel | Skill | 943 | 3d ago | MIT | A | 89 | Claude Code |
| scheduleSethGammon/Citadel | Skill | 943 | 3d ago | MIT | A | 41 | Claude Code |
| compassspacedock-dev/spacedock | Skill | 87 | 3d ago | Apache-2.0 | A | 51 | Claude Code |
| artifact-accessChisiki1/objective-integrity-framework | Skill | 24 | 28d ago | Apache-2.0 | A | 48 | Codex |
| cool-workflowcoo1white/cool-workflow | Skill | 2 | 5d ago | BSD-2-Clause | A | 50 | Claude Code |
| handoffYSAA1/harness-workflow | Skill | 3 | 1mo ago | MIT | A | 80 | Claude Code, Codex |