Claude Code guide in three levels, Beginner to Advanced: hands-on lessons with checked exercises, every volatile fact cited to its source. Independent community guide.
JavaScript agent-skillsagentic-codingai-agentsanthropicanthropic-claudebest-practicesclaudeclaude-aiclaude-codeclaude-code-guideclaude-code-hooksclaude-code-pluginsclaude-code-skillsclaude-code-tutorialclaude-code-workflowsguidelearn-claude-codemcpsubagentstutorial
docs: README's welcome capture becomes a GIF of Pip greeting the learner (#130)
Wesam Abousaid62b3b3b135be
diff --git a/.github/scripts/fixtures/image-gif-outside-readme/fixture.json b/.github/scripts/fixtures/image-gif-outside-readme/fixture.jsonnew file mode 100644index 0000000..73384fa--- /dev/null+++ b/.github/scripts/fixtures/image-gif-outside-readme/fixture.json@@ -0,0 +1,8 @@+{+ "rule": "images",+ "expect": "fail",+ "about": "A GIF outside assets/readme/: only README may show an animated capture.",+ "output": [+ "assets/lessons/b-1/demo\\.gif: only SVG, PNG, JPEG and WebP files belong under assets/, and one GIF in assets/readme/"+ ]+}diff --git a/.github/scripts/fixtures/image-gif-outside-readme/generate.mjs b/.github/scripts/fixtures/image-gif-outside-readme/generate.mjsnew file mode 100644index 0000000..af86323--- /dev/null+++ b/.github/scripts/fixtures/image-gif-outside-readme/generate.mjs@@ -0,0 +1,8 @@+import { mkdirSync, writeFileSync } from 'node:fs';+import { join } from 'node:path';++// A one-pixel GIF in a lesson's folder.+export default function generate(root) {+ mkdirSync(join(root, 'assets', 'lessons', 'b-1'), { recursive: true });+ writeFileSync(join(root, 'assets', 'lessons', 'b-1', 'demo.gif'), Buffer.from("R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", "base64"));+}diff --git a/.github/scripts/fixtures/image-gif-outside-readme/tree/README.md b/.github/scripts/fixtures/image-gif-outside-readme/tree/README.mdnew file mode 100644index 0000000..2dce216--- /dev/null+++ b/.github/scripts/fixtures/image-gif-outside-readme/tree/README.md@@ -0,0 +1,3 @@+# Demo++<img src="assets/lessons/b-1/demo.gif" width="640" alt="Pip looks left, right and up, then smiles." />diff --git a/.github/scripts/fixtures/image-readme-gif-too-big/fixture.json b/.github/scripts/fixtures/image-readme-gif-too-big/fixture.jsonnew file mode 100644index 0000000..56516d8--- /dev/null+++ b/.github/scripts/fixtures/image-readme-gif-too-big/fixture.json@@ -0,0 +1,8 @@+{+ "rule": "images",+ "expect": "fail",+ "about": "README's animated capture over its 1000 KB budget.",+ "output": [+ "assets/readme/learn-big\\.gif: 1002 KB; README's animated capture may be up to 1000 KB"+ ]+}diff --git a/.github/scripts/fixtures/image-readme-gif-too-big/generate.mjs b/.github/scripts/fixtures/image-readme-gif-too-big/generate.mjsnew file mode 100644index 0000000..9ecda74--- /dev/null+++ b/.github/scripts/fixtures/image-readme-gif-too-big/generate.mjs@@ -0,0 +1,8 @@+import { mkdirSync, writeFileSync } from 'node:fs';+import { join } from 'node:path';++// A GIF just over the budget.+export default function generate(root) {+ mkdirSync(join(root, 'assets', 'readme'), { recursive: true });+ writeFileSync(join(root, 'assets', 'readme', 'learn-big.gif'), Buffer.concat([Buffer.from("R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", "base64"), Buffer.alloc(1001 * 1024)]));+}diff --git a/.github/scripts/fixtures/image-readme-gif-too-big/tree/README.md b/.github/scripts/fixtures/image-readme-gif-too-big/tree/README.mdnew file mode 100644index 0000000..666196d--- /dev/null+++ b/.github/scripts/fixtures/image-readme-gif-too-big/tree/README.md@@ -0,0 +1,3 @@+# Demo++<img src="assets/readme/learn-big.gif" width="640" alt="Pip looks left, right and up, then smiles." />diff --git a/.github/scripts/fixtures/image-readme-gif/fixture.json b/.github/scripts/fixtures/image-readme-gif/fixture.jsonnew file mode 100644index 0000000..d0ce12c--- /dev/null+++ b/.github/scripts/fixtures/image-readme-gif/fixture.json@@ -0,0 +1,8 @@+{+ "rule": "images",+ "expect": "pass",+ "about": "README's one animated capture: a GIF in assets/readme/, referenced and within its budget.",+ "output": [+ "PASS images"+ ]+}diff --git a/.github/scripts/fixtures/image-readme-gif/generate.mjs b/.github/scripts/fixtures/image-readme-gif/generate.mjsnew file mode 100644index 0000000..e50772a--- /dev/null+++ b/.github/scripts/fixtures/image-readme-gif/generate.mjs@@ -0,0 +1,8 @@+import { mkdirSync, writeFileSync } from 'node:fs';+import { join } from 'node:path';++// A one-pixel GIF, written here rather than committed.+export default function generate(root) {+ mkdirSync(join(root, 'assets', 'readme'), { recursive: true });+ writeFileSync(join(root, 'assets', 'readme', 'learn-demo.gif'), Buffer.from("R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", "base64"));+}diff --git a/.github/scripts/fixtures/image-readme-gif/tree/README.md b/.github/scripts/fixtures/image-readme-gif/tree/README.mdnew file mode 100644index 0000000..ff56b78--- /dev/null+++ b/.github/scripts/fixtures/image-readme-gif/tree/README.md@@ -0,0 +1,3 @@+# Demo++<img src="assets/readme/learn-demo.gif" width="640" alt="Pip looks left, right and up, then smiles." />diff --git a/.github/scripts/fixtures/image-readme-two-gifs/fixture.json b/.github/scripts/fixtures/image-readme-two-gifs/fixture.jsonnew file mode 100644index 0000000..c0f67af--- /dev/null+++ b/.github/scripts/fixtures/image-readme-two-gifs/fixture.json@@ -0,0 +1,8 @@+{+ "rule": "images",+ "expect": "fail",+ "about": "Two GIFs in assets/readme/: README may show one animated capture.",+ "output": [+ "assets/readme/ holds 2 GIFs \\(assets/readme/learn-one\\.gif, assets/readme/learn-two\\.gif\\); README may show one animated capture"+ ]+}diff --git a/.github/scripts/fixtures/image-readme-two-gifs/generate.mjs b/.github/scripts/fixtures/image-readme-two-gifs/generate.mjsnew file mode 100644index 0000000..988e667--- /dev/null+++ b/.github/scripts/fixtures/image-readme-two-gifs/generate.mjs@@ -0,0 +1,8 @@+import { mkdirSync, writeFileSync } from 'node:fs';+import { join } from 'node:path';++// Two one-pixel GIFs.+export default function generate(root) {+ mkdirSync(join(root, 'assets', 'readme'), { recursive: true });+ for (const name of ['learn-one.gif', 'learn-two.gif']) writeFileSync(join(root, 'assets', 'readme', name), Buffer.from("R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", "base64"));+}diff --git a/.github/scripts/fixtures/image-readme-two-gifs/tree/README.md b/.github/scripts/fixtures/image-readme-two-gifs/tree/README.mdnew file mode 100644index 0000000..a85bf78--- /dev/null+++ b/.github/scripts/fixtures/image-readme-two-gifs/tree/README.md@@ -0,0 +1,4 @@+# Demo++<img src="assets/readme/learn-one.gif" width="640" alt="Pip looks left." />+<img src="assets/readme/learn-two.gif" width="640" alt="Pip looks right." />diff --git a/.github/scripts/rules/images.mjs b/.github/scripts/rules/images.mjsindex 6f2596f..a4a1637 100644--- a/.github/scripts/rules/images.mjs+++ b/.github/scripts/rules/images.mjs@@ -3,7 +3,8 @@// - every Mermaid block declares accTitle and accDescr;// - files under assets/ have kebab-case names, an allowed type, fit the size// budget, and are referenced by a page (the brand sources and the social-// card are the only allowed orphans).+// card are the only allowed orphans);+// - README may show one animated capture: a single GIF in assets/readme/.import { statSync } from 'node:fs';import { join, posix } from 'node:path';import { readText } from '../lib/tree.mjs';@@ -13,10 +14,13 @@ export const modes = ['pr', 'release'];const KB = 1024;const KEBAB = /^[a-z0-9]+(?:-[a-z0-9]+)*(?:\.[a-z0-9]+)*$/;+// README's one animated capture of the learning app.+const README_GIF = /^assets\/readme\/[^/]+\.gif$/;const BUDGET = [[/\.svg$/, 50 * KB, 'an SVG may be up to 50 KB'],[/^assets\/(lessons|readme)\/.+\.(png|jpe?g|webp)$/, 200 * KB, 'a capture may be up to 200 KB'],[/^assets\/brand\/social-card\.png$/, 1000 * KB, 'the social card must be under 1 MB'],+ [README_GIF, 1000 * KB, 'README\'s animated capture may be up to 1000 KB'],];const ALLOWED_ORPHANS = [/^assets\/brand\/[^/]+\.svg$/, /^assets\/brand\/social-card\.png$/];@@ -96,7 +100,7 @@ export function run(ctx) {for (const asset of assets) {const bad = asset.split('/').slice(1).find((part) => !KEBAB.test(part));if (bad) problems.push(`${asset}: "${bad}" is not kebab-case`);- if (!/\.(svg|png|jpe?g|webp)$/.test(asset)) problems.push(`${asset}: only SVG, PNG, JPEG and WebP files belong under assets/`);+ if (!/\.(svg|png|jpe?g|webp)$/.test(asset) && !README_GIF.test(asset)) problems.push(`${asset}: only SVG, PNG, JPEG and WebP files belong under assets/, and one GIF in assets/readme/`);const size = statSync(join(ctx.root, asset)).size;for (const [pattern, limit, rule] of BUDGET) {if (pattern.test(asset) && size > limit) problems.push(`${asset}: ${Math.ceil(size / KB)} KB; ${rule}`);@@ -106,6 +110,9 @@ export function run(ctx) {}}+ const gifs = assets.filter((asset) => README_GIF.test(asset));+ if (gifs.length > 1) problems.push(`assets/readme/ holds ${gifs.length} GIFs (${gifs.join(', ')}); README may show one animated capture`);+if (problems.length) return { status: 'fail', problems };return { status: 'pass', summary: `${pages.length} pages, ${assets.length} files under assets/` };}diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 36670e9..1ca2267 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -289,9 +289,9 @@ Callouts are GitHub alerts, at most two per lesson, each with one meaning:- README may also show up to three captures of the practice template's learning app, `npm run learn`, under the same rules. Their visible captions carry no version or date, so the front page doesn't date itself: the `Claude Code vX.Y.Z (stable), YYYY-MM-DD` line goes in an HTML comment beside each image instead.- Every image has alt text that says what the reader should learn from it, not "screenshot" and not a repeat of the caption.- Text in a diagram or image reaches 4.5:1 contrast in GitHub's light and dark themes; other marks reach 3:1.-- No third-party images (logos, icons, slides, product screenshots), no animation and no embedded video. The one exception is the Claude mascot, [`assets/brand/claude-jumping.svg`](assets/brand/claude-jumping.svg) (MIT, credited in README), which jumps beside README's title and appears on the social card in its own colors.+- No third-party images (logos, icons, slides, product screenshots), no animation and no embedded video. There are two exceptions. The Claude mascot, [`assets/brand/claude-jumping.svg`](assets/brand/claude-jumping.svg) (MIT, credited in README), jumps beside README's title and appears on the social card in its own colors. README's first capture of the learning app may be one animated GIF, the app's own frames played in order (its mascot, Pip, greeting the learner), at the size of the still capture it replaces.- The `images` check enforces the alt text, the Mermaid lines, and the names, references and budget below.-- New images go under `assets/`: `assets/brand/` for the guide's identity, `assets/lessons/<lesson-id>/` for captures and `assets/readme/` for README's. Names are kebab-case, and paths are explicit and relative. Budget: an SVG up to 50 KB, a capture up to 200 KB. Every image that is not a capture ships its editable source beside it. Hand-drawn SVG is for the guide's identity pieces only.+- New images go under `assets/`: `assets/brand/` for the guide's identity, `assets/lessons/<lesson-id>/` for captures and `assets/readme/` for README's. Names are kebab-case, and paths are explicit and relative. Budget: an SVG up to 50 KB, a capture up to 200 KB, README's one animated GIF up to 1000 KB. Every image that is not a capture ships its editable source beside it. Hand-drawn SVG is for the guide's identity pieces only.### Headingsdiff --git a/README.md b/README.mdindex 8c8b241..cf21e09 100644--- a/README.md+++ b/README.md@@ -9,7 +9,7 @@ You learn by doing: every core lesson and capstone ends with a check you run in<p align="center"><!-- Captured with Claude Code v2.1.292 (stable) on 2026-10-17. -->- <img src="assets/readme/learn-welcome.png" width="640" alt="You keep two terminals open side by side: this one runs npm run learn, shows one step at a time and checks your work, and in the other you type commands and run Claude Code." />+ <img src="assets/readme/learn-welcome.gif" width="640" alt="Pip, the app's mascot, wakes, looks left, right and up, and smiles, then rests beside the welcome. You keep two terminals open side by side: this one runs npm run learn, shows one step at a time and checks your work, and in the other you type commands and run Claude Code." /><br /><sub>The learning app, <code>npm run learn</code>, on its first run.</sub></p>diff --git a/assets/readme/learn-welcome.gif b/assets/readme/learn-welcome.gifnew file mode 100644index 0000000..8f667b6Binary files /dev/null and b/assets/readme/learn-welcome.gif differdiff --git a/assets/readme/learn-welcome.png b/assets/readme/learn-welcome.pngdeleted file mode 100644index 8e6065f..0000000Binary files a/assets/readme/learn-welcome.png and /dev/null differ