AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Fastapi Test

skill-steph-dove-klaussy-agents-fastapi-test · by steph-dove

Use when the user wants tests written for current changes (uncommitted diff or recent feature). Matches the repo's existing test framework, fixtures, and assertion style. Covers happy path, edge cases, and error paths without over-mocking.

No reviews yet
0 installs
14 views
0.0% view→install

Install

$ agentstack add skill-steph-dove-klaussy-agents-fastapi-test

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-steph-dove-klaussy-agents-fastapi-test)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Fastapi Test? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Write tests for the current changes. Follow these steps:

  1. Read CLAUDE.md to understand the project's test framework, conventions, and test commands.
  2. Read any .claude/rules/*.md whose paths: glob matches the changed files — they capture testing conventions specific to this layer (e.g. how API tests are structured vs. how DB tests are structured).
  3. Identify what changed with git diff master...HEAD (the whole branch's work), plus git diff and git diff --cached for any uncommitted edits — not a bare git diff, which would miss everything already committed on the branch. Classify the change:
  • Pure refactor (code moved/renamed, no behavior change): update existing tests' imports and call sites; do NOT invent new tests for behavior that already had coverage.
  • New behavior or modified behavior: continue to step 4.
  1. Find existing test files for the modules you're testing. Read them fully — match their patterns:
  • File naming and location conventions.
  • Fixtures, factories, helpers, and setup/teardown patterns.
  • Assertion style and test structure.
  • How similar features are tested (use as a template).
  1. Write focused tests that cover:
  • Happy path — the expected behavior works correctly.
  • Edge cases — empty inputs, boundary values, null/nil, large inputs.
  • Error cases — invalid input, missing data, permission failures. Test that errors are handled, not just that they don't crash.
  • Behavior, not implementation — test what the code does, not how it does it. Tests should survive a refactor that preserves behavior.
  1. Run the test suite to verify everything passes, including your new tests.

Rules

  • Match existing patterns. If the codebase uses factories, use factories. If it uses fixtures, use fixtures. Don't introduce a new testing pattern.
  • Mock only: (1) external network services (HTTP APIs, payment gateways, third-party SDKs), (2) slow I/O without a fast fixture (real databases, filesystems), (3) non-deterministic sources (current time, randomness). Do NOT mock the code under test. Do NOT mock internal modules just to avoid setting them up.
  • Don't under-test. If you changed a conditional, test both branches. If you added error handling, test the error path. "Happy path only" is not adequate coverage.
  • Each test should test one thing. If a test name needs "and" in it, split it into two tests.
  • Tests must be deterministic. No reliance on timing, ordering, or random data without seeds.
  • A test that can't fail is worthless. For your key behavioral tests, make sure the assertion would actually break if the behavior were wrong — a green test against code you never verified can fail is false confidence. If a test passes no matter what, it's testing the mock or nothing.

When NOT to use

  • The diff has no behavior change at all (formatting, comments, dead-code removal) — there's nothing to test.
  • The user wants the test suite fixed (failing tests) rather than new tests written — diagnose the failures with debug or fix instead.
  • The user wants to rewrite all existing tests to a new framework — that's a refactor of test infrastructure, not test authoring.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.