16-开源发布

16-开源发布 is a skill for Claude Code, Codex from xcodethink/open-claude-code-skills. It costs 238 tokens per session (3,099 once invoked), scanned A, original, MIT.

A Chinese-language set of rules for releasing software as open source. It covers moving private code to public repositories and publishing packages, releases, tags, examples, and documentation.

In plain words
What is it for?
Use it before publishing to npm, PyPI, Docker Hub, or GitHub, when preparing release notes or examples, and when fixing a previous leak.
Why use it?
It helps prevent private plans, personal paths, internal links, product-specific examples, and other sensitive material from being published.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/xcodethink/open-claude-code-skills/16
Any agent
npx skills add xcodethink/open-claude-code-skills --skill 16
Clone the repo
git clone --depth 1 https://github.com/xcodethink/open-claude-code-skills

Made for: Claude Code, Codex.

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 16-开源发布

README.md
[![agentmods](https://agentmods.dev/badge/skills/xcodethink/open-claude-code-skills/16.svg)](https://agentmods.dev/skills/xcodethink/open-claude-code-skills/16)
Your own site
<a href="https://agentmods.dev/skills/xcodethink/open-claude-code-skills/16"><img src="https://agentmods.dev/badge/skills/xcodethink/open-claude-code-skills/16.svg" alt="Measured on agentmods" height="20"></a>
Per session 238 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,099 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00238 $0.03099
Opus 5 $0.00119 $0.01550
Sonnet 5 $0.00048 $0.00620
Haiku 4.5 $0.00024 $0.00310

Measured 4d ago against content hash 37076d8af3de, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

16-开源发布 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/pre-publish-audit.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/16-开源发布/SKILL.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

开源发布

核心原则:公开仓库 / npm tarball / GitHub Release / git tag 中,零跨项目泄露、零内部规划、零个人路径、零自家产品硬编码。

历史教训(一次开源发布事故):将一个开源 npm 包发布到 GitHub + npm 时,AI 反复声称"已检查、无敏感信息",但实际上把内部规划文档(PLAN.md / docs/research/ / docs/SLO.md)、营销文案(X 推文 / show-hn.md / launch-post / 博主外联清单)、跨项目引用(sibling project URL / 品牌名 / 文件路径如 <internal-repo>/...~/Developer/...)、自家产品硬编码示例(scenarios 全部用某产品 URL、personas 围绕某产品评测剧本、config 以某产品命名、CI workflow 默认值是某产品名)全部泄露到公开仓库 + npm。

用户被迫多轮追加 cleanup(v1.1.2 → v1.1.3 → v1.1.4),过程中 git filter-repo 重写历史 + force-push 5 个 tag + npm deprecate 5 个旧版本。用户对"我自己审过了,没问题"这种声明零容忍。

本目录是上述教训的工程化沉淀。任何项目准备开源前,必须 100% 走完。


触发场景

场景 必读子文件
项目第一次决定开源(private → public 转换) 01-决定开源前必做.md 全套
任何一次 publish 前(npm publish / PyPI / Docker push / git push tag / 创建 GitHub Release) 02-Pre-publish 审计清单.md 强制走完
写 / 维护 bundled scenarios / personas / examples / config / workflow 03-bundled examples 通用化.md
写 CHANGELOG / Release notes / Release body 04-CHANGELOG 和 Release 写作.md
发现已经泄露(自查发现 / 被人提醒 / Github 反馈) 05-事故修复手册.md
AI 协助开发任何 OSS 项目时 06-AI 协助 OSS 项目铁律.md 必看
项目存在"私仓 → 公仓 promote"关系(持续同步而非一次性 publish) 08-开源专属文件夹规范.md 强制建立 opensource/<public-repo>/ 标准目录
新建仓库前 / 整理混淆命名 / "本地 X 与公开 X 名字一样" 09-仓库命名约定.md 4 大命名分类(私有 <Handle>-* / staging openskills/* / 公开 collection / 公开独立项目)

核心铁律(必须内化,不需要每次重读)

铁律 1:默认拒绝

公开仓库 / tarball / Release / tag 中,默认所有内容都是泄露,必须显式批准每一项才能进。package.json#files.gitignore 都要"白名单 / 黑名单组合",不能依赖默认行为。

铁律 2:grep 才算审过

任何"我审查了,没有泄露"的说法必须有对应的 grep 命令输出作为证据。空口声明 = 没审。

铁律 2b:词表匹配不是审计 —— 必须「枚举 + 判定」

实战教训:一份 9 个词的词表扫出 "0 命中",据此汇报"无泄露 ✅"四次;实际仓里躺着 5 处内部名,全都不在那 9 个词里。词表只能找到词表里的词 —— 这是它的天花板,填得再全也拦不住你没想到的那个。

  • 禁止用"跑了 grep -E '<已知敏感词>' 返回 0"当作"不存在"的结论。它只证明了这些词不在,没证明别的不在。
  • 正确方法是反过来:枚举仓里全部专有名词形状的 token / URL / 高熵串,逐个判定,跟已审基线比对。这样是 by construction 穷尽的。已固化为 scripts/audit.sh 第 5 层。
  • 汇报时必须写清覆盖面:「词表扫描 0 命中(仅覆盖 N 个已知词,不是穷尽性结论)」,不能只写 ✅。

Read the full file on GitHub · 108 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. 4d ago First seen · 108 lines · 238 tokens per session scan A 37076d8af3de

Subscribe to this mod's changes

16-开源发布 is a skill published in the GitHub repository xcodethink/open-claude-code-skills (2 stars, last pushed 29d ago), licensed MIT. It adds 238 tokens to every session and 3,099 once invoked, about $0.0012 per session on Opus 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-08-31.

Related

Other skills, from other repositories

writing-modpack-changelog

Use when cutting a modpack release. Creates /docs/release-changelog.md if absent; appends a new version section with grouped changes. Triggers - 'cut a release', 'release notes', 'changelog', 'v1.2.3 changes', 'what changed since last version'.

hashgraph-online/awesome-codex-plugins · 69 tokens

mathodology-dev-test-release

Use when validating the Mathodology skills-only repository or preserving archived knowledge about the former development, testing, deployment, packaging, and release workflows.

sweetcornna/mathodology · 36 tokens

release-notes

Draft user-facing release notes from a git log range. Trigger when the user asks for "release notes", "changelog entry", or "what shipped this week" with a git ref range. Output is markdown sections grouped by Features / Fixes / Breaking with PR links.

jnMetaCode/ai-coding-guide · 59 tokens

v1-milestone

Factory line for executing one milestone of the HAR v1.0.0 refactor (epic os-factory/har#225) — plan the wave of parallel subagents, implement each issue in its own HAR slot, ship stacked PRs, run the fixture-e2e milestone gate, and hand off for review. Use when asked to "run the next v1 milestone", "work on v1.0.0"…

os-factory/har · 110 tokens

releasing-reef

How to cut a reef release — version bump, tag push, and the GitHub Release notes format. Use when the user says "cut a release", "tag vX.Y.Z", "打个 tag 发布", "发布", "bump version", "release notes", or asks "how do I release reef", "what's the notes format", "is it safe to push this tag". Covers the full pipeline pushing…

Blushyes/reef · 162 tokens

git-release

Draft release notes from merged PRs, propose a semver bump, and emit a copy-pasteable gh release create command. Use when preparing a tagged GitHub release.

wesammustafa/opencode-primer · 40 tokens