- Ask user for communication language and template language preference.
- Detect languages, frameworks, and existing GitHub files with
python "$SKILL_DIR/scripts/gh_bootstrap_runtime.py" detect "$ARGUMENTS"before planning. - Call
AskUserQuestionto collect necessary configuration variables. - Scan for existing config files and plan conflict resolution (see references/RULES.md).
- Read
specs/template-catalog.mdto map required files to repository URLs, then usepython "$SKILL_DIR/scripts/gh_bootstrap_runtime.py" fetch-template ...to download the chosen template sources. - Render files with
python "$SKILL_DIR/scripts/gh_bootstrap_runtime.py" render-template ...so placeholder replacement is deterministic. Keepphases/andspecs/as reference material, not the execution engine. - Validate the generated tree with
python "$SKILL_DIR/scripts/gh_bootstrap_runtime.py" validate-tree <target-root>and refuse completion if unreplaced{{placeholders}}remain. - If
rtkis available, prefer it for project scanning, template inspection, and post-generation diff review. Keep template download and file rendering on the raw script path.
Mandatory Rules
- NEVER write config files from memory; MUST use downloaded templates.
- ALWAYS replace all variable placeholders (e.g.,
{{projectName}}). - See references/RULES.md for detailed architecture and constraints.