Skip to main content

Overview

The GaiterGuard agent skill is a pre-packaged integration guide that teaches Claude how to interact with the gateway. It includes:
  • Complete protocol documentation (POST /proxy, polling, execute)
  • Polling script templates (Python and bash)
  • Request flow patterns and error handling
  • Risk scoring reference
With this skill installed, Claude can autonomously handle the full approval workflow without manual prompting.

Installation

1

Locate the skill directory

The skill is bundled in the GaiterGuard repository:
Contents:
2

Copy to Claude skills directory

Install the skill globally for Claude:
If you’re using a different AI framework, adapt the installation path to your platform’s skill/tool directory.
3

Verify installation

The skill should now be available in Claude’s skill registry. You can verify by asking:

Skill Contents

SKILL.md

The main skill file (~/workspace/source/skill/gaiterguard-gateway/SKILL.md:1) contains:
  • Environment variables required (GATEWAY_URL, AGENT_KEY)
  • Authentication header format
  • Workflow overview (submit → poll → execute)
  • Step-by-step protocol:
    • POST /proxy request format
    • 428 response handling
    • GET /status polling loop
    • POST /proxy/execute execution
  • Error code reference (401, 403, 404, 409, 410, 428, 502, 504)
  • Intent writing guidelines (good vs. bad examples)
  • Risk score baseline by HTTP method

Polling Script Template

The skill includes a complete polling script template (~/workspace/source/skill/gaiterguard-gateway/references/polling-script.md:1) with:
Key features:
  • Polls every 8 seconds for up to 75 attempts (~10 minutes)
  • Stores original request context (URL, method, intent, risk score)
  • Handles all status states (PENDING, APPROVED, DENIED, EXPIRED, EXECUTED)
  • Re-invokes agent with full context after execution

Using the Skill

Trigger Phrases

The skill activates when Claude detects:
  • “call an API through the gateway”
  • “proxy a request via GaiterGuard”
  • “use Agent-Key”
  • “POST /proxy”
  • Approval polling workflows
  • Any task requiring external API calls through the gateway

Example Usage

User:
Claude (with skill):
  1. Constructs POST /proxy request with proper headers
  2. Includes clear intent: “Charge customer $50.00 for service upgrade”
  3. Generates unique Idempotency-Key
  4. Submits request
  5. If 428 returned:
    • Writes polling script with placeholders filled in
    • Executes script
    • Waits for approval
    • Executes approved request
    • Returns result with original request context

Skill Metadata

From ~/workspace/source/skill/gaiterguard-gateway/SKILL.md:1-10:

Environment Variables

The skill requires two environment variables to be provided by the user:
string
required
Base URL of the GaiterGuard gateway instanceExample:
string
required
The agent’s API key (obtained from dashboard)Example:
Claude will prompt for these values if not set when the skill is triggered.

Benefits

Zero manual prompting

Claude automatically constructs proper requests, headers, and polling loops without needing step-by-step instructions each session.

Error handling

Built-in reference for all error codes (401, 403, 404, 409, 410, 428, 502, 504) with actionable recovery steps.

Context preservation

Polling scripts store and pass back original request context (URL, method, intent, risk score) so the agent can resume tasks correctly.

Copy-paste templates

Ready-to-run polling scripts in Python and bash with all placeholders filled in dynamically.

Customizing the Skill

You can modify the skill for your use case:
1

Edit SKILL.md

Update ~/.claude/skills/gaiterguard-gateway/SKILL.md to:
  • Change default polling interval (line 38: POLL_INTERVAL = 8)
  • Adjust max polls (line 39: MAX_POLLS = 75)
  • Add custom error handling
  • Include organization-specific rules
2

Modify polling scripts

Edit references/polling-script.md to:
  • Use your preferred HTTP library
  • Change logging format
  • Add Slack/email notifications on approval
  • Customize agent re-invocation command
3

Reload skill

Claude automatically picks up changes on next invocation. No restart required.

Skill Reference

Full skill documentation: ~/workspace/source/skill/gaiterguard-gateway/SKILL.md:1 Polling templates: ~/workspace/source/skill/gaiterguard-gateway/references/polling-script.md:1

Next Steps

Agent Integration

Manual integration guide (if not using Claude)

Configuration

Configure risk threshold and approval TTL