mirror of
https://github.com/luongnv89/claude-howto.git
synced 2026-09-17 13:02:14 +02:00
* docs: sync to Claude Code v2.1.257 Audit against Claude Code v2.1.257 (repo baseline was v2.1.245, 12 releases behind). Facts verified against the official docs and cross-checked against the locally installed 2.1.257 binary. Critical (P0): - lesson-quiz L06 Q9 asked how many hook events exist, offering 16/25/31/40. With the real answer now 33, no option was correct. Option C 31 -> 33; answer letter unchanged. - 03-skills taught SKILL.md `name`/`description` as required. Official docs now state all frontmatter fields are optional and `name` defaults to the directory name. Corrected in all five languages. Hook events 31 -> 33 (PreModelSwitch/PostModelSwitch, v2.1.251) across 30 occurrences in 22 files, including three that read 25. Delta proved by set-diff against the official event table: no phantom events. Both events added to the 06-hooks tables with matcher, blocking behavior and 30s timeout, plus detailed per-event sections. CLI corrections verified against the binary: - `claude plugin tag` takes a path, not a version - `claude plugin init` / `validate` require their arguments - `plugin init` scaffolds at ~/.claude/skills/<name>/, not project-local - `--channels` entries must be tagged plugin:<name>@<marketplace> - `--remote` is a deprecated alias for `--cloud` - no `claude remote-control` subcommand exists, only the --remote-control flag Also: CATALOG summary-table totals recomputed in all five languages (column 4 is a derived total, so the count change invalidated it); stale Opus 4.6/4.7 rosters aligned to canonical; self-assessment Advanced Features rescored 0-3 to stop a real gap being graded as mastery; 9 dangling quiz Review pointers repaired; new features documented (--restricted, Fable 5.1, experimental.cacheTtl, CLAUDE_CODE_SUBAGENT_MODEL_FORCE). Deliberately out of scope: pre-existing translation staleness whose fix is translation authorship rather than correction (ja/uk April-2026 root-doc bodies, zh stubs, vi/README stub, translated CATALOG "New Features"). Claude-Session: https://claude.ai/code/session_01128xfEd8W7c2cMRw6N7uiF * fix(hooks): complete the 31 → 33 hook-event propagation across all languages The v2.1.257 sync bumped the hook-event count in the lesson and catalog summaries but left 14 files still asserting 31, four of which the same commit restamped 2.1.257. It also bumped the prose count in claude_concepts_guide.md without adding the two rows, making that file contradict itself where it had been internally consistent before. Adds PreModelSwitch and PostModelSwitch (v2.1.251) everywhere an exhaustive enumeration exists, and corrects the count wherever a list is deliberately partial: - README.md / INDEX.md in en, ja, zh, uk and vi/INDEX.md — count 31 → 33 and both events added to the lifecycle group - resources.md in all five languages — count only; these lists end in "and more" and are partial by design - claude_concepts_guide.md — the two missing table rows Also brings every hook-event table up to the 33 its own summary row claims. The English CATALOG.md listed 29; the translated catalogs listed 25 and the ja/uk concept guides 27 and 28. Completing them required translating six events that had never reached the mirrors: Setup, UserPromptExpansion, PermissionDenied, PostToolBatch, MessageDisplay and DirectoryAdded. Summary-table arithmetic is untouched — those columns count example scripts, not events. Verified: no stale count survives outside CHANGELOG history, every exhaustive enumeration lists exactly 33, and pre-commit passes 23/23. Claude-Session: https://claude.ai/code/session_01UXmqJZNk1BR4uerJA85NiW
Hướng Dẫn Claude Code
🌐 Language / Ngôn ngữ: English | Tiếng Việt
Làm chủ Claude Code trong một cuối tuần
Đây là bản tiếng Việt của tài liệu Claude Code How-To Guide.
📖 Giới Thiệu
Tài liệu này giúp bạn:
- Hiểu và sử dụng Claude Code hiệu quả
- Tự động hóa các tác vụ phát triển phần mềm
- Tích hợp Claude Code vào workflow hàng ngày
🚀 Bắt Đầu Nhanh
Yêu Cầu
- Claude Code đã được cài đặt
- Kiến thức cơ bản về dòng lệnh (terminal)
- Kiến thức cơ bản về lập trình
Cài Đặt
# Clone repository này
git clone https://github.com/luongnv89/claude-howto.git
cd claude-howto
# Copy các lệnh slash vào project của bạn
mkdir -p .claude/commands
cp 01-slash-commands/*.md .claude/commands/
📚 Cấu Trúc Tài Liệu
Tài liệu được chia thành 10 modules theo trình tự học:
- 01 - Lệnh Slash - Các lệnh tắt để tăng năng suất
- 02 - Bộ Nhớ - Lưu trữ context xuyên suốt các phiên
- 03 - Skills - Các khả năng có thể tái sử dụng
- 04 - Tác Nhân Con - Các trợ lý AI chuyên biệt
- 05 - MCP - Giao thức Model Context
- 06 - Hooks - Tự động hóa dựa trên sự kiện
- 07 - Plugins - Các tính năng được đóng gói
- 08 - Checkpoints - Snapshot phiên làm việc
- 09 - Tính Nâng Cao - Planning, thinking, backgrounds
- 10 - CLI - Tham chiếu dòng lệnh
🔗 Liên Kết
🤝 Đóng Góp
Xem CONTRIBUTING.md để biết thêm chi tiết.
📝 Ghi Chú Dịch Thuật
Xem TRANSLATION_NOTES.md để hiểu:
- Glossary thuật ngữ kỹ thuật
- Hướng dẫn phong cách dịch
- Quy tắc dịch code và commands
Bản dịch đang được tiến hành. Xem TRANSLATION_QUEUE.md để biết tiến độ chi tiết.
Last Updated: 2026-04-02 Language: Vietnamese (vi-VN)