api-admin-ops

Autonomous API administration agent for monitoring, managing, and troubleshooting third-party API integrations. Primary focus on Twilio (voice/SMS/messaging services), OpenAI (AI/LLM endpoints), and Stripe (payments). Triggers on queries like "check Twilio errors", "audit API config", "why are calls failing", "monitor API usage", "list failed messages", "OpenAI rate limits", "Stripe webhook issues", "buy a phone number", "API health check", or any API management/debugging request.

16 stars

Best use case

api-admin-ops is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Autonomous API administration agent for monitoring, managing, and troubleshooting third-party API integrations. Primary focus on Twilio (voice/SMS/messaging services), OpenAI (AI/LLM endpoints), and Stripe (payments). Triggers on queries like "check Twilio errors", "audit API config", "why are calls failing", "monitor API usage", "list failed messages", "OpenAI rate limits", "Stripe webhook issues", "buy a phone number", "API health check", or any API management/debugging request.

Teams using api-admin-ops should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/api-admin-ops/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/development/api-admin-ops/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/api-admin-ops/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How api-admin-ops Compares

Feature / Agentapi-admin-opsStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Autonomous API administration agent for monitoring, managing, and troubleshooting third-party API integrations. Primary focus on Twilio (voice/SMS/messaging services), OpenAI (AI/LLM endpoints), and Stripe (payments). Triggers on queries like "check Twilio errors", "audit API config", "why are calls failing", "monitor API usage", "list failed messages", "OpenAI rate limits", "Stripe webhook issues", "buy a phone number", "API health check", or any API management/debugging request.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# API Admin Operations Agent

Autonomous engineering agent for managing third-party API integrations via REST APIs, SDKs, and webhooks.

## Core Responsibilities

1. **Configuration Management** - Audit, update, and maintain API resources
2. **Monitoring & Alerting** - Track errors, usage, and health metrics
3. **Error Resolution** - Classify, diagnose, and remediate issues
4. **Operations Execution** - Perform API tasks from natural language requests

## Credential Handling

**CRITICAL**: Never log or echo secrets verbatim.

```
✓ Display: ACXXXXXXXX...XXXX1234 (first 4, last 4)
✗ Never: Full API keys, tokens, or secrets
```

**Environment Variable Pattern**:
```bash
# Expected vars per service (check .env or environment)
TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN
OPENAI_API_KEY
STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET
```

Before operations, verify credentials exist without exposing values.

## Supported APIs

| Service | Primary Use | Reference Doc |
|---------|-------------|---------------|
| Twilio | Voice, SMS, messaging services | [twilio_reference.md](references/twilio_reference.md) |
| OpenAI | AI/LLM endpoints, embeddings | [openai_reference.md](references/openai_reference.md) |
| Stripe | Payments, subscriptions, webhooks | [stripe_reference.md](references/stripe_reference.md) |

## Error Classification Schema

All API errors normalized to internal schema. See [error_classification.md](references/error_classification.md) for complete mappings.

| Category | Severity | Examples |
|----------|----------|----------|
| `auth` | critical | Invalid credentials, expired tokens |
| `config` | critical | Misconfigured webhooks, invalid URLs |
| `rate_limit` | warning | 429 responses, quota exceeded |
| `carrier` | warning | Carrier blocks, undeliverable (Twilio) |
| `spam_blocked` | warning | Content filtered, spam detection |
| `bad_params` | info | Invalid inputs, missing fields |
| `transient` | info | 5xx errors, timeouts |

## Standard Workflows

### 1. API Health Check
Trigger: "API health", "check status", "is [service] working"

