site-pages-deploy-kit
Create, deploy, and verify an app's marketing/legal site using the portfolio standard — site/ source dir in the app repo, split-repo public GitHub Pages target, subtree force-push over an SSH deploy key. Use when the user says "set up the site", "deploy the site", "create a marketing site for this app", or invokes /site. Covers the one-time Pages/deploy-key runbook and the og/CSP/favicon lint.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- site-pages-deploy-kit
- description
- Create, deploy, and verify an app's marketing/legal site using the portfolio standard — site/ source dir in the app repo, split-repo public GitHub Pages target, subtree force-push over an SSH deploy key. Use when the user says "set up the site", "deploy the site", "create a marketing site for this app", or invokes /site. Covers the one-time Pages/deploy-key runbook and the og/CSP/favicon lint.
02 资源文件 10
- 脚本scripts/deploy-site.sh2.3 KB
- 脚本scripts/verify-site.sh2.6 KB
- 脚本templates/deploy-site.sh951 B
- 参考文档templates/deploy-site.yml2.4 KB
- 参考文档templates/RUNBOOK.md1.8 KB
- 其他templates/site-skeleton/.well-known/apple-app-site-association136 B
- 其他templates/site-skeleton/assets/site.css476 B
- 参考文档templates/site-skeleton/index.html990 B
- 参考文档templates/site-skeleton/privacy.html982 B
- 参考文档templates/site-skeleton/support.html975 B
03 SKILL.md 正文
Site kit (portfolio model)
The standard: the site source lives in the app repo (${SITE_DIR},
default site/); a separate PUBLIC repo (site.repo in app.yml) serves it
via GitHub Pages. Deploys force-push a git subtree split of the site dir —
the public repo is a derivative, never edited directly.
Commands
# deploy (local): guards uncommitted site changes, redacts tokened remotes
bash "${CLAUDE_PLUGIN_ROOT}/skills/site-pages-deploy-kit/scripts/deploy-site.sh" [--dry-run]
# verify: og:image absolute + true pixel dims, CSP meta, self-hosted assets, favicon set
bash "${CLAUDE_PLUGIN_ROOT}/skills/site-pages-deploy-kit/scripts/verify-site.sh" [site-dir]
Remote precedence: SITE_REMOTE env > .site-remote file > app.yml
site.repo. Always verify-site.sh before deploying.
Create (new site)
- Copy
templates/site-skeleton/into${SITE_DIR}, rendering{{APP_NAME}},{{SITE_DOMAIN}},{{APP_TEAM_ID}},{{APP_BUNDLE_ID}}tokens (sed). Generateog-card.png(1200×630),favicon.ico,apple-touch-icon.png— see the originating app'sbuild-og-card.shpattern for an idempotent generator. - Install the CI deploy path: render
templates/deploy-site.shintoscripts/deploy-site.sh(standalone — CI has no plugin) andtemplates/deploy-site.ymlinto.github/workflows/deploy-site.yml. - Follow
templates/RUNBOOK.mdfor the one-time public repo + deploy key + Pages + DNS setup. verify-site.shmust pass before the first deploy.
Security invariants (do not regress — a private floor-plan scanner app's security review)
- SSH deploy key, never a PAT — key is scoped to the one public site repo.
- Host keys pinned from
api.github.com/meta(TLS-verified), not ssh-keyscan trust-on-first-use. - Loud-fail when
SITE_DEPLOY_KEYsecret is missing. - Userinfo redaction — a tokened remote URL never lands in logs.
- Deploys cut from HEAD — uncommitted site changes abort.
Related
- Skill
site-og-favicon-verify— the unfurl/CSP knowledge behind the lint. - Release skill stage 8 delegates here in appstore mode.
04 同仓库更多 Skills
second-wind
Orchestrate long unattended Claude Code runs across multiple repos with the wind CLI. Use when the user wants to run Claude Code overnight, resume sessions after the 5-hour usage limit, run Claude in many repos at once via tmux, or says "set up second wind", "wind up", "overnight run", "resume after limit", "usage limit orchestrator".
structured-output-adaptive-thinking-token-bloat
A Claude API call using output_config.format (json_schema structured outputs) with thinking:{type:"adaptive"} burns most of its output budget on thinking (observed ~21k of ~24k tokens) without improving JSON quality, making the run up to ~5x more expensive than the same call with thinking omitted — use when calling the Messages API with a json_schema output format for extraction, ranking, classification, or summarization tasks, or when a schema-constrained call's usage.output_tokens is far larger than the returned JSON.
review
Apply a code-review lens to a diff, branch, or file — find correctness bugs, security issues, and quality problems, ranked by severity, with a concrete fix for each. Use when the user says "review this", "review my diff", "check this PR", "look this over before I commit", or "is this safe". Skip when the user wants the code written, not reviewed.
refresh
Rebuild the prompt-craft command registry and usage profile, and print a summary of installed commands and your personalized recommendations. Use when you install or update plugins and want the advisor to pick them up immediately, or say "refresh prompt-craft", "rebuild the command registry".
refactor
Apply a refactoring lens — restructure code without changing behavior, guarded by tests that pass before and after. Use when the user says "refactor", "clean this up", "extract this", "simplify this", "reduce duplication", or "make this readable" on existing working code. Skip when the change is meant to alter behavior (that's a feature or a fix).
plan
Decompose a non-trivial task into an explicit, tracked plan with goals and per-step acceptance criteria before writing code. Use when the user says "plan this", "break this down", "what's the plan", or asks for a multi-step feature/refactor that touches more than one file. Pairs with plan mode. Skip for single-edit changes that need no decomposition.