From knowledge-base
一键优化 GitHub Profile README(酷炫风格、Snake 动画、图卡健康检查与自动回退),适用于主页升级和图片失效排查场景。
How this skill is triggered — by the user, by Claude, or both
Slash command
/knowledge-base:github-profile-coolifyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<role>
gsd:workflow gsd:meta github-profile-coolify GitHub 主页美化、Profile README、snake 动画、stats 图片失效排查 Read, Write, Edit, Bash, AskUserQuestion, WebFetch 账号与目标仓库确认完成 GitHub 授权 scope 检查通过 README 模板与模块选择确认 Snake Workflow 已成功运行 所有图片 URL 可访问性检查通过 主页可见效果验收通过 在写入 README 之前必须先备份现有 README 内容 外部图片服务返回 503/DEPLOYMENT_PAUSED 时必须自动切换备用源 未经用户明确同意,不执行 destructive git 操作 每次 push 后必须给出可验证链接和检查命令 </gsd:meta>
gsd:goal将用户 GitHub 主页升级为“可展示 + 可排障 + 可持续更新”的酷炫版,并确保关键图片稳定显示。</gsd:goal>
<gsd:phase name="preflight" order="1"> gsd:step识别 GitHub 用户名与目标 profile 仓库(/)</gsd:step> gsd:step检查 gh、git 与网络连通性</gsd:step> gsd:step确认执行模式(全自动/半自动)</gsd:step> gsd:checkpoint环境预检完成</gsd:checkpoint> </gsd:phase>
<gsd:phase name="auth" order="2"> gsd:step检查 gh auth 状态与缺失 scope</gsd:step> gsd:step若缺少 scope,引导用户完成授权</gsd:step> gsd:step授权失败时自动进入代理/重试分支</gsd:step> gsd:checkpoint授权通过</gsd:checkpoint> </gsd:phase>
<gsd:phase name="build" order="3"> gsd:step生成或更新 README(酷炫模板)</gsd:step> gsd:step创建/更新 snake workflow</gsd:step> gsd:step提交并推送到远端</gsd:step> gsd:checkpoint基础配置生效</gsd:checkpoint> </gsd:phase>
<gsd:phase name="verify-and-fallback" order="4"> gsd:stepcurl 检查所有图片 URL 的 HTTP 状态码</gsd:step> gsd:step对 503/超时的服务自动替换为备用服务</gsd:step> gsd:step再次推送并复验</gsd:step> gsd:checkpoint显示稳定</gsd:checkpoint> </gsd:phase>
<gsd:phase name="handoff" order="5"> gsd:step输出变更摘要、验证链接、故障排查入口</gsd:step> gsd:step提供下一步可选增强方案</gsd:step> gsd:checkpoint用户验收完成</gsd:checkpoint> </gsd:phase> </gsd:workflow>
| 类别 | 需要项 | 用途 | 申请方式 |
|---|---|---|---|
| GitHub CLI 登录 | gh auth login | 允许 CLI 访问 GitHub API | 首次执行时登录 |
| OAuth Scope | user | 读取/更新个人资料(如 Bio) | gh auth refresh -h github.com -s user |
| OAuth Scope | repo | 创建与推送 profile 仓库 | gh auth refresh -h github.com -s repo |
| OAuth Scope | workflow | 创建/触发 GitHub Actions(snake) | gh auth refresh -h github.com -s workflow |
| 网络(可选) | HTTP 代理 127.0.0.1:10802 | 解决直连超时 | HTTP_PROXY/HTTPS_PROXY 环境变量 |
推荐一次性授权:
gh auth refresh -h github.com -s user,repo,workflow
<username>/<username>)。lite(简洁)/ full(完整酷炫版,默认)。full 包含:Typing、Stats、Streak、Activity、Snake、Featured Projects。127.0.0.1:10802。curl -I 状态码)# 1) 进入 profile 仓库
cd <workspace>/<username>
# 2) 权限与网络检查
gh auth status -h github.com
gh auth refresh -h github.com -s user,repo,workflow
# 3) 提交与推送
git add README.md .github/workflows/generate-snake.yml
git commit -m "feat(profile): upgrade cool homepage with resilient cards"
git push origin main
# 4) 图片健康检查
curl -I "https://github-profile-summary-cards.vercel.app/api/cards/stats?username=<username>&theme=tokyonight"
curl -I "https://streak-stats.demolab.com?user=<username>&theme=tokyonight"
curl -I "https://raw.githubusercontent.com/<username>/<username>/output/github-contribution-grid-snake.svg"
当检测到以下信号时触发回退:
503x-vercel-error: DEPLOYMENT_PAUSEDcurl: (28))回退映射:
| 原服务 | 常见问题 | 备用服务 |
|---|---|---|
github-readme-stats.vercel.app | 503 / paused / 超时 | github-profile-summary-cards.vercel.app/api/cards/stats + repos-per-language |
github-profile-trophy.vercel.app | 503 / paused / 超时 | github-profile-summary-cards.vercel.app/api/cards/profile-details |
| 现象 | 根因 | 处理方式 |
|---|---|---|
Post /login/device/code i/o timeout | 网络不通或直连不稳定 | 切换代理后重试授权 |
| 授权页按钮点不了 | 浏览器会话异常/脚本拦截 | 换浏览器或无痕窗口重新授权 |
找不到 Customize your profile | 未创建同名公开仓库 | 创建 <username>/<username> 公开仓库 |
| Snake 不显示 | output 分支未生成 | 检查 workflow run,确认 output 分支产物存在 |
| README 更新但页面没变 | GitHub 缓存 | 等待 1-5 分钟后强刷 |
直接对代理说以下任意一句:
帮我把 GitHub 主页做成完整酷炫版,包含 snake,并自动修复图片不显示问题。
只做 Lite 版主页,保留我当前 README 的项目介绍段落。
排查我主页里不显示的图片,并自动替换为稳定可用的卡片服务。
output 分支存在 SVGHTTP 200npx claudepluginhub wangjs-jacky/jacky-skills --plugin knowledge-baseArchitects GitHub profile READMEs in the special username/username repo, optimizing for recruitment with badges, dynamic GitHub Actions stats, WakaTime metrics, and pinned repos.
Guides optimization of GitHub profile, READMEs, and project discoverability. Covers README structure, badges, and GitHub marketing features.
Optimizes GitHub profile and repository discoverability, clarity, and trust signals. Guides README structure, topics, descriptions, social previews, and code search visibility.