About api-setup
A skill for setting up a new API integration with a standard configuration template. It covers creating the integration directory, adding credentials, testing connectivity, and troubleshooting common failures.
Key features
- 01Integration directory setup
- 02JSON configuration template
- 03API credential and endpoint configuration
- 04Connection verification
- 05Timeout and authentication troubleshooting
Use cases
- 01Starting a new API integration
- 02Configuring an API key and endpoint
- 03Diagnosing connection timeouts or 401/403 errors
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ block/ agent-skills --skill api-setupAfter installing, type/api-setupin Claude Code to confirm it loaded.
Bundled filessetup.shtemplates/config.template.json
Details
From the project READMEAPI Setup
This skill helps you set up a new API integration with our standard configuration.
Steps
- Run
setup.sh <api-name>to create the integration directory - Copy
templates/config.template.jsonto your integration directory - Update the config with your API credentials
- Test the connection
Configuration
The config template includes:
api_key: Your API key (get from the provider's dashboard)endpoint: API endpoint URLtimeout: Request timeout in seconds (default: 30)
Verification
After setup, verify:
- Config file is valid JSON
- API key is set and not a placeholder
- Test connection succeeds
Troubleshooting
Connection Timeout
If you experience connection timeouts:
- Check your network connection
- Verify the endpoint URL is correct
- Increase the timeout value in config
Authentication Errors
If you get 401/403 errors:
- Verify your API key is correct
- Check if the key has the required permissions
- Ensure the key hasn't expired
Comments
Markdown supported