AI coding tutorials
17 practical AI coding tutorials on Claude Code, Codex, Git, browser testing, Python and SQLite. Each workshop includes a task, a prompt and a result you can check.

Getting started with a coding agent
- Claude CodeHow to start a project with Claude CodeBuild a keyboard-friendly counter in a single HTML file with Claude Code. Learn what to put in the first prompt and how to check the result before committing.
- Project setupWrite project instructions with AGENTS.md and CLAUDE.mdGive Codex and Claude Code the same repository rules. Use a short AGENTS.md, import it from CLAUDE.md and check the instructions in a fresh session.
Git and continuous integration
- Codex CLIReview a Git diff with Codex CLIUse Codex CLI to review uncommitted changes, reproduce a one-line cart bug and decide whether a review finding deserves a fix.
- Git worktreesGive your coding agent its own Git worktreeGive Claude Code or Codex a second checkout, leave your unfinished edits in place and bring back one reviewed change with a fast-forward merge.
- Git debuggingFind the commit that broke a test with git bisectTurn a 16-minute billing error into a tiny Node.js probe and let git bisect locate the first bad commit in a reproducible local history.
- Git reviewCherry-pick one useful fix from an AI branchMove one seat-counter fix onto main, leave a surprise redesign behind and prove with a small Node.js check that the selected commit works on its own.
- Continuous integrationRun Node.js tests in GitHub Actions and reproduce a failure locallyWrite a dependency-free Node.js test, break it on purpose and use exactly the same command in a GitHub Actions workflow for pushes and pull requests.
Browser development and tests
- TestingTest-driven development with AI in Node.jsPractise red–green–refactor with Claude Code or Codex and the Node.js test runner. Four boundary cases catch a rounding bug with zero extra packages.
- CSS debuggingDebug mobile CSS overflow with an AI assistantReproduce a horizontal overflow, measure the offending text node’s box and give Claude or Codex enough evidence to fix a long unbroken string.
- PlaywrightTest a form by keyboard with PlaywrightWrite a Playwright test that tabs through a booking form, checks focus, submits with Enter and catches a button that disappeared from the tab order.
- Node.jsTest fetch HTTP errors with Node.jsCheck a fetch wrapper with three deterministic Node tests for success, HTTP 503 and a network interruption. No live API or dependency required.
- CSS + JavaScriptBuild a keyboard-friendly, persistent dark modeBuild a system, light and dark theme selector. Keep explicit choices across reloads, follow the operating system in automatic mode and exercise four transitions.
- Web performanceFix an image layout shift and check it on a slow connectionReproduce a moving card with a delayed image, measure its text before and after loading, then reserve the right aspect ratio and verify the fix at two widths.
Python and SQLite
- Python · validationValidate a JSON configuration file with Python and unittestMake a Python config loader reject invalid ports, distinguish broken JSON from an invalid value and test boundary cases with the standard library.
- Python · SQLiteBuild an idempotent CSV import with Python and SQLiteImport a CSV catalog into SQLite, replay it safely, update changed rows and prove a bad final record rolls back the batch.
- SQLite · migrationsTest an additive SQLite migration on existing rowsAdd a required column to a populated SQLite table, version the schema and check that an old writer still works after the migration.
- SQLite · paginationPaginate a SQLite feed with a stable two-column cursorUse keyset pagination with SQLite and Python. Handle tied dates and insert a new post between requests to reproduce the duplicate produced by OFFSET.