Claude Code 懶人包 #00:環境建置
Description
> 版本:v0.2 > 更新日期:2026-04-04 > 對應影片:Claude基本功 EP03 > 📌 **本懶人包可獨立執行**:會自動檢查並安裝所需工具,不需要先看過其他懶人包。你只要確認下方「先備條件」即可開始。 ---
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
Repository README
This is the README for mathruffian-dot/claude-code-lazy-packs, shared by 8 entries
in this directory. It describes the repository, not this entry specifically.
title: 'Claude Code 懶人包 #00:環境建置' date: '2026-04-04' type: 懶人包 version: v0.2 status: 初版(實作後更新) tags:
- Claude-Code
- 懶人包
- 環境建置
- Git
- GitHub video: EP03
Claude Code 懶人包 #00:環境建置
版本:v0.2 更新日期:2026-04-04 對應影片:Claude基本功 EP03
📌 **本懶人包可獨立執行**:會自動檢查並安裝所需工具,不需要先看過其他懶人包。你只要確認下方「先備條件」即可開始。
這個懶人包會幫你做什麼?
幫你把使用 Claude Code 懶人包所需的所有環境一次建置完成,包括:
- 確認 Claude Code 桌面版正常運作
- 安裝 Git for Windows(如果是 Windows 使用者)
- 安裝 GitHub CLI(gh)讓你能連接 GitHub
- 登入 GitHub 帳號
- 驗證所有工具都能正常使用
先備條件
在使用這個懶人包之前,請確認:
- 已有 Claude 帳號(Pro 方案以上)
- 已安裝 Claude Code 桌面版
- 已有 GitHub 帳號(免費帳號即可,到 github.com 註冊)
- 電腦有網路連線
請 Claude Code 幫我執行以下步驟
⚠️ 以下內容是給 Claude Code 讀的操作指令。 你只需要把這整份 MD 檔丟給 Claude Code 桌面版的 Code 分頁,它會自動開始執行。 遇到需要你手動操作的地方,它會暫停並告訴你該怎麼做。
**所有安裝與設定都在 Claude Code 桌面版內完成,不需要另外打開 PowerShell 或命令提示字元。** 如果 Claude Code 桌面版無法執行某個指令,才會引導你到終端機操作。 進階使用者也可以直接使用 Claude Code CLI 版本來執行本懶人包。
步驟零:環境檢查
請 Claude 在開始前,先自動確認以下所有項目。 如果有任何一項不符合,請先告知使用者問題所在,並引導解決後再繼續。 **不要跳過任何一項檢查,不要假設環境正常。**
- 確認作業系統:執行系統指令確認是 Windows / macOS / Linux,後續所有指令請根據實際的作業系統選擇正確版本執行
- 確認網路連線正常:嘗試 ping 一個外部網站
- 檢查 Git 是否已安裝:執行
git --version - 檢查 GitHub CLI 是否已安裝:執行
gh --version - 檢查 uv 是否已安裝:執行
uv --version
把未安裝的項目記錄下來,後續步驟中會逐一安裝。 告知使用者目前的狀態,例如:「Git 已安裝 ✅、GitHub CLI 未安裝 ❌,接下來會幫你安裝。」
步驟一:安裝 Git(如果未安裝)
如果步驟零確認 Git 已安裝,跳過此步驟。
**Windows**:
winget install --id Git.Git --accept-source-agreements --accept-package-agreements
**macOS**:
xcode-select --install
**Linux(Ubuntu/Debian)**:
sudo apt update && sudo apt install git -y
安裝完成後確認:
git --version
如果 `git` 指令找不到,請重開終端機再試一次。
步驟二:安裝 GitHub CLI(如果未安裝)
如果步驟零確認 gh 已安裝,跳過此步驟。
**Windows**:
winget install --id GitHub.cli --accept-source-agreements --accept-package-agreements
**macOS**:
brew install gh
**Linux(Ubuntu/Debian)**:
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
&& cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
安裝完成後確認:
gh --version
如果 `gh` 指令找不到,請重開終端機再試一次。
步驟三:安裝 uv(如果未安裝)
如果步驟零確認 uv 已安裝,跳過此步驟。 uv 是 Python 套件管理工具,後續安裝 MCP 工具會用到。
**Windows(PowerShell)**:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
**macOS / Linux**:
curl -LsSf https://astral.sh/uv/install.sh | sh
安裝完成後確認:
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11