Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add idavidov13/agentic-playwright --skill api-testinggit clone --depth 1 https://github.com/idavidov13/agentic-playwrightWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/idavidov13/agentic-playwright/api-testing)<a href="https://agentmods.dev/skills/idavidov13/agentic-playwright/api-testing"><img src="https://agentmods.dev/badge/skills/idavidov13/agentic-playwright/api-testing/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/idavidov13/agentic-playwright/api-testing"><img src="https://agentmods.dev/badge/skills/idavidov13/agentic-playwright/api-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Privilege Escalation · line 13 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- high Tool Misuse · line 223 Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00069 | $0.01001 |
| Opus 5.5 | $0.00028 | $0.00400 |
| Sonnet 5.5 | $0.00014 | $0.00200 |
| Haiku 4.5 | $0.00007 | $0.00100 |
Grade A, and why
api-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Testing
Critical
-
Never hardcode API URLs, access tokens, emails, passwords or endpoint paths: only
process.env.API_URL,process.env.ACCESS_TOKEN,process.env.APP_EMAIL,APP_PASSWORDandApiEndpointsfromenums/{area}/*. -
Schemas and tests come from the documented contract (OpenAPI/Swagger), never from a request made first; none found: ask before live capture.
-
Assert every response body with
expect(SchemaName.parse(body)).toBeTruthy();, not a generic or a bare parse; in fixture code, with no test,const x = SchemaName.parse(body);. Neveras-cast.// CORRECT expect(UserResponseSchema.parse(body)).toBeTruthy(); // WRONG const user = body as UserResponse; -
A test with more than one API call wraps each call in its own
test.step(), assertions inside. -
Never change an expected status, loosen a schema or drop a test: keep it as the contract says, in
test.skipwith// FIXME: <ticket-url>. 422 where the spec says 400 is a mismatch; only a human confirming a stale spec changes it. Example:references/negative-testing.md→ "Contract mismatch". -
Every request-body endpoint gets an empty-body test, a per-field omission loop and a per-field invalid-type
for...ofloop over theINVALID_*arrays; never empty-body-only. -
Always fuzz path parameters with the invalid-format loop, documented or not.
-
Only a human-set
// SCOPEline cuts a row or loop. -
Call
apiRequestdirectly in tests and hooks; promote to a helper fixture infixtures/helper/helper-fixture.tsonly when 3+ test files copy-paste the same setup/teardown.
Procedure
- Locate the contract: a spec file in the repo, the API host's documentation route, or a document from the human. Nothing found: ask. Partial or absent:
references/contract-sourcing.md. - Write the response schema in
fixtures/api/schemas/{area}/pertype-safety(ls fixtures/api/schemas/resolves{area}); error bodies usefixtures/api/schemas/util/errorResponseSchema.ts. - Add a new path to
ApiEndpointsperenums. - Write the happy path:
apiRequest<SchemaType>({ method, url: ApiEndpoints.X, baseUrl: process.env.API_URL, headers: process.env.ACCESS_TOKEN, body })in atest.describeper method + path, tag@api, payload from a factory perdata-strategy. - List every status code the contract documents plus the baseline rows in
references/coverage-matrix.md; present the plan before writing those tests. Only a scenario list from the human, or a priority list with a cut-off, narrows it: each row they cut is recorded as a// SCOPEline (same reference, Scope), not dropped. No list, a priority list with no cut-off, or a vague hint such as "keep it short": every row. - Add the negative loops from
references/negative-testing.md; a test with several calls followsreferences/multi-call-steps.md. - Setup or teardown past the threshold goes to
references/helper-fixtures.md; below it,beforeAll/afterAllin the spec withapiRequest. - Run
npx playwright test <file>andnpm run lint. A response that disagrees with the contract:test.skip+// FIXME; red for another reason:debugging. Report every// SCOPErow and who cut it.
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 14d ago Changed · -7 lines da0d2d1fa84f
- 16d ago Changed 28c08e7b067e
- 27d ago Changed · -319 lines · -63 tokens per session 6fba4e58427b
- 3mo ago First seen · 373 lines · 132 tokens per session scan A 8682a35635d2
api-testing is a skill published in the GitHub repository idavidov13/agentic-playwright (313 stars, last pushed 13d ago), licensed MIT. It adds 69 tokens to every session and 1,001 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
api-testing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| api-testingidavidov13/agentic-playwright | Skill | 313 | 13d ago | MIT | A | 69 | Claude Code, Codex |
| vindicateOpenEvident/vindicate | Skill | 45 | 2mo ago | Apache-2.0 | A | 77 | Claude Code, Codex |
| E2E Testing PatternsPramodDutta/qaskills | Skill | 253 | 28d ago | MIT | A | 35 | Claude Code, Codex |
| Laravel Dusk TestingPramodDutta/qaskills | Skill | 253 | 28d ago | MIT | A | 44 | Claude Code, Codex |
| JMeter Load TestingPramodDutta/qaskills | Skill | 253 | 28d ago | MIT | A | 32 | Claude Code, Codex |
| k6-load-testingtmolavi/mcp-agent-skills-hub | Skill | 11 | 4d ago | MIT | B | 35 | Claude Code, Codex |
| aif-testainative-build/skills | Skill | 10 | 1mo ago | MIT | A | 28 | Claude Code |