fastapi-self-review

fastapi-self-review is a skill for Claude Code from steph-dove/klaussy-agents. It costs 74 tokens per session (919 once invoked), scanned A, original, MIT.

A final review tool for checking your own uncommitted code changes against a fixed checklist before calling the work complete. It examines the current difference between your edited files and the repository version.

In plain words
What is it for?
Use it after implementation to inspect the full diff, check reuse and standard-library choices, review comments and tests, and fix issues it finds.
Why use it?
It catches duplicated code, unnecessary dependencies, dead code, missing tests, and changes outside the requested scope before someone else reviews them.

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 implementation to inspect the full diff, check reuse and standard-library choices, review comments and tests, and fix issues it finds.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/steph-dove/klaussy-agents/fastapi-self-review"><img src="https://agentmods.dev/badge/skills/steph-dove/klaussy-agents/fastapi-self-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 919 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 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.00074 $0.00919
Opus 5 $0.00037 $0.00460
Sonnet 5 $0.00015 $0.00184
Haiku 4.5 $0.00007 $0.00092

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

Security

Grade A, and why

fastapi-self-review 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 12d 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

Copies of this mod

2 near-identical copies found in the catalogue:

examples/fastapi/.agents/skills/fastapi-self-review/SKILL.md · 61 lines

How it starts

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

Review the change you just made before you call it complete. This is the gate between "I wrote code" and "it's done" — run it on your own diff and fix what it surfaces, don't just report.

Step 1: Get the diff

Look at exactly what changed — git diff (unstaged), git diff --cached (staged), and untracked files. Read the full changed files, not only the hunks; a problem often lives in the context around an edit.

Step 2: Walk the checklist

Go through every item against the diff. For each, either confirm it holds or fix it now.

Reuse before reinvention

  • Does this add a function, helper, type, or constant that already exists somewhere in the repo? Search first, then reuse it instead.
  • Is any logic duplicated from another module? Call the existing code, don't copy it.

Built-ins and existing dependencies

  • Did you hand-roll something the standard library or an already-installed dependency provides (deep-clone, debounce, grouping, UUID, HTTP, parsing, date math)? Replace it with the built-in.
  • Did you add a new third-party dependency? That's a decision to raise with the user, not to slip in — flag it.

Comments

  • Deleting is the default; keeping one needs a reason you could defend in review. Go comment by comment and cut every one that restates the code, narrates steps, or reads as changelog ("Now we handle…", "Added to fix…").
  • What survives gets one sentence, and only where it earns its place: a why, a gotcha, an invariant, a link. A second sentence usually means the first one restated the code.
  • Prefer a clearer name over a comment.

Imports

  • Did you import inside a function or method? Hoist it to the top of the file. It reads as an agent tell — the import got written where the need surfaced, not where it belongs — and it hides a module's dependencies from anyone scanning the file.
  • Keep it local only when it earns it: breaking an import cycle, or deferring an optional/expensive dependency. Say which, in a # noqa comment on the line.

Read the full file on GitHub · 61 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. 12d ago First seen · 61 lines · 74 tokens per session scan A f4384580ff24

Subscribe to this mod's changes

fastapi-self-review is a skill published in the GitHub repository steph-dove/klaussy-agents (16 stars, last pushed 15d ago), licensed MIT. It adds 74 tokens to every session and 919 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.