httpx-test

httpx-test is a skill for Claude Code from steph-dove/klaussy-agents. It costs 52 tokens per session (788 once invoked), scanned A, a copy of fastapi-test, MIT.

A skill for writing automated tests for recent code changes using the repository's existing test framework and conventions. It covers normal cases, edge cases, and failure paths.

In plain words
What is it for?
Use it to inspect changes, find matching test patterns, and add focused tests for new or changed behavior.
Why use it?
It avoids tests that conflict with the project and reduces the chance of missing important behavior.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents).

Part of the klaussy plugin — 79 skills, 3 hooks, 1 MCP server shipped together

Good fit Use it to inspect changes, find matching test patterns, and add focused tests for new or changed behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/steph-dove/klaussy-agents/httpx-test
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 steph-dove/klaussy-agents --skill httpx-test
Clone the repo
git clone --depth 1 https://github.com/steph-dove/klaussy-agents

Made for: Claude Code.

Or install klaussy, the plugin that ships this one along with the rest of its 79 skills, 3 hooks, 1 MCP server.

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 httpx-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/steph-dove/klaussy-agents/httpx-test/github.svg)](https://agentmods.dev/skills/steph-dove/klaussy-agents/httpx-test)
Your own site
<a href="https://agentmods.dev/skills/steph-dove/klaussy-agents/httpx-test"><img src="https://agentmods.dev/badge/skills/steph-dove/klaussy-agents/httpx-test/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 httpx-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/steph-dove/klaussy-agents/httpx-test"><img src="https://agentmods.dev/badge/skills/steph-dove/klaussy-agents/httpx-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 788 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.
Origin 100% copy Near-identical to another mod 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.00052 $0.00788
Opus 5 $0.00026 $0.00394
Sonnet 5 $0.00010 $0.00158
Haiku 4.5 $0.00005 $0.00079

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

Security

Grade A, and why

httpx-test 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 7d 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.

Origin

This is a copy

100% identical to fastapi-test — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

examples/httpx/.agents/skills/httpx-test/SKILL.md · 39 lines

How it starts

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

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.
  4. 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).
  5. 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.
  6. 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.

Read the full file on GitHub · 39 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. 7d ago First seen · 39 lines · 52 tokens per session scan A 5e3d69d39f24

Subscribe to this mod's changes

httpx-test is a skill published in the GitHub repository steph-dove/klaussy-agents (16 stars, last pushed 13d ago), licensed MIT. It adds 52 tokens to every session and 788 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to fastapi-test, differing in 2 lines, and is treated as a copy.