Team Enablement
Working with AI · Làm việc với AI

Working Effectively with AI:
From Prompt Luck to a System

The model is already smart. What makes AI reliable is the context you feed it — and whether that stays a manual chore or becomes automated.

Model đã đủ giỏi. Điều khiến AI đáng tin là context bạn cấp — và việc đó cứ làm thủ công mãi hay được tự động hoá.

Presenter: Phuong
Team: C
The Core Idea · Ý tưởng cốt lõi

Output quality is a function of context

Chất lượng đầu ra là hàm của context — không phải IQ của model

Output = f(Context)   f(IQ)
  • Treat AI like a brilliant new developer: capable, but knows nothing about your project on day one. Coi AI như một dev giỏi vừa vào làm: năng lực tốt, nhưng ngày đầu chưa biết gì về dự án của bạn.
  • Give it a one-line prompt with no context and it confidently ships the wrong thing. Đưa một prompt một dòng, không context — nó tự tin làm ra thứ sai.
  • So the real question isn't "is the model good enough?" It's "how do we deliver context — reliably?" Nên câu hỏi thật không phải "model đủ giỏi chưa?" mà là "làm sao cấp context — một cách đáng tin cậy?"
Act 1 · The Problems · Những vấn đề đang gặp

Four pains everyone hits with AI

Bốn nỗi đau ai dùng AI cũng gặp

🕳️ Missing context

The AI never had the codebase, conventions, or domain — so it guesses.

AI không có codebase, convention, nghiệp vụ — nên nó đoán mò.

🔁 Repetitive context

You re-paste the same files and rules into every new chat, every day.

Bạn dán lại đúng những file & quy tắc đó vào mỗi chat mới, mỗi ngày.

🧠 AI forgets

Long sessions overflow the window; decisions made an hour ago vanish.

Phiên dài tràn context window; quyết định một tiếng trước biến mất.

🎲 Prompt luck

Every dev prompts differently → inconsistent, unrepeatable results.

Mỗi dev prompt một kiểu → kết quả không nhất quán, không lặp lại được.

Problem · The Daily Grind

Missing & repetitive context — the daily grind

Thiếu context & lặp lại context — sự mệt mỏi mỗi ngày

  • A fresh chat starts blank: no folder structure, no "we use withAdmin", no "we archive, never hard-delete". Chat mới bắt đầu trắng trơn: không biết cấu trúc thư mục, không biết "team dùng withAdmin", không biết "team archive chứ không xoá cứng".
  • So you paste files, explain conventions, restate the ticket — 10 minutes before real work starts. Nên bạn dán file, giải thích convention, kể lại ticket — mất 10 phút trước khi bắt đầu việc thật.
  • Tomorrow, a new chat, you do it all again. Multiply by every dev, every task. Mai, chat mới, làm lại từ đầu. Nhân lên với mọi dev, mọi task.
  • The knowledge lives in docs, tickets, Slack, and people's heads — never where the AI can reach it. Kiến thức nằm ở docs, ticket, Slack, trong đầu mỗi người — không bao giờ ở chỗ AI với tới được.
Problem · Drift & Luck

Forgetting & inconsistency — trust erodes

Quên & thiếu nhất quán — niềm tin bị bào mòn

  • The context window is finite. In a long task, early decisions scroll out and the AI contradicts itself. Context window có giới hạn. Trong task dài, quyết định lúc đầu trôi mất và AI tự mâu thuẫn.
  • Close the chat and everything is gone — the next session repeats mistakes you already fixed. Đóng chat là mất hết — phiên sau lặp lại đúng lỗi bạn đã sửa rồi.
  • No shared standard: my prompt and your prompt produce different code for the same ticket. Không có chuẩn chung: prompt của tôi và của bạn cho ra code khác nhau trên cùng một ticket.
  • Net effect: using AI feels like gambling — sometimes great, sometimes rework. That kills adoption. Kết quả: dùng AI như đánh bạc — lúc tuyệt, lúc phải làm lại. Điều đó giết chết việc áp dụng.
Act 2 · Solving It By Hand · Giải quyết thủ công

What a disciplined dev does manually

Một dev kỷ luật xử lý bằng tay như thế nào

1 Write a context doc

Keep a hand-written file of stack, structure, conventions — paste it into each chat.

Giữ một file viết tay: stack, cấu trúc, convention — dán vào mỗi chat.

2 Keep a prompt template

A reusable "here's the task + rules" block so prompts are less random.

Một khối "đây là task + quy tắc" tái sử dụng để prompt bớt tuỳ hứng.

3 Force a plan first

Ask the AI to research and plan before coding, and review the plan yourself.

Bắt AI nghiên cứu & lập kế hoạch trước khi code, và tự review plan.

4 Log decisions & gotchas

A running notes file of "we decided X because Y" to paste back later.

File ghi chú "đã chốt X vì Y" để dán lại về sau.

This genuinely works — a careful dev gets great results this way. Cách này thật sự hiệu quả — một dev cẩn thận làm vậy cho kết quả rất tốt.

