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

Học Claude Code Không Cần Terminal (Setup Claude Desktop + Course)

Download course Claude Code Mastery, kéo vào Claude Desktop Project Knowledge, và bạn có AI tutor riêng — không cần git, không cần terminal.

json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem",
               "/path/to/YOUR_COURSE_FOLDER"]
    }
  }
}
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.
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"
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
dev junior tutorial claude-code

5 MCP Server Mà Mọi Developer Dùng Claude Code Nên Cài

Hết copy-paste giữa các tab. 5 MCP server này cho Claude Code truy cập trực tiếp GitHub, tìm kiếm web, browser, database, và file — kèm lệnh cài đặt chính xác.

bash
# Add Brave Search MCP server
claude mcp add --transport stdio \
  --env BRAVE_API_KEY=YOUR_KEY \
  brave-search -- \
  npx -y @brave/brave-search-mcp-server
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
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 harness engineering guide showing advanced hook patterns
dev middle tutorial claude-code

Claude Code Cho Code Review: Workflow Thực Chiến

Sau 3 tháng dùng Claude Code làm code reviewer, đây là đánh giá thẳng thắn về điểm mạnh, điểm yếu, và prompt patterns cho feedback cấp senior.

bash
git diff main | claude -p "Review these changes. Focus on:
bugs, security, performance, edge cases.
Be specific — reference file names and line numbers."
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."
Diagram of the Think-Plan-Execute self-verification loop pattern
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."
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
dev middle case-study claude-code

Bảo Vệ Code Nhạy Cảm Khi Dùng Claude Code Trên Dự Án Thực Tế

4 chiến lược đã thực chiến để dùng Claude Code mà không lộ API key, credentials, hay code độc quyền — xếp hạng theo bảo mật, tốc độ, và tính bền vững.

text
# .claudeignore — files Claude cannot read
.env
.env.*
**/secrets/**
config/production.yml
*.pem
*.key
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
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
CLAUDE.md file shown fixing Claude Code memory issues across sessions