这节课在 第三课(Claude Design + Code)基础上新增三个工具:Git(版本控制)、GitHub 账号(存代码)、VS Code(查看和编辑文件)。另外课程脚本用到 Python + yfinance,需要提前装好。
预计准备时间:15–20 分钟。
This session adds three tools on top of Session 3 (Claude Design + Code): Git (version control), a GitHub account (code storage), and VS Code (file viewing and editing). The course script also uses Python + yfinance, which need to be installed in advance.
Estimated setup time: 15–20 minutes.
claude --version 有输出)Claude Code installed and running (claude --version shows output)如果以上任何一条不满足,回到对应课程学员页按课前准备补上。If any of the above is missing, go back to that session's student page and follow the pre-class setup.
| 工具Tool | 用途Purpose | 费用Cost |
|---|---|---|
| Git | 本地版本控制;Claude Code 内部也依赖它Local version control; Claude Code relies on it internally | 免费Free |
| VS Code | 查看和编辑 Skill 文件、Python 脚本View and edit Skill files and Python scripts | 免费Free |
| Python 3 + yfinance | 课程数据拉取脚本(ticker_scan.py)Course data-fetching script (ticker_scan.py) |
免费Free |
git --version
xcode-select --install
git --version
git version 2.x.x 即为成功。
✅ You should see something like git version 2.x.x — that means success.
stock-analysis-lite 工具包,浏览 Skill 文件结构Open the stock-analysis-lite toolkit and browse the Skill file structure.claude/commands/ 里的 Skill 定义文件View and edit Skill definition files in .claude/commands/所有代码的实际编写和运行都通过 Claude Code 完成,VS Code 是你的"查看窗口"。All actual code writing and execution happens through Claude Code. VS Code is just your "viewing window."
打开终端 / PowerShell,输入:Open Terminal / PowerShell and type:
python --version
如果看到 Python 3.x.x,跳到 3b 直接装 yfinance。
如果报错或显示 Python 2,按下方步骤安装。
If you see Python 3.x.x, skip to 3b and install yfinance directly.
If it errors or shows Python 2, follow the steps below to install.
python --versionAfter installation, open a new PowerShell window and run python --versionbrew install python
(没有 Homebrew?先运行 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)")
(No Homebrew? First run /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)")
python3 --versionVerify: python3 --versionpip install yfinance
macOS 用户如果 pip 报错,改用 pip3 install yfinance。macOS users: if pip errors, use pip3 install yfinance instead.
python -c "import yfinance; print('ok')" 输出 ok 即成功。
✅ Verify: python -c "import yfinance; print('ok')" outputs ok — that means it worked.
claude --version # Claude Code 正常Claude Code working
git --version # Git 已装Git installed
python --version # Python 3.x
python -c "import yfinance; print('yfinance ok')"
claude --version 正常Claude Pro active, claude --version worksgit --version 有输出Git installed, git --version shows outputpython --version 显示 Python 3.xpython --version shows Python 3.xpython -c "import yfinance; print('ok')" 输出 okpython -c "import yfinance; print('ok')" outputs ok✅ 六项全 OK,上课见!✅ All six done — see you in class!
Session 4 · AI 炒股分析系统——从方法论到可运行 Skill
Austin Xu · 北美华人 Claude AI 课程 ·
elitecoach101.com
Session 4 · AI Stock Analysis System: From Framework to Runnable Skill
Austin Xu · Claude AI Course for North American Chinese Professionals ·
elitecoach101.com