claude-code-guide – skill Lập trình cho agent AI
Cung cấp tài liệu tham khảo toàn diện để cấu hình và sử dụng Claude Code (công cụ lập trình agent) đạt hiệu quả tối đa. Skill này tổng hợp các thực hành tốt nhất, mẫu cấu hình và mẫu sử dụng nâng cao.
Cài skill claude-code-guide bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/claude-code-guide-ab233.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /claude-code-guide – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/claude-code-guide-ab233.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $claude-code-guide – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/claude-code-guide-ab233.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /claude-code-guide – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/claude-code-guide-ab233.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /claude-code-guide – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Claude Code Guide
Purpose
To provide a comprehensive reference for configuring and using Claude Code (the agentic coding tool) to its full potential. This skill synthesizes best practices, configuration templates, and advanced usage patterns.
Configuration (CLAUDE.md)
Read existing project instructions first. Add or update a project CLAUDE.md only within the requested scope, preserving repository conventions and existing instructions. The template below illustrates a React/TypeScript npm project; replace its commands and stack rules with verified project facts.
Template (General)
# Project Guidelines
## Commands
- Run app: `npm run dev`
- Test: `npm test`
- Build: `npm run build`
## Code Style
- Use TypeScript for all new code.
- Functional components with Hooks for React.
- Tailwind CSS for styling.
- Early returns for error handling.
## Workflow
- Read `README.md` first to understand project context.
- Before editing, read the file content.
- After editing, run tests to verify.Advanced Features
Thinking Keywords
State the desired investigation and verification criteria explicitly. These phrases describe tasks; they are not guaranteed switches for model reasoning effort:
- "Think step-by-step"
- "Analyze the root cause"
- "Plan before executing"
- "Verify your assumptions"
Debugging
If the agent is stuck or behaving unexpectedly:
1. Clear Context: Save the task state and relevant evidence before starting a new session. A prompt to forget instructions does not erase loaded project rules.
2. Explicit Instructions: Be extremely specific about paths, filenames, and desired outcomes.
3. Logs: Ask the agent to "check the logs" or "run the command with verbose output".
Best Practices
1. Small Contexts: Don't dump the entire codebase into the context. Use rg or rg --files to locate relevant files first.
2. Iterative Development: Ask for small changes, verify, then proceed.
3. Feedback Loop: If the agent makes a mistake, correct it immediately and ask it to "add a lesson" to its memory (if supported) or CLAUDE.md.
Verification
Inspect the resulting diff and confirm the intended instructions actually load in the installed host. Project instructions guide behavior; they do not enforce a security boundary. Keep secrets out of tracked instructions. Check current features against [official memory documentation](https://code.claude.com/docs/en/memory).
Reference
Based on [Claude Code Guide by zebbern](https://github.com/zebbern/claude-code-guide).
When to Use
Use when configuring project instructions, diagnosing conflicting Claude Code guidance, or defining verified build/test workflows.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- claude-delegate – Giao việc lập trình cho một tiến trình Claude Code CLI riêng hoặc phiên Claude riêng chỉ…
- python-resilience – Các mẫu thiết kế chống lỗi cho Python, gồm tự động retry, exponential backoff, timeout…
- parallel-cli – Tìm kiếm web, nghiên cứu sâu và làm giàu dữ liệu theo hướng agent-native.
- pydeseq2 – Thực hiện phân tích khác biệt biểu hiện RNA-seq hàng loạt với PyDESeq2, gồm kiểm tra…
- claude-win11-speckit-update-skill – Rà soát cập nhật GitHub SpecKit trên Windows 11 bằng PowerShell, giữ nguyên template và…
- clean-code – Skill này thể hiện các nguyên tắc "Clean Code" của Robert C. Martin (Uncle Bob). Dùng nó…
- clean-code-guard – Rà soát code production được tạo ra hoặc thay đổi theo Clean Code, SOLID, DRY, KISS…
- python-resource-management – Quản lý tài nguyên Python với context manager, mẫu dọn dẹp và streaming. Dùng khi quản…