A practical guide for developers
01 / AI Fundamentals
AI works by guessing the next word. It reads your text, guesses what comes next, adds it — then guesses again.
It does not look up facts. It writes what sounds right. That's why it's useful — and why it can be wrong.
Think of it like autocomplete that has read the whole internet.
Go deeper: 3Blue1Brown — But what is a GPT? The Illustrated Transformer OpenAI Tokenizer
01 / AI Fundamentals
Two words you'll hear a lot. Once they click, AI makes more sense.
A token is a piece of a word — about ¾ of a word in English. AI counts cost and limits in tokens, not words.
"unhappiness" → un · happi · ness = 3 tokens
Everything the AI can see right now — fixed size:
New text enters the bottom. When it's full, the oldest falls out — the AI "forgets" it.
Claude holds ~1M tokens — about a whole codebase. Big, but still has a limit.
More: See text turn into tokens — OpenAI Tokenizer Claude — Context windows
01 / AI Fundamentals
Same question, different settings → different answer. You pick the settings.
Use the smallest model that still does the job. No need for the biggest model to rename a variable.
How much the AI thinks before it answers.
More: Claude — Effort
01 / AI Fundamentals
It guesses, it doesn't remember. That's why it's good at some things and bad at others.
02 / AI Tools & Claude
Lots of AI tools out there. Each fits a different part of your day.
| Step | AI helps with | Tools (e.g.) |
|---|---|---|
| Understand | explain code, answer questions | ChatGPT, Claude, Cursor |
| Write | autocomplete, generate code | GitHub Copilot, Cursor, Windsurf |
| Build / refactor | multi-file edits, run commands | Claude Code, Cursor, Codex |
| Test & review | write tests, find bugs, PR text | Claude, Copilot, CodeRabbit |
02 / AI Tools & Claude
Two ways to use Claude.
02 / AI Tools & Claude
Give Claude your project's context — once.
A file named CLAUDE.md in your repo. Claude reads it every session, so you don't repeat yourself.
/init — it writes a draft for you.02 / AI Tools & Claude
Drop a CLAUDE.md at different levels. Claude reads them all and stacks them.
Why it helps: shared team rules and your personal ones live side by side, no conflict.
One file can pull in others: @README.md, @docs/api.md.
02 / AI Tools & Claude
Bottle a task once, reuse it forever — two ways to do it.
Shortcuts you trigger by name. Write a prompt once, run it anytime.
Lives in .claude/commands/review.md
A folder that teaches Claude a repeatable task. Loads itself when the task matches.
e.g. "make a .docx" → loads your doc formatting rules.
Lives in .claude/skills/<name>/SKILL.md
| Command | Skill | |
|---|---|---|
| Who triggers it | You | You + Claude |
| What it is | a prompt | a folder |
02 / AI Tools & Claude
Type / in Claude Code to see them all. A few you'll reach for:
/init — write a starter CLAUDE.md/clear — wipe context, start fresh/compact — shrink a long chat/simplify — tidy up the code you changed/model — switch model/code-review — find bugs in your diff/security-review — check for vulnerabilities/debug — diagnose a problem.xlsx .docx .pptx .pdf02 / AI Tools & Claude
| CLAUDE.md | Skills | |
|---|---|---|
| Loaded | Always, every session | Only when the task matches |
| Scope | One project | Reusable anywhere |
| Answers | "What is this project?" | "How do I do this task?" |
| Format | One file | A folder (instructions + files) |
| Best for | Standing project context | Specific repeatable procedures |
03 / Prompting
WORKED EXAMPLE — all four parts
Iterate: the first answer is a draft. Follow up: "good, but handle the null case" / "make it more concise."
03 / Prompting
Each part removes a different kind of ambiguity. The model guesses less, so the answer gets more useful.
Senior React reviewer.
Next.js bug after filter change.
Find root cause + smallest fix.
Code first, then one-sentence why.
Mismatch: frontend role + DB schema still answers, but may over-focus UI/API and miss backend details. Role = viewpoint, not skill lock.
Go deeper: OpenAI — Prompting Anthropic — Prompting best practices Google Cloud — Introduction to prompting
03 / Prompting
Match the language to the job.
| Metric | English | Thai |
|---|---|---|
| Tokens per sentence | baseline (1x) | ~4.3x more |
| Tokens per word | ~0.75 | 2-3x higher |
| Accuracy on hard tasks | baseline | up to ~24% lower |
Research: SeaLLMs — arXiv 2312.00738 Typhoon Thai LLM — PDF MMLU-ProX — multilingual benchmark Low-resource token dynamics
04 / Verification
AI can sound sure and still be wrong. Treat every answer as a draft until checks pass.
check docs
check package.json
npm test
git diff
typecheck + lint
04 / Verification
AI hands you this. It looks fine.
Run it →
Strings have no .reverse() — it only looked real. The fix:
05 / Responsible Use
auth, payments, security
use approved tools
06 / Adapt as a Developer
EXAMPLES — three prompts = one full loop
AI handles boilerplate; you handle judgment, architecture & tradeoffs. The skill shifts from writing code to knowing what good looks like.
Demo
The demo uses a tiny project so everyone can practice the same workflow without touching production code.
Wrap-up