base-client-guardian

Review proposed changes to core/base-client.js for authentication, retry, circuit breaker, and event handling.

Updated Sep 2, 2025
One-click install
npx skills add https://github.com/thefixer3x/onasis-gateway --skill base-client-guardian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: base-client-guardian
Source: https://github.com/thefixer3x/onasis-gateway/tree/main/.claude/skills/base-client-guardian
Command: npx skills add https://github.com/thefixer3x/onasis-gateway --skill base-client-guardian

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents accidental introduction of vulnerabilities or breaking changes when modifying the core Universal API Client, ensuring the stability and security of all API integrations.

Core Features & Use Cases

  • Auth Injection Guardrails: Enforces secure handling of various authentication methods (Bearer, API Key, HMAC, OAuth2).
  • Retry & Circuit Breaker Protection: Maintains robust error handling and fault tolerance by preserving retry logic and circuit breaker patterns.
  • Event Integrity: Ensures critical request/response/error events are consistently emitted for monitoring and logging.
  • Use Case: When a developer needs to update the authentication mechanism in the Universal API Client, this Skill acts as a safety net, flagging any attempts to remove essential security checks or break existing event listeners.

Quick Start

Use the base-client-guardian skill to review proposed changes to the core/base-client.js file.

Frequently Asked Questions about base-client-guardian

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent breaking authentication when modifying a universal API client?

To prevent breaking authentication when modifying a universal API client, apply guardrails that enforce secure handling of Bearer, API Key, HMAC, and OAuth2 auth injection. This ensures essential security checks remain intact during code edits.

What is a circuit breaker pattern in API client error handling?

A circuit breaker pattern in API client error handling is a fault tolerance mechanism that stops sending requests when failures reach a threshold. Guardrails preserve this behavior alongside retry logic to maintain robust error handling and stability.

How do I ensure request and response events are consistently emitted in base-client.js?

To ensure request and response events are consistently emitted in base-client.js, use guardrails that maintain event integrity during modifications. This validates that critical request, response, and error events remain intact for monitoring and logging.

Does this API client guardrail support OAuth2 and HMAC authentication methods?

Yes, this API client guardrail supports OAuth2 and HMAC authentication methods. Auth injection guardrails specifically enforce secure handling for Bearer tokens, API Keys, HMAC, and OAuth2 to prevent accidental vulnerabilities during code updates.

Why do I need guardrails for updating the authentication mechanism in an API client?

You need guardrails for updating API client authentication mechanisms to act as a safety net that flags attempts to remove essential security checks or break existing event listeners. This prevents accidental introduction of vulnerabilities or breaking changes.

What's the best way to add retry mechanisms to a universal API client without breaking existing logic?

The best way to add retry mechanisms to a universal API client without breaking existing logic is using protective guardrails. These maintain fault tolerance by preserving retry logic and circuit breaker behavior during modifications to the core file.