claude-code-guide
它能做什么
这个技能是设置和有效使用 Claude Code 的实用指南。适合刚接触 Claude Code,或希望从中获得更好结果的人。
适用场景
- ✓当有人为新项目设置 Claude Code,并希望有一个起始配置的时候。
- ✓当用户希望写出更好的提示词,以获得更清晰、更深入的回答的时候。
- ✓当 Claude Code 卡住或行为异常,需要调试步骤的时候。
技能链接
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/claude-code-guide/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我为我的新网站项目编写一个 CLAUDE.md 文件,让 Claude Code 遵循我们的约定。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能提供项目配置文件的模板,以及提示词技巧和调试步骤。你需要根据项目的命令和风格改编这个模板。
技术内容(原始 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)
When starting a new project, create a CLAUDE.md file in the root directory to guide the agent.
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
Use these keywords in your prompts to trigger deeper reasoning from the agent:
- "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: Start a new session or ask the agent to "forget previous instructions" if confused.
- 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
greporfindto 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.
Reference
Based on Claude Code Guide by zebbern.
常见问题
什么是 CLAUDE.md?
它是放在根文件夹中的项目文件,为 Claude Code 提供命令和代码风格等指导原则。
如果 Claude Code 感到困惑怎么办?
该技能建议开始新的会话,明确说明路径和预期结果,并要求它检查日志。
提示词技巧一定有效吗?
它们是经常有帮助的建议做法,但不保证一定有效。
详情
作者的原始描述
Master guide for using Claude Code effectively. Includes configuration templates, prompting strategies "Thinking" keywords, debugging techniques, and best practices for interacting with the agent.
热度
- GitHub 星标
- 33k
- 排名
- #8534
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
owasp-security
33k教你的智能体掌握面向网页应用、API、移动端、容器和 AI 智能体的 OWASP 安全指南,以便发现常见弱点并提出修复建议。
agent-management
33k让你的智能体使用 AI Maestro 命令行工具创建、列出、休眠、唤醒、重命名和删除 AI 智能体,管理每个智能体的生命周期。
agent-messaging
33k让你的智能体使用智能体消息协议,在 AI 智能体之间发送、接收和回复带签名的消息,大部分在你自己的电脑上完成。
docs-search
33k让你的智能体搜索自动生成的代码文档,查找函数签名、类定义和注释,从而在修改代码之前核对真实的 API。