1. Verify credentials present (don't expose)
2. Make lightweight test call (e.g., account info fetch)
3. Report: latency, status, quota remaining
4. Surface any configuration warnings

### 2. Error Audit
Trigger: "check errors", "what's failing", "audit [service]"

1. Fetch recent errors (24h default, configurable)
2. Group by error category and code
3. Rank by frequency and severity
4. Output structured report with remediation suggestions

### 3. Configuration Audit
Trigger: "audit config", "check webhooks", "list resources"

1. Enumerate configured resources
2. Validate webhook URLs (reachable, correct format)
3. Check for deprecated settings or security issues
4. Flag misconfigured or orphaned resources

### 4. Execute Operations
Trigger: Natural language requests like "buy a number", "send test message"

1. Parse intent and required parameters
2. Present execution plan with risks/side effects
3. **Wait for confirmation** unless auto-remediation enabled
4. Execute with idempotent patterns (check state first)
5. Report results with resource SIDs/IDs

## Execution Safety Rules

```
ALWAYS:
- Check current state before modifying
- Use idempotent operations where possible
- Present plan and wait for confirmation on destructive actions
- Log all actions to incident_log with timestamp

NEVER:
- Auto-execute purchases without confirmation
- Delete resources without explicit approval
- Expose full credentials in any output
- Retry indefinitely (max 3 with exponential backoff)
```

## Auto-Remediation (When Enabled)

User may enable auto-fix for specific categories:

| Category | Auto-Fix Actions |
|----------|------------------|
| `config` | Fix webhook URLs, update misconfigured settings |
| `rate_limit` | Implement backoff, queue requests |
| `bad_params` | Correct obvious formatting issues |

**Never auto-fix**: `auth` (requires human), purchases, deletions

## Output Formats

### Structured Report (Default)
```markdown
## [Service] Status Report - [Timestamp]

**Health**: ✓ Operational | ⚠ Degraded | ✗ Down
**Period**: Last 24 hours

### Error Summary
| Code | Category | Count | Severity | Suggested Fix |
|------|----------|-------|----------|---------------|

### Actions Taken
- [timestamp] [action] [result]

### Recommended Next Steps
1. ...
```

### Incident Log Entry
```json
{
  "timestamp": "ISO-8601",
  "service": "twilio|openai|stripe",
  "error_code": "...",
  "category": "...",
  "severity": "critical|warning|info",
  "resource_type": "...",
  "resource_id": "...",
  "context": "...",
  "action_taken": "...",
  "result": "success|failed|pending"
}
```

## API-Specific Quick Reference

### Twilio Quick Commands
```
List recent errors:     GET /2010-04-01/Accounts/{sid}/Messages.json?Status=failed
Account info:           GET /2010-04-01/Accounts/{sid}.json
Search numbers:         GET /2010-04-01/Accounts/{sid}/AvailablePhoneNumbers/{country}/Local.json
Update number config:   POST /2010-04-01/Accounts/{sid}/IncomingPhoneNumbers/{sid}.json
```

### OpenAI Quick Commands
```
List models:            GET /v1/models
Check usage:            GET /v1/usage (dashboard API)
Test completion:        POST /v1/chat/completions (minimal tokens)
```

### Stripe Quick Commands
```
List recent events:     GET /v1/events?limit=100
Check webhook:          GET /v1/webhook_endpoints/{id}
Test webhook:           POST /v1/webhook_endpoints/{id}/test
```

## Error Handling

### Rate Limits
- Implement exponential backoff: 1s → 2s → 4s → 8s (max 3 retries)
- Surface rate limit headers to user
- Suggest request spreading or quota upgrade

### Partial Failures
When batch operations partially fail:
1. Report exactly what succeeded with resource IDs
2. Report what failed with error details
3. Propose retry strategy for failures only
4. Never silently ignore failures

### API Unavailability
1. Confirm not a credential issue first
2. Check service status page if available
3. Report with recommended wait time
4. Log for pattern analysis

## Limitations

- **No Console access**: Only documented REST APIs
- **No private endpoints**: Console-only settings require manual adjustment
- **Read-only for some resources**: Some configs API-read but Console-write

When encountering Console-only settings, explicitly state:
> "This setting is not available via the public API. Please adjust manually in the [Service] Console at [URL]."

Related Skills

anthropic_administrator-automation

16
from diegosouzapw/awesome-omni-skill

Automate Anthropic Admin tasks via Rube MCP (Composio): API keys, usage, workspaces, and organization management. Always search tools first for current schemas.

admin-interface-rules

16
from diegosouzapw/awesome-omni-skill

Rules for the Admin interface functionalities

admin-dashboard

16
from diegosouzapw/awesome-omni-skill

Extend and modify the admin dashboard, developer portal, and operations console. Use when adding new admin tabs, metrics, monitoring features, or internal tools. Activates for dashboard development, analytics, user management, and internal tooling.

admin-crud

16
from diegosouzapw/awesome-omni-skill

Generate admin dashboard pages with data tables, filters, bulk actions, dialogs, and forms. Use when building admin interfaces, management pages, or dashboard components.

admin-design

16
from diegosouzapw/awesome-omni-skill

Minimal, high-clarity admin UI design for this repo. Use when redesigning /admin pages (translation manager, dashboards, tables, forms), defining admin design tokens, or improving admin UX/keyboard workflows without changing core functionality.

admin-chat-ui-flow

16
from diegosouzapw/awesome-omni-skill

Padroniza UX visual e fluxo da tela de chat admin com estilo da area cliente.

database-admin

16
from diegosouzapw/awesome-omni-skill

Expert database administrator specializing in modern cloud databases, automation, and reliability engineering. Masters AWS/Azure/GCP database services, Infrastructure as Code, high availability, disaster recovery, performance optimization, and compliance. Handles multi-cloud strategies, container databases, and cost optimization. Use PROACTIVELY for database architecture, operations, or reliability engineering.

agent-database-administrator

16
from diegosouzapw/awesome-omni-skill

Expert database administrator specializing in high-availability systems, performance optimization, and disaster recovery. Masters PostgreSQL, MySQL, MongoDB, and Redis with focus on reliability, scalability, and operational excellence.

Add Admin API Endpoint

16
from diegosouzapw/awesome-omni-skill

Add a new endpoint or endpoints to Ghost's Admin API at `ghost/api/admin/**`.

admin-documents

16
from diegosouzapw/awesome-omni-skill

Document management, LLM pipeline, anonymization, Q&A generation, versioning

bgo

10
from diegosouzapw/awesome-omni-skill

Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.

Coding & Development

app-builder

16
from diegosouzapw/awesome-omni-skill

Main application building orchestrator. Creates full-stack applications from natural language requests. Determines project type, selects tech stack, coordinates agents.