Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

backend-tests

Skill by vstorm-co

Guides an AI assistant to write or extend the backend Python test suite. It covers unit, integration, API and bug-fix tests, plus a 100% coverage gate on the platform layer.

  • Score 74
  • 918 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install backend-tests

Built from the published package, never by AI.

git clone --depth 1 https://github.com/vstorm-co/agenticos /tmp/agenticos && mkdir -p ~/.claude/skills && cp -r /tmp/agenticos/.claude/skills/backend-tests ~/.claude/skills/backend-tests

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install backend-tests in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill tells an AI assistant where a backend test belongs: unit, integration, API, or end-to-end. It points to the project's testing docs and the make targets used to run tests, coverage and migrations against Postgres. It also covers which layer to use when a change needs a test.

It sets the project's rules. Tests use anyio instead of pytest-asyncio, and API tests use an httpx AsyncClient over ASGITransport instead of Starlette's TestClient. Repositories are mocked, never the service under test, and tests should assert consequences rather than calls. It also explains how the integration fixtures create and drop a session database and how worker tests are organised. It is aimed at developers working on this backend and its test conventions.

Written from the project's SKILL.md and checked against it.

What it can do

  • Choose the test layerDecides whether a change needs a unit, integration, API or E2E test.
  • Write unit testsCovers a service with repositories mocked at the boundary.
  • Write integration testsChecks constraints, cascades and tenant isolation against real Postgres.
  • Write API testsChecks that a route has the right permission and returns the right status.
  • Write bug fix testsAdds a test that fails when the behaviour changes.
  • Diagnose red buildsHelps with failing coverage and a red make test run.

What you need

  • Python backend test suite
  • Postgres for integration tests
  • Docker for the throwaway test database (make docker-test-db)
  • make and uv

Try asking

  • Write a unit test for this service method using the project's anyio setup.
  • Add an integration test that checks this CHECK constraint against Postgres.
  • Why is make test failing on the 100% coverage gate?

Good to know

  • Integration tests skip when no database is reachable.
  • The integration conftest refuses database names without test or ci.
  • Uses anyio, not pytest-asyncio.
  • The 100% coverage gate applies to the platform layer.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/backend-tests/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to backend-tests

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

backend-tests: common questions

Should I use pytest-asyncio for async tests here?

No. The source says the project uses anyio instead of pytest-asyncio, with the anyio_backend fixture pinned to asyncio.

When does a test belong in the integration layer?

When it asserts on the schema, such as a CHECK, a cascade, a partial unique index or tenant isolation. Mocks cannot show whether a constraint rejects a row.

Which client should API tests use?

The client fixture, an httpx.AsyncClient over ASGITransport. The source says never to use Starlette's TestClient.

How do I install backend-tests?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is backend-tests free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is backend-tests safe to use?

It scores 74 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 backend-tests?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

backend-tests Install

Add to stack

Loading.