QuotaCheap Playbook
Claude Code Playbook
A practical developer playbook for Claude Code based on official documentation: setup, workflows, memory, permissions, MCP, hooks, SDK, CI/CD, and producti…
A practical developer playbook for Claude Code based on official documentation: setup, workflows, memory, permissions, MCP, hooks, SDK, CI/CD, and production operations.
Claude Code là gì? Agentic coding tool trong terminal, IDE, desktop app và browser
Bài Claude Code Playbook: Claude Code docs mô tả đây là agentic coding tool đọc codebase, edit files, run commands và integrate với development tools. Nó có mặt trong terminal, IDE, desktop app và browser. Bài viết bám Claude Code documentation, tập trung workflow developer, review, permissions, memory và cách dùng an toàn.
Cài đặt và đăng nhập Claude Code: native install, Homebrew, WinGet, Console và cloud providers
Bài Claude Code Playbook: Claude Code quickstart hướng dẫn cài bằng native install, Homebrew hoặc WinGet; chạy `claude` trong project và login bằng Claude subscription, Console account, hoặc supported cloud provider như Amazon Bedrock, Google Vertex AI, Microsoft Foundry. Bài viết bám Claude Code documentation, tập trung workflow developer, review, permissions, memory và cách dùng an toàn.
Claude Code common workflows: đọc repo, fix bug, refactor, viết test và tạo PR
Bài Claude Code Playbook: Claude Code Common workflows docs gom các recipe cho exploring codebases, fixing bugs, refactoring, testing, PRs, documentation, resume conversations, worktrees, plan before editing, subagents và piping Claude into scripts. Bài viết bám Claude Code documentation, tập trung workflow developer, review, permissions, memory và cách dùng an toàn.
CLAUDE.md, auto memory và project rules: cách Claude Code nhớ context repo
Bài Claude Code Playbook: Memory docs nói mỗi Claude Code session bắt đầu với fresh context window. Knowledge đi qua hai cơ chế: `CLAUDE.md` files do người dùng viết và auto memory do Claude tự ghi từ corrections/preferences; `.claude/rules/` giúp scope rules theo file paths. Bài viết bám Claude Code documentation, tập trung workflow developer, review, permissions, memory và cách dùng an toàn.
Claude Code Hooks: deterministic controls để format, block command và gửi notification
Bài Claude Code Playbook: Hooks docs mô tả hooks là user-defined shell commands chạy tại các điểm lifecycle của Claude Code. Hooks giúp format files sau edit, block commands trước khi execute, gửi notification khi Claude cần input, inject context và audit configuration changes. Bài viết bám Claude Code documentation, tập trung control thật, review, guardrails và workflow developer.
Claude Code MCP: kết nối issue tracker, monitoring, database và API mà vẫn giữ trust boundary
Bài Claude Code Playbook: MCP docs nói Claude Code có thể kết nối external tools và data sources qua Model Context Protocol. MCP servers cho Claude access tới tools, databases và APIs; docs cảnh báo phải trust server vì external content có prompt injection risk. Bài viết bám Claude Code documentation, tập trung control thật, review, guardrails và workflow developer.
Claude Code CLI reference: claude, print mode, resume sessions, MCP và background agents
Bài Claude Code Playbook: CLI reference liệt kê `claude` để start interactive session, `claude -p` để query rồi exit, `claude -c` để continue, `claude -r` để resume, `claude mcp` để configure MCP servers, `claude agents` để monitor and dispatch parallel background sessions. Bài viết bám Claude Code documentation, tập trung control thật, review, guardrails và workflow developer.
Claude Code permissions: allow, ask, deny và permission modes an toàn cho repo thật
Bài Claude Code Playbook: Permissions docs nói Claude Code kiểm soát tool access bằng permission rules và modes. Read-only tools không cần approval; Bash commands và file modification cần approval theo điều kiện. Rules có Allow, Ask, Deny và được evaluate theo thứ tự deny, ask, allow. Bài viết bám Claude Code documentation, tập trung control thật, review, guardrails và workflow developer.
Claude Code Agent View: quản lý background sessions bằng `claude agents`
Bài Claude Code Playbook: Agent view docs nói `claude agents` mở một màn hình để dispatch và manage nhiều Claude Code sessions. Nó hiển thị sessions đang working, needs input hoặc completed; có thể peek, reply, attach và detach. Bài viết bám Claude Code documentation, tập trung parallel workflow, review gate, CI/CD và guardrails.
Claude Code subagents: giữ context sạch bằng Explore, Plan và custom workers
Bài Claude Code Playbook: Subagents docs nói subagents là specialized AI assistants cho task-specific workflows và context management. Mỗi subagent chạy trong context window riêng, có custom system prompt, tool access và independent permissions; built-in subagents gồm Explore, Plan và general-purpose. Bài viết bám Claude Code documentation, tập trung parallel workflow, review gate, CI/CD và guardrails.
Claude Code Agent Teams: khi nào nên dùng multi-agent coordination experimental
Bài Claude Code Playbook: Agent teams docs nói tính năng này experimental và disabled by default. Nó cho nhiều Claude Code instances phối hợp như team, có shared tasks, inter-agent messaging và centralized management; teammates có context window riêng và có thể communicate directly. Bài viết bám Claude Code documentation, tập trung parallel workflow, review gate, CI/CD và guardrails.
Claude Code GitHub Actions và GitLab CI/CD: AI automation nhưng PR/MR vẫn là gate
Bài Claude Code Playbook: GitHub Actions docs nói `@claude` mention trong PR/issue có thể analyze code, create pull requests, implement features và fix bugs. GitLab CI/CD docs nói integration đang beta, chạy trong CI/CD jobs và commit results back via MRs. Bài viết bám Claude Code documentation, tập trung parallel workflow, review gate, CI/CD và guardrails.
Claude Agent SDK cost tracking và observability: token usage, cache, OpenTelemetry
Bài Claude Agent SDK Playbook: Cost tracking docs nói SDK cung cấp token usage information cho mỗi interaction; observability docs nói SDK chạy Claude Code CLI như child process và CLI export metrics, log events, traces qua OpenTelemetry khi cấu hình env. Bài viết bám documentation, tập trung production workflow, tools, permissions, cost và observability.
Claude Agent SDK overview: dùng Claude Code như library để build production agents
Bài Claude Agent SDK Playbook: Agent SDK overview nói SDK cho phép build AI agents autonomously read files, run commands, search web, edit code và dùng cùng tools, agent loop, context management như Claude Code; SDK có Python và TypeScript packages. Bài viết bám documentation, tập trung production workflow, tools, permissions, cost và observability.
Claude Agent SDK custom tools: in-process MCP server, schemas và handlers
Bài Claude Agent SDK Playbook: Custom tools docs nói SDK cho phép define functions Claude có thể call qua in-process MCP server; tool gồm name, description, input schema và handler, có thể gọi APIs, databases hoặc domain-specific logic. Bài viết bám documentation, tập trung production workflow, tools, permissions, cost và observability.
Claude Agent SDK quickstart: bug-fixing agent bằng Python hoặc TypeScript
Bài Claude Agent SDK Playbook: Quickstart docs yêu cầu Node.js 18+ hoặc Python 3.10+, Anthropic account, install package, tạo sample buggy code và chạy agent đọc code, tìm bug, sửa bug tự động. Bài viết bám documentation, tập trung production workflow, tools, permissions, cost và observability.
Claude Code Skills: biến checklist lặp lại thành procedure dùng lại được
Bài Claude Code Playbook: Skills docs nói skills extend what Claude can do bằng `SKILL.md`; Claude dùng skill khi relevant hoặc user invoke trực tiếp bằng `/skill-name`. Custom commands đã được merged into skills, và skills có thể load only when used. Bài viết bám documentation, tập trung skills, workflows, security, settings, monitoring và production guardrails.
Claude Code dynamic workflows: orchestration bằng script cho audit, migration và research lớn
Bài Claude Code Playbook: Workflows docs nói dynamic workflows là JavaScript script orchestrate nhiều subagents ở scale. Claude viết script cho task, runtime execute background, hữu ích cho codebase audits, large migrations và cross-checked research. Bài viết bám documentation, tập trung skills, workflows, security, settings, monitoring và production guardrails.
Claude Code security và settings: scopes, permissions, sandbox và prompt injection boundary
Bài Claude Code Playbook: Security docs nói Claude Code có read-only permissions by default, cần approval cho edit/commands nguy hiểm, có sandboxed bash, write access restriction, prompt injection protections và trust verification. Settings docs giải thích managed/user/project/local scopes. Bài viết bám documentation, tập trung skills, workflows, security, settings, monitoring và production guardrails.
Claude Code monitoring: OpenTelemetry metrics, logs, traces, cost và tool activity
Bài Claude Code Playbook: Monitoring docs nói Claude Code export telemetry qua OpenTelemetry: metrics as time series, events via logs/events protocol, và optional distributed traces; cấu hình bằng environment variables như `CLAUDE_CODE_ENABLE_TELEMETRY=1`. Bài viết bám documentation, tập trung skills, workflows, security, settings, monitoring và production guardrails.