agentsclimarketplace

Explain feature

Skill X1nzhe/claude-fastapi-guide-plugin/skills/explain-feature

Explain how a specific FastAPI framework feature works in this codebase, citing exact files and line numbers. Use when the user asks "how does X work", "what does Y do", "where is Z implemented", or wants an architectural walkthrough of a feature such as routing, dependency injection, OpenAPI generation, security, or response serialization.From its SKILL.md

Install
npx -y skills add X1nzhe/claude-fastapi-guide-plugin --skill explain-feature

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.0 KB, as published. Nobody here has run it

Explain a FastAPI feature

When to use this skill

The user wants a guided, read-only walkthrough of an existing feature in the FastAPI source. Triggers:

  • "How does dependency injection work?"
  • "What does Annotated[T, Query(...)] do at runtime?"
  • "Where is the OpenAPI schema generated?"
  • "Walk me through how Depends(...) is resolved."
  • "What is _compat for?"

Do not use this skill when the user wants to change behavior, add a feature, or fix a bug — switch to a coding workflow instead.

Output shape

Reply with this structure:

  1. Summary — one paragraph, plain English, no jargon dump.
  2. Entry point — single path:line link where execution begins.
  3. Walkthrough — 3–7 numbered steps. Each step is one sentence + one path:line citation.
  4. Key symbols — short list (class / function name → file path).
  5. Tests that exercise it — one or two tests/test_*.py references the user can run.

Use markdown links: [fastapi/routing.py:412](fastapi/routing.py#L412). Every concrete claim needs a citation.

Where to look first (by question)

QuestionStart here
How does a request flow end-to-end?fastapi/applications.py → fastapi/routing.py APIRoute.get_route_handler → fastapi/dependencies/utils.py solve_dependencies
How are Query / Path / Body parsed?fastapi/params.py + fastapi/param_functions.py + fastapi/dependencies/utils.py::analyze_param
How does dependency resolution / caching work?fastapi/dependencies/utils.py solve_dependencies, get_dependant
How is the OpenAPI schema produced?fastapi/openapi/utils.py get_openapi; models in fastapi/openapi/models.py
How does response serialization decide a model?fastapi/routing.py serialize_response + fastapi/encoders.py jsonable_encoder
Where is auth wired?fastapi/security/ (entry: security/__init__.py)
Pydantic v1 vs v2 differences?fastapi/_compat/ (shared.py, v2.py)
Is there already a test for X?tests/test_<feature>.py mirror fastapi/ modules; grep -r "<symbol>" tests/
How does TestClient work?fastapi/testclient.py (re-export) + Starlette docs

If no row fits, grep -rn "<symbol>" fastapi/ for the user's exact symbol.

Workflow

  1. Map the question to an entry file using the table above. If no row fits, grep -rn "<symbol>" fastapi/ for the user's exact symbol.
  2. Read the entry file end-to-end. Don't trust class names — read the body. Note the public surface.
  3. Follow the call graph one hop at a time. For each cross-module call, read just the callee. Stop at Starlette, Pydantic, or _compat boundaries — name the boundary, don't dive in.
  4. Verify with a test. grep -rln "<symbol>" tests/ for at least one test that exercises the feature. Cite it so the reader can run it.
  5. Compose the answer in the output shape above. Every step gets one citation.

Conventions

  • Cite, don't paraphrase. A walkthrough step without path:line is not done.
  • Stay inside fastapi/. If the trail leaves the package, name the boundary call and stop.
  • No ASCII flowcharts. A numbered list with file links is more accurate.
  • Read-only. Never edit or write files in this skill. If the user pivots to "now change it", switch skills.
  • Cap at 7 steps. If the feature genuinely needs more, ask the user to split the question.

See also

  • skills/trace-data-flow/SKILL.md — sibling skill for end-to-end request traces (use when the user names a concrete request rather than a feature)
  • skills/fastapi-dependencies-internals/SKILL.md — DI-internals-specific guidance

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.