Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

claude-code-guideClaude 代码指南

Agent Skill

claude-code-guide 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

490

周安装

20

GitHub Stars

10

下载量

157
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:claude-code-guide(Claude 代码指南)
来源仓库:https://github.com/founderjourney/claude-skills
仓库路径:skills/claude-code-guide
安装命令:
npx skills add https://github.com/founderjourney/claude-skills --skill claude-code-guide
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/founderjourney/claude-skills --skill claude-code-guide

简介

claude-code-guide 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更进行整理。
  • 通过 npx skills add 命令从指定仓库安装并使用该技能。
  • 安装前需确认权限范围、维护状态及是否触发联网或文件读写。
  • 建议结合原始 README 核验具体用法和功能边界。

SKILL.md

Claude Code Guide

Comprehensive reference for Claude Code, Anthropic's official CLI tool for AI-assisted development.

When to Use This Skill

  • Learning Claude Code features
  • Configuring Claude Code settings
  • Understanding keyboard shortcuts
  • Setting up MCP servers
  • Creating custom sub-agents
  • Troubleshooting issues
  • Optimizing workflows

Installation

macOS/Linux

npm install -g @anthropic-ai/claude-code

Windows

npm install -g @anthropic-ai/claude-code

Verify Installation

claude --version

Authentication

API Key Setup

# Set API key
export ANTHROPIC_API_KEY="your-key"

# Or via CLI
claude auth login

Check Auth Status

claude auth status

Basic Commands

CommandDescription
claudeStart interactive session
claude "prompt"One-shot query
claude -cContinue last conversation
claude --helpShow help

Keyboard Shortcuts

Navigation

ShortcutAction
Ctrl+CCancel current operation
Ctrl+DExit Claude Code
Ctrl+LClear screen
↑/↓Navigate history

Editing

ShortcutAction
Ctrl+AMove to line start
Ctrl+EMove to line end
Ctrl+WDelete word backward
Ctrl+UDelete to line start

Special

ShortcutAction
TabAutocomplete
Shift+EnterMulti-line input
EscapeCancel current input

Slash Commands

CommandDescription
/helpShow help
/clearClear conversation
/compactToggle compact mode
/modelChange model
/costShow token usage
/bugReport a bug

Configuration

Config File Location

~/.claude/settings.json

Settings Options

{
  "model": "claude-sonnet-4-20250514",
  "theme": "dark",
  "editor": "vscode",
  "autoSave": true,
  "permissions": {
    "allowFileWrite": true,
    "allowBash": true,
    "allowNetwork": true
  }
}

Project Settings

Create .claude/settings.json in project root:

{
  "systemPrompt": "You are helping with a Node.js project...",
  "allowedPaths": ["src/", "tests/"],
  "blockedPaths": ["node_modules/", ".env"]
}

MCP (Model Context Protocol)

What is MCP?

MCP allows Claude to interact with external tools and services through standardized servers.

MCP Configuration

// ~/.claude/mcp.json
{
  "servers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@anthropic-ai/mcp-server-filesystem"],
      "env": {
        "ALLOWED_PATHS": "/home/user/projects"
      }
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@anthropic-ai/mcp-server-github"],
      "env": {
        "GITHUB_TOKEN": "${GITHUB_TOKEN}"
      }
    }
  }
}

Available MCP Servers

  • @anthropic-ai/mcp-server-filesystem - File operations
  • @anthropic-ai/mcp-server-github - GitHub integration
  • @anthropic-ai/mcp-server-postgres - Database queries
  • @anthropic-ai/mcp-server-puppeteer - Browser automation

Sub-Agents

Creating Custom Agents

Create in ~/.claude/agents/:

---
name: code-reviewer
description: Reviews code for best practices
model: claude-sonnet-4-20250514
---

# Code Review Agent

You are a senior code reviewer. When reviewing code:

1. Check for security issues
2. Verify error handling
3. Assess readability
4. Suggest improvements

Be constructive and educational in feedback.

Using Agents

# List agents
claude agents list

# Use specific agent
claude --agent code-reviewer

Skills

Installing Skills

# From marketplace
claude skills install skill-name

# From GitHub
claude skills install github:user/repo

Skill Location

~/.claude/skills/skill-name/SKILL.md

Creating Skills

See skill-creator skill.

Hooks

Pre/Post Hooks

// .claude/hooks.json
{
  "preCommand": ["echo 'Starting...'"],
  "postCommand": ["echo 'Done!'"],
  "preFileWrite": ["backup.sh"],
  "postFileWrite": ["format.sh"]
}

Permissions

Permission Levels

  • ask - Prompt for each action
  • allow - Allow without prompting
  • deny - Block action

Configure Permissions

{
  "permissions": {
    "file:write": "ask",
    "bash:execute": "ask",
    "network:fetch": "allow"
  }
}

Performance Tips

  1. Use .claudeignore: Exclude large directories
  2. Project Context: Set in .claude/ folder
  3. Compact Mode: For faster responses
  4. Specific Prompts: Be precise in requests
  5. File References: Use @filename syntax

Troubleshooting

Common Issues

"Command not found"

# Reinstall
npm install -g @anthropic-ai/claude-code
# Check PATH
echo $PATH

"Authentication failed"

# Re-authenticate
claude auth logout
claude auth login

"Rate limited"

  • Wait and retry
  • Check API usage dashboard
  • Consider upgrading plan

Debug Mode

claude --debug

Logs Location

~/.claude/logs/

Best Practices

  1. Clear Context: Start fresh for unrelated tasks
  2. Incremental Requests: Break large tasks
  3. Review Changes: Always review file modifications
  4. Use Git: Commit before major operations
  5. Custom Instructions: Set project-specific prompts

Resources

Credits

Guide created by zebbern. Licensed under MIT.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.21%
按下载量换算60

Claude

28.05%
按下载量换算44

Cursor

18.37%
按下载量换算29

Gemini CLI

9.77%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills