Chuyển đến nội dung
Skillpedia
Lập trình chung48k · #4143

claude-code-guide

Skill này làm gì

Hướng dẫn này chỉ cách thiết lập và dùng Claude Code, một công cụ hỗ trợ lập trình. Nó cho thấy cách đưa ra hướng dẫn rõ ràng cho AI, tổ chức mã và giải quyết vấn đề.

Khi nào nên dùng

  • ✓Khi bạn muốn quy định cách AI nên tổ chức một dự án lập trình.
  • ✓Khi AI gặp khó khăn trong việc hiểu hướng dẫn về mã của bạn.
  • ✓Để tạo hướng dẫn về cách chạy, kiểm thử và xây dựng dự án của bạn.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/claude-code-guide/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/claude-code-guide/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Giúp tôi thiết lập tệp CLAUDE.md cho một dự án React với TypeScript, bao gồm các lệnh chạy và kiểm thử.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Claude Code hoạt động bằng cách đọc một tệp đặc biệt tên CLAUDE.md. Bạn viết các quy tắc và lệnh vào tệp này để AI tuân theo cho dự án của bạn. Nó cũng gợi ý các từ khóa giúp AI suy nghĩ tốt hơn và giải quyết lỗi.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết 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.

Reference

Based on Claude Code Guide by zebbern.

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.
Câu hỏi thường gặp

Tệp CLAUDE.md là gì?

Đó là tệp nơi bạn viết hướng dẫn cho Claude Code về cách làm việc với dự án của bạn. Nó chứa các quy tắc viết mã, lệnh chạy dự án và cách giải quyết vấn đề.

Làm sao để AI sửa một lỗi?

Bạn có thể yêu cầu AI “kiểm tra nhật ký” hoặc “chạy lệnh với đầu ra chi tiết”. Đưa ra hướng dẫn rất cụ thể về điều bạn muốn nó làm cũng rất hữu ích.

Tôi có thể đưa mật khẩu hoặc thông tin bí mật vào CLAUDE.md không?

Không. Tệp CLAUDE.md dùng để hướng dẫn hành vi của AI, không dùng để bảo vệ thông tin. Hãy giữ thông tin bí mật ngoài các hướng dẫn.

Chi tiết

Mô tả gốc của tác giả

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.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#4143
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự