novo-projeto-fastapi
Skill37 starsChanged 6 days agoApache-2.0View on GitHub
Use when creating a new web API with FastAPI from the TEA IDE "FastAPI" template (AGENTS.md initial request mentions FastAPI or an HTTP API in Python). Says what the smallest runnable FastAPI project looks like - uv, app package, health route, tests with TestClient, settings from the environment - and what to ask the user first.
- Reads credentials
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- novo-projeto-pythonSkill
- novo-projeto-rustSkill
- novo-projeto-siteSkill
- novo-projetoSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use together with the novo-projeto skill (the common workflow).
- Distinctive: line 38
Stop the server you started before handing over.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
New FastAPI project
Use together with the novo-projeto skill (the common workflow). It builds on the Python conventions (uv, src
layout, pytest, ruff); read novo-projeto-python too if it is installed.
Ask first (in the same panel interface as the common questions)
- First resource: the one thing the API does first (e.g. "tasks": list and create). Default: taken from the initial request.
- Storage: in memory for now, SQLite, or PostgreSQL. Default: in memory (a database is a later, separate step).
- Port: default 8000.
Create
uv init --package, then addfastapianduvicorn[standard];pytestandhttpxas dev dependencies.src/<package>/main.pywithapp = FastAPI(...), aGET /healthreturning{"status": "ok"}, and the first resource in its own router module (routers/<resource>.py) with Pydantic models for input and output.- Settings read from the environment (a small
Settingswith defaults;pydantic-settingsonly if needed), and an.env.examplewith empty values for anything secret. Never commit a real.env. - Tests with
fastapi.testclient.TestClient: health, and create + list of the first resource. - A run command in the README:
uv run uvicorn <package>.main:app --reload --port 8000.
Prove it works
uv run pytest
uv run ruff check .
uv run uvicorn <package>.main:app --port 8000 & # then:
curl -s localhost:8000/health
kill %1Stop the server you started before handing over.
Manual test to hand over
Steps like: start the server with the README command; open http://localhost:8000/docs and try the first resource
there; run the tests.
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
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.

