hookcode-pat-api-debug

Test HookCode API endpoints with PAT-authenticated Node.js requests.

3|1|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/hookvibe/hookcode --skill hookcode-pat-api-debug
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hookcode-pat-api-debug
Source: https://github.com/hookvibe/hookcode/tree/main/.gemini/skills/hookcode-pat-api-debug
Command: npx skills add https://github.com/hookvibe/hookcode --skill hookcode-pat-api-debug

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill helps developers validate and debug HookCode API access by performing PAT-authenticated HTTP requests against the backend.

Core Features & Use Cases

  • PAT-authenticated API testing: verify access control and endpoint responses without a frontend.
  • GET/POST/PATCH workflow checks: exercise common API operations like retrieving current user info, updating profile, and other protected endpoints.
  • Quick verification in CI or local dev: run scripted tests against a base URL and confirm permissions.

Quick Start

  1. Configure HOOKCODE_API_BASE_URL and HOOKCODE_PAT in .gemini/skills/hookcode-pat-api-debug/.env.
  2. GET Request example: node .gemini/skills/hookcode-pat-api-debug/scripts/pat_request.mjs --path /api/users/me
  3. POST/PATCH Request example: node .gemini/skills/hookcode-pat-api-debug/scripts/pat_request.mjs
    --method PATCH
    --path /api/users/me
    --body '{"displayName":"Debug"}'

Frequently Asked Questions about hookcode-pat-api-debug

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

FAQPage Schema
How do I test API endpoints using a Personal Access Token?

To test API endpoints using a Personal Access Token, configure HOOKCODE_API_BASE_URL and HOOKCODE_PAT in your environment file, then execute the Node script to send authenticated HTTP requests and verify access control.

Can I debug GET and POST requests against protected API routes without a frontend?

Yes, you can debug GET and POST requests against protected API routes without a frontend by executing the Node script with specific arguments like --method, --path, and --body to exercise common API operations directly.

What do I need to configure before running PAT-authenticated API requests?

Before running PAT-authenticated API requests, you need to configure HOOKCODE_API_BASE_URL and HOOKCODE_PAT in the .env file located at .gemini/skills/hookcode-pat-api-debug/ to establish backend connectivity.

How do I verify user profile permissions and access control in a local dev environment?

You verify user profile permissions and access control in a local dev environment by targeting endpoints like /api/users/me with the script to confirm authentication behavior and validate protected route responses.

Can I simulate PATCH requests with a custom JSON body for API testing?

Yes, you can simulate PATCH requests with a custom JSON body for API testing by passing the --method PATCH argument along with the --body parameter containing your JSON payload to the Node script.

Does the API testing script support a dry run to validate request payloads without sending data?

Yes, the API testing script supports a dry run via the --dry-run argument, allowing you to validate request configurations and payloads against the base URL without actually sending data to the server.