/install github-repo-guide-pdf
Github Repo Guide Pdf
Turn a GitHub repository into a usage-first Chinese guide and PDF.
Inputs
- Accept a GitHub repo URL or
OWNER/REPO. - Default audience: user/operator, not maintainer or contributor.
- If the repo is a monorepo, has several products, or mixes SDK plus server plus docs, ask one scoping question before continuing.
Workflow
- Normalize the repo identifier.
- Use
ghfirst for repo metadata. Fall back tobrowseronly ifghis blocked or missing needed details. - Clone the repo into a temporary directory with shallow depth when possible.
- Inspect user-facing docs and entry points.
- Write a Chinese Markdown guide that teaches usage, not internals.
- Build a PDF with
scripts/build_pdf.py. - Reply with one short status line plus
MEDIA:lines for the generated files.
Collection Rules
Prefer these sources, in this order:
README*and localized README filesdocs/and obvious user-guide files- command reference and configuration docs
package.json,pyproject.toml,Cargo.toml,go.mod, or equivalent manifest files for install/runtime hints- examples, templates, or sample config files
- GitHub repo metadata from
gh repo view
Use rg --files to find files quickly. Favor user-facing docs over architecture or internal implementation notes.
Analysis Rules
Focus on what a real user needs to learn:
- what the project is
- who it is for
- prerequisites and install
- quick start
- main commands or workflows
- important config options
- when to use which mode or command
- troubleshooting and common pitfalls
- minimal cheat sheet
Avoid deep implementation detail unless it is required to explain usage.
If docs are weak, infer carefully from manifests, command docs, examples, and CLI entry points. State uncertainty briefly instead of pretending.
Preferred GitHub Retrieval
Use gh first.
Examples:
gh repo view OWNER/REPO --json name,description,url,defaultBranchRef,licenseInfo,stargazerCount,forkCount,updatedAt
gh repo clone OWNER/REPO /tmp/repo -- --depth=1
If gh is insufficient, use browser to inspect the GitHub page or linked docs site.
Recommended File Discovery
rg --files . | rg '(^README|^readme|^docs/|guide|manual|command|config|example|package\.json$|pyproject\.toml$|Cargo\.toml$|go\.mod$)'
Read only the files needed to build the guide. Do not dump the whole repo into context.
Output Structure
Use this structure unless the repo clearly needs a different shape:
- What it is
- Who it is for
- Installation and prerequisites
- Quick start
- Core workflows or commands
- Configuration and modes
- Recommended usage paths by scenario
- Troubleshooting and common mistakes
- One-page cheat sheet
- Sources used
Output Paths
Write outputs under the workspace media directory so they can be sent directly:
- Markdown:
media/\x3Cslug>-user-guide-zh-YYYYMMDD-HHMMSS.md - PDF:
media/\x3Cslug>-user-guide-zh-YYYYMMDD-HHMMSS.pdf
Use a short slug derived from the repo name.
PDF Build
After the Markdown guide is ready, run:
python3 skills/github-repo-guide-pdf/scripts/build_pdf.py \
--markdown /absolute/path/to/guide.md \
--output /absolute/path/to/guide.pdf \
--title "\x3Ctitle>" \
--source-url "https://github.com/OWNER/REPO"
If font selection fails, rerun with:
--mainfont "Hiragino Sans GB"
Final Reply
After success, reply with:
- one short sentence saying the guide is ready
- one
MEDIA:line for the Markdown file - one
MEDIA:line for the PDF file
Example:
Done. I turned the repo into a Chinese usage guide and PDF.
MEDIA:media/example-user-guide-zh-20260328-150500.md
MEDIA:media/example-user-guide-zh-20260328-150500.pdf
Validation Checklist
Before replying, verify all of the following:
- the repo URL or
OWNER/REPOwas normalized correctly - the guide is usage-first, not implementation-first
- the Markdown file exists and is non-empty
- the PDF exists and is non-empty
- both files live under the workspace media directory
- the
MEDIA:paths match the actual files
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install github-repo-guide-pdf - 安装完成后,直接呼叫该 Skill 的名称或使用
/github-repo-guide-pdf触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
GitHub Repo Guide PDF 是什么?
Analyze a GitHub repository URL or OWNER/REPO and produce a Chinese user guide focused on how to use the project, not how it is implemented. Build a Markdown... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 134 次。
如何安装 GitHub Repo Guide PDF?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install github-repo-guide-pdf」即可一键安装,无需额外配置。
GitHub Repo Guide PDF 是免费的吗?
是的,GitHub Repo Guide PDF 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
GitHub Repo Guide PDF 支持哪些平台?
GitHub Repo Guide PDF 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 GitHub Repo Guide PDF?
由 smile618(@smile618)开发并维护,当前版本 v1.0.1。