agentleFS
berntpoppberntpopp/spliceailookup-link/.claude/skills/fastapi-route-change/SKILL.md

fastapi-route-change

Skill0 starsChanged 4 months agoMITView on GitHub

Use when adding, renaming, or modifying this backend's FastAPI routes, dependencies, middleware, or response behavior.

We split this skill into the rules it gives an agent

5 rules. 3 are common, 0 are distinctive, and 2 are very specific to this project.

  • 3

    Common

    Most of the 10 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Common:

    Keep route handlers thin; put behavior in the service / manager layer.

    line 13
  2. Common:

    Use Pydantic models for public request/response shapes.

    line 14
  3. Common:

    Never log full query payloads or identifiers that may be patient-derived (PHI).

    line 16
  4. Very specific:

    Don't pair CORS allow_origins=* with allow_credentials=True.

    line 17
  5. Very specific:

    Add / refresh route tests, then run make ci-local.

    line 18

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

FastAPI Route Change

Follow AGENTS.md first.

Workflow

  1. Inspect neighboring route / service modules under spliceailookup_link/ and follow their structure.
  2. Keep route handlers thin; put behavior in the service / manager layer.
  3. Use Pydantic models for public request/response shapes; validate identifiers (gene / variant / HGVS / build / accession) before calling upstream.
  4. The upstream base URL is a fixed config constant — never construct it from user input (SSRF).
  5. Never log full query payloads or identifiers that may be patient-derived (PHI); log correlation id + route + timings only.
  6. Don't pair CORS allow_origins=* with allow_credentials=True.
  7. Add / refresh route tests, then run make ci-local.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.