agent-routing
Decide which model, effort level, and cascade shape each subagent gets, and how to keep improvement loops safe…
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.
$ npx -y skills add oaustegard/claude-skills --skill api-credentials --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/api-credentialsContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
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
**🚨 DEPRECATED: This skill is no longer needed for hosted skills environments.**
**New approach:** Skills now read credentials directly from project knowledge files:
See updated skill documentation:
**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.
Skills that need to invoke APIs should reference this skill:
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}")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}")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}")1. Copy the example config:
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:
{
"anthropic_api_key": "sk-ant-api03-...",
"google_api_key": "AIzaSy...",
"github_api_key": "ghp_..."
}3. Ensure the config file is in `.gitignore` (already configured)
Set environment variables for the providers you need:
# Anthropic Claude export ANTHROPIC_API_KEY="sk-ant-api03-..." # Google Gemini export GOOGLE_API_KEY="AIzaSy..." # GitHub export GITHUB_TOKEN="ghp_..." # or export GITHUB_API_KEY="ghp_..."
Add to your shell profile (~/.bashrc, ~/.zshrc) to persist.
Credential retrieval follows this priority for each provider: 1. `config.json` in the skill directory (highest priority) 2. Environment variable (ANTHROPIC_API_KEY or GOOGLE_API_KEY) 3. ValueError raised if neither is available
api-credentials/
├── SKILL.md # This file
├── config.json # YOUR credentials (gitignored)
├── scripts/
│ └── credentials.py # Credential retrieval module
└── assets/
└── config.json.example # Template for usersWhen credentials are not found, the module raises `ValueError` with clear guidance:
Skills should catch `ValueError` exceptions and handle appropriately.
**get_anthropic_api_key()** → str
**get_google_api_key()** → str
**get_github_api_key()** → str
**get_api_key_masked(api_key)** → str
**verify_credential(provider)** → bool
To support additional providers:
1. Add field to `assets/config.json.example` 2. Add getter function to `scripts/credentials.py`:
def get_provider_api_key() -> str:
# Follow existing pattern with config file + env var
pass3. Add to `verify_credential()` mapping 4. Update this documentation
This skill uses ~300 tokens when loaded but saves repeated credential management code across multiple skills that invoke external APIs. It provides a single, consistent pattern for all credential handling.
A collection of Claude skills distributed as a Claude Code plugin marketplace. Skills are primarily designed for the Claude.ai PaaS skill compute environment; mileage will vary if used as Claude Code Agent Skills.
Decide which model, effort level, and cascade shape each subagent gets, and how to keep improvement loops safe…
Cross-context adversarial review for deliverables before shipping. Use when producing blog posts, technical recommendations,…
Convenes expert panels for problem-solving. Use when user mentions panel, experts, multiple perspectives, MECE, DMAIC, RAPID, Six…
Routes, triages, flags and rates a piece of text with a probability for every option: which department or queue a ticket goes to,…
Delegates work to a subagent or spawned session by writing only the task, while a PreToolUse hook pages the parent transcript…
Chooses how to launch subagents from Claude Code (the Agent tool, a Workflow script, or headless claude -p children) and runs a…