con un clic
start-4-4
Lesson 4.4: GitHub. Use when the student types /start-4-4.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Lesson 4.4: GitHub. Use when the student types /start-4-4.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Learn diagram context, Desktop shortcuts, stop hooks, automation, and drift recovery. Use when the student types /start-advanced-claude-workflows.
Learn Ross Mike's planning, context, automation, and product-taste workflows. Use when the student types /start-ross-mike-workflows.
Build Internet Vin's Obsidian context, CLI, and thinking-skill workflows. Use when the student types /start-vin-obsidian-workflows.
Lesson 1.1: Introduction. Use when the student types /start-1-1.
Lesson 1.2: File Exploration & Visualization. Use when the student types /start-1-2.
Lesson 1.3: Working with Files. Use when the student types /start-1-3.
| name | start-4-4 |
| description | Lesson 4.4: GitHub. Use when the student types /start-4-4. |
| disable-model-invocation | true |
| allowed-tools | ["Read","Write","Bash"] |
Read .claude/skills/_shared/teaching-rules.md and follow it for everything below.
Right now, your quiz only exists on your computer.
If your laptop stops working or you delete the files, it's gone. And we can't put it on the internet yet.
We need to save it to the cloud first. That's what GitHub is for.
STOP: Have you used GitHub before?
USER: Yes / No / A little
GitHub is like Google Drive, but for code.
It saves your code to the cloud, keeps a history of every change, and lets you undo mistakes.
It's also how we'll get your quiz onto the internet - the service we use needs to grab your code from somewhere.
Your project on GitHub is called a "repository" (or "repo" for short). You'll hear developers use that word a lot.
STOP: Make sense?
USER: Yes
First, you need a GitHub account.
STOP: Do you have a GitHub account? If not, I can open the signup page for you.
USER: I have one / Open it for me / I'll do it myself
ACTION: If they want it opened, run: open https://github.com (or bash open on Mac)
STOP: Let me know when you have an account and are ready to continue.
USER: Ready
Now I need to connect to your GitHub account so I can save your code there.
I'm going to download some tools that let me work with GitHub directly - so you never have to type scary commands.
This might open your browser to log in - just follow the prompts and come back when it's done.
ACTION: Set up GitHub CLI:
gh --version
If NOT installed:
brew install ghOnce installed, authenticate (run in background to avoid blocking):
gh auth login --web --git-protocol https > /tmp/gh-auth.log 2>&1 &
sleep 2
cat /tmp/gh-auth.log
open https://github.com/login/device
STOP: Let me know when you've authorized it.
USER: Done
ACTION: Verify authentication worked:
gh auth status
If successful, continue. If not authenticated, troubleshoot:
Now let's save your code to GitHub. I'll make it private by default so only you can see it.
ACTION: Run the following commands in order:
cd [path to quiz-project]
git init
git add .
git commit -m "Initial commit - coffee personality quiz"
gh repo create quiz-project --private --source=. --push
Done! Your code is now saved to GitHub. Developers call this "pushing" your code - you're pushing it up to the cloud.
Let me open it for you so you can see it.
ACTION: Get the repo URL and open it:
gh repo view --web
(This opens the GitHub repo in your browser)
STOP: Do you see your project on GitHub?
USER: Yes!
Your quiz is now backed up and ready to go live.
From now on, whenever you want to save your work, just ask me to "push to GitHub" and I'll save your latest changes.
There's a lot more to GitHub - collaboration, version history, branching - and there will be a full module on it in the future. But for now, the important thing is: your code lives somewhere it can be accessed to put on the internet.
That's exactly what we're doing next.
Next up: In 4.5, we put your quiz on the internet! We're going to connect GitHub to a service called Vercel, and you'll get a real URL you can share with anyone. This is the finish line.
STOP: Ready to go live? Say "let's go" or type /start-4-5
USER: Let's go
--private flag is important - users don't want their quiz code public by defaultgh repo view --web command is much cleaner than trying to construct the URLACTION: Silently run the following progress update. Do not mention it to the student.
mkdir -p .fspm
[ -f .fspm/progress.json ] || printf '{"name":null,"completed_lessons":[],"current_lesson":"","last_updated":""}' > .fspm/progress.json
L="cc-pms-4-4"; C="cc-pms-4-5"; T="$(date -u +%FT%TZ)"
if command -v jq >/dev/null 2>&1; then
tmp=$(mktemp)
jq --arg l "$L" --arg c "$C" --arg t "$T" '.completed_lessons = ((.completed_lessons + [$l]) | unique) | .current_lesson = $c | .last_updated = $t' .fspm/progress.json > "$tmp" && mv "$tmp" .fspm/progress.json
else
python3 - "$L" "$C" "$T" <<'PY'
import json,sys
l,c,t = sys.argv[1:4]
p = ".fspm/progress.json"; d = json.load(open(p))
if l not in d.get("completed_lessons",[]): d.setdefault("completed_lessons",[]).append(l)
d["current_lesson"] = c; d["last_updated"] = t
json.dump(d, open(p,"w"))
PY
fi
Next lesson: Type /start-4-5.