/core:ai-integration-patternsfrom core
Patterns and safety practices for integrating AI APIs (OpenAI, Gemini, LangChain): agent selection, key management, rate limiting, error handling, and production deployment.
Ships in core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
PURPOSE: Mandatory patterns for AI API integration and safety practices.
OpenAI Integration - Use ai:openai-python-expert:
Google AI Integration - Use ai:gemini-api-expert:
Complex Workflows - Use ai:langgraph-workflow-expert:
Content Filtering (ALWAYS implement):
Rate Limiting (REQUIRED):
Error Handling (MANDATORY):
API Key Management:
# NEVER commit API keys to repository
# Use environment variables or secret management
OPENAI_API_KEY=sk-...
GEMINI_API_KEY=...
Configuration Management:
# Use configuration classes for API settings
@dataclass
class AIConfig:
api_key: str
model: str
temperature: float = 0.1
max_tokens: int = 1000
safety_settings: Dict[str, str] = field(default_factory=dict)
Monitoring and Observability:
Simple Chat → Use ai:openai-python-expert:
# Single model, single turn conversations
response = client.chat.completions.create(
model="gpt-4",
messages=[{"role": "user", "content": prompt}]
)
Multi-turn Conversations → Use ai:openai-python-expert or ai:gemini-api-expert:
# Conversation history management
conversation_manager.add_message("user", user_input)
response = conversation_manager.continue_conversation(conversation_id)
Complex Workflows → Use ai:langgraph-workflow-expert:
# Multi-agent workflows with state management
workflow = StateGraph(WorkflowState)
workflow.add_node("researcher", research_agent)
workflow.add_node("analyzer", analysis_agent)
workflow.add_conditional_edges("researcher", route_to_analyzer)
Unit Tests (MANDATORY):
Integration Tests (REQUIRED):
Performance Tests (REQUIRED):
Model Selection:
Token Management:
Batch Processing:
OpenAI + LangGraph: Complex workflows with OpenAI models Gemini + LangGraph: Multimodal workflows with state management OpenAI + Gemini: Comparative analysis or model ensemble approaches
# Use Task tool to coordinate multiple AI agents
Task 1: "Use ai:openai-python-expert to generate initial response"
Task 2: "Use ai:gemini-api-expert to analyze and enhance the response"
Task 3: "Use ai:langgraph-workflow-expert to orchestrate the full pipeline"
CRITICAL VIOLATIONS (Block deployment):
MAJOR VIOLATIONS (Require fixes):
These patterns ensure responsible, secure, and cost-effective AI integration across all projects.
What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/command-pipelinesThe exact command sequences for ClaudeAutoPM workflows (/context, /pm, testing, PRs). Use when choosing or chaining autopm slash commands for a workflow./context7-requiredShared policy for commands marked "Required Documentation Access": query Context7 documentation before the main workflow. Use when running a command that requires Context7 documentation access./context-optimizationHow to keep the main conversation context small by delegating to agents and summarizing results. Use when a task needs large file reads, log analysis or long multi-step work.npx claudepluginhub lagowski/claudeautopm --plugin coreOther plugins' skills for the same job