httpx-fix

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

A workflow for fixing lint, formatting, and type-check errors in the current code changes. It reads the repository's instructions, checks only changed files, and limits fixes to style and type issues without changing behaviour.

In plain words
What is it for?
Use it after editing code when the changed files need formatting, linting, or type errors resolved according to the repository's own commands.
Why use it?
It prevents unrelated old problems from being changed and avoids turning a style fix into a functional rewrite. It also makes the required project checks explicit.

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 after editing code when the changed files need formatting, linting, or type errors resolved according to the repository's own commands.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/steph-dove/klaussy-agents/httpx-fix
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-fix
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-fix

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/steph-dove/klaussy-agents/httpx-fix"><img src="https://agentmods.dev/badge/skills/steph-dove/klaussy-agents/httpx-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 909 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 98% 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.00055 $0.00909
Opus 5 $0.00028 $0.00454
Sonnet 5 $0.00011 $0.00182
Haiku 4.5 $0.00006 $0.00091

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

Security

Grade A, and why

httpx-fix 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 10d 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

98% identical to fastapi-fix — 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-fix/SKILL.md · 47 lines

How it starts

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

Fix all lint, format, and type errors in the current changes.

Steps

  1. Read CLAUDE.md to find the project's lint, format, and type-check commands. If they're missing, fall back to the stack defaults below.

  2. Read any .claude/rules/*.md whose paths: glob matches the files you're about to touch — they may carry style/typing rules the linter doesn't enforce.

  3. Scope to this branch's change. Build the changed-file list — the union of:

    • git diff --name-only master...HEAD (work committed on this branch)
    • git diff --name-only (unstaged) and git diff --name-only --cached (staged)

    Pass these paths to every command below so the tools judge only what this branch changed — never the whole repo. Pre-existing violations in untouched files are not yours to fix here. If the list is empty, there's nothing to fix; say so and stop. (If master...HEAD errors because the base branch isn't present locally, fall back to the uncommitted diff alone.)

  4. Run each command in this order, scoped to the changed files (apply each pass before running the next, so fixes from one don't fight the next):

    1. Format first (it normalizes whitespace and quoting that lint rules might complain about).
    2. Lint next (it picks up real style/safety issues on top of formatted code).
    3. Type-check last (type errors don't move under format/lint, but the line numbers will). If the type-checker needs whole-project context to resolve imports, run it normally but only fix errors that land in the changed files.
  5. Fix all reported issues. When format and lint disagree on a specific construct, lint wins (formatters auto-resolve; lint encodes intent).

  6. Re-run all three (still scoped to the changed files) to verify they're clean.

Stack defaults (if CLAUDE.md doesn't specify commands)

Append the changed files to each command (e.g. ruff check <files>) so it stays scoped to the branch's change.

  • Python: ruff format, ruff check, mypy (or pyright)
  • TypeScript / JavaScript: prettier --write, eslint --fix, tsc --noEmit (tsc checks the whole project — read only the changed files' errors)
  • Go: gofmt -w / goimports -w, go vet, staticcheck
  • Rust: cargo fmt, cargo clippy --fix, cargo check (cargo works per-crate — limit fixes to the changed files)

Read the full file on GitHub · 47 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. 10d ago First seen · 47 lines · 55 tokens per session scan A 81580fafef5a

Subscribe to this mod's changes

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