qauthtrailingslash

qauthtrailingslash is a skill for Claude Code from 3awny/qship. It costs 80 tokens per session (2,396 once invoked), scanned A, original, MIT.

An automated review for API URLs that may have the wrong trailing slash. In FastAPI and similar web frameworks, this mismatch can cause a temporary redirect; in some cross-site setups, the browser may then omit the login authorization header.

In plain words
What is it for?
Use it before merging changes that add or move HTTP calls, especially in FastAPI services, to compare client URLs with route definitions across one or more repositories.
Why use it?
It finds a subtle route mismatch that can turn valid requests into unauthorized responses, often making an interface appear to have no data.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Part of the qship plugin — 22 skills, 1 agent, 1 hook shipped together

Good fit Use it before merging changes that add or move HTTP calls, especially in FastAPI services, to compare client URLs with route definitions across one or more repositories.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/3awny/qship/qauthtrailingslash
View source ↗ 3awny/qship
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 3awny/qship --skill qauthtrailingslash
Clone the repo
git clone --depth 1 https://github.com/3awny/qship

Made for: Claude Code.

Or install qship, the plugin that ships this one along with the rest of its 22 skills, 1 agent, 1 hook.

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 qauthtrailingslash

README.md
[![agentmods](https://agentmods.dev/badge/skills/3awny/qship/qauthtrailingslash.svg)](https://agentmods.dev/skills/3awny/qship/qauthtrailingslash)
Your own site
<a href="https://agentmods.dev/skills/3awny/qship/qauthtrailingslash"><img src="https://agentmods.dev/badge/skills/3awny/qship/qauthtrailingslash.svg" alt="Measured on agentmods" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,396 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00080 $0.02396
Opus 5 $0.00040 $0.01198
Sonnet 5 $0.00016 $0.00479
Haiku 4.5 $0.00008 $0.00240

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

Security

Grade A, and why

qauthtrailingslash scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. **Parse client URLs** — extract every fetch / callApi / callApiAbs / `_clientRequest` / `_doRequest` / curl / `httpx` call's URL.
templates/skills/qauthtrailingslash/SKILL.md · 193 lines

How it starts

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

qauthtrailingslash — Trailing-slash / 307-redirect audit

Audits every client URL in changed code against the FastAPI route definitions, reporting any mismatch that would 307-redirect at runtime. On cross-origin staging deployments, those 307s strip the Authorization header, so the request silently succeeds-as-401 and the UI shows empty data with no error.

Multi-repo contract: Runs across every repo in $SKILLS_ROOT/qship/repos.json that contains FastAPI route definitions. Single-repo users see one service's routes audited. Multi-service users see all services audited and any cross-service URL mismatch flagged.

This is an autonomous, machine-checkable audit — no human judgement required. Run it before merge on any PR that adds or moves an HTTP call.

Why this matters (the failure mode)

Memory references:

  • feedback_fastapi_trailing_slash_redirect.md — POST to a route without trailing slash, when the server route has one (or vice versa), gets a 307 redirect from FastAPI's default redirect_slashes=True.
  • feedback_cross_origin_redirect_strips_auth.md — Browsers strip the Authorization header on cross-origin redirects (CORS). Staging serves UI and API from different origins, so the redirect lands on the API as unauthenticated.

Symptom: silent empty-data UI on staging that works fine locally (same-origin in dev). Fingerprint: a 307 followed by a 401 in the network tab; your repo logs show "No credentials provided".

What the audit checks

For every .jsx / .tsx / .ts / .js / .py file in the diff (or current branch vs develop):

  1. Parse client URLs — extract every fetch / callApi / callApiAbs / _clientRequest / _doRequest / curl / httpx call's URL.
  2. Parse FastAPI routes — for every .py file under {{CODEBASE_PATH_PREFIX}}/*/api/v1/*.py, find each router declaration (APIRouter(prefix="/...")) and each handler decorator (@router.<method>("/...")). Resolve to the full URL.
  3. Cross-check — for each client URL, locate its matching server route by path-template + method. Report a mismatch when:
    • Server has trailing slash, client doesn't (POST/PATCH/PUT will 307).
    • Client has trailing slash, server doesn't.
    • Method/path otherwise match but slash position differs.

Read the full file on GitHub · 193 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 · 193 lines · 80 tokens per session scan A 532952317715

Subscribe to this mod's changes

qauthtrailingslash is a skill published in the GitHub repository 3awny/qship (2 stars, last pushed 2mo ago), licensed MIT. It adds 80 tokens to every session and 2,396 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

tracing-across-services

Use when you need to understand how a request, endpoint, or feature flows across multiple Spring Boot service repos and shared libraries - produces an ordered call chain with file:line citations, following inter-service proxy-lib calls.

talayash/spring-fleet · 49 tokens

network-deity

Optimizes API endpoints, payload sizes, and network latency. Standard REST calls are slow; we make them instantaneous.

v0idOS/performance-deity · 0 tokens

eve

Build durable backend AI agents with the eve framework. Use when creating, editing, or debugging an eve project — agent instructions, skills, tools, connections, channels, sandboxes, subagents, schedules, or evals.

ComposioHQ/composio · 47 tokens

printing-press-amend

Amend a published CLI from one of two input sources: (1) dogfood mode mines the active Claude Code session transcript for friction (missing flags, hand- rolled API payloads, silent-null returns); (2) direct-input mode accepts user-supplied asks (rename a command, add commands or feeds, fix a named bug, optionally…

mvanhorn/cli-printing-press · 222 tokens

tidewave-integration

Tidewave MCP runtime tools — debugging, smoke testing, live state inspection, SQL queries, hex docs. Use when evaluating code in a running Phoenix app.

oliver-kriska/claude-elixir-phoenix · 38 tokens

perf

Analyze Elixir/Phoenix performance — N+1 queries, assign bloat, ecto optimization, genserver bottlenecks. Use when slowness, timeouts, or high memory reported.

oliver-kriska/claude-elixir-phoenix · 43 tokens