This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Self-host AI Environment Setup Guide (自建AI环境搭建指南) — a documentation and scripting repo that helps Chinese-speaking beginners set up AI development environments. The repo provides progressive learning paths, automated installation scripts, and JSON-based skill definitions targeting Mac, Windows, and WSL platforms.
Scripts are not built/compiled — they are run directly. Make sure shell scripts are executable:
chmod +x scripts/install/*.shRun a Mac installer:
./scripts/install/install-terminal-tools-mac.shRun a Windows installer (PowerShell, as admin):
.\scripts\install\install-terminal-tools-windows.ps1Run the GLM API configuration:
./scripts/configure/setup-glm.shSkills are JSON files in skills/ that follow the schema at skills/skill-schema.json. Each skill defines an environment setup task with metadata (id, name, level, platform), prerequisites, ordered steps (script/manual/verification actions), and estimated time. Levels: beginner, intermediate, advanced.
All shell scripts in scripts/ follow a consistent pattern:
set -efor error handling- Colored output using ANSI escape codes (
print_info,print_success,print_errorhelpers) - Idempotent — scripts check if tools are already installed before installing
- Platform-specific variants:
*-mac.sh,*-windows.ps1,*-wsl.sh - Each installer follows: banner → install steps → verify → print next steps
docs/guides/— Progressive learning guides (1-terminal/, 2-dev-tools/, 2-git/)scripts/install/— Platform-specific installers for terminal tools, Node.js (via fnm), Python (via uv)scripts/configure/— Post-install configuration (GLM API key setup)skills/— JSON skill definitions withskill-schema.jsonconfig/— Config templates (e.g.,zshrc.template)tasks/— Development task tracking and planning docs
All user-facing documentation and guides are written in Chinese (中文). Script comments and code can be in English or Chinese.