testing

testing is a skill for Claude Code from filipebraida/adonisjs-starter-kit. It costs 120 tokens per session (4,258 once invoked), scanned A, original, MIT.

Testing guidance for an AdonisJS application using Japa, with separate unit tests and functional tests. Functional tests call HTTP endpoints against a real PostgreSQL database, while unit tests replace dependencies with test doubles.

In plain words
What is it for?
It is for writing and reviewing unit or endpoint tests, setting up database transactions, and faking mail, file storage, events, and server-sent events.
Why use it?
It shows how to match existing test patterns and prevents tests from sending mail, writing to storage, emitting real events, or reaching external services.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It is for writing and reviewing unit or endpoint tests, setting up database transactions, and faking mail, file storage, events, and server-sent events.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/filipebraida/adonisjs-starter-kit/testing
Install

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.

Any agent
npx skills add filipebraida/adonisjs-starter-kit --skill testing
Clone the repo
git clone --depth 1 https://github.com/filipebraida/adonisjs-starter-kit

Made for: Claude Code.

Wrote 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.

agentmods badge for testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/testing/github.svg)](https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/testing)
Your own site
<a href="https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/testing"><img src="https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/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.

agentmods 80×15 button for testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/testing"><img src="https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,258 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00120 $0.04258
Opus 5.5 $0.00048 $0.01703
Sonnet 5.5 $0.00024 $0.00852
Haiku 4.5 $0.00012 $0.00426

Measured 5d ago against content hash 0a6d5196535c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 5d 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.

packages/skills/testing/SKILL.md · 285 lines

How it starts

The opening of the file, as written. The whole thing — 285 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Testing

Two suites: unit for one module layer (action, query, policy, transformer, listener, workflow, model) called directly, on the real Postgres in a per-test transaction when it reads or writes; functional for HTTP endpoints hit through client. A spec with no test using client is a unit spec. Every spec matches the shape of the nearest existing spec — same imports, same setup/teardown order, same helpers. Anything that reaches out (mail, drive, emitter, durable workflows, transmit, third-party HTTP) must be faked, and there is no global fake in tests/bootstrap.ts: each test creates the fakes it needs with using.

Test database

The suite runs on its own database, never the dev one. .env.test sets DB_DATABASE=app_test, and .env.test wins over .env under NODE_ENV=test. pnpm test (and pnpm coverage) first runs pnpm test:prepare = NODE_ENV=test node ace db:prepare-test, which creates the database if the Postgres server lacks it, then db:wipe + migration:run.

db:prepare-test refuses outside NODE_ENV=test or for a name not ending in _test (#core/utils/test_database): it wipes what it migrates, so a misconfigured env must never point it at dev data. Running node ace test directly skips the prepare step — fine while the schema hasn't changed, re-run pnpm test:prepare after editing a migration.

Run under timeout -k

forceExit is off (adonisrc.ts), so the process exits only once the event loop drains; a leaked handle keeps it alive, and the SIGTERM handler in bin/test.ts (app.terminate()) can block on that same handle. Wrap every run, as CI does:

timeout -k 5 120 pnpm ace test --files app/users/tests/functional/users/invite.spec.ts

If it trips (exit 124/137), rerun once with a longer timeout. Finishing then means the run is slow; tripping again after the tests passed means a leaked resource — find the live handle (process.getActiveResourcesInfo()), do not work around it, and do not report completion.

Read the full file on GitHub · 285 lines

Changes

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.

  1. 5d ago Changed 0a6d5196535c
  2. 12d ago Changed · +25 lines d030bcbf0628
  3. 20d ago Changed · +75 lines · +38 tokens per session 564d1ada9f2b
  4. 3mo ago First seen · 185 lines · 82 tokens per session scan A 3a93cb60ed27

Subscribe to this mod's changes

testing is a skill published in the GitHub repository filipebraida/adonisjs-starter-kit (99 stars, last pushed 6d ago), licensed MIT. It adds 120 tokens to every session and 4,258 once invoked, about $0.0005 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.

Related

testing compared with skills from other repositories

testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testingfilipebraida/adonisjs-starter-kitSkill996d agoMITA120Claude Code
verify-workHoangNguyen0403/agent-skills-standardSkill597todayMITA23Codex
calendarcnvmnog/calendarcnSkill1685d agoMITA76Claude Code, Codex
testingudecode/plate-playground-templateSkill243yesterdayMITA5Claude Code, Codex
test-building-blocksbartstc/vite-ts-react-templateSkill1268d agoMITA100Claude Code, Codex
ui-beatsnikhils4/ui-beatsSkill2363mo agoMITA62Claude Code, Codex
testingsiberiacancode/agent-skillsSkill26yesterdayMITA15Codex