Skip to main content
skill CX Codex

w-api-test — Claude Code skill: API tests and installation

The w-api-test Claude Code skill adds API tests that check public HTTP behavior through the project’s existing harness. It runs on request to test an API.

MIT 647 installs ★ 1 updated 2026-10-02

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add blockmatic-icebox/basilic-skills --skill w-api-test -a claude-code
Open on GitHub

What w-api-test does

The skill writes API tests using an API or Playwright harness already present in the repository. It reads the API testing guide and existing *.test.ts files or e2e specs, then covers requested operations, authorization denials, and responses shaped by the contract.

Tests run against a sandbox or local server started by the project’s package scripts, and any resources they create must be cleaned up. Production targets are off limits, and secrets must not be hardcoded. When behavior or commands change, update the docs with /w-docs. Model invocation is disabled, so the skill must be started manually.

What it helps with

  • test an API’s public HTTP behavior
  • cover authorization denials
  • check responses against a contract

Example prompts for the agent

  • Add API tests for the requested operations using the existing project harness.
  • Test authorization denials and check that API responses match the contract.
  • Run the e2e tests against a local server and clean up created resources.

How to install w-api-test

1Skills CLI (Vercel)

npx skills add blockmatic-icebox/basilic-skills --skill w-api-test -a claude-code

2Manually: put the files in place

~/.claude/skills/w-api-test/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/w-api-test/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about w-api-test

How do I install w-api-test in Claude Code?

Run npx skills add blockmatic-icebox/basilic-skills --skill w-api-test -a claude-code. The skill file is at ~/.claude/skills/w-api-test/SKILL.md.

What does w-api-test do?

It adds API tests through an existing API or Playwright harness in the repository. The tests cover requested operations, authorization denials, and contract-shaped responses.

Can it run tests against production?

No. The skill uses sandbox or local servers started by project scripts and says not to target production.

Source text

SKILL.md · MIT
---
name: w-api-test
description: Add API tests that exercise public HTTP behavior against existing harnesses.
disable-model-invocation: true
---

Test endpoints through the public interface using this repo's API or Playwright harness. Do not hit production. Do not hardcode secrets.

1. Read the API testing MDX and existing `*.test.ts` or e2e specs.
2. Cover the requested operations, authz denials, and contract-shaped responses.
3. Use sandbox or local servers from package scripts. Clean up created resources.
4. Run the documented API or e2e command for those tests.
5. Docs: `/w-docs` if behavior or commands changed.

© blockmatic-icebox · MIT · blockmatic-icebox/basilic-skills

Similar skills

All skills for Testing and QA →

From the same set45

The whole set →
w-coderabbit The w-coderabbit Claude Code skill fetches CodeRabbit feedback on a PR or uncommitted diff. It applies clear fixes, then runs local checks. CX Codex +1 647installs w-release w-release is a Claude Code skill that reviews release impact, changelog changes, and template contracts. Invoke it manually; automatic invocation is disabled. CX Codex +1 647installs w-security w-security is a Claude Code skill that checks code changes or a repository tree against its security docs and existing checks. Run it to review a change for security defects. CX Codex +1 647installs w-review w-review — a skill for Claude Code checks changes for evidenced defects and risks. Run it on a diff, branch, PR, or working tree without asking it to edit code. CX Codex +1 647installs w-unit The w-unit skill for Claude Code adds unit tests for the current change using the repository’s testing conventions. It checks public APIs, error paths, and related regressions. CX Codex +1 647installs w-tdd The w-tdd Claude Code skill guides implementation through red-green-refactor. It activates when a developer requests TDD or the repository requires it. CX Codex +1 647installs w-test w-test — a skill for Claude Code that executes project test commands and resolves failure causes step by step until the suite turns green. CX Codex +1 647installs w-yolo The w-yolo Claude Code skill fixes failing local checks on request. It reruns the failing command or a check for the changes, without publishing them. CX Codex +1 647installs

Project sponsors

Companies that keep this analytics open