Claude Code Guide 精选
Master guide for using Claude Code effectively. Includes configuration templates, prompting strategies "Thinking" keywords, debugging techniques, and best practices for interacting with the agent.
安装方式
cp -r cli-tool/components/skills/ai-research/claude-code-guide ~/.claude/skills/claude-code-guide把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/
https://raw.githubusercontent.com/davila7/claude-code-templates/b84033e51002cd4c805d5dce27e6d1fe19cb95f1/cli-tool/components/skills/ai-research/claude-code-guide/SKILL.md下载后另存为 ~/.claude/skills/claude-code-guide/SKILL.md。链接锁定采集时的 commit,内容与本站展示一致。
整仓一次性获取:git clone --depth 1 https://github.com/davila7/claude-code-templates.git
依赖与权限
- 无需 API Key
- 需要联网访问外部服务
- 依赖外部命令:
npm - 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。
SKILL.md 正文
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.
质量与来源
- 所属仓库
- davila7/claude-code-templates
- 仓库星标
- 3.3 万
- 最近更新
- 今天
- 采集时间
- 今天
- commit
- b84033e51002
- 内容指纹
- sha256:94144e941761fa3
- 文件路径
- cli-tool/components/skills/ai-research/claude-code-guide/SKILL.md