Token导航 LogoToken导航TokenDH.com
运维和基础设施敏感数据github未标认证来源可访问许可证需确认审计提醒

game-deploy游戏部署

Agent Skill

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

总安装

6,915

周安装

294

GitHub Stars

109

下载量

2,423
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:game-deploy(游戏部署)
来源仓库:https://github.com/opusgamelabs/game-creator
仓库路径:skills/game-deploy
安装命令:
npx skills add https://github.com/opusgamelabs/game-creator --skill game-deploy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/opusgamelabs/game-creator --skill game-deploy

简介

用于辅助云资源部署、容器编排和基础设施管理,支持多环境配置检查。

  • 适合整理部署步骤、分析资源状态或生成排障思路,提升运维效率。
  • 使用时需明确目标环境、账号权限和资源组,区分本地与生产操作;关键操作应二次确认。
  • 安装方式:GitHub 仓库,命令为 npx skills add opusgamelabs/game-creator --skill game-deploy。
  • 注意权限边界,防止误删资源或修改网络配置影响线上服务。

SKILL.md

Game Deployment

Deploy your browser game for public access. here.now is the default — instant static hosting with zero configuration. GitHub Pages is available as an alternative when you need git-based deploys.

here.now Deployment (Default)

Prerequisites

  • The here-now skill installed (npx skills add heredotnow/skill --skill here-now -g)
  • Optional: $HERENOW_API_KEY or ~/.herenow/credentials for permanent hosting

Quick Deploy

npm run build
~/.agents/skills/here-now/scripts/publish.sh dist/

The script outputs a live URL like https://<slug>.here.now/.

Why here.now is the default

  • Zero config — no base path, no git repo, no GitHub CLI required
  • Instant — site is live immediately (no waiting for propagation)
  • No base path issues — content served from subdomain root (base: '/' or default)
  • Works everywhere — only needs curl, file, and jq

Vite base path

here.now serves from the subdomain root, so use the default base path:

export default defineConfig({
  base: '/',
  // ... rest of config
});

IMPORTANT: Claim your site within 24 hours

Without an API key, publishes are anonymous and expire in 24 hours. The publish script returns a claim URL — the user MUST visit this URL and create a free here.now account to keep the site permanently. The claim token is only shown once and cannot be recovered. If they don't claim it, the site disappears.

You MUST always tell the user about the 24-hour window and the claim URL after every anonymous publish. This is not optional.

FeatureAnonymousAuthenticated
Expiry24 hours (then deleted!)Permanent
Max file size250 MB5 GB
Rate limit5/hour/IP60/hour/account

To set up an API key for permanent hosting (skip the 24h window entirely):

First check if the key already exists: test -f.env && grep -q '^HERENOW_API_KEY=.'.env && echo "found" If found, export it with set -a;..env; set +a and skip the prompt.

Otherwise:

  1. Ask the user for their email
  2. Send a magic link: curl -sS https://here.now/api/auth/login -H "content-type: application/json" -d '{"email": "user@example.com"}'
  3. User clicks the link, copies their API key from the dashboard
  4. User pastes the key like: HERENOW_API_KEY=their-key-here (saved to.env and redacted automatically)
  5. Also save to credentials file: mkdir -p ~/.herenow && grep '^HERENOW_API_KEY='.env | cut -d= -f2- > ~/.herenow/credentials && chmod 600 ~/.herenow/credentials

Updating a deploy

npm run build
~/.agents/skills/here-now/scripts/publish.sh dist/ --slug <slug>

The slug is saved in .herenow/state.json after each publish — the script auto-loads it for updates.

Deploy script

Add to package.json:

{
  "scripts": {
    "deploy": "npm run build && ~/.agents/skills/here-now/scripts/publish.sh dist/"
  }
}

For updates to an existing slug:

{
  "scripts": {
    "deploy": "npm run build && ~/.agents/skills/here-now/scripts/publish.sh dist/ --slug <slug>"
  }
}

