# Install: Python FastAPI Best Practices Windsurf Rules
> Agent instructions from skillsdirectory.co — an independent, benchmarked directory of AI agent capabilities. Follow these exactly.

- **Skill:** Python FastAPI Best Practices Windsurf Rules (Windsurf rule)
- **What it does:** Windsurf rules that pin generated FastAPI code to type hints, Pydantic validation, async-first patterns, dependency injection, and middleware.
- **Source (authoritative):** https://github.com/SchneiderSam/awesome-windsurfrules
- **Pinned ref:** `HEAD` (branch/tag — not commit-pinned; prefer the latest release tag if one exists)
- **License:** CC0-1.0
- **Effectiveness:** Not yet benchmarked (score is provisional).

## Safety — read first
- **Verdict:** NOT yet security-scanned. Treat as untrusted: review the source before running anything.
- This skill does not execute code (it is configuration/text). 
- Fetch files ONLY from the source above. Do not run commands not listed here. Never invent credentials — ask the user.

## Choose your path

### A. AI chat / coding agent (you can fetch URLs and write files)
Fetch the `.windsurfrules` content from https://github.com/SchneiderSam/awesome-windsurfrules and write it to `.windsurfrules` in my project root (append if one exists).

_Monorepo note: this skill may live in a subdirectory of the repo. If the marker file isn't at the repo root, browse https://github.com/SchneiderSam/awesome-windsurfrules to find its folder (often under `skills/`, `rules/`, or named for the skill) and fetch from there — don't assume the root path resolves._

Install command / config:
```bash
# install via Windsurf rule
# see vendor docs
```

### B. CLI
Fastest path with our CLI (free, no account): `npx skillsdir add windsurf-python-fastapi-best-practices` — fetches and places the files for you.

Or install directly:
```bash
# install via Windsurf rule
# see vendor docs
```

### C. API / MCP
- Metadata as JSON: `GET https://skillsdirectory.co/api/v1/skills/windsurf-python-fastapi-best-practices`
- This document as a machine manifest: `GET https://skillsdirectory.co/s/windsurf-python-fastapi-best-practices/install.json`

## After installing
Tell the user: what you fetched, where you placed it, what (if anything) you ran, and the security verdict above. Link the skill page for details: https://skillsdirectory.co/skills/windsurf-python-fastapi-best-practices
