Audit SD.Next API route definitions and verify endpoint parameters plus request/response signatures against declared FastAPI contracts.
60
70%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.github/skills/check-api/SKILL.mdRead modules/api/api.py, enumerate all registered endpoints, and validate that each endpoint has coherent request parameters and response signatures.
.github/instructions/core.instructions.md for relevant core runtime and API guidance before proceeding.modules/api/api.pyThis file is the route registration hub and must be treated as the source of truth for direct add_api_route(...) registrations.
modules/api/models.pymodules/api/endpoints.pymodules/api/generate.pymodules/api/process.pymodules/api/control.pyregister_api(...) from modules/api/* and feature modules (caption, lora, gallery, civitai, rembg, etc.)For every endpoint, verify in this order:
response_model is coherent with returned payload shape.auth=True default in add_api_route).self.add_api_route(...) call.For each handler symbol:
Flag issues such as:
response_model to handler return shape.response_model implies fields never returned.Api.register() delegates additional endpoints through module-level register_api(...) calls.
If feasible in the current environment:
app.routes metadata.If runtime schema checks are not feasible, include a note in the findings section stating that runtime checks were skipped, then rely on static validation.
Report findings ordered by severity:
For each finding include:
If no issues are found, state that explicitly and mention residual risk (for example runtime-only behavior not executed).
When this skill is used, return:
register_api(...) routes checkedc40fc01
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.