The Catch · Vấn đề của cách thủ công

…but manual discipline doesn't scale

…nhưng kỷ luật thủ công không nhân rộng được

  • It relies on willpower: under deadline pressure, everyone skips the context step. Nó dựa vào ý chí: khi gấp deadline, ai cũng bỏ qua bước cấp context.
  • Hand-written docs go stale — and a wrong fact is worse than no fact. Docs viết tay bị lỗi thời — mà một fact sai còn tệ hơn không có fact.
  • It's personal, not shared: your discipline lives in your head, not the team's. Nó là của cá nhân, không dùng chung: kỷ luật của bạn nằm trong đầu bạn, không thuộc về team.
  • It's still copy-paste labor — the exact repetition we're trying to remove. Vẫn là lao động copy-paste — đúng sự lặp lại mà ta đang muốn loại bỏ.
The fix: make the discipline automatic and team-wide — a system, not a habit. Cách khắc phục: biến kỷ luật đó thành tự động và dùng chung cả team — một hệ thống, không phải thói quen.
Act 3 · Automating It · Tự động hoá

vibecode-pro-max-kit — the discipline, packaged

Đóng gói toàn bộ kỷ luật trên thành một bộ kit cài-vào-là-chạy

📦 What it installs

A whole system, not a prompt: 15 agents, 33 skills, 10 hooks, 36 validators, and a process/ knowledge tree.

Cả một hệ thống, không phải một prompt: 15 agent, 33 skill, 10 hook, 36 validator, và cây tri thức process/.

🎯 Its promise

"Your AI forgets. This remembers." Plan-first, process-enforced, knowledge that survives session resets.

"AI của bạn quên. Cái này thì nhớ." Lập kế hoạch trước, ép theo quy trình, tri thức sống qua cả khi reset phiên.

One command installs it — cross-tool (Claude Code, Codex, Cursor, Windsurf…), any stack.

Một lệnh cài đặt — dùng chung nhiều tool, mọi tech stack.

Automation · The Harness · Bộ khung quy trình

RIPER-5: a phase-locked workflow

RIPER-5: quy trình khoá theo từng pha — không code khi chưa đủ context

RESEARCH
facts only · chỉ tìm hiểu
SPEC
stories + AC · tiêu chí
INNOVATE
2–3 approaches · phương án
PLAN
checklist · kế hoạch
EXECUTE
code + tests
UPDATE
refresh context · cập nhật
  • Phases are step-locked: RESEARCH can't write code, PLAN can't touch source — only process/. Các pha bị khoá: RESEARCH không được code, PLAN không sửa source — chỉ sửa process/.
  • This blocks "premature implementation" — the #1 AI failure mode — automatically, not by willpower. Điều này chặn "code non" — lỗi số 1 khi dùng AI — một cách tự động, không dựa vào ý chí.
Automation · Solves Missing & Repetitive

Context routing — the AI fetches its own context

Định tuyến context — AI tự lấy context, không cần bạn dán tay

  • Router files point the AI to the smallest relevant docs: all-context.md (architecture), tests/all-tests.md, container/all-container.md, {domain}/all-{domain}.md. File router chỉ AI tới đúng tài liệu nhỏ nhất cần đọc: all-context.md (kiến trúc), tests/all-tests.md, container/all-container.md, {domain}/all-{domain}.md.
  • Agents read only the router for the work at hand — not a bloated knowledge base every session. Agent chỉ đọc router liên quan tới việc đang làm — không nạp cả kho tri thức mỗi phiên.
  • You stop pasting files. The context lives on disk once; the AI routes to it every time. Bạn ngừng dán file. Context nằm trên đĩa một lần; AI tự tìm tới mỗi lần.
  • A topic grown to 3+ files auto-promotes to its own group — renames need only a router edit, not code changes. Một chủ đề phình tới 3+ file tự tách thành nhóm riêng — đổi tên chỉ cần sửa router, không đụng code.
Automation · Solves Forgetting

Persistent memory — knowledge on disk, not in the window

Bộ nhớ bền vững — tri thức nằm trên đĩa, không nằm trong context window

🗂️ The process/ tree

Plans, specs, and reports live in general-plans/ and features/{feature}/active, completed, backlog.

Plan, spec, report nằm trong general-plans/features/{feature}/active, completed, backlog.

✉️ Context Envelope

Each phase writes a 10-field snapshot (feature, phase, branch, plan file, test runner…) so a fresh agent resumes exactly where it stopped.

Mỗi pha ghi một snapshot 10 trường (feature, pha, branch, file plan, test runner…) để một agent mới tiếp tục đúng chỗ đã dừng.

Close the chat, come back tomorrow — the AI reads the files and picks up mid-task. It stops repeating fixed mistakes. Đóng chat, mai quay lại — AI đọc file và tiếp tục giữa chừng. Nó không lặp lại lỗi đã sửa nữa.
Automation · Consistency & Trust

Guardrails that make results repeatable

