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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Other agents and user-level paths are in [Install](#install). The steps are in [
- 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, `llms.txt`, and Pages meta
- GEO and SEO: stable headings, an FAQ, and Pages meta
- A publish checklist the agent fills with `pass`, `fail`, or `skip`

## Install
Expand Down Expand Up @@ -104,7 +104,7 @@ Suggested topics: `agent-skills`, `github`, `readme`, `seo`, `cicd`, `open-sourc

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.

On a first launch, the agent may edit the README and add these files when they are missing: `LICENSE`, `.gitignore`, `.github/workflows/ci.yml`, `docs/`, `llms.txt`, and `.github/PUBLISH_CHECKLIST.md`. It does not rewrite history. You can delete the checklist after you publish.
On a first launch, the agent may edit the README and add these files when they are missing: `LICENSE`, `.gitignore`, `.github/workflows/ci.yml`, `docs/`, and `.github/PUBLISH_CHECKLIST.md`. It does not rewrite history. You can delete the checklist after you publish.

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

Expand Down
4 changes: 2 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ship this to GitHub
- 许可证:默认 MIT;需要专利授权用 Apache-2.0,需要网络 copyleft 用 AGPL-3.0
- 添加尽量短的 GitHub Actions 工作流(lint、测试或文档检查)
- 准备 `/docs` 下的 GitHub Pages,并写明在 Settings 里如何打开(技能不会替你打开 Pages)
- GEO 与 SEO:稳定标题、FAQ、`llms.txt`、Pages meta
- GEO 与 SEO:稳定标题、FAQ、Pages meta
- 发布检查清单,由代理填 `pass` / `fail` / `skip`

## 安装
Expand Down Expand Up @@ -106,7 +106,7 @@ About 描述和 topics 用这一份英文。GitHub 的 About 栏不是双语字

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

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

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

Expand Down
5 changes: 2 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,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、<code>llms.txt</code>、Pages meta。</div>
<div class="card-desc">稳定标题、FAQ、Pages meta。</div>
</div>
<div class="card tone-b">
<div class="card-icon">09 · CHECK</div>
Expand Down Expand Up @@ -799,7 +799,7 @@ <h2><span class="num">05</span>用法</h2>
<section>
<h2><span class="num">06</span>配置</h2>
<p>没有配置文件。代理从目标仓库读取项目名、读者、版权持有者和公开联系方式。若目标仓库没有公开联系方式,只链接 GitHub 所有者,不编造邮箱。不会编造个人姓名、电话或雇主,也不会把本仓库的联系方式抄过去。</p>
<p>首次上架时,代理可改 README、补缺失的 <code>LICENSE</code>、<code>.gitignore</code>、<code>.github/workflows/ci.yml</code>、<code>docs/</code>、<code>llms.txt</code> 和 <code>.github/PUBLISH_CHECKLIST.md</code>。不改写历史。发布后可删除检查清单。</p>
<p>首次上架时,代理可改 README、补缺失的 <code>LICENSE</code>、<code>.gitignore</code>、<code>.github/workflows/ci.yml</code>、<code>docs/</code> 和 <code>.github/PUBLISH_CHECKLIST.md</code>。不改写历史。发布后可删除检查清单。</p>
<p>新项目默认许可证为 MIT。已有 <code>LICENSE</code> 保持不动,除非你明确要求更换。</p>
</section>

Expand All @@ -809,7 +809,6 @@ <h4>Repository &amp; Contact</h4>
<li>Repository · <a href="https://github.com/loomlab-ai/github-launch-skill">loomlab-ai/github-launch-skill</a></li>
<li>English README · <a href="https://github.com/loomlab-ai/github-launch-skill/blob/main/README.md">README.md</a></li>
<li>中文说明 · <a href="https://github.com/loomlab-ai/github-launch-skill/blob/main/README.zh-CN.md">README.zh-CN.md</a></li>
<li>llms.txt · <a href="https://loomlab-ai.github.io/github-launch-skill/llms.txt">Pages llms.txt</a></li>
<li>LoomLab · <a href="https://github.com/loomlab-ai">github.com/loomlab-ai</a></li>
<li>Email · <a href="mailto:lofisuchat@gmail.com">lofisuchat@gmail.com</a></li>
<li>GitHub Sponsors · LoomLab</li>
Expand Down
19 changes: 0 additions & 19 deletions docs/llms.txt

This file was deleted.

19 changes: 0 additions & 19 deletions llms.txt

This file was deleted.

39 changes: 21 additions & 18 deletions scripts/check_kit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
"README.zh-CN.md",
"CONTRIBUTING.md",
".gitignore",
"llms.txt",
"docs/llms.txt",
"docs/index.html",
"docs/.nojekyll",
"skills/github-launch/SKILL.md",
Expand All @@ -31,7 +29,6 @@
"templates/README.md.tmpl",
"templates/README.zh-CN.md.tmpl",
"templates/ABOUT.txt",
"templates/llms.txt.tmpl",
"templates/LICENSE.MIT.txt",
"templates/.github/workflows/ci.yml.tmpl",
"templates/docs/index.md.tmpl",
Expand Down Expand Up @@ -68,16 +65,12 @@
"CONTRIBUTING.md",
"skills/github-launch/SKILL.md",
"docs/index.html",
"llms.txt",
"docs/llms.txt",
]

PUBLIC_COPY = [
"README.md",
"README.zh-CN.md",
"docs/index.html",
"llms.txt",
"docs/llms.txt",
]

TOKEN_FREE = PUBLIC_COPY + ["CONTRIBUTING.md"]
Expand Down Expand Up @@ -262,9 +255,11 @@ def main() -> int:
):
if phrase not in description:
fail(f"SKILL.md description missing {phrase!r}")
for phrase in ("soft skill", "git push", "llms.txt", "160"):
for phrase in ("soft skill", "git push", "FAQ", "160"):
if phrase not in skill_text:
fail(f"SKILL.md body missing {phrase!r}")
if "llms.txt" in skill_text:
fail("SKILL.md must not require llms.txt")
if "author: loomlab" not in meta.get("metadata", ""):
fail("SKILL.md metadata.author is not loomlab")

Expand Down Expand Up @@ -294,7 +289,7 @@ def main() -> int:
for topic in topics:
if not re.fullmatch(r"[a-z0-9]+(?:-[a-z0-9]+)*", topic):
fail(f"illegal example topic {topic!r}")
for rel in ("README.md", "README.zh-CN.md", "docs/index.html", "llms.txt"):
for rel in ("README.md", "README.zh-CN.md", "docs/index.html"):
if summary not in read(rel):
fail(f"{rel}: missing the About description")
for rel in ("README.md", "README.zh-CN.md"):
Expand Down Expand Up @@ -389,14 +384,6 @@ def main() -> int:
if data.get("name") != "github-launch-skill":
fail("JSON-LD name is not github-launch-skill")

if read("llms.txt") != read("docs/llms.txt"):
fail("docs/llms.txt is not the same file as llms.txt")
llms = read("llms.txt")
if not llms.startswith("# github-launch-skill\n"):
fail("llms.txt must start with the project H1")
if "\n> " not in llms:
fail("llms.txt is missing the blockquote summary")

workflow = read(".github/workflows/ci.yml")
for needle in ("actions/checkout@v7", "permissions:", "python3 scripts/check_kit.py"):
if needle not in workflow:
Expand Down Expand Up @@ -450,7 +437,6 @@ def main() -> int:
)
for rel, token in (
("templates/ABOUT.txt", "{{ABOUT_DESCRIPTION}}"),
("templates/llms.txt.tmpl", "{{REPO_URL}}"),
("templates/CHECKLIST.md", "{{PROJECT_NAME}}"),
("templates/LICENSE.MIT.txt", "{{YEAR}}"),
("templates/LICENSE.MIT.txt", "{{COPYRIGHT_HOLDER}}"),
Expand All @@ -477,6 +463,23 @@ def main() -> int:
for rel in LINK_FILES:
check_links(rel)

banned = "llms.txt"
for path in ROOT.rglob("*"):
if not path.is_file() or ".git" in path.parts:
continue
rel = path.relative_to(ROOT).as_posix()
if rel == "scripts/check_kit.py":
continue
if path.name in {banned, "llms.txt.tmpl"}:
fail(f"do not ship {rel}")
continue
try:
body = path.read_text(encoding="utf-8")
except UnicodeError:
continue
if banned in body:
fail(f"{rel}: do not mention {banned}")

report()
return 1 if ERRORS else 0

Expand Down
8 changes: 3 additions & 5 deletions skills/github-launch/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: github-launch
description: >-
Package a software project for public GitHub: bilingual README (English
and zh-CN), About description and topics, LICENSE, GitHub Pages, minimal
CI, GEO/SEO (llms.txt, FAQ, headings), and a code-content review. Use
CI, GEO/SEO (FAQ, headings, title, meta), and a code-content review. Use
when the user says "ship this to GitHub", "上架 GitHub", "准备开源",
"publish to GitHub", or "open source this". Procedure only; it does not
block git push.
Expand Down Expand Up @@ -51,7 +51,6 @@ Resolve the template root in order:
| `README.md` | [README.md.tmpl](../../templates/README.md.tmpl) |
| `README.zh-CN.md` | [README.zh-CN.md.tmpl](../../templates/README.zh-CN.md.tmpl) |
| About text in the report | [ABOUT.txt](../../templates/ABOUT.txt) |
| `llms.txt` and, if you add `docs/`, `docs/llms.txt` | [llms.txt.tmpl](../../templates/llms.txt.tmpl) |
| `.github/workflows/ci.yml` | [ci.yml.tmpl](../../templates/.github/workflows/ci.yml.tmpl) |
| `docs/index.md` or `docs/index.html` (one, not both) | [index.md.tmpl](../../templates/docs/index.md.tmpl) or [index.html.tmpl](../../templates/docs/index.html.tmpl) |
| New MIT `LICENSE` | [LICENSE.MIT.txt](../../templates/LICENSE.MIT.txt) |
Expand All @@ -60,7 +59,7 @@ Resolve the template root in order:
Placeholder tokens look like `{{PROJECT_NAME}}`: uppercase letters, digits, underscores. Replace every one, including tokens that expand into several lines. A GitHub Actions expression looks like `${{ hashFiles('package.json') }}`. Leave those in workflow files. After editing, search the target:

```bash
rg -n '\{\{[A-Z0-9_]+\}\}' README.md README.zh-CN.md LICENSE llms.txt docs .github/PUBLISH_CHECKLIST.md || true
rg -n '\{\{[A-Z0-9_]+\}\}' README.md README.zh-CN.md LICENSE docs .github/PUBLISH_CHECKLIST.md || true
```

Any hit in those paths is unfinished. Do not run that pattern-delete over `*.yml`.
Expand Down Expand Up @@ -231,7 +230,7 @@ Use `docs/` on the default branch for a landing page or a few hand-written pages

Write one entry point:

- `docs/index.html` from [index.html.tmpl](../../templates/docs/index.html.tmpl) when the page should carry its own title, meta description, canonical URL, and Open Graph tags. Add an empty `docs/.nojekyll` so Jekyll does not rewrite the HTML. Keep a trailing slash on the homepage URL; the template joins it to `llms.txt`.
- `docs/index.html` from [index.html.tmpl](../../templates/docs/index.html.tmpl) when the page should carry its own title, meta description, canonical URL, and Open Graph tags. Add an empty `docs/.nojekyll` so Jekyll does not rewrite the HTML.
- `docs/index.md` from [index.md.tmpl](../../templates/docs/index.md.tmpl) when the repo already uses Jekyll or the default Pages theme is enough.

Do not write both. `index.html` wins and the markdown file would be ignored.
Expand All @@ -254,7 +253,6 @@ Write so a search index and a language model quote the same facts.
- The H1 is the product name. The first paragraph says what it is, who it is for, and the license. Scrapers cut the page short.
- Use that same product noun in Features and in one FAQ answer. Do not stuff keywords.
- FAQ headings are full questions.
- Write `llms.txt` from [llms.txt.tmpl](../../templates/llms.txt.tmpl). H1, then a blockquote summary, then H2 sections of absolute links. If you added `docs/`, write the same body to `docs/llms.txt` so the site serves `/llms.txt`. Follow `https://llmstxt.org/`.
- On `docs/index.html` set `<title>`, `meta name="description"` (160 characters or fewer), `link rel="canonical"`, `og:title`, `og:description`, and `og:url`. Use the About sentence for the meta description when it already states the product.
- Add JSON-LD `@type` `SoftwareSourceCode` only with facts you can point at: name, description, `codeRepository`, license URL. Publisher is an Organization. No star ratings, no invented author name.

Expand Down
2 changes: 1 addition & 1 deletion skills/github-launch/assets/CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ Report from the `github-launch` skill. Status is `pass`, `fail`, or `skip`. This
| CI workflow matches the stack | TODO | |
| Pages decision recorded; the agent did not enable Pages | TODO | |
| Homepage URL recorded; set only after the site loads | TODO | {{HOMEPAGE_URL}} |
| `llms.txt` written; FAQ and product noun present | TODO | |
| FAQ and product noun present | TODO | |
| Push | TODO | not run unless the user asked and the secret scan passed |
3 changes: 1 addition & 2 deletions skills/github-launch/assets/docs/index.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<meta property="og:description" content="{{ABOUT_DESCRIPTION}}">
<meta property="og:url" content="{{HOMEPAGE_URL}}">
<meta property="og:type" content="website">
<link rel="describedby" href="{{HOMEPAGE_URL}}llms.txt">
<script type="application/ld+json">
{
"@context": "https://schema.org",
Expand Down Expand Up @@ -41,7 +40,7 @@
<main>
<h1>{{PROJECT_NAME}}</h1>
<p>{{ONE_LINER}}</p>
<p><a href="{{REPO_URL}}">Source on GitHub</a> · <a href="llms.txt">llms.txt</a></p>
<p><a href="{{REPO_URL}}">Source on GitHub</a></p>
<footer>{{CONTACT_LINE}}</footer>
</main>
</body>
Expand Down
23 changes: 0 additions & 23 deletions skills/github-launch/assets/llms.txt.tmpl

This file was deleted.

2 changes: 1 addition & 1 deletion templates/CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ Report from the `github-launch` skill. Status is `pass`, `fail`, or `skip`. This
| CI workflow matches the stack | TODO | |
| Pages decision recorded; the agent did not enable Pages | TODO | |
| Homepage URL recorded; set only after the site loads | TODO | {{HOMEPAGE_URL}} |
| `llms.txt` written; FAQ and product noun present | TODO | |
| FAQ and product noun present | TODO | |
| Push | TODO | not run unless the user asked and the secret scan passed |
3 changes: 1 addition & 2 deletions templates/docs/index.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<meta property="og:description" content="{{ABOUT_DESCRIPTION}}">
<meta property="og:url" content="{{HOMEPAGE_URL}}">
<meta property="og:type" content="website">
<link rel="describedby" href="{{HOMEPAGE_URL}}llms.txt">
<script type="application/ld+json">
{
"@context": "https://schema.org",
Expand Down Expand Up @@ -41,7 +40,7 @@
<main>
<h1>{{PROJECT_NAME}}</h1>
<p>{{ONE_LINER}}</p>
<p><a href="{{REPO_URL}}">Source on GitHub</a> · <a href="llms.txt">llms.txt</a></p>
<p><a href="{{REPO_URL}}">Source on GitHub</a></p>
<footer>{{CONTACT_LINE}}</footer>
</main>
</body>
Expand Down
23 changes: 0 additions & 23 deletions templates/llms.txt.tmpl

This file was deleted.

Loading