Skip to main content

api-client-patterns

Provides patterns for building robust API clients with error handling, request/response management, and axios integration.

Install this skill

or
66/100

Security score

The api-client-patterns skill was audited on Feb 9, 2026 and we found 14 security issues across 3 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 46

Template literal with variable interpolation in command context

SourceSKILL.md
46config.headers.Authorization = `Bearer ${token}`;
medium line 160

Template literal with variable interpolation in command context

SourceSKILL.md
160throw new Error(`Validation error: ${message}`);
medium line 303

Template literal with variable interpolation in command context

SourceSKILL.md
303const response = await fetch(`${API_BASE}/generate/stream`, {
medium line 312

Template literal with variable interpolation in command context

SourceSKILL.md
312throw new Error(`HTTP ${response.status}: ${response.statusText}`);
medium line 389

Template literal with variable interpolation in command context

SourceSKILL.md
389console.log(`Retry attempt ${attempt + 1}/${maxRetries} after ${delay}ms`);
low line 28

Access to .env file

SourceSKILL.md
28const API_BASE = import.meta.env.VITE_API_BASE || 'http://localhost:3001/api';
low line 459

Access to .env file

SourceSKILL.md
459const env = import.meta.env.MODE;
low line 468

Access to .env file

SourceSKILL.md
468return import.meta.env.VITE_API_BASE || 'http://localhost:3001/api';
low line 28

External URL reference

SourceSKILL.md
28const API_BASE = import.meta.env.VITE_API_BASE || 'http://localhost:3001/api';
low line 119

External URL reference

SourceSKILL.md
119const res = await axios.post('http://localhost:3001/api/auth/verify', {
low line 126

External URL reference

SourceSKILL.md
126const res = await axios.post('http://localhost:3001/api/generate', data);
low line 463

External URL reference

SourceSKILL.md
463return 'https://api.yourapp.com';
low line 465

External URL reference

SourceSKILL.md
465return 'https://staging-api.yourapp.com';
low line 468

External URL reference

SourceSKILL.md
468return import.meta.env.VITE_API_BASE || 'http://localhost:3001/api';
Scanned on Feb 9, 2026
View Security Dashboard
Installation guide →
GitHub Stars 106
Rate this skill
Categorydevelopment
UpdatedMay 21, 2026
majiayu000/claude-skill-registry