Skip to content

ShipWithAI
Blog

Mẹo AI coding thực chiến, đánh giá công cụ, và kiến thức kỹ thuật cho developer.

54 bài

Khóa học nổi bật

Go from AI curious to AI shipping — in 30 days.

136 lessons. Real projects. The system behind developers who ship with Claude Code.

Start the Course →
dev fresher tutorial claude-code

Biến 136 Bài Học Thành Mentor AI Riêng (Không Cần Đọc Bài Nào)

Clone repo course Claude Code Mastery, thêm 1 dòng vào CLAUDE.md, và bạn có mentor AI chuyên sâu coaching ngay trong lúc code.

markdown
## AI Mentor
Read ~/claude-course/COURSE-INDEX.md first.
Reference ~/claude-course for best practices.
When I ask about prompting or debugging,
check the course for techniques and patterns.
Cite the specific phase and module name.
Biến 136 Bài Học Thành Mentor AI Riêng (Không Cần Đọc Bài Nào)
dev middle essay claude-code

Tại sao AI coding đơn agent gặp giới hạn — và multi-agent thay đổi thực sự điều gì

Trải nghiệm thật của senior dev chạy nhiều AI agents song song trên production code. Cái gì hoạt động, cái gì hỏng, và khi nào dùng mode nào.

bash
# Parallel agents via git worktrees
git worktree add ../agent-1 -b agent/YOUR-TASK-1
git worktree add ../agent-2 -b agent/YOUR-TASK-2

cd ../agent-1 && claude -p "YOUR_TASK_1"
cd ../agent-2 && claude -p "YOUR_TASK_2"
Tại sao AI coding đơn agent gặp giới hạn — và multi-agent thay đổi thực sự điều gì
dev junior tutorial claude-code

Claude Code + Git Worktrees: Chạy Song Song Nhiều AI Agent Không Lo Xung Đột

Dùng Git worktrees với Claude Code để chạy nhiều AI agent song song trên cùng codebase — không merge conflict, không file lock, không lãng phí thời gian.

bash
git worktree add ../app-feature -b feature/YOUR-FEATURE
git worktree add ../app-bugfix  -b fix/YOUR-BUG

# Open each in a separate terminal:
cd ../app-feature && claude
cd ../app-bugfix  && claude
Claude Code + Git Worktrees: Chạy Song Song Nhiều AI Agent Không Lo Xung Đột
dev fresher tutorial claude-code

Hướng Dẫn Cài Đặt Plugin Claude Code: Mọi Phương Pháp Từ A-Z (Có Ảnh Minh Họa)

Hướng dẫn đầy đủ cách cài plugin Claude Code — từ marketplace, GitHub repo, đến plugin local tùy chỉnh. 5 phương pháp, xử lý lỗi, và bảng tham khảo nhanh.

bash
# Install from Claude registry
claude plugin install @anthropic/puppeteer

# Install from GitHub
claude plugin install github:owner/repo-name

# List installed plugins
claude plugin list
Hướng Dẫn Cài Đặt Plugin Claude Code: Mọi Phương Pháp Từ A-Z (Có Ảnh Minh Họa)
dev middle tutorial claude-code

Claude Code Có 17 Hook Events. Bạn Chắc Chỉ Dùng 4.

Không chỉ shell scripts: prompt hooks, agent hooks, HTTP webhooks, và 7 công thức copy-paste cho những tính năng hook mà hầu hết developer không biết.

json
{
  "hooks": {
    "Stop": [{
      "type": "prompt",
      "prompt": "Verify all tasks are done. Return {ok: true} or {ok: false, reason: '...'}",
      "model": "claude-haiku-4-5-20251001",
      "timeout": 30
    }]
  }
}
Claude Code Có 17 Hook Events. Bạn Chắc Chỉ Dùng 4.
dev junior tutorial claude-code

Pattern Think-Plan-Execute: Cách Tôi Cấu Trúc Mỗi Phiên Claude Code

Framework ba giai đoạn đơn giản biến phiên AI coding hỗn loạn thành kết quả chất lượng, dự đoán được. Áp dụng pattern này cho workflow của bạn.

text
"Now let's plan the implementation.
1. What files need to change?
2. What's the order to avoid breaking things?
3. What are the edge cases to handle?
Write a step-by-step plan.
Don't write code yet — just the plan."
Pattern Think-Plan-Execute: Cách Tôi Cấu Trúc Mỗi Phiên Claude Code
dev middle case-study claude-code

Refactor Legacy Code Với Claude Code: Cẩm Nang Thực Chiến

Câu chuyện từng bước cách tôi dùng Claude Code để hiện đại hóa codebase Kotlin legacy — chiến lược, bẫy ngầm, và kỹ thuật thực sự hiệu quả.

bash
claude "Refactor src/ to use YOUR_PATTERN.
1. Show me 1 example first — don't change anything yet.
2. Wait for my approval before continuing.
3. Migrate all occurrences, one file at a time."
Refactor Legacy Code Với Claude Code: Cẩm Nang Thực Chiến
dev junior tutorial claude-code

Cách Tôi Giảm 60% Chi Phí Claude Code Mà Không Mất Năng Suất

Những chiến lược thực tế để giảm chi phí Claude Code — từ quản lý context đến chọn model đến kỹ thuật prompt. Số liệu thật từ workflow production.

bash
# One-shot mode — no session overhead
claude -p "Add console.log before the fetch call
in src/api/payments.ts:42"
# Cost: ~$0.03 vs ~$0.18 for an interactive session
Cách Tôi Giảm 60% Chi Phí Claude Code Mà Không Mất Năng Suất
dev junior essay claude-code

5 Lỗi Claude Code Mà Developer Nào Cũng Mắc (Và Cách Sửa)

Sau khi hỗ trợ hàng trăm developer dùng Claude Code, đây là những lỗi phổ biến nhất tôi thấy — và cách sửa đơn giản nhưng thay đổi hoàn toàn kết quả.

bash
# Mistake: interactive session for simple tasks
# Fix: one-shot mode
claude -p "Add input validation to src/api/YOUR_ROUTE.ts"
# ~$0.03 vs $0.18+ for a full session
5 Lỗi Claude Code Mà Developer Nào Cũng Mắc (Và Cách Sửa)
dev fresher essay claude-code

Tại Sao CLAUDE.md Là File Quan Trọng Nhất Trong Project Của Bạn

Vì sao CLAUDE.md quyết định chất lượng output của Claude Code? Hướng dẫn đầy đủ về cấu trúc, ví dụ thực tế, và 5 anti-patterns nên tránh.

markdown
# Project: YOUR_PROJECT_NAME

## Stack
YOUR_STACK (e.g., Next.js 14, TypeScript, Prisma)

## Rules
- Never modify migration files directly
- All API routes require auth middleware
- Run `npm test` before marking tasks complete
Tại Sao CLAUDE.md Là File Quan Trọng Nhất Trong Project Của Bạn