AI Basics
Build a shared vocabulary and a map of the industry: where AI comes from, how far it's gotten, and what each role in the value chain does.
A Map of AI Terms
Put the high-frequency terms on one map: what each is, which problem it solves, and how it relates to you.
A Short History of AI
From symbolic rules and machine learning to LLMs. What each paradigm shift replaced.
Where AI Stands Today
What's stable and usable now, what's still changing fast, and what demos well but isn't reliable in production.
The Four Layers of the AI Industry
Compute, models, platforms, and applications. See what each layer sells, pays for, and builds its moat on.
How Model Providers Differ
Skip the vendor rankings. Make a real choice by capability, cost, ecosystem, deployment, and compliance.
Where to Get Models
Official APIs, cloud platforms, model hubs, and aggregators differ in control and responsibility.
LLMs
How large language models work. From the single mechanism of "predict the next token", every strength and every flaw follows.
How LLMs Actually Work
Predicting the next token — that's the whole mechanism. Every strength and every flaw grows out of it.
LLMs vs. Search Engines
Search hands you the bookshelf; an LLM hands you a conclusion. Answering from memory means there's no source to check.
Training vs. Inference
One feeds the model, the other uses it. The boundaries of cost and capability sit on either side of this line.
Where Training Data Comes From
What the corpus is made of decides whose bias the model carries and which parts it's missing.
Six Kinds of Models
Text, image, video, speech synthesis, speech recognition, and embeddings. Input, output, and billing units differ.
Reasoning vs. Regular Models
Deep thinking means generating a chain of thought before answering. Which tasks justify that extra cost.
Open vs. Closed Weights
What public weights mean, and when self-hosting actually pays off.
Tokens: The Billing Unit
LLMs don't bill by characters. The price gap between languages comes from how text is tokenized.
How to Read Params and Benchmarks
Parameter count, context length, and benchmark scores are three different things. Don't mix them.
Temperature and Randomness
Getting a different answer each time is by design, not a bug. When to turn it off.
What Calling a Model Takes
base_url, model name, and API key. Why everyone is compatible with the OpenAI format.
Common Call Parameters
max_tokens, top_p, stream, system — what each parameter means for your product.
Selection and Fallbacks
Tier models by task, and auto-failover when the primary model goes down.
Why Hallucinations Happen
Hallucination is an inevitable byproduct of the generation mechanism, not a bug. You can only defend, not fix.
Knowledge Cutoff
An LLM doesn't know what happened yesterday unless you feed it yesterday.
Multimodality: How Images Get Read
Multimodality is a retrofit. How it was added decides how closely the model can look.
Prompting
A prompt isn't an incantation — it's a requirements document. The clearer you write it, the more it gets right.
A Prompt Is Not an Incantation
It's a requirements document. Wherever you didn't specify, the model fills in its own answer.
The Four Parts of a Prompt
Context, requirements, constraints, and acceptance criteria. Miss one, and it goes off the rails on that one.
System vs. User Prompts
What to carry in every turn, what to say once, and how priority works.
Why Write Prompts in Markdown
Structured text is parsed more accurately. This isn't a matter of taste.
Examples Beat Explanations
How few-shot examples work and their traps: how many to give, which ones, and when they hurt.
Controlling Output Format
From "return JSON" to enforced formats, and the trade-offs when streaming.
A Few High-Leverage Tricks
Asking questions first, reference anchoring, think-before-answering — and what role prompts really do.
How to Iterate on Prompts
Change one thing at a time and keep a set of test cases. Tuning by feel doesn't work.
Storing and Versioning Prompts
Prompts scattered through code will eventually become a blob no one dares touch.
Context & RAG
LLMs have no memory. First see how retrieval finds things, then how to fit material into a limited window.
Embeddings and Semantic Similarity
Turn a sentence into coordinates; similar meanings land close together. The whole retrieval stack is built on this.
Similar Is Not Relevant
The most similar passages aren't necessarily the answer to your question. This is the biggest error source in retrieval.
Keyword, Vector, and Hybrid Retrieval
Three ways to search, each with blind spots. Real systems almost always mix them.
The Context Window
Everything a single request can hold — that's the size of the table you get.
Lost in the Middle
The start and end are read clearest; the middle fades as the context grows.
Conversation Compaction
Long chats quietly drop content. What drops first is usually the constraints set early on.
How Long-Term Memory Works
Extraction, conflicts, injection. What it costs to make a model recognize you.
RAG: The Three Steps
Retrieve first, then answer. The three stages, and what it actually solves.
Chunking: RAG's First Do-or-Die Step
Chunk too small and you lose context; too big and the key point gets diluted. This step decides everything.
Where RAG Goes Wrong
Chunking, recall, and reranking — every stage can fail, each with its own symptoms.
Fine-tuning or RAG
To add knowledge, it's almost always RAG. When fine-tuning is actually the right call.
Agents & Skills
From chat to getting things done — the layers in between: tool calling, loops, Skills, and MCP.
Model, Agent, Application
A diagram that separates the three layers. Confuse them and you'll treat a product problem as a model problem.
Tool Calling
The model can't do anything by itself. You lend it your hands; only then can it touch the world.
The Agent Loop
Think, act, observe, think again. That's how anything running dozens of rounds spins.
Skills and MCP
One carries knowledge, the other carries interfaces. They solve different problems; don't mix them up.
Multi-Agent Collaboration
When it's worth splitting into several, and where the added cost shows up.
Layers of Prompts
System prompts, standing rules, and one-off instructions each govern a slice, with different priorities.
Three Ways Agents Drift
Goal drift, tool misuse, and loops that don't converge — each with its own way to stop it.
Permissions and Human Checkpoints
Which steps to gate so it can't go and delete the database.
Evaluating Agents
No eval means running blind. A minimal acceptance plan you can actually run.
Cost & Safety
How the token bill is calculated, how to defend against prompt injection, and which judgments should never be handed over.
How a Call Is Billed
Input, output, and cache are priced differently — by several times. Read the price sheet before choosing a model.
Why Image Generation Costs 10x
How image tokens are counted, and how a resolution change jumps the bill up a tier.
Cache Hits and Saving Money
A cache hits only when the prefix is unchanged. Reorder your prompt and the bill can halve.
Prompt Injection
The model can't tell which words are instructions and which are data. This is a flaw at the principle level.
Where Conversation Data Goes
Web, API, and enterprise tiers route your data to different places.
Common Flaws in AI Code
Hardcoded secrets, broken access control, injection — the ones AI leaves most often.
What to Hand to AI
A trust test you can run in three seconds.
Three Checks on an AI Answer
No need to verify line by line; three moves filter out most fabrication.
The Human Boundary
AI can complete the implementation, not the judgment. Which part is always your job.
做产品
Basics
What everyone in this trade is assumed to know. Skip if you already do.
What a PM Does
The boundaries of the role, and where it sits in a company's org chart.
The Product Workflow
The stages from idea to launch, and when each role shows up.
Product Types & Directions
Consumer, enterprise, platform, tool, content — each judges success differently.
The Internet Industry Map
Where e-commerce, social, SaaS, content, and tools stand today.
Common Business Models
Where the money comes from: ads, subscriptions, commissions, freemium — and how to validate each.
Understand Tech
Frontend, backend, APIs, databases, auth, deploy, security — a minimal technical baseline.
Glossary
The jargon of both product and tech — look it up so you're not lost in meetings.
Product Thinking Models
PEST, SWOT, AARRR, KANO, the Five Elements — and when to use which.
Tools & Templates
Diagrams, docs, competitor research, design files — a handful of go-tos is enough.
Learning Path & Reading List
From beginner to leading a product line — what to learn along the way.
Steer, Don't Row
The fundamental shift in how work happens: agents execute, people set direction.
Find Problems
Where needs come from, which are real, which are worth doing.
What Is a Need
What users say, what they actually want, and what you plan to give them — three different things.
Four Sources of Needs
User feedback, business goals, data anomalies, competitor moves — each with different credibility.
Real vs. Fake Needs
Telling apart what they say they want from what they'll actually use.
Ask About Behavior, Not Intention
Ask how they did it last time, not whether they'd use it.
Find the Existing Workaround
How are they hacking around it today? No workaround means it isn't painful enough.
Is It Worth Doing
Frequency, pain, audience size — if all three are low, don't.
Scene Anchor
Replace a vague "users find it inconvenient" with a specific person in a specific moment.
How to Run a User Interview
Open questions, probe for details, avoid leading — a reusable interview guide.
The Five Whys
Trace the surface request to the root cause, then decide what to build.
Backlog & Prioritization
KANO categories plus a sorting rule—not whoever shouts loudest.
Define Product
Who it's for, what it solves, where the boundary lies.
A Definition Has Three Parts
Target user, core value, scope—miss any one and every later decision wobbles.
The Product Lifecycle
Exploration, growth, maturity, decline — each stage has different priorities.
How the Business Model Connects
Your product definition has to answer where the money comes from, or it stalls after launch.
One-Sentence Product
If you can't say in one sentence what you make and for whom, don't let AI start yet.
The Single Thread
Find the product's main task; every other feature is a supporting role.
Narrow the Audience
Built for everyone means built for no one — serve a small group first.
The Not-Doing List
Writing down what this version won't do is more powerful than writing what it will.
Minimum Slice
Cut down to the smallest scope that runs end-to-end, then add on top.
Borrow the Form
Take a proven structure from an existing product instead of inventing from zero.
Product Evolution Blueprint
Map the next few versions into one picture, so each release has an answer.
Nail the Story Before Building
Product marketing fit matters as much as product-market fit — and it comes first.
Design Structure
Information architecture, page maps, data models. How the product is organized.
What Is Information Architecture
Let users always know where they are, where they can go, and how to get back.
Four Organizational Structures
Hierarchy, matrix, linear, organic—different content suits different organization.
Web vs. Mobile Differences
Screen size, nav position, depth tolerance all differ — structure can't be copy-pasted.
Four Navigation Forms
Left-only, top-only, left+top, top+left — depends on how many top-level modules you have.
One Screen, One Job
Each page serves one main task; everything else steps aside.
Grouping and Naming
How you group things is how users understand the product.
Wide and Shallow
Five to nine top-level items, main paths no deeper than three levels — go deeper and nobody arrives.
Content Inventory
List every piece of information to show before deciding how many pages to split.
Card Sorting
Write features on cards and let users group them—more accurate than guessing alone.
Page Map
Draw every page and the jumps between them before you start building.
Three Structure Diagrams
Feature structure, information structure, product structure — draw each separately, don't mash them up.
Data Model First
Get entities and relationships wrong, and no UI tweak will fix it.
Design Interaction
Paths, states, feedback, edge cases, permissions. Every moment that goes wrong.
Interaction Handles Behavior
A prototype shows the look, not the behavior. Write it down, or the AI can only guess.
Common Components
Dropdowns, steppers, pagination, drawers—know them all before choosing.
Five Kinds of Hints
Badge, toast, banner, bulletin, push—escalating in intrusiveness.
Cover All Four States
Empty, loading, error, normal. AI writes only the last one by default.
Every Action Needs Feedback
After the click, how does the user know it worked?
Undoable Beats Confirm
Give dangerous actions one chance to undo, instead of three confirmation dialogs.
Permission as View
Features you can't access shouldn't appear and then error.
Map the User Journey
Break a complete task into ordered steps, mark each step's exit.
State Checklist
Ask each component what states it can appear in, before you start writing.
Designing the First Run
What's on screen when a new user opens the product and there's no data yet?
Restraint in Forms
Every extra field drops another batch of people who won't finish.
How to Write Hints
State the situation plus the next step. No exclamation marks, no trailing punctuation.
Design Interface
Layout, hierarchy, color, typography, design systems.
Where Visual Hierarchy Comes From
Size, position, whitespace, contrast — four things decide where the eye lands.
Color Basics
Hue, lightness, saturation—and why neutral colors fill 90% of an interface.
Typography Basics
Font size, line height, weight, tracking — Chinese and English use different parameters.
One Spacing Scale
Lock a set of fixed values; don't eyeball each spot.
Type Scale
Three to four sizes is enough — more and the hierarchy scatters.
One Accent Color
Keep one color; leave the rest to neutral grays.
Whitespace First
Try deleting dividers and borders first; separate with spacing instead.
Alignment Axes
Align every element on the page to a few axes—it instantly looks clean.
Components First, Then Pages
Without unified components, the page will always look stitched together.
Build a Minimal Design System
Color, spacing, type, radius—four variable groups keep the whole project consistent.
Making Responsive Work
Don't dump desktop components onto mobile—think through the trade-offs at each breakpoint first.
Work with AI
Translating your judgment into something AI can execute.
What It Can and Can't Do
It can fill in the implementation, not the judgment. Knowing the line tells you which part is yours.
What Context Is
It only knows what you give it; memory doesn't carry across sessions automatically.
Spec, Prompt, Rules — Divided
One-offs go in specs, recurring ones in rules, temporary ones in prompts.
Spec Before Code
Have it write what to build first, then have it write code.
One Thing at a Time
Break the work into small tasks; don't ask for a whole app at once.
Reference Anchor
Give it a concrete reference; ten times more effective than adjectives.
Three-Part Prompt
Goal, constraints, acceptance criteria — miss any one and it drifts.
Context Budget
What to include and what not to—more important than how much.
Prototype to Code
Static page first to confirm the look, then wire real data, then cover the edge cases.
Distill the Rules
Rules you re-state constantly go into CLAUDE.md and Skills.
Validate & Iterate
Check before launch, read data after launch.
Usable, Useful, Used
Three layers of validation, each checking something different.
How to Build a Metrics System
Break down from the North Star to the layer a single feature can move.
Track Before Launch
A feature shipped without tracking is a feature that didn't ship.
One North Star
Pick one metric that means the product is getting better; the rest are reference.
Judge by Real Data
Small samples and your own team's feelings don't count.
The Five-Second Test
Five seconds with a stranger—can they say what this is?
Launch Checklist
Function, experience, data, security — check item by item before launch.
Stress-Test with Real Data
Run it once with absurdly long content and once with zero rows.
Security Check for AI Code
Hardcoded secrets, broken access control, injection—the traps AI leaves most often.
Splitting the North Star
Split one top-line metric into several paths you can each act on.
How to Validate Knowledge Work
Code is validated by output; knowledge work by process. Different validation means products must be designed for visible process.
Forward Deployed Engineering
Rethinking FDE
Define the role: what it is, what it is not, the capabilities it needs, and where it sits in a team.
What Is a Forward Deployed Engineer
The role that closes the gap between model capability and customer outcomes.
FDE vs. Sales, Consulting, and Implementation
Use the finish line, pricing, and deliverable to separate neighboring roles.
Three Capabilities, Not One
Technical breadth, business translation, and ownership are a single operating system.
One Person, Four Battlefields
The FDE connects customer, product, sales, and organization.
Choose the Right Battlefield
Screen the problem, go to the field, and narrow the validation to a valuable slice within institutional constraints.
PSF: Ask If It Is Worth Doing
Screen a deployment opportunity through specific pain, economics, and feasibility.
Go to the Field, Not the Meeting Room
Pain appears in the workflow; shadowing is the FDE’s field method.
Minimum Viable Deployment
Verify real value with real data, a narrow slice, and a fixed deadline.
China’s Battlefield: Enterprise and Private Deployment
Understand institutional buyers, trusted infrastructure, and the path from pilot to core operations.
Earn Trust
Choose a lighthouse customer first, then earn durable trust through real results, action, and honesty.
Make the System Stick
Launch is not activation. Use hot fixes, read-old-write-new, and change management to reach real usage.
Launch Does Not Mean Activation
Use hot fixes and evaluation to move from deployment to real adoption.
Read Old, Write New
Stay compatible with legacy data while keeping the new architecture independent.
Make the Organization Your Ally
Turn the customer organization into an adoption network rather than a source of resistance.
Grow the Relationship
Use health scores as an early warning, charge for outcomes, and expand from one department to the network.
The Renewal Early-Warning System
Turn renewal from reactive firefighting into proactive intervention.
Charge for Outcomes
Tie the commercial model to the result the customer actually receives.
From One Department to a Network
Use a deliberate rhythm to deepen an existing account and expand the proven playbook.
Turn the Playbook into a Product
Capture each success in a playbook, then turn it into reusable platform capability.
The Delivery Playbook
A reusable operating system that makes the next deployment faster.
Turn Delivery into Product
Bring repeated field learning back as standard product capability.
Frontline Case Studies
Palantir’s origin, Chinese samples, failure logs, and how the industry defines the role.
When Not to Copy Palantir
Copying the title is cheapest and worst; people on site without a platform is outsourcing at double the price.
How to Staff an FDE Team
Reporting line, staffing, metrics, load ceiling — decide the shape first, then hire.
Agent Engineering
Pick the Right Complexity
Start at the lowest complexity that works: when you do not need an agent at all, and which rung to start from when you do.
Do You Need an Agent at All
A model in the loop is not an agent, and many steps is not many agents. Pick the lowest rung.
The Harness Around the Model
The model judges. The harness turns judgment into something you can ship and recall.
What Belongs in Your Harness
More rules is not more safety. Write only what the model cannot invent and you cannot delegate.
Autonomy Ends Where Verification Ends
Autonomy is capped by how cheaply and reliably you can check the result.
Context Engineering
Context is the agent's only working memory: what goes in, how it is layered, and how to stop it from degrading as a run grows.
What Actually Goes Into Context
Twelve sources, six trust tiers, and why a bigger window is not more capacity.
How Context Gets Dirty
Dilution, corruption, and anxiety: three decay modes, and why compaction cannot fix the third.
Stop Making the Model Carry Data
Models truncate, mix up, and invent IDs. Let the system be the pipe and the model be the judge.
Layered Loading and Handoffs
Five layers loaded on demand, structured handoffs, and why a stable prefix keeps your cache alive.
Tools and Environment
Tools are contracts and the environment is the capability boundary. Together they decide how much real feedback the agent can get.
A Tool Is a Contract, Not an API Wrapper
Descriptions drive selection accuracy, output trimming drives context cost, error contracts drive recovery.
Environment Feedback Sets the Ceiling
The environment is the invisible quality killer: it never crashes, it just quietly gets worse.
Put Loops and Batches in Code
Round trips issued one at a time scale latency, tokens, and drift linearly with N.
Where MCP and Skills Belong
MCP costs are resident, skill risk is supply-chain grade, and both need per-agent allowlists.
State and Long Tasks
A good run is not a delivery: state layering, interrupt recovery, side-effect receipts, and the bar for going multi-agent.
Four Kinds of State, Four Lifecycles
One array cannot hold four lifecycles. Mixing them costs you both recovery and deletion.
Long Tasks Need Handoffs and End States
The context window will run out. What carries long work across sessions is artifacts on disk.
An Answer Is Not Accountability
A wrong answer costs a retry. A wrong action has already sent the mail and charged the card.
When Multi-Agent Actually Pays
Every extra agent adds tokens, latency, failure surface, and ambiguity about who owns the result.
Evals and Verification
Define done before you build: eval sets, four metric layers, the online and offline tracks, and keeping verification ahead of generation.
Define Done Before You Write Code
Tune prompts without a decision behind them and you just get lost faster.
Four Layers of Evaluation
Getting it right is not the same as being right. Four layers make the path visible.
Online and Offline Evals
Treating production scores as acceptance is the mistake agent teams make most often.
Verification Must Keep Up With Generation
Nobody declared what was relaxed. Review just turned from reading into skimming.
Safety, Cost, and Shipping
What matters once it runs: containment and credential boundaries, cost attribution, launch metrics, and feeding failures back into the system.
Sandboxes, Credentials, and Human Boundaries
What the model layer cannot stop, the filesystem, the network, and credential scoping have to.
Attribute Cost Down to Every Step
Cost you cannot split only shows direction. Cost you can split tells you what to change.
What to Measure Before You Ship
A demo proves the capability exists. Launch means proving it holds on the real distribution.
Turn Failures Into Engineering Assets
Editing a prompt is not a fix. A gate, a validator, or a regression test is.
Runtime Discipline
The discipline after launch: classify failures before counting them, tier recovery, consume events at safe points, and treat launch as a process, not a switch.
Classify Failures Before You Count Them
Blind retrying counts errors that no retry can fix. Classify first; only then do metrics and circuit breakers mean anything.
Tier Your Recovery, Then Circuit-Break
Three escalating tiers, each more transparent than the last; breaker ceilings read off production data.
Consume Events Only at Safe Points
Never sever mid-reasoning or mid-tool: events queue to the loop boundary, and cancellation just creates one early.
Launch Is Not a Switch
Teams that treat deployment as a moment hand users surprises as features — a release is a series of gates with exits.
Continuous Evolution
Getting better with age, not messier: first-deviation attribution, tending the eval set, turning experience into learning, and braking the evolution loop.
Attribute Failure to the First Deviation
End-to-end scores only say it failed; attribution says from which step — and only the first deviating error earns that role.
Tend the Eval Set Like a Product
Five redesigns in tau-bench, 300-plus issues in OSWorld: every trustworthy benchmark was tended into being.
Saving Experience Is Not Learning From It
Store the evidence, induce offline, then prove transfer on new tasks — drop one of the three and it is only archiving.
An Evolution Loop Needs Three Brakes
Prompt injection must not travel through experience, and regression must not travel through the verifier — three hard boundaries around automatic evolution.