GitHub Pages Deployment (Alternative)

Use GitHub Pages when you need git-based deployment or already have a GitHub repo set up.

Prerequisites

  • GitHub CLI installed (gh)
  • Git repository initialized and pushed to GitHub

Quick Deploy

npm run build && npx gh-pages -d dist

Full Setup

  1. Build the game:
npm run build
  1. Ensure vite.config.js has the correct base path if deploying to a subdirectory:
export default defineConfig({
  base: '/<repo-name>/',
  // ... rest of config
});
  1. Deploy with GitHub CLI:
gh repo create <game-name> --public --source=. --push
npm install -D gh-pages
npx gh-pages -d dist
  1. Enable GitHub Pages in repo settings (should auto-detect the gh-pages branch).

Your game is live at: https://<username>.github.io/<repo-name>/

Automated Deploys

Add to package.json:

{
  "scripts": {
    "deploy": "npm run build && npx gh-pages -d dist"
  }
}

Play.fun Registration

After deploying, register your game on Play.fun for monetization. Use the /game-creator:playdotfun skill for integration details.

The deployed URL becomes your gameUrl when registering:

await client.games.register({
  name: 'Your Game Name',
  gameUrl: 'https://<slug>.here.now/',  // or GitHub Pages URL
  maxScorePerSession: 500,
  maxSessionsPerDay: 20,
  maxCumulativePointsPerDay: 5000
});

Other Hosting Options

  • Vercel: npx vercel --prod (auto-detects Vite)
  • Netlify: Connect repo, set build command to npm run build, publish dir to dist
  • Railway: Use the Railway skill for deployment
  • itch.io: Upload the dist/ folder as an HTML5 game

Example Usage

Default (here.now)

/game-deploy

Result: Builds dist/ → publishes via here.now → game live at https://<slug>.here.now/ in seconds. Adds npm run deploy script for future one-command deploys.

GitHub Pages

/game-deploy github-pages

Result: Builds with correct base path → pushes to gh-pages branch → game live at https://<user>.github.io/<game>/ in 1-2 minutes.

Troubleshooting

here.now 429 rate limit

Cause: Too many deployments in a short period. here.now has rate limiting on anonymous deployments. Fix: Wait a few minutes and retry. For frequent deployments, consider using GitHub Pages or Vercel instead.

Anonymous here.now site expired

Cause: Anonymous here.now deployments are temporary and expire after a period of inactivity. Fix: Redeploy with npx here.now. For persistent hosting, use GitHub Pages (gh-pages branch) or Vercel, which don't expire.

GitHub Pages 404 after deployment

Cause: Vite's base path doesn't match the GitHub Pages URL structure (/<repo-name>/). Fix: Set base: '/<repo-name>/' in vite.config.js. Ensure the gh-pages branch is selected as the source in the repository's Pages settings. Wait 1-2 minutes for GitHub's CDN to propagate.

Blank page after deployment (asset paths)

Cause: Asset paths use absolute URLs (/assets/...) that don't resolve correctly on the deployment host. Fix: Use relative paths (./assets/...) or configure Vite's base option to match the deployment URL. Run npm run build locally and test the dist/ folder with a local server before deploying.

gh-pages push rejected

Cause: The remote gh-pages branch has diverged or the force push was blocked by branch protection rules. Fix: Use git push origin gh-pages --force if you own the repo and there's no branch protection. If protected, delete the remote gh-pages branch first: git push origin --delete gh-pages, then redeploy.

Pre-Deploy Checklist

  • npm run build succeeds with no errors
  • Test the production build with npm run preview
  • Remove any console.log debug statements
  • Verify all assets are included in the build
  • Check mobile/responsive behavior if applicable
  • Set appropriate <title> and meta tags in index.html

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.42%
按下载量换算931

Claude

28.82%
按下载量换算698

Cursor

18.91%
按下载量换算458

Gemini CLI

8.39%
按下载量换算203

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills