init-template

仓库创建 2026年4月30日最近提交 3 天前SkillHot 收录 21 天前
▸ 精选理由

自动化初始化常见重复步骤,适合新建游戏仓库时使用。

▸ 风险提示

会修改仓库内容与 Git 设置,运行前请备份或确认权限。

这个 Skill 做什么

将克隆的模板转为新的游戏项目并配置名称、引擎等初始化设置。

把克隆下来的 OCGS 模板一键变成你自己名下、可直接开发的游戏工程,会帮你配置游戏名和选定引擎(比如 Godot/Unity/Unreal),并处理初始目录、配置和元数据。可以通过交互式提问完成,也能接受命令行参数跳过问答并可选择重置 git 历史。特别之处在于把模板占位信息清理干净,产出一个干净、能马上跑的项目骨架,省去重复手工配置。

▸ 展开 SKILL.md 英文原文

First-time repo setup for new projects. Transforms the cloned OCGS template into a clean, ready-to-use game project with your own identity.

开发编程仓库初始化项目模板引擎选择通用
65
Stars
7
Forks
40
仓库内 Skill
+9
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/striderZA/OpenCodeGameStudios/master/.agents/skills/init-template/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/striderZA/OpenCodeGameStudios/master/.agents/skills/init-template/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
When this skill is invoked:

## Phase 1: Parse Arguments

Check if CLI arguments were passed (from `argument-hint`):

- `--name "My Game"` → sets game name (skips the name question below)
- `--engine godot|unity|unreal` → sets engine (skips engine question)
- `--reset-git` → automatically offers git reset (skips the prompt)

If `--name` and `--engine` are both provided, skip the interactive prompt entirely and proceed to Phase 2 using the provided values.

Otherwise, use `question` to gather missing details:

### Tab 1: Project Identity
- **What is your game's name?** (e.g., "My Game")
- **What is your game's one-line description?** (e.g., "A 2D platformer about a cat in space")

### Tab 2: 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有