跳到正文
Skillpedia
提示词与 LLM33k · #8534

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

可直接粘贴的消息

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

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

  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.

常见问题

什么是 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.

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8534
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能