windows-dev-env SKILL.md skillA
windows-dev-env from mambo-wang/codewiki-plus is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add mambo-wang/codewiki-plus/windows-dev-env@git:20260927.b4ea01bPins git:20260927.b4ea01b in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- mambo-wang/codewiki-plus
- Path
repowiki/skills/windows-dev-env/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260927.b4ea01b, committed Sep 27, 2026
- First version recorded
- Sep 10, 2026
- Size
- 8,687 bytes
- Repository stars
- 21
- License
- MIT
Windows/PowerShell 下做 git 写操作、跑子进程或批量文件/测试清理时:shell 漂移与中文路径致命令静默失败、无控制台宿主子进程闪窗、GCM 每次弹 OAuth 框、原生 DLL 被锁——须显式复核落盘、subprocess 加 CREATE_NO_WINDOW、gh auth setup-git 持久化凭据,并用 cmd /c 绕 safe-delete 钩子.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
## 工作场景 在本仓 Windows + PowerShell(CodeBuddy 沙箱 + profile 安全删除钩子)环境做:git 提交/推送、批量文件删除、pytest 全量回归、中文路径/中文 commit message 处理、生成 .ps1 脚本、启动 git/工具子进程、安装 gh CLI、源码 checkout 内跑包命令。 ## 适用条件 - 环境为 Windows PowerShell(含 cmd 混合会话)。 - 涉及 git 写操作、含中文路径/消息、批量 rm/pytest 清理、无控制台宿主的子进程调用,或原生模块文件操作。 - 不适用于纯 Linux/macOS CI(那里中文路径与 shell 漂移不触发同类静默失败)。 ## 核心 SOP 1. **Git 写操作后必显式复核落盘**:提交/推送/amend 后跑 `git log -1`、`git status --short`、`git grep -c "<特征串>" <sha>` 确认内容真落地——不能只信退出码。 - 中文路径 `git add <中文文件>` 会静默失败(pathspec 不匹配),改用 `git add -u` / `git add -A` 避免手写中文路径。 - 含管道/cmdlet(`Measure-Object`、`Select-Object`)的命令链不要在 shell 可能混用的会话整链跑:PowerShell→cmd 漂移会让整链静默不执行且返回 0。拆成单条独立命令,每条后复核。 2. **含 secret 的提交被 Push Protection 拦截**:在原提交之上追加「删除」提交无用,原提交仍含 secret。未推送的用 `git commit --amend` 改写(替换占位符→`git add -u`→amend);已推远的用 `git filter-repo`。token 明文进过仓库即建议到源站轮换。 3. **批量删除被 safe-delete 钩子拦截**(`del /S`、`Remove-Item -Recurse`、TEMP 下 pytest garbage):改用 `cmd /c "rd /s /q <dir>"` 或 Python `shutil.rmtree`/逐个 `unlink`。 4. **pytest 全量回归**:用 `--basetemp=.pytest-tmp`(工作区内,加 .gitignore)避免 TEMP 堆积 garbage 被沙箱拦截连带新跑挂;失败清单用 `--junitxml` + ElementTree 解析最可靠;PowerShell 输出噪音用 `cmd /c` 重定向到文件再读。 …
Read the whole file at its exact version.
How to install
mdr add mambo-wang/codewiki-plus/windows-dev-env@sha256:5fb4b676bec0f910The line at the top of this page pins the label git:20260927.b4ea01b, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_4wylugprhmlycoic)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Sep 10, 2026 and Sep 27, 2026, about one every 17 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260927.b4ea01b latest | 2026-09-27 | b4ea01b | 8,687 B | A | view · diff |
| git:20260910.d75fdbd | 2026-09-10 | d75fdbd | 4,687 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (8687 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
mambo-wang/codewiki-plus · 21 stars · license MIT · pushed 2026-11-02 · branch develop
API
GET https://markdownregistry.com/api/v1/artifacts/art_4wylugprhmlycoic GET https://markdownregistry.com/api/v1/resolve?ref=mambo-wang/codewiki-plus/windows-dev-env GET https://markdownregistry.com/api/v1/blob/5fb4b676bec0f9106865ef3e6e158505ca996202d3524cbcff9184fbadb9a991
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from mambo-wang/codewiki-plus
Every file in mambo-wang/codewiki-plus