跳到正文
Skillpedia
通用编程48k · #4143

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/claude-code-guide/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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:

  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.
常见问题

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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4143
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能