Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 12 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

An Agent Skill that packages a project for GitHub.

Say "ship this to GitHub", "上架 GitHub", or "准备开源" and the agent loads it. It writes a bilingual README, About, license, CI, a Pages landing, GEO notes, and a checklist. It does not block `git push`.
Say "ship this to GitHub", "上架 GitHub", or "准备开源" and the agent loads it. It writes a bilingual README, About, license, CI, and a Pages landing, plus stable headings and Pages meta, then fills a checklist. It does not block `git push`.

[中文说明](README.zh-CN.md)

## Purpose

Someone opening a public repository starts with the first screen: what the project is, how to run it, the license, and whether anyone maintains it. Search engines and language models quote that screen. This skill packages the project before it is public by writing the files and filling the checklist.
The first screen of a public repository has to state what the project is, how to run it, the license, and whether anyone maintains it. Search engines and language models quote that screen. This skill writes those files and fills the checklist before the repository is public.

## Quick start

Expand All @@ -31,15 +31,16 @@ Other agents and user-level paths are in [Install](#install). The steps are in [

## Features

- Collect project facts: repository kind, audience, and languages
- Review repository contents: secrets, personal data, dead demos, license headers, `.gitignore`, and large binaries
- Write `README.md` (English) and `README.zh-CN.md` with the same structure and the same facts
- Collect repository kind, audience, and languages
- Review secrets, personal data, dead demos, license headers, `.gitignore`, and large binaries
- Write `README.md` and `README.zh-CN.md` with the same section order, commands, and version numbers
- Write a GitHub About description (160 characters or fewer) and 5–10 topics
- License: MIT by default; Apache-2.0 when you need a patent grant, AGPL-3.0 when you need network copyleft
- Add a short GitHub Actions workflow (lint, test, or a docs check)
- Prepare GitHub Pages under `/docs`, and state how to turn it on in Settings (the skill does not enable Pages)
- GEO and SEO: stable headings, an FAQ, and Pages meta
- Prepare GitHub Pages under `/docs`, and state how to turn it on in Settings. The skill does not enable Pages
- GEO and SEO: stable headings and Pages meta
- A publish checklist the agent fills with `pass`, `fail`, or `skip`
- After the Chinese draft, run doc-lint: cut redundancy, filler, and translationese, and keep technical terms and meaning

## Install

Expand Down Expand Up @@ -75,7 +76,7 @@ If the skill does not appear, start a new session. Trigger it in plain language.
## Usage

1. Install the skill.
2. Open the project to publish. Run the steps on that project. Do not run them on this kit unless you are editing the kit.
2. Open the project to publish and run the steps there. Run them on this kit only when you are editing the kit.
3. Say: `ship this to GitHub`, `上架 GitHub`, or `准备开源`.
4. Review the diff and `.github/PUBLISH_CHECKLIST.md`. The agent follows [skills/github-launch/SKILL.md](skills/github-launch/SKILL.md) and the templates under [templates/](templates/README.md.tmpl).
5. Push when the secret check has passed and you want the branch on GitHub. This repository has no hook that refuses `git push`.
Expand All @@ -100,6 +101,8 @@ Agent Skill that packages a project for GitHub: bilingual README, About, license

Suggested topics: `agent-skills`, `github`, `readme`, `seo`, `cicd`, `open-source`, `cursor`, `claude`.

Use this English text for the About description and the topics. The GitHub About field is not bilingual.

## Configuration

No configuration file. The agent reads the project name, audience, copyright holder, and public contact from the target repository. If the target has no public contact, it links the GitHub owner and does not invent an email. It does not invent a personal name, phone number, or employer, and it does not copy this repository's contact line.
Expand All @@ -108,27 +111,7 @@ On a first launch, the agent may edit the README and add these files when they a

The default license for a new project is MIT. An existing `LICENSE` stays unless you explicitly ask to change it.

## FAQ

### Does this skill block git push?

No. It is a soft skill: steps plus a checklist. It does not install a git hook, set a GitHub ruleset, or use a tool permission to reject `git push`.

### Will it enable GitHub Pages?

No. It can add a `/docs` site and the homepage URL to put in About. Turn Pages on under Settings → Pages → Deploy from a branch → `/docs`. See [Usage](#usage).

### Which license does it pick?

MIT by default, unless the repository already has a license, or you need Apache-2.0 (patent grant) or AGPL-3.0 (network copyleft). It will not swap a license silently.

### How do the English and Chinese READMEs stay aligned?

Same section order, commands, and version numbers. A change that touches one file must touch the other.

### What if the project should not be public yet?

Say so. The skill still writes the packaging files. It does not change visibility unless you explicitly ask it to make the repository public, and it will not do that while the secret check is failing.
It does not change repository visibility unless you explicitly ask to make the repository public. It will not do that while the secret check is failing.

## License

Expand Down
65 changes: 23 additions & 42 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

用 Agent Skill 把项目上架到 GitHub。

对代理说「ship this to GitHub」「上架 GitHub」或「准备开源」即可加载。代理会写双语 README、About、许可证、CI、Pages 落地页和 GEO 说明,并填检查清单;不拦截 `git push`。
对代理说「ship this to GitHub」「上架 GitHub」或「准备开源」,就会加载本技能。它会写双语 README、About、许可证、CI 和 Pages 落地页,并写稳定标题和 Pages meta,再填检查清单。不拦截 `git push`。

[English](README.md)

## 用途

别人打开公开仓库,先看第一屏:项目是什么、怎么跑、许可证、是否有人维护。搜索引擎和语言模型也会引用这一屏。本技能在公开前完成打包:直接写文件并填检查清单,不只给建议。
公开仓库的第一屏要写清:项目是什么、怎么跑、许可证、有没有人维护。搜索引擎和语言模型会引用这一屏。本技能在公开前写好这些文件,并填检查清单。

## 快速开始

Expand All @@ -31,19 +31,20 @@ ship this to GitHub

## 功能

- 收集项目信息:仓库类型、读者、语言
- 审查仓库内容:密钥、个人隐私、失效演示、许可证头、`.gitignore`、大体积二进制
- 写出结构相同、事实一致的 `README.md`(英文)与 `README.zh-CN.md`
- 收集仓库类型、使用对象、语言
- 审查密钥、个人隐私、失效演示、许可证头、`.gitignore`、大体积二进制
- 写 `README.md` 与 `README.zh-CN.md`:章节顺序、命令、版本号相同
- 写 GitHub About(不超过 160 个字符)和 5–10 个 topics
- 许可证:默认 MIT;需要专利授权用 Apache-2.0,需要网络 copyleft 用 AGPL-3.0
- 添加尽量短的 GitHub Actions 工作流(lint、测试或文档检查)
- 准备 `/docs` 下的 GitHub Pages,并写明在 Settings 里如何打开(技能不会替你打开 Pages)
- GEO 与 SEO:稳定标题、FAQ、Pages meta
- 发布检查清单,由代理填 `pass` / `fail` / `skip`
- 许可证默认 MIT;需要专利授权时用 Apache-2.0,需要网络 copyleft 时用 AGPL-3.0
- 添加简短的 GitHub Actions 工作流(lint、测试或文档检查)
- 准备 `/docs` 下的 GitHub Pages,并写明在 Settings 里如何打开。技能不会替你打开 Pages
- GEO 与 SEO:稳定标题和 Pages meta
- 发布检查清单,由代理填写 `pass` / `fail` / `skip`
- 中文稿写完后做 doc-lint:删冗余、套话和翻译腔,保留技术术语和原意

## 安装

把 `skills/github-launch/` 复制到代理已在读取的技能目录。该目录内的 `assets/` 与 [templates/](templates/CHECKLIST.md) 内容相同,复制技能文件夹即可。若要从仓库根目录读 `templates/`,再克隆整个仓库。
把 `skills/github-launch/` 复制到代理已经在读的技能目录。该目录里的 `assets/` 与 [templates/](templates/CHECKLIST.md) 相同,复制技能文件夹即可。要从仓库根目录读 `templates/`,再克隆整个仓库。

| 代理 | 当前项目 | 所有项目 |
| --- | --- | --- |
Expand All @@ -52,7 +53,7 @@ ship this to GitHub
| OpenCode | `.opencode/skills/` 或 `.agents/skills/` | `~/.config/opencode/skills/` 或 `~/.agents/skills/` |
| Codex | `.agents/skills/` | `~/.agents/skills/` |

Cursor 还会加载 `.claude/skills/`、`.codex/skills/`,以及主目录下的同名目录。如果 Codex 没有列出这个技能,把同一文件夹再复制到 `~/.codex/skills/`。
Cursor 还会加载 `.claude/skills/`、`.codex/skills/`,以及主目录下的同名目录。Codex 没有列出本技能时,把同一文件夹再复制到 `~/.codex/skills/`。

```bash
git clone https://github.com/loomlab-ai/github-launch-skill.git
Expand All @@ -70,17 +71,17 @@ mkdir -p .agents/skills
cp -R github-launch-skill/skills/github-launch .agents/skills/
```

技能未出现时,重开一次会话。用自然语言触发,无需斜杠命令。
技能没有出现时,新开一次会话。用自然语言触发,不需要斜杠命令。

## 用法

1. 安装技能。
2. 打开要发布的项目。对本项目执行步骤;除非你在改本工具仓库,否则不要对它执行。
2. 打开要发布的项目,在该项目里执行。只有正在修改本工具仓库时,才对本仓库执行。
3. 说:`ship this to GitHub`、`上架 GitHub` 或 `准备开源`。
4. 查看 diff 与 `.github/PUBLISH_CHECKLIST.md`。代理按 [skills/github-launch/SKILL.md](skills/github-launch/SKILL.md) 和 [templates/](templates/README.md.tmpl) 下的模板执行。
5. 密钥检查通过、且你希望分支出现在 GitHub 上时再推送。本仓库没有拒绝 `git push` 的钩子。
4. 查看 diff 和 `.github/PUBLISH_CHECKLIST.md`。代理按 [skills/github-launch/SKILL.md](skills/github-launch/SKILL.md) 和 [templates/](templates/README.md.tmpl) 里的模板执行。
5. 密钥检查通过,并且你要把分支推到 GitHub 时,再推送。本仓库没有拒绝 `git push` 的钩子。

代理会读取这些路径:
代理读取这些路径:

```text
skills/github-launch/SKILL.md
Expand All @@ -90,7 +91,7 @@ docs/ # Pages 源文件;在 Settings 里打开
scripts/check_kit.py # 本仓库的 CI
```

Pages 需自行打开:**Settings → Pages → Deploy from a branch**,目录选 **`/docs`**。落地页是 [docs/index.html](docs/index.html)。空文件 [docs/.nojekyll](docs/.nojekyll) 用于阻止 Jekyll 改写 HTML。站点可访问后,主页为 `https://loomlab-ai.github.io/github-launch-skill/`。把该 URL 填入 About 的 homepage。本仓库不会替你打开 Pages。
Pages 需自行打开:**Settings → Pages → Deploy from a branch**,目录选 **`/docs`**。落地页是 [docs/index.html](docs/index.html)。空文件 [docs/.nojekyll](docs/.nojekyll) 用来阻止 Jekyll 改写 HTML。站点可访问后,主页是 `https://loomlab-ai.github.io/github-launch-skill/`。把这个 URL 填进 About 的 homepage。本仓库不会替你打开 Pages。

建议的 About 描述(97 个字符):

Expand All @@ -100,37 +101,17 @@ Agent Skill that packages a project for GitHub: bilingual README, About, license

建议的 topics:`agent-skills`、`github`、`readme`、`seo`、`cicd`、`open-source`、`cursor`、`claude`。

About 描述和 topics 用这一份英文。GitHub 的 About 栏不是双语字段。
About 描述和 topics 用上面这份英文。GitHub About 不是双语字段。

## 配置

没有配置文件。代理从目标仓库读取项目名、读者、版权持有者和公开联系方式。若目标仓库没有公开联系方式,只链接 GitHub 所有者,不编造邮箱。不会编造个人姓名、电话或雇主,也不会把本仓库的联系方式抄过去。
没有配置文件。项目名、使用对象、版权持有者和公开联系方式都从目标仓库读取。目标仓库没有公开联系方式时,只链接 GitHub 所有者,不编造邮箱。不编造姓名、电话或雇主,也不抄本仓库的联系方式。

首次上架时,代理可改 README、补缺失的 `LICENSE`、`.gitignore`、`.github/workflows/ci.yml`、`docs/` 和 `.github/PUBLISH_CHECKLIST.md`。不改写历史。发布后可删除检查清单。
首次上架可以改 README,并补上缺失的 `LICENSE`、`.gitignore`、`.github/workflows/ci.yml`、`docs/` 和 `.github/PUBLISH_CHECKLIST.md`。不改写历史。发布后可以删掉检查清单。

新项目默认许可证为 MIT。已有 `LICENSE` 保持不动,除非你明确要求更换。

## 常见问题

### 这个技能会阻止 git push 吗?

不会。它是软技能:步骤加清单。不安装 git hook,不设 GitHub ruleset,也不用工具权限拒绝 `git push`。

### 它会打开 GitHub Pages 吗?

不会。它可以添加 `/docs` 站点,并给出要填进 About 的主页 URL。在 Settings → Pages → Deploy from a branch → `/docs` 打开 Pages。见[用法](#用法)。

### 它会选哪种许可证?

默认 MIT。仓库已有许可证,或你需要 Apache-2.0(专利授权)或 AGPL-3.0(网络 copyleft)时除外。不会悄悄更换许可证。

### 中英文 README 如何保持一致?

章节顺序、命令、版本号相同。一次改动若动了其中一个文件,须同时改另一个。

### 如果项目还不该公开呢?

直接说明。技能仍会写打包文件。除非你明确要求把仓库设为公开,否则不改可见性;密钥检查未通过时也不会改为公开。
除非你明确要求把仓库改为公开,否则不改可见性。密钥检查未通过时,不改为公开。

## 许可证

Expand Down
47 changes: 4 additions & 43 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,44 +368,6 @@
.card.tone-b .card-icon { color: var(--hands); }
.card.tone-c .card-icon { color: var(--session); }

/* ─── FAQ details ─── */
.faq-list { margin: 8px 0 0; }
details.faq {
border: 1px solid var(--rule);
background: #fff;
margin-bottom: 8px;
}
details.faq summary {
cursor: pointer;
list-style: none;
padding: 12px 14px;
font-weight: 600;
font-size: 15px;
display: flex;
align-items: center;
gap: 10px;
user-select: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before {
content: "+";
font-family: ui-monospace, Menlo, monospace;
font-size: 12px;
color: var(--accent);
width: 14px;
flex-shrink: 0;
}
details.faq[open] summary::before { content: "−"; }
details.faq[open] summary {
border-bottom: 1px solid var(--rule-soft);
}
details.faq .faq-body {
padding: 12px 14px 14px;
font-size: 14.5px;
color: var(--ink-soft);
}
details.faq .faq-body p { margin-bottom: 0; }

/* ─── Buttons ─── */
.btn {
font-family:
Expand Down Expand Up @@ -550,7 +512,6 @@
html.dark .callout,
html.dark .card,
html.dark figure,
html.dark details.faq,
html.dark .doc-meta span { background: #1f1f1f; }
html.dark figcaption { background: #181818; }
html.dark .copy-btn { background: #1f1f1f; }
Expand Down Expand Up @@ -609,7 +570,7 @@ <h2><span class="num">03</span>功能</h2>
<div class="card tone-a">
<div class="card-icon">01 · INTAKE</div>
<div class="card-name">项目信息</div>
<div class="card-desc">收集仓库类型、读者、语言。</div>
<div class="card-desc">收集仓库类型、使用对象、语言。</div>
</div>
<div class="card tone-a">
<div class="card-icon">02 · AUDIT</div>
Expand All @@ -619,7 +580,7 @@ <h2><span class="num">03</span>功能</h2>
<div class="card tone-a">
<div class="card-icon">03 · README</div>
<div class="card-name">双语 README</div>
<div class="card-desc">结构相同、事实一致的 <code>README.md</code> 与 <code>README.zh-CN.md</code>。</div>
<div class="card-desc">章节、命令、版本号相同。中文稿再做 doc-lint,删冗余和翻译腔。</div>
</div>
<div class="card tone-c">
<div class="card-icon">04 · ABOUT</div>
Expand All @@ -644,7 +605,7 @@ <h2><span class="num">03</span>功能</h2>
<div class="card tone-b">
<div class="card-icon">08 · SEO</div>
<div class="card-name">GEO 与 SEO</div>
<div class="card-desc">稳定标题、FAQ、Pages meta。</div>
<div class="card-desc">稳定标题和 Pages meta。</div>
</div>
<div class="card tone-b">
<div class="card-icon">09 · CHECK</div>
Expand Down Expand Up @@ -711,7 +672,7 @@ <h2><span class="num">04</span>安装</h2>
<h2><span class="num">05</span>用法</h2>
<ol>
<li>安装技能。</li>
<li>打开要发布的项目。对本项目执行步骤;除非你在改本工具仓库,否则不要对它执行。</li>
<li>打开要发布的项目,在该项目里执行。只有正在修改本工具仓库时,才对本仓库执行。</li>
<li>说:<code>ship this to GitHub</code>、<code>上架 GitHub</code> 或 <code>准备开源</code>。</li>
<li>查看 diff 与 <code>.github/PUBLISH_CHECKLIST.md</code>。代理按 <code>skills/github-launch/SKILL.md</code> 和 <code>templates/</code> 下的模板执行。</li>
<li>密钥检查通过、且你希望分支出现在 GitHub 上时再推送。本仓库没有拒绝 <code>git push</code> 的钩子。</li>
Expand Down
Loading
Loading