claude-code-best-practice
shanraisshan · shanraisshan/claude-code-best-practice
Hướng dẫn về các phương pháp hay nhất này cung cấp một bộ sưu tập tài nguyên tuyển chọn cho Claude Code, bao gồm subagent, lệnh, kỹ năng, quy trình làm việc, MCP server và plugin, tập trung vào kỹ thuật agentic.
từ vibe coding đến kỹ thuật tác nhân - thực hành giúp Claude hoàn hảo
68k sao6.7kGiấy phép: MITCập nhật 3 ngày trước1 lượt mở
Xem trước
▍
Bạn có thể làm gì với nó
- Học cách cấu trúc các quy trình làm việc agent phức tạp bằng cách sử dụng subagent và hook.
- Khám phá các phương pháp hay nhất để tạo và quản lý các kỹ năng của Claude Code.
- Hiểu cách tích hợp MCP server và plugin vào thiết lập agent của bạn.
Thử hỏi agent của bạn
- “Giải thích khái niệm `subagents` trong Claude Code và cung cấp một ví dụ đơn giản về cách định nghĩa một subagent.”
- “Cách `hooks` hoạt động trong Claude Code? Cho tôi một ví dụ về pre-commit hook kiểm tra phong cách mã.”
- “Mô tả các loại `memory` khác nhau có sẵn trong Claude Code và các trường hợp sử dụng của chúng, tham chiếu tài liệu chính thức.”
Kiểm tra an toàn
An toàn
Không thấy dấu hiệu rủi ro trong các file đã quét.
Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.
Trích từ README
claude-code-best-practice
from vibe coding to agentic engineering - practice makes claude perfect
= Agents · = Commands · = Skills
Boris Cherny on X (tweet 1 · tweet 2 · tweet 3)
[!TIP] Visit the How to Use section to take full advantage of this repo.
🧠 CONCEPTS
| Feature | Location | Description |
|---|---|---|
| Subagents | .claude/agents/<name>.md | |
| Commands | .claude/commands/<name>.md | |
| Skills | .claude/skills/<name>/SKILL.md | Official Skills · Skills for Mono-repos |
| Workflows | .claude/commands/weather-orchestrator.md | |
| Hooks | .claude/hooks/ | Guide |
| MCP Servers | .claude/settings.json, .mcp.json | |
| Plugins | distributable packages | Marketplaces · Create Marketplaces |
| Settings | .claude/settings.json | Permissions · Model Config · Output Styles · Sandboxing · Keybindings · Auto Mode Config |
| Status Line | .claude/settings.json | |
| Memory | CLAUDE.md, .claude/rules/, ~/.claude/rules/, ~/.claude/projects//memory/ | Auto Memory · Auto Memory Deep-dive · Rules |
| Checkpointing | automatic (file-edit tracking) | |
| Sessions | --resume, --continue, /resume, /branch | |
| Context Window | /compact, /clear, /context | |
| CLI Startup Flags | claude [flags] | Interactive Mode · Env Vars |
| AI Terms | ||
| Best Practices | Prompt Engineering · Extend Claude Code | |
| Prompt Library |
🔥 Hot
| Feature | Location | Description |
|---|---|---|
| Ultrareview | /code-review ultra, claude ultrareview [target] | Tasks tracking |
| Devcontainers | .devcontainer/ | |
| Channels | --channels, plugin-based | Reference |
| No Flicker Mode | /tui fullscreen, CLAUDE_CODE_NO_FLICKER=1 | |
| Auto Mode | --permission-mode auto, Shift+Tab | Blog |
| Power-ups | /powerup | |
| Fast Mode | /fast, "fastMode": true | |
| Advisor | /advisor, advisorModel, --advisor | Blog |
| Computer Use | computer-use MCP server | Desktop |
| Agent SDK | npm / pip package | Quickstart · Examples |
| Ralph Wiggum Loop | plugin | |
| Chrome | --chrome, extension | |
| Claude Code Web | claude.ai/code | Routines |
| Artifacts | /share, Artifact tool | |
| Slack | @Claude in Slack | |
| Code Review | GitHub App (managed) | Blog Local /code-review |
| GitHub Actions | .github/workflows/ | GitLab CI/CD |
| Remote Control | /remote-control, /rc | Headless Mode |
| [Deep Links](https://code.claude.com/docs/en |