Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Shashank-H/gaiter-gaurd/llms.txt
Use this file to discover all available pages before exploring further.
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
Installation
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.
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:
- 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
- Autonomous workflow
- Manual invocation
- Error recovery
User:Claude (with skill):
- Constructs POST /proxy request with proper headers
- Includes clear intent: “Charge customer $50.00 for service upgrade”
- Generates unique Idempotency-Key
- Submits request
- 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:Base URL of the GaiterGuard gateway instanceExample:
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: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
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
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