claude-code-guide
它能做什么
这份指南讲解如何设置和使用 Claude Code,这是一款帮助你编程的工具。它会教你如何向 AI 清晰地下达指令、整理代码以及解决问题。
适用场景
- ✓当你想规定 AI 应该如何组织一个编程项目时。
- ✓当 AI 无法正确理解你的代码指令时。
- ✓当你想写一份关于如何运行、测试和构建项目的说明时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/claude-code-guide/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我为一个 React 加 TypeScript 的项目设置 CLAUDE.md 文件,并写上运行和测试的命令。”
每周 5 个新技能,1 分钟读完。
工作原理
Claude Code 的工作方式是读取一个名为 CLAUDE.md 的特殊文件。你可以在这个文件里为项目写下 AI 需要遵守的规则和命令。它还会推荐一些关键词,帮助 AI 更好地思考并解决错误。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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:
- 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.
- Explicit Instructions: Be extremely specific about paths, filenames, and desired outcomes.
- Logs: Ask the agent to "check the logs" or "run the command with verbose output".
Best Practices
- Small Contexts: Don't dump the entire codebase into the context. Use
rgorrg --filesto locate relevant files first. - Iterative Development: Ask for small changes, verify, then proceed.
- 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.
常见问题
CLAUDE.md 文件是什么?
它是一个用来告诉 Claude Code 应该如何处理你的项目的文件,里面写着编写代码的规则、运行项目的命令以及解决问题的方法。
怎样让 AI 修复错误?
你可以让 AI“检查日志”,或者“运行带详细输出的命令”。另外,给出非常具体的指令,说明你希望它做什么,也会很有帮助。
可以把密码或机密信息写进 CLAUDE.md 吗?
不可以。CLAUDE.md 文件的作用是指导 AI 的行为,而不是保护信息。请不要把机密内容写进指令里。
详情
作者的原始描述
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.
热度
- GitHub 星标
- 48k
- 排名
- #4143
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。