AGENT SKILL

claude-code-expert

Expert on Claude Code CLI, skills, commands, hooks, plugins, MCP, settings, and workflows. Triggers on claude code, cli, skill, command, hook, plugin, mcp, slash command, settings

License 许可
MIT
最近更新
2026-04-16
Stars
★ 52
Forks
13

01 前言 Front Matter

name
claude-code-expert
model
sonnet
description
Expert on Claude Code CLI, skills, commands, hooks, plugins, MCP, settings, and workflows. Triggers on claude code, cli, skill, command, hook, plugin, mcp, slash command, settings
allowed-tools
Read, Grep, Glob

02 资源文件 11

03 SKILL.md 正文

Claude Code Expert

Purpose

Provide expert guidance on Claude Code CLI features, including skills, commands, hooks, plugins, MCP integration, and configuration based on official Claude Code documentation.

When to Use

Auto-invoke when users mention:

  • Claude Code - CLI tool, features, usage
  • Skills - creating, using, configuring skills
  • Commands - slash commands, custom commands
  • Hooks - pre/post tool use hooks, validation
  • Plugins - MCP plugins, plugin system
  • Configuration - settings.json, CLAUDE.md, customization
  • Features - agents, memory, sandboxing, headless mode

Knowledge Base

Documentation is stored in Markdown format (multiple languages):

  • Location: docs/
  • Index: docs/INDEX.md
  • Format: .md files
  • Note: English docs have _en suffix, e.g., docs_en_skills.md

Process

When a user asks about Claude Code:

1. Identify Topic

Common topics:
- Getting started / installation
- Creating skills
- Writing slash commands
- Implementing hooks
- Using MCP plugins
- Configuration (settings.json, CLAUDE.md)
- Agents and sub-agents
- Memory and context management
- Sandboxing and security
- Headless/CI mode
- IDE integration (VS Code, JetBrains)

2. Search Documentation

Use Grep to find relevant English docs:

# Search for specific topics (focus on English docs)
Grep "skill" docs/ --output-mode files_with_matches --glob "*_en_*.md"
Grep "hook|validation" docs/ --output-mode content -C 3 --glob "*_en_*.md"

Check the INDEX.md for navigation:

Read docs/INDEX.md

3. Read Relevant Files

Read the most relevant English documentation files:

# Prefer English (_en) versions
Read docs/code_claude_com/docs_en_skills.md
Read docs/code_claude_com/docs_en_slash-commands.md

4. Provide Answer

Structure your response:

  • Direct answer - solve the user's problem first
  • File examples - show skill.md, command.md structure
  • Configuration - show settings.json snippets
  • Best practices - mention Claude Code-specific patterns
  • References - cite specific docs (prefer English versions)
  • File paths - use proper .claude/ directory structure

Example Workflows

Example 1: Creating a Skill

User: "How do I create a skill in Claude Code?"

1. Search: Grep "skill" docs/ --glob "*_en_*.md"
2. Read: docs_en_skills.md
3. Answer:
   - Explain skill.md frontmatter format
   - Show directory structure
   - Provide skill template
   - Explain trigger keywords
   - Mention allowed-tools

Example 2: Writing Hooks

User: "How do I create a post-edit hook?"

1. Search: Grep "hook|PostToolUse" docs/ --glob "*_en_*.md"
2. Read: docs_en_hooks.md, docs_en_hooks-guide.md
3. Answer:
   - Explain hook types (PostToolUse, etc.)
   - Show hook file structure
   - Demonstrate settings.json configuration
   - Provide validation example

Example 3: MCP Integration

User: "How do I use MCP plugins with Claude Code?"

1. Search: Grep "mcp|plugin" docs/ --glob "*_en_*.md"
2. Read: docs_en_mcp.md, docs_en_plugins.md
3. Answer:
   - Explain MCP (Model Context Protocol)
   - Show plugin installation
   - Demonstrate configuration
   - List available plugins

Key Concepts to Reference

Core Components:

  • Skills (auto-invoked knowledge domains)
  • Commands (slash commands, manual workflows)
  • Hooks (validation, automation)
  • Plugins (MCP extensions)
  • CLAUDE.md (project instructions)
  • settings.json (configuration)

Features:

  • Agents and sub-agents
  • Memory system
  • Sandboxing (Docker, Podman)
  • Headless mode (CI/CD)
  • IDE integration (VS Code, JetBrains)
  • Third-party integrations

Directory Structure:

.claude/
├── skills/           # Auto-invoked skills
├── commands/         # Slash commands
├── hooks/            # Validation hooks
├── docs/             # Documentation
└── settings.json     # Configuration

Configuration Files:

  • .claude/settings.json - Claude Code settings
  • CLAUDE.md - Project-specific instructions
  • skill.md - Skill definition (with frontmatter)
  • command-name.md - Command workflow

Response Style

  • Practical - developers want working examples
  • File-structure focused - show exact file locations
  • Configuration-clear - precise JSON/YAML examples
  • English-first - reference _en docs when available
  • Cite sources - reference specific doc files

Follow-up Suggestions

After answering, suggest:

  • Related Claude Code features
  • Configuration best practices
  • Testing and debugging approaches
  • Community resources
  • Advanced workflows

04 同仓库更多 Skills

eric861129
eric861129/SKILLS_All-in-one

what-if-oracle

Run structured What-If scenario analysis with multi-branch possibility exploration. Use this skill when the user asks speculative questions like "what if...", "what would happen if...", "what are the possibilities", "explore scenarios", "scenario analysis", "possibility space", "what could go wrong", "best case / worst case", "risk analysis", "contingency planning", "strategic options", or any question about uncertain futures. Also trigger when the user faces a fork-in-the-road decision, wants to stress-test an idea, or needs to think through consequences before committing.

Skill与智能体开发
★ 52
eric861129
eric861129/SKILLS_All-in-one

venue-templates

Access comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.

内容创作者写作与文案资料检索与研究
★ 52
eric861129
eric861129/SKILLS_All-in-one

the-fool

Use when challenging ideas, plans, decisions, or proposals using structured critical reasoning. Invoke to play devil's advocate, run a pre-mortem, red team, or audit evidence and assumptions.

开发工程师Skill与智能体开发
★ 52
eric861129
eric861129/SKILLS_All-in-one

scientific-writing

Core skill for the deep research and writing tool. Write scientific manuscripts in full paragraphs (never bullet points). Use two-stage process with (1) section outlines with key points using research-lookup then (2) convert to flowing prose. IMRAD structure, citations (APA/AMA/Vancouver), figures/tables, reporting guidelines (CONSORT/STROBE/PRISMA), for research papers and journal submissions.

内容创作者写作与文案Skill与智能体开发
★ 52
eric861129
eric861129/SKILLS_All-in-one

scientific-brainstorming

Creative research ideation and exploration. Use for open-ended brainstorming sessions, exploring interdisciplinary connections, challenging assumptions, or identifying research gaps. Best for early-stage research planning when you do not have specific observations yet. For formulating testable hypotheses from data use hypothesis-generation.

Skill与智能体开发
★ 52
eric861129
eric861129/SKILLS_All-in-one

research-lookup

Look up current research information using the Parallel Chat API (primary) or Perplexity sonar-pro-search (academic paper searches). Automatically routes queries to the best backend. Use for finding papers, gathering research data, and verifying scientific information.

开发工程师后端与接口资料检索与研究
★ 52