Những rào chắn khiến kết quả lặp lại được — hết "hên xui"

  • Skills & agents auto-discover by keyword — say "webhook" and security + scenario skills attach themselves. Same routine for everyone. Skill & agent tự nhận diện theo từ khoá — nói "webhook" là skill bảo mật + kịch bản tự gắn vào. Cùng một quy trình cho mọi người.
  • Two independent quality loops: PVL validates the plan (V1–V7) before code; EVL has a separate tester re-run tests — the coder's "all green" is never trusted. Hai vòng kiểm định độc lập: PVL kiểm plan (V1–V7) trước khi code; EVL có tester riêng chạy lại test — không tin lời "xanh hết" của người viết code.
  • Autopilot lanes match ceremony to risk: Quick (one-line fix) · Fast · Full RIPER-5 — no over-engineering a typo. Các làn autopilot khớp mức nghi thức với rủi ro: Quick (fix một dòng) · Fast · Full RIPER-5 — không bắt chạy cả quy trình cho một lỗi chính tả.
  • MCP connects live systems (Jira, Drive, browser) as first-class context — no more copy-paste from other tools. MCP kết nối hệ thống thật (Jira, Drive, browser) thành context trực tiếp — hết copy-paste từ tool khác.
The Payoff · Đối chiếu

Manual vs. automated — same discipline, no willpower

Thủ công vs. tự động — cùng kỷ luật, không cần ý chí

Problem · Vấn đềBy hand · Thủ côngWith the kit · Có kit
Missing contextThiếu context Paste files each timeDán file mỗi lần Routers fetch it automaticallyRouter tự lấy
RepetitionLặp lại Re-type rules every chatGõ lại quy tắc mỗi chat Written once on diskViết một lần trên đĩa
ForgettingQuên Lost when chat closesMất khi đóng chat Envelope + process/ resumeEnvelope + process/ tiếp tục
Prompt luckHên xui khi prompt Each dev differsMỗi dev một kiểu RIPER-5 + validators for allRIPER-5 + validator cho mọi người
DisciplineKỷ luật Skipped under pressureBỏ qua khi gấp Enforced by phase-locksBị khoá pha ép tuân thủ
Live Demo · Minh hoạ trực quan

Same ticket, two runs

Cùng một ticket — chạy 2 lần: prompt trần vs. qua kit

✕ Raw prompt · Prompt trần
"Add an admin API to
delete a product."
no auth guard wrong folder hard-deletes data no i18n Thiếu withAdmin, sai vị trí, xoá cứng dữ liệu, quên i18n → phải làm lại.
✓ Through the kit · Qua kit
Same ticket →
routes context, plans,
validates, then executes.
wraps withAdmin archive not hard-delete correct convention i18n + tests Tự lấy convention, archive thay vì xoá cứng, đúng vị trí, kèm i18n + test.

Illustrative — swap in a real recorded run during the session. · Minh hoạ — nên thay bằng bản demo quay thật khi trình bày.

Getting Started · Bắt đầu

How the team adopts it

Team áp dụng như thế nào

  • Install once per repo (one command). Fresh repos run vc-setup to detect the stack and scaffold process/; existing ones run vc-update. Never overwrites — backs up first. Cài một lần cho mỗi repo (một lệnh). Repo mới chạy vc-setup để dò stack & dựng process/; repo cũ chạy vc-update. Không ghi đè — sao lưu trước.
  • Seed context from what you already have: point routers at existing docs, tickets, and conventions. Nạp context từ thứ đã có: trỏ router tới docs, ticket, convention hiện tại.
  • Pilot on one feature this sprint. Measure rework and consistency vs. the raw-prompt baseline. Thử trên một feature trong sprint này. Đo lượng làm lại & độ nhất quán so với prompt trần.
  • The UPDATE phase keeps context fresh automatically — no stale-doc debt piling up. Pha UPDATE tự giữ context luôn mới — không tích nợ tài liệu lỗi thời.

github.com/withkynam/vibecode-pro-max-kit

Wrap-up · Kết luận

Takeaways

Điều rút ra

  • AI's output is only as good as its context — treat it like onboarding a new developer. Output của AI chỉ tốt bằng context nó có — hãy coi như onboarding một dev mới.
  • The pains — missing, repetitive, forgotten, inconsistent context — are all context-delivery problems. Các nỗi đau — thiếu, lặp lại, bị quên, không nhất quán — đều là vấn đề "giao context".
  • You can solve them by hand, but discipline doesn't scale. Automate it so it becomes a team asset. Bạn có thể làm tay, nhưng kỷ luật không nhân rộng được. Tự động hoá để nó thành tài sản của team.
  • The kit turns "prompt luck" into a repeatable system — humans still decide and stay accountable. Kit biến "hên xui khi prompt" thành hệ thống lặp lại được — con người vẫn quyết định & chịu trách nhiệm.

Questions? · Thank you — Phuong, Team C

Working with AI · From Prompt Luck to a System
← / → · L lang · N notes · F full 1 / 16

Speaker Notes