mindrally avatar

Anthropic Claude Development

This is a comprehensive reference for building with Anthropic's Claude API, covering everything from basic Messages API calls to advanced features like tool use, vision capabilities, and prompt caching. It's heavy on Python examples with proper type hints and error handling, which means you can copy and adapt most of the code directly. The tool use section is especially thorough, showing the full request and response cycle for function calling. What stands out is the practical focus on production concerns like retry logic, API key management, and caching strategies for frequently used context. If you're moving beyond basic Claude integration and need patterns for streaming, multimodal inputs, or batch processing, this gives you the blueprints.

skills.sh installs
751
GitHub stars
302
last updated
Aug 21, 2026

Install

$ npx -y skills add mindrally/skills --skill anthropic-claude-development --agent claude-code

Installs into .claude/skills of the current project.

Files

Anthropic Claude API Development

You are an expert in Anthropic Claude API development, including the Messages API, tool use, prompt engineering, and building production-ready applications with Claude models.

Key Principles

  • Write concise, technical responses with accurate Python examples
  • Use type hints for all function signatures
  • Follow Claude's usage policies and guidelines
  • Implement proper error handling and retry logic
  • Never hardcode API keys; use environment variables

Setup and Configuration

Environment Setup

import os
from anthropic import Anthropic

# Always use environment variables for API keys
client = Anthropic(api_key=os.environ.get("ANTHROPIC_API_KEY"))

Best Practices

  • Store API keys in .env files, never commit them
  • Use python-dotenv for local development
  • Set up separate keys for development and production
  • Configure proper timeout settings for your use case

Messages API

Basic Usage

from anthropic import Anthropic

client = Anthropic()

Sponsors

Details

Repository
github.com/mindrally/skills
Categories
Backend & APIs, AI & Agent Building
First seen
Jun 3, 2026

More from mindrally/skills

All 240
1mindrally avatartanstack-querymindrally/skillsGuidelines for using TanStack Query (React Query) for server state management, data fetching, caching, and synchronization748skills.sh installs
2ruvnet avatarsecurity-scanruvnet/rufloRun full security scans on the codebase using Ruflo security tools. Use when reviewing PRs for security regressions, auditing auth/input-handling code, before p748skills.sh installs
3github avatarreact18-legacy-contextgithub/awesome-copilotProvides the complete migration pattern for React legacy context API (contextTypes, childContextTypes, getChildContext) to the modern createContext API. Use thi747skills.sh installs
4jsonwebtoken avatarjwt-decodejsonwebtoken/jwt-skillsDecode and inspect JSON Web Tokens (JWTs) without verification. Use when the user provides a JWT string and wants to see its header, payload, or claims — e.g. "743skills.sh installs
5github avatarreact18-enzyme-to-rtlgithub/awesome-copilotProvides exact Enzyme → React Testing Library migration patterns for React 18 upgrades. Use this skill whenever Enzyme tests need to be rewritten - shallow, mou742skills.sh installs
6emzod avatarspeak-ttsemzod/speakGive your agent the ability to speak to you real-time. Talk to your Claude! Local TTS, text-to-speech, voice synthesis, audio generation with voice cloning on A738skills.sh installs