ashish7802/awesome-api-skills/anthropic

Claude Code and agent skill by ashish7802/awesome-api-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install ashish7802/awesome-api-skills/anthropic

SKILL.md

The same SKILL.md was published earlier as ashish7802/awesome-api-skills/anthropic.

Anthropic API Skill

Overview

Anthropic's API provides access to the Claude 3 family (Opus, Sonnet, Haiku). This skill focuses on the Messages API, vision capabilities, and strict system prompt isolation.

Installation

bash
npm install @anthropic-ai/sdk
pip install anthropic

Authentication

Use the x-api-key header with your ANTHROPIC_API_KEY. You must also supply the anthropic-version header (e.g., 2023-06-01).

Core Concepts

  • System Prompt: Isolated from the main conversation array for higher adherence.
  • Claude 3.5 Sonnet: The recommended default model for speed and coding intelligence.
  • Max Tokens: Required parameter defining the generation limit (e.g., 4096 or 8192).

Common Workflows

  1. Define the system prompt.
  2. Pass the conversation history alternating precisely between user and assistant.
  3. Process the response blocks.

Error Handling

Handle AnthropicError. The OverloadedError indicates capacity constraints; retry with backoff. AuthenticationError indicates invalid or revoked keys.

Security

Anthropic provides inherent safety filters. Ensure system prompts instruct the model to avoid executing unverified external data.

Rate Limits

Tiered rate limits applied per minute (RPM) and tokens per minute (TPM). Tier 1 for Claude 3 Sonnet is 50 RPM and 40,000 TPM.

Best Practices

Always put long reference documents inside <documents> XML tags. Claude is specifically trained to parse and pay closer attention to XML structures.

Troubleshooting

If the API returns a 'roles must alternate' error, ensure your messages array strictly follows a user -> assistant -> user sequence without duplicate consecutive roles.

References

Why use this skill

Use this when your agent works with anthropic — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Using deprecated model IDs or wrong API endpoints
  • Confusing chat vs completions vs embeddings APIs
  • Omitting rate-limit and token budget handling

Production checklist

  • [ ] Secrets in environment variables, not source code
  • [ ] Error handling and logging in place
  • [ ] Rate limits and timeouts configured

Related skills


Last Verified: 2026-07-02

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
13
Repository forks
6
7-day trend score
13

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ashish7802/awesome-api-skills/anthropic/badge)](https://verified-skill.com/skills/ashish7802/awesome-api-skills/anthropic)

Something wrong with this skill or its page? Tell us.