‹ 首页

claude-code-guide

@davila7 · 收录于 5 天前 · 上游提交 5 天前

Master guide for using Claude Code effectively. Includes configuration templates, prompting strategies "Thinking" keywords, debugging techniques, and best practices for interacting with the agent.

适合你,如果想系统学习如何更好地使用Claude Code进行开发。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add davila7/claude-code-templates/claude-code-guide
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- davila7/claude-code-templates/claude-code-guide
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify davila7/claude-code-templates/claude-code-guide
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
29874GitHub stars
~465上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 279b978 · 表述以原文为准
它做什么

装上后,Claude 会遵循项目中的 CLAUDE.md 文件指令(如命令、代码风格),并使用“Think step-by-step”等关键词进行深度推理,遇到问题时主动检查日志或重试。

什么时候触发

当你在项目根目录创建 CLAUDE.md 文件并填写指南时;或在提示中使用“Think step-by-step”等思考关键词时触发。

装好后可以这样说
让Claude检查输出日志,定位BUG。
技能原文 SKILL.md作者撰写 · MIT · 279b978

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:

  1. Clear Context: Start a new session or ask the agent to "forget previous instructions" if confused.
  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 grep or find 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.
Reference

Based on Claude Code Guide by zebbern.

按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。