一键导入
new-project
Create a new project from template and set up a GitHub repo (public or private)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a new project from template and set up a GitHub repo (public or private)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
缺漏校對 - 檢查規則完整性
一致性校對 - 檢查術語使用是否一致
Initial summary - initialize the document translation project, build glossary and chapter structure
PDF 遊戲規則轉換與翻譯流程。Use when processing PDF files, extracting content, splitting chapters, or translating game documentation.
用語權衡 - 術語選擇與全文替換
術語互動管理與一致性檢查。Use when creating/editing glossary terms, reading terms with site-wide validation, or making terminology decisions.
| name | new-project |
| description | Create a new project from template and set up a GitHub repo (public or private) |
| user-invocable | true |
| disable-model-invocation | true |
Create a new game documentation project from the game-doc-template repository and set up a GitHub repository (public or private).
gh CLI is installed and authenticated.git is configured.Use AskUserQuestion once to collect the following:
Question 1: Project Path
../ (default, sibling to template)Question 2: Game Title (zh-TW)
Question 3: Project Name (if $ARGUMENTS does not include it)
Question 4: Repository Visibility
Example:
PDF: "Blades in the Dark.pdf"
Original title: Blades in the Dark
zh-TW title: 暗夜冷鋒
Suggested project name: blades-in-the-dark
# Template repo (current project)
TEMPLATE_REPO="weihung/game-doc-template"
# Target directory (user specified, default: ../)
TARGET_DIR="<user_specified_path>/<project_name>"
# PDF path (from arguments)
PDF_PATH="$ARGUMENTS[0]"
# Game titles
GAME_TITLE_EN="<extracted_from_pdf>"
GAME_TITLE_ZH="<user_specified>"
# Repo visibility
REPO_VISIBILITY="<private_or_public>"
# GitHub URL
REPO_URL="https://github.com/<username>/<project_name>"
# Navigate to parent directory
cd <user_specified_path>
# Create from template and clone
gh repo create <project_name> --template $TEMPLATE_REPO --$REPO_VISIBILITY --clone
# Local-copy fallback:
# cp -r <template_path> <TARGET_DIR>
# cd <TARGET_DIR>
# rm -rf .git
# git init
cd <TARGET_DIR>
# Create repo using selected visibility
gh repo create <project_name> --$REPO_VISIBILITY --source=. --remote=origin
# Push initial commit
git add .
git commit -m "Initial commit from game-doc-template"
git push -u origin main
mkdir -p data/pdfs
cp "<pdf_path>" data/pdfs/
Edit docs/astro.config.mjs:
SITE_CONFIG.title with GAME_TITLE_ZH.REPO_VISIBILITY=public, add Starlight GitHub social link:social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/<username>/<project_name>' },
],
Edit style-decisions.json:
{
"repository": {
"visibility": "public",
"url": "https://github.com/<username>/<project_name>",
"show_on_homepage": true
}
}
Homepage behavior:
REPO_VISIBILITY=public and show_on_homepage=true, include repo link in docs/src/content/docs/index.md.REPO_VISIBILITY=private, keep metadata but do not expose repo links in UI.Edit CLAUDE.md:
ls -la
ls -la data/pdfs/
ls -la docs/
git remote -v
Inform user:
✓ Project created: <project_name>
✓ Game title: <GAME_TITLE_EN>(<GAME_TITLE_ZH>)
✓ Project path: <TARGET_DIR>
✓ Repo type: <REPO_VISIBILITY>
✓ GitHub repo: https://github.com/<username>/<project_name>
✓ PDF copied to: data/pdfs/<filename>
Next:
1. cd <TARGET_DIR>
2. Run /init-doc
/new-project ~/Downloads/Blades-in-the-Dark.pdf
/new-project ~/Downloads/game.pdf my-game-docs
gh is missing: provide install instructions.gh auth login.