Skip to main content

api-mock

Generates API mocks and stub servers efficiently from OpenAPI specs, optimizing token usage for testing and development.

Install this skill

or
0/100

Security score

The api-mock skill was audited on Feb 9, 2026 and we found 33 security issues across 4 threat categories, including 3 high-severity. Review the findings below before installing.

Categories Tested

Security Issues

medium line 227

Template literal with variable interpolation in command context

SourceSKILL.md
227```bash
medium line 425

Template literal with variable interpolation in command context

SourceSKILL.md
425rest.get(`${baseURL}/api/users`, (req, res, ctx) => {
medium line 436

Template literal with variable interpolation in command context

SourceSKILL.md
436rest.get(`${baseURL}/api/users/:id`, (req, res, ctx) => {
medium line 451

Template literal with variable interpolation in command context

SourceSKILL.md
451rest.post(`${baseURL}/api/users`, async (req, res, ctx) => {
medium line 465

Template literal with variable interpolation in command context

SourceSKILL.md
465rest.get(`${baseURL}/api/error`, (req, res, ctx) => {
medium line 614

Template literal with variable interpolation in command context

SourceSKILL.md
614console.log(`${req.method} ${req.url}`);
medium line 867

Template literal with variable interpolation in command context

SourceSKILL.md
867console.log(` Users: ${db.users.length}`);
medium line 868

Template literal with variable interpolation in command context

SourceSKILL.md
868console.log(` Posts: ${db.posts.length}`);
medium line 869

Template literal with variable interpolation in command context

SourceSKILL.md
869console.log(` Comments: ${db.comments.length}`);
high line 936

Curl to non-GitHub URL

SourceSKILL.md
936curl http://localhost:4010/api/users
high line 937

Curl to non-GitHub URL

SourceSKILL.md
937curl http://localhost:4010/api/users/1
high line 938

Curl to non-GitHub URL

SourceSKILL.md
938curl -X POST http://localhost:4010/api/users \
medium line 1149

Fetch to external URL

SourceSKILL.md
1149const response = await fetch('http://localhost:3001/users');
low line 421

Access to .env file

SourceSKILL.md
421const baseURL = process.env.API_BASE_URL || 'http://localhost:3000';
low line 617

Access to .env file

SourceSKILL.md
617if (process.env.MOCK_DELAY) {
low line 618

Access to .env file

SourceSKILL.md
618setTimeout(next, parseInt(process.env.MOCK_DELAY));
low line 386

External URL reference

SourceSKILL.md
386echo "Mock API will be available at: http://localhost:4010"
low line 421

External URL reference

SourceSKILL.md
421const baseURL = process.env.API_BASE_URL || 'http://localhost:3000';
low line 659

External URL reference

SourceSKILL.md
659echo "Mock API will be available at: http://localhost:3001"
low line 707

External URL reference

SourceSKILL.md
707https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/2.35.0/wiremock-standalone-2.35.0.jar
low line 730

External URL reference

SourceSKILL.md
730echo "Mock API will be available at: http://localhost:8080"
low line 920

External URL reference

SourceSKILL.md
920**Server URL:** http://localhost:4010
low line 936

External URL reference

SourceSKILL.md
936curl http://localhost:4010/api/users
low line 937

External URL reference

SourceSKILL.md
937curl http://localhost:4010/api/users/1
low line 938

External URL reference

SourceSKILL.md
938curl -X POST http://localhost:4010/api/users \
low line 1005

External URL reference

SourceSKILL.md
1005**Server URL:** http://localhost:3001
low line 1071

External URL reference

SourceSKILL.md
1071**Server URL:** http://localhost:8080
low line 1106

External URL reference

SourceSKILL.md
1106--proxy-all="http://real-api.com"
low line 1135

External URL reference

SourceSKILL.md
1135API_BASE_URL=http://localhost:3001
low line 1149

External URL reference

SourceSKILL.md
1149const response = await fetch('http://localhost:3001/users');
low line 1336

External URL reference

SourceSKILL.md
1336- Prism documentation from [Stoplight](https://meta.stoplight.io/docs/prism/)
low line 1337

External URL reference

SourceSKILL.md
1337- MSW patterns from [MSW documentation](https://mswjs.io/)
low line 1339

External URL reference

SourceSKILL.md
1339- WireMock from [WireMock documentation](http://wiremock.org/)
Scanned on Feb 9, 2026
View Security Dashboard
Installation guide →
GitHub Stars 106
Rate this skill
Categorydevelopment
UpdatedMay 21, 2026
majiayu000/claude-skill-registry