SKILL.md--- name: api-credentials description: Securely manages API credentials for multiple providers (Anthropic Claude, Google Gemini, GitHub). Use when skills need to access stored API keys for external service invocations. metadata: version: 0.0.4 --- # API Credentials Management **🚨 DEPRECATED: This skill is no longer needed for hosted skills environments.** **New approach:** Skills now read credentials directly from project knowledge files: - `ANTHROPIC_API_KEY.txt`, `GOOGLE_API_KEY.txt`, `GITHUB_API_KEY.txt` (recommended) - Or `API_CREDENTIALS.json` (combined file) See updated skill documentation: - [orchestrating-chat-agents](../orchestrating-chat-agents/SKILL.md#setup) - [invoking-gemini](../invoking-gemini/SKILL.md#setup) - [invoking-github](../invoking-github/SKILL.md#quick-start) **Legacy use only:** This skill may still be useful for local development environments or backward compatibility. --- **⚠️ WARNING: This is a PERSONAL skill - DO NOT share or commit with actual credentials!** This skill provides secure storage and retrieval of API credentials for multiple providers. It serves as a dependency for other skills that need to invoke external APIs programmatically. ## Supported Providers - **Anthropic** (Claude API) - **Google** (Gemini API, Vertex AI, etc.) - **GitHub** (GitHub API, Personal Access Tokens) - Extensible for additional providers ## Purpose - Centralized credential storage for multiple API providers - Secure retrieval methods for dependent skills - Clear error messages when credentials are missing - Support for multiple credential sources (config file, environment variables) ## Usage by Other Skills Skills that need to invoke APIs should reference this skill: ### Anthropic Claude API ```python import sys sys.path.append('/home/user/claude-skills/api-credentials/scripts') from credentials import get_anthropic_api_key try: api_key = get_anthropic_api_key() # Use api_key for Claude API calls except ValueError as e: print(f"Error: {e}") ``` ### Google Gemini API ```python import sys sys.path.append('/home/user/claude-skills/api-credentials/scripts') from credentials import get_google_api_key try: api_key = get_google_api_key() # Use api_key for Gemini API calls except ValueError as e: print(f"Error: {e}") ``` ### GitHub API ```python import sys sys.path.append('/home/user/claude-skills/api-credentials/scripts') from credentials import get_github_api_key try: api_key = get_github_api_key() # Use api_key for GitHub API calls except ValueError as e: print(f"Error: {e}") ``` ## Setup Instructions ### Option 1: Configuration File (Recommended) 1. Copy the example config: ```bash cp /home/user/claude-skills/api-credentials/assets/config.json.example \ /home/user/claude-skills/api-credentials/config.json ``` 2. Edit `config.json` and add your API keys: ```json { "anthropic_api_key": "sk-ant-api03-...", "google_api_key": "AIzaSy...", "gi