test-generation
Skill by fossasia
Writes pytest and anyio tests for VoxBento features, covering booth state, database, routes, auth, invite tokens and WebSockets. It is for developers working on the VoxBento codebase.
Install test-generation
Built from the published package, never by AI.
git clone --depth 1 https://github.com/fossasia/eventyay-interpretation /tmp/eventyay-interpretation && mkdir -p ~/.claude/skills && cp -r /tmp/eventyay-interpretation/.agents/skills/test-generation ~/.claude/skills/test-generationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/fossasia/eventyay-interpretation /tmp/eventyay-interpretation && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/eventyay-interpretation/.agents/skills/test-generation ~/.gemini/antigravity-cli/skills/test-generationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant the test conventions used in the VoxBento project. It sets out a shared pytest and anyio setup from tests/conftest.py, with an anyio backend fixture, an in-memory SQLite database fixture, and an httpx AsyncClient fixture for FastAPI routes. It also includes example tests for booth state, database CRUD, routes, auth tokens, invite token joins and WebSocket booth joins.
The file maps each test area to its file, such as tests/test_database.py for CRUD and tests/test_join_flow.py for invite tokens. It ends with seven prioritised coverage gaps, including WebSocket token scope mismatches, CaptionAggregator forced finalization and Fernet key rotation. It is aimed at developers who write or extend tests for the VoxBento codebase.
Written from the project's SKILL.md and checked against it.
What it can do
- Booth state testsWrites tests for BoothRegistry participant joins and active interpreter state.
- Database testsWrites tests for database CRUD helpers such as create_event.
- Route testsWrites HTTP route tests, such as the /healthz and /login endpoints.
- Auth testsWrites tests for creating and decoding user tokens.
- Invite token testsWrites tests for joining a booth through an invite token link.
- WebSocket testsWrites tests for booth:join messages sent over a WebSocket.
What you need
- pytest with the anyio plugin
- anyio
- httpx for the FastAPI test client
- aiosqlite for the in-memory SQLite database
- The VoxBento codebase with its portal package
Try asking
- Write a pytest test for BoothRegistry.join_participant in VoxBento
- Add a route test for the /login endpoint using the client fixture
- Show which VoxBento coverage gaps still have no tests
Good to know
- Written for the VoxBento project and its own modules, not general testing.
- The WebSocket example leaves its setup step as a placeholder.
- The seven coverage gaps are listed as untested areas.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/test-generation/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to test-generation
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
test-generation: common questions
Which test tools does this skill use?
The skill uses pytest with the anyio plugin. Async tests are marked with anyio or asyncio, and the anyio backend is set to asyncio.
Where should new VoxBento test files go?
A table maps each test area to a file, such as tests/test_fastapi_app.py for routes and tests/test_roles.py for roles and permissions.
What VoxBento areas are still untested?
The skill lists seven prioritised gaps, including the WS token scope mismatch that should close with code 4003 and Fernet key rotation with two keys.
How do I install test-generation?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is test-generation free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is test-generation safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to test-generation?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
