Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill covers adding main endpoints to the FastAPI application. Trigger: When setting up the main entry point for the application.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -27% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -74% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -60% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -34% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -48% | 0% |
<!-- L1:START -->
This skill covers adding main endpoints to the FastAPI application.
Trigger: When setting up the main entry point for the application. <!-- L1:END -->
<!-- L2:START -->
| Task | Pattern | |--------------------|-----------------------------| | Add health check | health | | Add detailed health | health_detailed |
<!-- L2:END -->
<!-- L3:START -->
Implements a basic health check endpoint to verify the service is running.
pythonfrom fastapi import FastAPI app = FastAPI() @app.get("/health") async def health(): return {"status": "healthy"}
Implements a detailed health check endpoint providing more information about the service status.
pythonfrom fastapi import FastAPI app = FastAPI() @app.get("/health/detailed") async def health_detailed(): return {"status": "healthy", "details": "All systems operational"}
bashdocker run -d -p 8000:8000 your-image-name
Exposing sensitive information can lead to security vulnerabilities.
python# BAD @app.get("/health/detailed") async def health_detailed(): return {"status": "healthy", "db_status": "connected", "secret_key": "12345"}
<!-- L3:END -->
Other measured skills in the registry, with their headline benchmark lift.