[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CBZF8JKTAMAB686Z8P0HV2":3,"skill-same:01M7CBZF8JKTAMAB686Z8P0HV2":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M7CBZF8JKTAMAB686Z8P0HV2","fastapi-expert",null,"Use when building high-performance async Python APIs with FastAPI and Pydantic V2. Invoke to create REST endpoints, define Pydantic models, implement authentication flows, set up async SQLAlchemy database operations, add JWT authentication, build WebSocket endpoints, or generate OpenAPI documentation. Trigger terms: FastAPI, Pydantic, async Python, Python API, REST API Python, SQLAlchemy async, JWT authentication, OpenAPI, Swagger Python.","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fjeffallan-claude-skills\u002Ffastapi-expert\u002Fskills\u002Ffastapi-expert\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: fastapi-expert\ndescription: \"Use when building high-performance async Python APIs with FastAPI and Pydantic V2. Invoke to create REST endpoints, define Pydantic models, implement authentication flows, set up async SQLAlchemy database operations, add JWT authentication, build WebSocket endpoints, or generate OpenAPI documentation. Trigger terms: FastAPI, Pydantic, async Python, Python API, REST API Python, SQLAlchemy async, JWT authentication, OpenAPI, Swagger Python.\"\nlicense: MIT\nmetadata:\n  author: https:\u002F\u002Fgithub.com\u002FJeffallan\n  version: \"1.1.0\"\n  domain: backend\n  triggers: FastAPI, Pydantic, async Python, Python API, REST API Python, SQLAlchemy async, JWT authentication, OpenAPI, Swagger Python\n  role: specialist\n  scope: implementation\n  output-format: code\n  related-skills: fullstack-guardian, django-expert, test-master\n---\n\n# FastAPI Expert\n\nDeep expertise in async Python, Pydantic V2, and production-grade API development with FastAPI.\n\n## When to Use This Skill\n\n- Building REST APIs with FastAPI\n- Implementing Pydantic V2 validation schemas\n- Setting up async database operations\n- Implementing JWT authentication\u002Fauthorization\n- Creating WebSocket endpoints\n- Optimizing API performance\n\n## Core Workflow\n\n1. **Analyze requirements** — Identify endpoints, data models, auth needs\n2. **Design schemas** — Create Pydantic V2 models for validation\n3. **Implement** — Write async endpoints with proper dependency injection\n4. **Secure** — Add authentication, authorization, rate limiting\n5. **Test** — Write async tests with pytest and httpx; run `pytest` after each endpoint group and verify OpenAPI docs at `\u002Fdocs`\n\n> **Checkpoint after each step:** confirm schemas validate correctly, endpoints return expected HTTP status codes, and `\u002Fdocs` reflects the intended API surface before proceeding.\n\n## Minimal Complete Example\n\nSchema + endpoint + dependency injection in one cohesive unit:\n\n```python\n# schemas.py\nfrom pydantic import BaseModel, EmailStr, field_validator, model_config\n\nclass UserCreate(BaseModel):\n    model_config = model_config(str_strip_whitespace=True)\n\n    email: EmailStr\n    password: str\n    name: str | None = None\n\n    @field_validator(\"password\")\n    @classmethod\n    def password_strength(cls, v: str) -> str:\n        if len(v) \u003C 8:\n            raise ValueError(\"Password must be at least 8 characters\")\n        return v\n\nclass UserResponse(BaseModel):\n    model_config = model_config(from_attributes=True)\n\n    id: int\n    email: EmailStr\n    name: str | None = None\n```\n\n```python\n# routers\u002Fusers.py\nfrom fastapi import APIRouter, Depends, HTTPException, status\nfrom sqlalchemy.ext.asyncio import AsyncSession\nfrom typing import Annotated\n\nfrom app.database import get_db\nfrom app.schemas import UserCreate, UserResponse\nfrom app import crud\n\nrouter = APIRouter(prefix=\"\u002Fusers\", tags=[\"users\"])\n\nDbDep = Annotated[AsyncSession, Depends(get_db)]\n\n@router.post(\"\u002F\", response_model=UserResponse, status_code=status.HTTP_201_CREATED)\nasync def create_user(payload: UserCreate, db: DbDep) -> UserResponse:\n    existing = await crud.get_user_by_email(db, payload.email)\n    if existing:\n        raise HTTPException(status_code=status.HTTP_409_CONFLICT, detail=\"Email already registered\")\n    return await crud.create_user(db, payload)\n```\n\n```python\n# crud.py\nfrom sqlalchemy import select\nfrom sqlalchemy.ext.asyncio import AsyncSession\nfrom app.models import User\nfrom app.schemas import UserCreate\nfrom app.security import hash_password\n\nasync def get_user_by_email(db: AsyncSession, email: str) -> User | None:\n    result = await db.execute(select(User).where(User.email == email))\n    return result.scalar_one_or_none()\n\nasync def create_user(db: AsyncSession, payload: UserCreate) -> User:\n    user = User(email=payload.email, hashed_password=hash_password(payload.password), name=payload.name)\n    db.add(user)\n    await db.commit()\n    await db.refresh(user)\n    return user\n```\n\n## JWT Authentication Snippet\n\n```python\n# security.py\nfrom datetime import datetime, timedelta, timezone\nfrom jose import JWTError, jwt\nfrom fastapi import Depends, HTTPException, status\nfrom fastapi.security import OAuth2PasswordBearer\nfrom typing import Annotated\n\nSECRET_KEY = \"read-from-env\"  # use os.environ \u002F settings\nALGORITHM = \"HS256\"\noauth2_scheme = OAuth2PasswordBearer(tokenUrl=\"\u002Fauth\u002Ftoken\")\n\ndef create_access_token(subject: str, expires_delta: timedelta = timedelta(minutes=30)) -> str:\n    payload = {\"sub\": subject, \"exp\": datetime.now(timezone.utc) + expires_delta}\n    return jwt.encode(payload, SECRET_KEY, algorithm=ALGORITHM)\n\nasync def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]) -> str:\n    try:\n        data = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])\n        subject: str | None = data.get(\"sub\")\n        if subject is None:\n            raise ValueError\n        return subject\n    except (JWTError, ValueError):\n        raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail=\"Invalid credentials\")\n\nCurrentUser = Annotated[str, Depends(get_current_user)]\n```\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Pydantic V2 | `references\u002Fpydantic-v2.md` | Creating schemas, validation, model_config |\n| SQLAlchemy | `references\u002Fasync-sqlalchemy.md` | Async database, models, CRUD operations |\n| Endpoints | `references\u002Fendpoints-routing.md` | APIRouter, dependencies, routing |\n| Authentication | `references\u002Fauthentication.md` | JWT, OAuth2, get_current_user |\n| Testing | `references\u002Ftesting-async.md` | pytest-asyncio, httpx, fixtures |\n| Django Migration | `references\u002Fmigration-from-django.md` | Migrating from Django\u002FDRF to FastAPI |\n\n## Constraints\n\n### MUST DO\n- Use type hints everywhere (FastAPI requires them)\n- Use Pydantic V2 syntax (`field_validator`, `model_validator`, `model_config`)\n- Use `Annotated` pattern for dependency injection\n- Use async\u002Fawait for all I\u002FO operations\n- Use `X | None` instead of `Optional[X]`\n- Return proper HTTP status codes\n- Document endpoints (auto-generated OpenAPI)\n\n### MUST NOT DO\n- Use synchronous database operations\n- Skip Pydantic validation\n- Store passwords in plain text\n- Expose sensitive data in responses\n- Use Pydantic V1 syntax (`@validator`, `class Config`)\n- Mix sync and async code improperly\n- Hardcode configuration values\n\n## Output Templates\n\nWhen implementing FastAPI features, provide:\n1. Schema file (Pydantic models)\n2. Endpoint file (router with endpoints)\n3. CRUD operations if database involved\n4. Brief explanation of key decisions\n\n## Knowledge Reference\n\nFastAPI, Pydantic V2, async SQLAlchemy, Alembic migrations, JWT\u002FOAuth2, pytest-asyncio, httpx, BackgroundTasks, WebSockets, dependency injection, OpenAPI\u002FSwagger\n\n[Documentation](https:\u002F\u002Fjeffallan.github.io\u002Fclaude-skills\u002Fskills\u002Fbackend\u002Ffastapi-expert\u002F)\n","# FastAPI Expert\n\nDeep expertise in async Python, Pydantic V2, and production-grade API development with FastAPI.\n\n## When to Use This Skill\n\n- Building REST APIs with FastAPI\n- Implementing Pydantic V2 validation schemas\n- Setting up async database operations\n- Implementing JWT authentication\u002Fauthorization\n- Creating WebSocket endpoints\n- Optimizing API performance\n\n## Core Workflow\n\n1. **Analyze requirements** — Identify endpoints, data models, auth needs\n2. **Design schemas** — Create Pydantic V2 models for validation\n3. **Implement** — Write async endpoints with proper dependency injection\n4. **Secure** — Add authentication, authorization, rate limiting\n5. **Test** — Write async tests with pytest and httpx; run `pytest` after each endpoint group and verify OpenAPI docs at `\u002Fdocs`\n\n> **Checkpoint after each step:** confirm schemas validate correctly, endpoints return expected HTTP status codes, and `\u002Fdocs` reflects the intended API surface before proceeding.\n\n## Minimal Complete Example\n\nSchema + endpoint + dependency injection in one cohesive unit:\n\n```python\n# schemas.py\nfrom pydantic import BaseModel, EmailStr, field_validator, model_config\n\nclass UserCreate(BaseModel):\n    model_config = model_config(str_strip_whitespace=True)\n\n    email: EmailStr\n    password: str\n    name: str | None = None\n\n    @field_validator(\"password\")\n    @classmethod\n    def password_strength(cls, v: str) -> str:\n        if len(v) \u003C 8:\n            raise ValueError(\"Password must be at least 8 characters\")\n        return v\n\nclass UserResponse(BaseModel):\n    model_config = model_config(from_attributes=True)\n\n    id: int\n    email: EmailStr\n    name: str | None = None\n```\n\n```python\n# routers\u002Fusers.py\nfrom fastapi import APIRouter, Depends, HTTPException, status\nfrom sqlalchemy.ext.asyncio import AsyncSession\nfrom typing import Annotated\n\nfrom app.database import get_db\nfrom app.schemas import UserCreate, UserResponse\nfrom app import crud\n\nrouter = APIRouter(prefix=\"\u002Fusers\", tags=[\"users\"])\n\nDbDep = Annotated[AsyncSession, Depends(get_db)]\n\n@router.post(\"\u002F\", response_model=UserResponse, status_code=status.HTTP_201_CREATED)\nasync def create_user(payload: UserCreate, db: DbDep) -> UserResponse:\n    existing = await crud.get_user_by_email(db, payload.email)\n    if existing:\n        raise HTTPException(status_code=status.HTTP_409_CONFLICT, detail=\"Email already registered\")\n    return await crud.create_user(db, payload)\n```\n\n```python\n# crud.py\nfrom sqlalchemy import select\nfrom sqlalchemy.ext.asyncio import AsyncSession\nfrom app.models import User\nfrom app.schemas import UserCreate\nfrom app.security import hash_password\n\nasync def get_user_by_email(db: AsyncSession, email: str) -> User | None:\n    result = await db.execute(select(User).where(User.email == email))\n    return result.scalar_one_or_none()\n\nasync def create_user(db: AsyncSession, payload: UserCreate) -> User:\n    user = User(email=payload.email, hashed_password=hash_password(payload.password), name=payload.name)\n    db.add(user)\n    await db.commit()\n    await db.refresh(user)\n    return user\n```\n\n## JWT Authentication Snippet\n\n```python\n# security.py\nfrom datetime import datetime, timedelta, timezone\nfrom jose import JWTError, jwt\nfrom fastapi import Depends, HTTPException, status\nfrom fastapi.security import OAuth2PasswordBearer\nfrom typing import Annotated\n\nSECRET_KEY = \"read-from-env\"  # use os.environ \u002F settings\nALGORITHM = \"HS256\"\noauth2_scheme = OAuth2PasswordBearer(tokenUrl=\"\u002Fauth\u002Ftoken\")\n\ndef create_access_token(subject: str, expires_delta: timedelta = timedelta(minutes=30)) -> str:\n    payload = {\"sub\": subject, \"exp\": datetime.now(timezone.utc) + expires_delta}\n    return jwt.encode(payload, SECRET_KEY, algorithm=ALGORITHM)\n\nasync def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]) -> str:\n    try:\n        data = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])\n        subject: str | None = data.get(\"sub\")\n        if subject is None:\n            raise ValueError\n        return subject\n    except (JWTError, ValueError):\n        raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail=\"Invalid credentials\")\n\nCurrentUser = Annotated[str, Depends(get_current_user)]\n```\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Pydantic V2 | `references\u002Fpydantic-v2.md` | Creating schemas, validation, model_config |\n| SQLAlchemy | `references\u002Fasync-sqlalchemy.md` | Async database, models, CRUD operations |\n| Endpoints | `references\u002Fendpoints-routing.md` | APIRouter, dependencies, routing |\n| Authentication | `references\u002Fauthentication.md` | JWT, OAuth2, get_current_user |\n| Testing | `references\u002Ftesting-async.md` | pytest-asyncio, httpx, fixtures |\n| Django Migration | `references\u002Fmigration-from-django.md` | Migrating from Django\u002FDRF to FastAPI |\n\n## Constraints\n\n### MUST DO\n- Use type hints everywhere (FastAPI requires them)\n- Use Pydantic V2 syntax (`field_validator`, `model_validator`, `model_config`)\n- Use `Annotated` pattern for dependency injection\n- Use async\u002Fawait for all I\u002FO operations\n- Use `X | None` instead of `Optional[X]`\n- Return proper HTTP status codes\n- Document endpoints (auto-generated OpenAPI)\n\n### MUST NOT DO\n- Use synchronous database operations\n- Skip Pydantic validation\n- Store passwords in plain text\n- Expose sensitive data in responses\n- Use Pydantic V1 syntax (`@validator`, `class Config`)\n- Mix sync and async code improperly\n- Hardcode configuration values\n\n## Output Templates\n\nWhen implementing FastAPI features, provide:\n1. Schema file (Pydantic models)\n2. Endpoint file (router with endpoints)\n3. CRUD operations if database involved\n4. Brief explanation of key decisions\n\n## Knowledge Reference\n\nFastAPI, Pydantic V2, async SQLAlchemy, Alembic migrations, JWT\u002FOAuth2, pytest-asyncio, httpx, BackgroundTasks, WebSockets, dependency injection, OpenAPI\u002FSwagger\n\n[Documentation](https:\u002F\u002Fjeffallan.github.io\u002Fclaude-skills\u002Fskills\u002Fbackend\u002Ffastapi-expert\u002F)\n",{"name":5,"license":15,"metadata":24,"description":7},{"role":25,"scope":26,"author":27,"domain":28,"version":29,"triggers":30,"output-format":31,"related-skills":32},"specialist","implementation","https:\u002F\u002Fgithub.com\u002FJeffallan","backend","1.1.0","FastAPI, Pydantic, async Python, Python API, REST API Python, SQLAlchemy async, JWT authentication, OpenAPI, Swagger Python","code","fullstack-guardian, django-expert, test-master","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fjeffallan-claude-skills\u002Ffastapi-expert\u002Fskills\u002Ffastapi-expert",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill fastapi-expert",{"tool":47,"command":48},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill fastapi-expert",{"tool":50,"command":51},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill fastapi-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fjeffallan-claude-skills\u002Ffastapi-expert\u002Fskills\u002Ffastapi-expert\u002FSKILL.md",true,[],[56,63,68,75,80,87],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":64,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":76,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":88,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]