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
npx skills add blockmatic-icebox/basilic-skills --skill w-api-test -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/w-api-test/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/w-api-test/
1Skills CLI (Vercel)
npx skills add blockmatic-icebox/basilic-skills --skill w-api-test -a codex2Manually: put the files in place
.agents/skills/w-api-test/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add blockmatic-icebox/basilic-skills --skill w-api-test -a cursor2Manually: put the files in place
.cursor/skills/w-api-test/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install blockmatic-icebox/basilic-skills skills/workflow/w-api-test2Manually: put the files in place
.github/skills/w-api-test/SKILL.md1Skills CLI (Vercel)
npx skills add blockmatic-icebox/basilic-skills --skill w-api-test -a gemini-cli2Platform CLI
gemini skills install https://github.com/blockmatic-icebox/basilic-skills --path skills/workflow/w-api-testManually: put the files in place
.devin/skills/w-api-test/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add blockmatic-icebox/basilic-skills --skill w-api-test -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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