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/github.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/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 qauthtrailingslash

Your own site · 80×15
<a href="https://agentmods.dev/skills/3awny/qship/qauthtrailingslash"><img src="https://agentmods.dev/badge/skills/3awny/qship/qauthtrailingslash.svg" alt="Reviewed on agentmods" width="80" 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.5 $0.00032 $0.00958
Sonnet 5.5 $0.00016 $0.00479
Haiku 4.5 $0.00008 $0.00240

Measured 1mo ago against content hash 532952317715, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 1mo 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. 1mo 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 3mo ago), licensed MIT. It adds 80 tokens to every session and 2,396 once invoked, about $0.0003 per session on Opus 5.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

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

Use when anything in a Phoenix app is slow, times out, or uses too much memory, even if the cause looks obvious. Load it before analyzing or fixing: it runs measured Ecto, LiveView and OTP checks and ranks fixes.

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

api-error-handling

Implements standardized API error responses with proper status codes, logging, and user-friendly messages. Use when building production APIs, implementing error recovery patterns, or integrating error monitoring services.

secondsky/claude-skills · 40 tokens

spine-perf

Find and fix performance bottlenecks — N+1 queries, missing indexes, sync bottlenecks, caching gaps. Use when asked "why is this slow", "performance issue", "optimize this endpoint", or "N+1 queries".

tonone-ai/tonone · 55 tokens

spine-recon

Backend reconnaissance — map all routes, middleware, models, dependencies, auth, and assess code quality for project takeover. Use when asked to "understand this backend", "map the API", or "assess code quality".

tonone-ai/tonone · 50 tokens

kirby-debugging-and-tracing

Diagnoses Kirby rendering/runtime issues using MCP runtime rendering, dump traces, and template/snippet/controller indexes. Use when outputs are wrong, errors occur, or tracing execution paths is required.

bnomei/kirby-mcp · 45 tokens