customize-sdk-hooks
✓Guide for implementing SDK lifecycle hooks to customize request/response behavior. Covers hook types, registration patterns, and practical examples for adding custom headers, telemetry, security signatures, and error handling. Trigger phrases: "SDK hooks", "add hooks", "BeforeRequestHook", "custom user-agent", "telemetry hook", "SDK middleware", "intercept requests", "custom security hook", "HMAC authentication"
Installation
SKILL.md
| Hook | When Called | Common Use Cases |
| SDKInitHook | SDK client initialization | Configure defaults, validate config, set base URL | | BeforeCreateRequestHook | Before the HTTP request object is created | Modify input parameters, inject defaults | | BeforeRequestHook | Before the HTTP request is sent | Add headers, logging, telemetry, sign requests |
| AfterSuccessHook | After a successful HTTP response | Transform response, emit warnings, log metrics | | AfterErrorHook | After an HTTP error response | Error transformation, retry logic, error logging |
Guide for implementing SDK lifecycle hooks to customize request/response behavior. Covers hook types, registration patterns, and practical examples for adding custom headers, telemetry, security signatures, and error handling. Trigger phrases: "SDK hooks", "add hooks", "BeforeRequestHook", "custom user-agent", "telemetry hook", "SDK middleware", "intercept requests", "custom security hook", "HMAC authentication" Source: speakeasy-api/agent-skills.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/speakeasy-api/agent-skills --skill customize-sdk-hooks- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is customize-sdk-hooks?
Guide for implementing SDK lifecycle hooks to customize request/response behavior. Covers hook types, registration patterns, and practical examples for adding custom headers, telemetry, security signatures, and error handling. Trigger phrases: "SDK hooks", "add hooks", "BeforeRequestHook", "custom user-agent", "telemetry hook", "SDK middleware", "intercept requests", "custom security hook", "HMAC authentication" Source: speakeasy-api/agent-skills.
How do I install customize-sdk-hooks?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/speakeasy-api/agent-skills --skill customize-sdk-hooks Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/speakeasy-api/agent-skills
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-01