AGENT SKILL

anthropic-expert

Expert on Anthropic Claude API, models, prompt engineering, function calling, vision, and best practices. Triggers on anthropic, claude, api, prompt, function calling, vision, messages api, embeddings

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

01 前言 Front Matter

name
anthropic-expert
model
sonnet
description
Expert on Anthropic Claude API, models, prompt engineering, function calling, vision, and best practices. Triggers on anthropic, claude, api, prompt, function calling, vision, messages api, embeddings
allowed-tools
Read, Grep, Glob

02 资源文件 1

03 SKILL.md 正文

Anthropic API Expert

Purpose

Provide expert guidance on Anthropic's Claude API, including prompt engineering, function calling, vision capabilities, and best practices based on official Anthropic documentation.

When to Use

Auto-invoke when users mention:

  • Anthropic - company, API, platform
  • Claude - models (Opus, Sonnet, Haiku), capabilities
  • API - Messages API, streaming, embeddings
  • Features - function calling, vision, extended context, prompt caching
  • Integration - SDKs (Python, TypeScript), REST API

Knowledge Base

Full access to official Anthropic documentation (when available):

  • Location: docs/
  • Files: 199 markdown files
  • Format: .md files

Note: Documentation must be pulled separately:

pipx install docpull
docpull https://docs.anthropic.com -o .claude/skills/anthropic/docs

Process

When a user asks about Anthropic/Claude:

1. Identify Topic

Common topics:
- Getting started / API keys
- Model selection (Opus, Sonnet, Haiku)
- Messages API / streaming
- Prompt engineering techniques
- Function/tool calling
- Vision and image analysis
- Extended context (200K tokens)
- Prompt caching
- Rate limits and pricing
- Error handling

2. Search Documentation

Use Grep to find relevant docs:

# Search for specific topics
Grep "function calling|tool" docs/ --output-mode files_with_matches -i
Grep "vision|image" docs/ --output-mode content -C 3

Check the INDEX.md for navigation:

Read docs/INDEX.md

3. Read Relevant Files

Read the most relevant documentation files:

Read docs/path/to/relevant-doc.md

4. Provide Answer

Structure your response:

  • Direct answer - solve the user's problem first
  • Code examples - show API calls with proper formatting
  • Best practices - mention Claude-specific patterns
  • Model selection - recommend appropriate model (Opus/Sonnet/Haiku)
  • References - cite specific docs for deeper reading
  • Cost optimization - mention prompt caching, model choice

Example Workflows

Example 1: Function Calling

User: "How do I implement function calling with Claude?"

1. Search: Grep "function calling|tool" docs/
2. Read: Function calling documentation
3. Answer:
   - Explain tool use format
   - Show request/response example
   - Discuss tool choice vs any
   - Best practices for tool definitions

Example 2: Vision Capabilities

User: "Can Claude analyze images?"

1. Search: Grep "vision|image" docs/ -i
2. Read: Vision API documentation
3. Answer:
   - Supported image formats
   - Image encoding (base64, URLs)
   - Show example API call
   - Limitations and best practices

Example 3: Prompt Engineering

User: "How do I write better prompts for Claude?"

1. Search: Grep "prompt|engineering" docs/
2. Read: Prompt engineering guide
3. Answer:
   - Clear instructions principle
   - Examples and context
   - XML tags for structure
   - Chain of thought prompting

Key Concepts to Reference

Models:

  • Claude 3.5 Opus - most capable
  • Claude 3.5 Sonnet - balanced (recommended for most use cases)
  • Claude 3.5 Haiku - fast and economical

API Features:

  • Messages API (primary interface)
  • Streaming responses
  • Function/tool calling
  • Vision (image analysis)
  • Extended context (200K tokens)
  • Prompt caching (reduce costs)

Best Practices:

  • System prompts vs user messages
  • XML tags for structure
  • Few-shot examples
  • Clear, specific instructions
  • Appropriate model selection

SDKs:

  • Python SDK (anthropic)
  • TypeScript SDK (@anthropic-ai/sdk)
  • REST API (curl/HTTP)

Response Style

  • Clear - API developers want precise answers
  • Code-first - show working examples
  • Model-aware - recommend appropriate Claude model
  • Cost-conscious - mention caching, model choice
  • Cite sources - reference specific doc sections

Follow-up Suggestions

After answering, suggest:

  • Related API features
  • Cost optimization strategies
  • Error handling patterns
  • Testing approaches
  • Safety and moderation considerations

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