Home / mambo-wang / codewiki-plus · .codebuddy/skills/windows-python-release/SKILL.md · GitHub

windows-python-release skillA

windows-python-release is agent-read markdown (skill) from mambo-wang/codewiki-plus: 当要手动发布 Python 包(codewiki-plus)到 PyPI 并建 GitHub Release 时——CI 不发布、Windows 控制台为 GBK、可能无 gh CLI、本机网络对 upload.pypi.org 的 Python TLS 握手有干扰——按 8 步主干执行:同步四处版本→bump 提交→pytest+ruff 闸门→清 dist 构建→PR 合并 main→tag merge commit 建 Release→uv publish(TLS 超时则 curl.exe 直传)→PyPI JSON API 核对.

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

## 工作场景

手动发布 Python 包(`codewiki-plus`)到 PyPI 并创建 GitHub Release。**CI 只跑测试与 lint,不负责构建与发布**(`.github/workflows/ci.yml:13-74`),因此发布主干没有脚本承载,必须按序手工执行。Windows 控制台默认 GBK,环境可能无 gh CLI。

## 适用条件

- 发布是手动流程,仓库无发布脚本
- 提交信息或 Release 正文含中文/emoji
- 环境无 gh CLI / 未配置 GH_TOKEN,但 git credential manager 已保存凭据

## 核心 SOP

按序执行 8 步,**每步有判定点,不通过就停,不要带着问题往下走**。

1. **同步四处版本引用**:`pyproject.toml`(`version`)、`codewiki/__init__.py`(`__version__`)、`uv.lock`、`codewiki/mcp/server.py`(`version=__version__` 注入,勿手写常量)。CLI 与 actor id 也从 `__version__` 读取,自动跟随。
   判定点:四处版本字符串完全一致。

2. **提交 bump 并推送 develop**:消息 `chore: bump version to X`;推 `origin develop`。
   判定点:`git show` 确认版本改动齐全。
   ⚠️ 中文提交信息用 `git commit -F <utf8 文件>`,**不要用 `-m`**(GBK 破坏,乱码或拆词)。

3. **发布闸门**:`pytest -q` 全绿;`ruff check` / `ruff format --check` 通过。
   判定点:无失败用例,无 lint 错误。

4. **构建并清理产物**:`uv build`;发布前**清 `dist/`** 或只精确指定本次产物。
   判定点:`dist/` 下只剩本次版本的 wheel 与 sdist。
   ⚠️ 不清 `dist/` 会连带上传旧产物(5.6.0 发布时残留 6 个)。

5. **合并 main**:建 PR develop→main(无 gh CLI 时用 Python `subprocess` 调 `git credential fill` 取凭据再调 REST API,请求体显式 UTF-8);轮询 head sha 的 **check-runs**(不是 commit status)等 CI 绿后合并。
   判定点:PR merged,main 含 bump commit。
…

Read the whole file at its exact version.

How to install

Latest version
mdr add mambo-wang/codewiki-plus/windows-python-release@git:20260923.9360ad5
Exact content
mdr add mambo-wang/codewiki-plus/windows-python-release@sha256:be15e8ce6d102678

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_gfefnpdsz2peqxki.svg)](https://markdownregistry.com/a/art_gfefnpdsz2peqxki)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260923.9360ad5 latest2026-09-23 9360ad5 6,656 BA view · diff
git:20260923.fb770622026-09-23 fb77062 5,745 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6656 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

GitHub

mambo-wang/codewiki-plus · 17 stars · license MIT · pushed 2026-09-23 · branch develop

API

GET https://markdownregistry.com/api/v1/artifacts/art_gfefnpdsz2peqxki
GET https://markdownregistry.com/api/v1/resolve?ref=mambo-wang/codewiki-plus/windows-python-release
GET https://markdownregistry.com/api/v1/blob/be15e8ce6d1026782f08cfe6a2a6c798f38153838efdfb5eb1e8b3fd1e4fafcf

Your agent 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.

More from mambo-wang/codewiki-plus

ask-matt skill
mambo-wang/codewiki-plus · .codebuddy/skills/ask-matt/SKILL.md · Ask which skill or flow fits your situation. A router over the skills in this repo.
git:20260916.5a385b8 · audit A · 17 stars
blog-writing-specialist skill
mambo-wang/codewiki-plus · .codebuddy/skills/blog-writing-specialist/SKILL.md · Comprehensive blog writing skill that handles technical blog posts, personal voice writing, brain dump transformation…
git:20260908.38265d4 · audit A · 17 stars
claude-handoff skill
mambo-wang/codewiki-plus · .codebuddy/skills/claude-handoff/SKILL.md · Hand the current conversation off to a fresh background agent that picks up the work immediately.
git:20260916.5a385b8 · audit A · 17 stars
code-review skill
mambo-wang/codewiki-plus · .codebuddy/skills/code-review/SKILL.md · Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code…
git:20260916.5a385b8 · audit A · 17 stars
codebase-design skill
mambo-wang/codewiki-plus · .codebuddy/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
git:20260916.5a385b8 · audit A · 17 stars
diagnosing-bugs skill
mambo-wang/codewiki-plus · .codebuddy/skills/diagnosing-bugs/SKILL.md · Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports…
git:20260916.5a385b8 · audit A · 17 stars
domain-modeling skill
mambo-wang/codewiki-plus · .codebuddy/skills/domain-modeling/SKILL.md · Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a CONTEXT.md…
git:20260916.5a385b8 · audit A · 17 stars
git-guardrails-claude-code skill
mambo-wang/codewiki-plus · .codebuddy/skills/git-guardrails-claude-code/SKILL.md · Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they…
git:20260916.5a385b8 · audit A · 17 stars
grill-me skill
mambo-wang/codewiki-plus · .codebuddy/skills/grill-me/SKILL.md · A relentless interview to sharpen a plan or design.
git:20260904.138894c · audit B · 17 stars
grill-with-docs skill
mambo-wang/codewiki-plus · .codebuddy/skills/grill-with-docs/SKILL.md · A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
git:20260916.5a385b8 · audit A · 17 stars
grilling skill
mambo-wang/codewiki-plus · .codebuddy/skills/grilling/SKILL.md · Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or…
git:20260916.5a385b8 · audit A · 17 stars
handoff skill
mambo-wang/codewiki-plus · .codebuddy/skills/handoff/SKILL.md · Compact the current conversation into a handoff document for another agent to pick up.
git:20260916.5a385b8 · audit A · 17 stars

Every file in mambo-wang/codewiki-plus

Other files named windows-python-release

windows-python-release skill
mambo-wang/codewiki-plus · repowiki/skills/windows-python-release/SKILL.md · 当要手动发布 Python 包(codewiki-plus)到 PyPI 并建 GitHub Release 时——CI 不发布、Windows 控制台为 GBK、可能无 gh CLI、本机网络对 upload.pypi.org 的…
git:20260923.9360ad5 · audit A · 17 stars

Browse by kind, by grade A, or by owner.