[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CA428DCGQ7R0FSA95SRY31":3,"skill-same:01M7CA428DCGQ7R0FSA95SRY31":86},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CA428DCGQ7R0FSA95SRY31","fastapi-full-stack",null,"Enterprise-grade FastAPI development covering complete full-stack architecture with Next.js\u002FReact frontend, Neon Serverless PostgreSQL, SQLModel ORM, security hardening, payment integrations (Stripe, JazzCash, EasyPaisa), async patterns, real-time features, microservices, and production deployment. Use when building APIs, integrating with databases, implementing authentication\u002Fauthorization, payment systems, real-time functionality, or deploying to production.","shenyimings\u002Fskillet","shenyimings","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89332218?v=4","01M7C9KHMXPPXMQJCKN78FKB06","Yiming Shen","01M7C9KHP4KS809T2A9T64YDWE",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002FSHAJAR5110__Hackathon-II-phase2__.claude__skills__fastapi-expert\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: fastapi-full-stack\ndescription: Enterprise-grade FastAPI development covering complete full-stack architecture with Next.js\u002FReact frontend, Neon Serverless PostgreSQL, SQLModel ORM, security hardening, payment integrations (Stripe, JazzCash, EasyPaisa), async patterns, real-time features, microservices, and production deployment. Use when building APIs, integrating with databases, implementing authentication\u002Fauthorization, payment systems, real-time functionality, or deploying to production.\n---\n\n# FastAPI Full Stack Development\n\nProduction-grade FastAPI applications require comprehensive architecture across database design, security, API patterns, payment processing, and deployment. This skill provides enterprise-level guidance covering all aspects of building scalable, secure APIs integrated with modern frontend frameworks.\n\n## Core Architecture\n\n### Project Structure\nOrganize FastAPI projects for scalability and maintainability:\n\n```\nmy_api\u002F\n├── app\u002F\n│   ├── __init__.py\n│   ├── main.py              # Application entry point\n│   ├── config.py            # Configuration & environment\n│   ├── models\u002F              # SQLModel database models\n│   │   ├── __init__.py\n│   │   ├── user.py\n│   │   ├── payment.py\n│   │   └── order.py\n│   ├── schemas\u002F             # Pydantic request\u002Fresponse models\n│   │   ├── __init__.py\n│   │   ├── user.py\n│   │   └── payment.py\n│   ├── routes\u002F              # API endpoint routers\n│   │   ├── __init__.py\n│   │   ├── users.py\n│   │   ├── auth.py\n│   │   └── payments.py\n│   ├── services\u002F            # Business logic layer\n│   │   ├── __init__.py\n│   │   ├── user_service.py\n│   │   └── payment_service.py\n│   ├── dependencies\u002F        # Dependency injection\n│   │   ├── __init__.py\n│   │   ├── auth.py\n│   │   └── database.py\n│   ├── middleware\u002F          # Custom middleware\n│   │   ├── __init__.py\n│   │   ├── cors.py\n│   │   └── security.py\n│   └── utils\u002F               # Helper functions\n│       ├── __init__.py\n│       └── validators.py\n├── tests\u002F\n│   ├── __init__.py\n│   ├── conftest.py\n│   ├── test_users.py\n│   └── test_payments.py\n├── migrations\u002F              # Alembic migrations\n├── requirements.txt\n├── .env\n├── .env.example\n└── docker-compose.yml\n```\n\n### Configuration Management\n\nUse Pydantic BaseSettings for environment-based configuration:\n\n```python\n# app\u002Fconfig.py\nfrom pydantic_settings import BaseSettings\nfrom typing import Optional\n\nclass Settings(BaseSettings):\n    # Database\n    database_url: str\n    db_echo: bool = False\n    \n    # JWT\n    secret_key: str\n    algorithm: str = \"HS256\"\n    access_token_expire_minutes: int = 30\n    refresh_token_expire_days: int = 7\n    \n    # Security\n    allowed_origins: list[str] = [\"http:\u002F\u002Flocalhost:3000\"]\n    cors_credentials: bool = True\n    \n    # Payments\n    stripe_secret_key: str\n    stripe_publishable_key: str\n    stripe_webhook_secret: str\n    \n    # Email\n    smtp_server: str\n    smtp_port: int = 587\n    smtp_user: str\n    smtp_password: str\n    \n    # App\n    debug: bool = False\n    environment: str = \"development\"\n    \n    class Config:\n        env_file = \".env\"\n        case_sensitive = False\n\nsettings = Settings()\n```\n\n## Database Layer with Neon & SQLModel\n\n### Connection Setup for Serverless\n\nNeon's serverless PostgreSQL requires specific connection pooling configuration:\n\n```python\n# app\u002Fdependencies\u002Fdatabase.py\nfrom sqlmodel import SQLModel, create_engine, Session\nfrom sqlalchemy.pool import NullPool\nfrom app.config import settings\n\n# Critical: Use NullPool for serverless (no persistent connections)\nengine = create_engine(\n    settings.database_url,\n    echo=settings.db_echo,\n    poolclass=NullPool,  # Essential for Neon serverless\n    connect_args={\n        \"connect_timeout\": 5,\n        \"application_name\": \"my_api\"\n    }\n)\n\ndef create_db_and_tables():\n    SQLModel.metadata.create_all(engine)\n\ndef get_session():\n    with Session(engine) as session:\n        yield session\n```\n\n### Model Definitions with Validation\n\nDesign SQLModel models with security and validation:\n\n```python\n# app\u002Fmodels\u002Fuser.py\nfrom sqlmodel import SQLModel, Field, Relationship\nfrom datetime import datetime\nfrom typing import Optional\nfrom pydantic import EmailStr, field_validator\n\nclass UserBase(SQLModel):\n    email: EmailStr = Field(unique=True, index=True)\n    full_name: str = Field(min_length=1, max_length=255)\n    is_active: bool = True\n    \nclass User(UserBase, table=True):\n    __tablename__ = \"users\"\n    \n    id: Optional[int] = Field(default=None, primary_key=True)\n    hashed_password: str = Field(min_length=60)  # bcrypt hash\n    created_at: datetime = Field(default_factory=datetime.utcnow)\n    updated_at: datetime = Field(default_factory=datetime.utcnow)\n    deleted_at: Optional[datetime] = None\n    role: str = Field(default=\"user\", index=True)\n    \n    # Relationships\n    payments: list[\"Payment\"] = Relationship(back_populates=\"user\")\n    \n    class Config:\n        json_schema_extra = {\n            \"example\": {\n                \"email\": \"user@example.com\",\n                \"full_name\": \"John Doe\",\n                \"is_active\": True\n            }\n        }\n\nclass UserCreate(UserBase):\n    password: str = Field(min_length=8)\n    \n    @field_validator('password')\n    @classmethod\n    def validate_password(cls, v):\n        if not any(c.isupper() for c in v):\n            raise ValueError('Password must contain uppercase letter')\n        if not any(c.isdigit() for c in v):\n            raise ValueError('Password must contain digit')\n        return v\n\nclass UserResponse(UserBase):\n    id: int\n    created_at: datetime\n    role: str\n```\n\nSee **[DATABASE.md](references\u002Fdatabase.md)** for migrations, relationships, indexing, and advanced patterns.\n\n## Authentication & Authorization\n\n### JWT Implementation\n\n```python\n# app\u002Fdependencies\u002Fauth.py\nfrom fastapi import Depends, HTTPException, status\nfrom fastapi.security import OAuth2PasswordBearer\nfrom jose import JWTError, jwt\nfrom datetime import datetime, timedelta\nfrom passlib.context import CryptContext\nfrom app.config import settings\nfrom sqlmodel import Session, select\nfrom app.models.user import User\n\npwd_context = CryptContext(schemes=[\"bcrypt\"], deprecated=\"auto\")\noauth2_scheme = OAuth2PasswordBearer(tokenUrl=\"token\")\n\ndef create_access_token(data: dict, expires_delta: Optional[timedelta] = None):\n    to_encode = data.copy()\n    expire = datetime.utcnow() + (expires_delta or timedelta(minutes=settings.access_token_expire_minutes))\n    to_encode.update({\"exp\": expire, \"type\": \"access\"})\n    return jwt.encode(to_encode, settings.secret_key, algorithm=settings.algorithm)\n\ndef create_refresh_token(user_id: int):\n    data = {\"sub\": str(user_id), \"type\": \"refresh\"}\n    expire = datetime.utcnow() + timedelta(days=settings.refresh_token_expire_days)\n    data[\"exp\"] = expire\n    return jwt.encode(data, settings.secret_key, algorithm=settings.algorithm)\n\nasync def get_current_user(\n    token: str = Depends(oauth2_scheme),\n    session: Session = Depends(get_session)\n) -> User:\n    credentials_exception = HTTPException(\n        status_code=status.HTTP_401_UNAUTHORIZED,\n        detail=\"Could not validate credentials\",\n        headers={\"WWW-Authenticate\": \"Bearer\"}\n    )\n    try:\n        payload = jwt.decode(token, settings.secret_key, algorithms=[settings.algorithm])\n        user_id: str = payload.get(\"sub\")\n        token_type: str = payload.get(\"type\")\n        \n        if user_id is None or token_type != \"access\":\n            raise credentials_exception\n    except JWTError:\n        raise credentials_exception\n    \n    user = session.exec(select(User).where(User.id == int(user_id))).first()\n    if user is None:\n        raise credentials_exception\n    \n    return user\n\ndef verify_admin(current_user: User = Depends(get_current_user)):\n    if current_user.role != \"admin\":\n        raise HTTPException(\n            status_code=status.HTTP_403_FORBIDDEN,\n            detail=\"Admin access required\"\n        )\n    return current_user\n```\n\nSee **[SECURITY.md](references\u002Fsecurity.md)** for role-based access control, OAuth2, password reset flows, and security best practices.\n\n## API Routes & Patterns\n\n### RESTful Endpoint Design\n\n```python\n# app\u002Froutes\u002Fusers.py\nfrom fastapi import APIRouter, Depends, HTTPException, Query, status\nfrom typing import List\nfrom sqlmodel import Session, select\nfrom app.models.user import User\nfrom app.schemas.user import UserCreate, UserResponse\nfrom app.dependencies.auth import get_current_user\nfrom app.dependencies.database import get_session\nfrom app.services.user_service import UserService\n\nrouter = APIRouter(prefix=\"\u002Fapi\u002Fv1\u002Fusers\", tags=[\"users\"])\nuser_service = UserService()\n\n@router.get(\"\u002F\", response_model=List[UserResponse])\nasync def list_users(\n    skip: int = Query(0, ge=0),\n    limit: int = Query(10, ge=1, le=100),\n    session: Session = Depends(get_session),\n    current_user: User = Depends(get_current_user)\n):\n    \"\"\"List all users with pagination - requires authentication\"\"\"\n    statement = select(User).where(User.deleted_at == None).offset(skip).limit(limit)\n    users = session.exec(statement).all()\n    return users\n\n@router.post(\"\u002F\", response_model=UserResponse, status_code=status.HTTP_201_CREATED)\nasync def create_user(\n    user_in: UserCreate,\n    session: Session = Depends(get_session)\n):\n    \"\"\"Create new user - no auth required for registration\"\"\"\n    existing_user = session.exec(select(User).where(User.email == user_in.email)).first()\n    if existing_user:\n        raise HTTPException(\n            status_code=status.HTTP_400_BAD_REQUEST,\n            detail=\"Email already registered\"\n        )\n    \n    user = await user_service.create_user(user_in, session)\n    return user\n\n@router.get(\"\u002F{user_id}\", response_model=UserResponse)\nasync def get_user(\n    user_id: int,\n    session: Session = Depends(get_session),\n    current_user: User = Depends(get_current_user)\n):\n    \"\"\"Get user by ID\"\"\"\n    user = session.exec(select(User).where(User.id == user_id)).first()\n    if not user:\n        raise HTTPException(status_code=404, detail=\"User not found\")\n    return user\n\n@router.put(\"\u002F{user_id}\", response_model=UserResponse)\nasync def update_user(\n    user_id: int,\n    user_in: UserCreate,\n    session: Session = Depends(get_session),\n    current_user: User = Depends(get_current_user)\n):\n    \"\"\"Update user - only owners or admins\"\"\"\n    if current_user.id != user_id and current_user.role != \"admin\":\n        raise HTTPException(status_code=403, detail=\"Not authorized\")\n    \n    user = session.exec(select(User).where(User.id == user_id)).first()\n    if not user:\n        raise HTTPException(status_code=404, detail=\"User not found\")\n    \n    user = await user_service.update_user(user, user_in, session)\n    return user\n\n@router.delete(\"\u002F{user_id}\", status_code=status.HTTP_204_NO_CONTENT)\nasync def delete_user(\n    user_id: int,\n    session: Session = Depends(get_session),\n    current_user: User = Depends(get_current_user)\n):\n    \"\"\"Soft delete user\"\"\"\n    if current_user.id != user_id and current_user.role != \"admin\":\n        raise HTTPException(status_code=403, detail=\"Not authorized\")\n    \n    user = session.exec(select(User).where(User.id == user_id)).first()\n    if not user:\n        raise HTTPException(status_code=404, detail=\"User not found\")\n    \n    await user_service.delete_user(user, session)\n```\n\n## Payment Integration\n\n### Stripe Implementation\n\nSee **[PAYMENTS.md](references\u002Fpayments.md)** for complete Stripe, JazzCash, and EasyPaisa integration patterns including webhook handling, transaction management, and error recovery.\n\n### Webhook Pattern\n\n```python\n# app\u002Froutes\u002Fpayments.py\nfrom fastapi import APIRouter, Request, HTTPException\nimport stripe\nfrom app.config import settings\n\nrouter = APIRouter(prefix=\"\u002Fapi\u002Fv1\u002Fpayments\", tags=[\"payments\"])\n\n@router.post(\"\u002Fwebhook\u002Fstripe\")\nasync def stripe_webhook(request: Request, session: Session = Depends(get_session)):\n    \"\"\"Handle Stripe webhook events securely\"\"\"\n    payload = await request.body()\n    sig_header = request.headers.get(\"stripe-signature\")\n    \n    try:\n        event = stripe.Webhook.construct_event(\n            payload, sig_header, settings.stripe_webhook_secret\n        )\n    except ValueError:\n        raise HTTPException(status_code=400, detail=\"Invalid payload\")\n    except stripe.error.SignatureVerificationError:\n        raise HTTPException(status_code=403, detail=\"Invalid signature\")\n    \n    # Handle events\n    if event[\"type\"] == \"checkout.session.completed\":\n        await handle_checkout_completed(event[\"data\"][\"object\"], session)\n    elif event[\"type\"] == \"charge.refunded\":\n        await handle_charge_refunded(event[\"data\"][\"object\"], session)\n    \n    return {\"status\": \"received\"}\n```\n\n## Middleware & Security\n\n### Security Headers Middleware\n\n```python\n# app\u002Fmiddleware\u002Fsecurity.py\nfrom fastapi import Request\nfrom fastapi.responses import Response\nimport time\n\nasync def add_security_headers(request: Request, call_next):\n    response = await call_next(request)\n    \n    # Content Security\n    response.headers[\"X-Content-Type-Options\"] = \"nosniff\"\n    response.headers[\"X-Frame-Options\"] = \"DENY\"\n    response.headers[\"X-XSS-Protection\"] = \"1; mode=block\"\n    \n    # HSTS (HTTP Strict Transport Security)\n    response.headers[\"Strict-Transport-Security\"] = \"max-age=31536000; includeSubDomains; preload\"\n    \n    # Additional\n    response.headers[\"Content-Security-Policy\"] = \"default-src 'self'\"\n    response.headers[\"Referrer-Policy\"] = \"strict-origin-when-cross-origin\"\n    \n    return response\n\nasync def request_logging(request: Request, call_next):\n    \"\"\"Log all requests with response times\"\"\"\n    start_time = time.time()\n    response = await call_next(request)\n    process_time = time.time() - start_time\n    response.headers[\"X-Process-Time\"] = str(process_time)\n    return response\n```\n\nSee **[SECURITY.md](references\u002Fsecurity.md)** for CORS configuration, rate limiting, and comprehensive security hardening.\n\n## Testing\n\nUse pytest for comprehensive test coverage:\n\n```python\n# tests\u002Fconftest.py\nimport pytest\nfrom fastapi.testclient import TestClient\nfrom sqlmodel import Session, create_engine, SQLModel\nfrom sqlmodel.pool import StaticPool\nfrom app.main import app\nfrom app.dependencies.database import get_session\n\n@pytest.fixture(name=\"session\")\ndef session_fixture():\n    engine = create_engine(\n        \"sqlite:\u002F\u002F\u002F:memory:\",\n        connect_args={\"check_same_thread\": False},\n        poolclass=StaticPool,\n    )\n    SQLModel.metadata.create_all(engine)\n    with Session(engine) as session:\n        yield session\n\n@pytest.fixture(name=\"client\")\ndef client_fixture(session: Session):\n    def get_session_override():\n        return session\n    \n    app.dependency_overrides[get_session] = get_session_override\n    client = TestClient(app)\n    yield client\n    app.dependency_overrides.clear()\n\n# tests\u002Ftest_users.py\ndef test_create_user(client: TestClient):\n    response = client.post(\"\u002Fapi\u002Fv1\u002Fusers\", json={\n        \"email\": \"test@example.com\",\n        \"full_name\": \"Test User\",\n        \"password\": \"SecurePass123\"\n    })\n    assert response.status_code == 201\n    assert response.json()[\"email\"] == \"test@example.com\"\n\ndef test_auth_required(client: TestClient):\n    response = client.get(\"\u002Fapi\u002Fv1\u002Fusers\")\n    assert response.status_code == 401\n```\n\n## Next.js\u002FReact Integration\n\n### Frontend API Client Setup\n\n```typescript\n\u002F\u002F lib\u002Fapi.ts\nimport axios from 'axios';\nimport { useRouter } from 'next\u002Frouter';\n\nconst apiClient = axios.create({\n  baseURL: process.env.NEXT_PUBLIC_API_URL || 'http:\u002F\u002Flocalhost:8000',\n  timeout: 10000,\n});\n\n\u002F\u002F Token management\napiClient.interceptors.request.use((config) => {\n  const token = localStorage.getItem('access_token');\n  if (token) {\n    config.headers.Authorization = `Bearer ${token}`;\n  }\n  return config;\n});\n\n\u002F\u002F Handle token refresh on 401\napiClient.interceptors.response.use(\n  (response) => response,\n  async (error) => {\n    if (error.response?.status === 401) {\n      const refreshToken = localStorage.getItem('refresh_token');\n      if (refreshToken) {\n        try {\n          const { data } = await axios.post('\u002Fapi\u002Fv1\u002Fauth\u002Frefresh', {\n            refresh_token: refreshToken\n          });\n          localStorage.setItem('access_token', data.access_token);\n          return apiClient(error.config);\n        } catch {\n          localStorage.removeItem('access_token');\n          localStorage.removeItem('refresh_token');\n        }\n      }\n    }\n    return Promise.reject(error);\n  }\n);\n\nexport default apiClient;\n```\n\nSee **[FRONTEND.md](references\u002Ffrontend.md)** for complete Next.js\u002FReact setup and integration patterns.\n\n## Deployment & Production\n\n### Docker Configuration\n\nSee **[DEPLOYMENT.md](references\u002Fdeployment.md)** for Docker, Kubernetes, serverless deployment, CI\u002FCD pipelines, and monitoring setup.\n\n### Environment Variables\n\n```bash\n# .env.production\nDATABASE_URL=postgresql:\u002F\u002Fuser:password@neon-endpoint\u002Fdbname\nSECRET_KEY=your-secret-key-minimum-32-characters-long\nALGORITHM=HS256\nACCESS_TOKEN_EXPIRE_MINUTES=30\nREFRESH_TOKEN_EXPIRE_DAYS=7\n\nSTRIPE_SECRET_KEY=sk_live_...\nSTRIPE_PUBLISHABLE_KEY=pk_live_...\nSTRIPE_WEBHOOK_SECRET=whsec_...\n\nALLOWED_ORIGINS=https:\u002F\u002Fyourdomain.com,https:\u002F\u002Fapi.yourdomain.com\nDEBUG=False\nENVIRONMENT=production\n```\n\n## Key Security Checklist\n\n✅ **Input Validation** - All inputs validated via Pydantic  \n✅ **Password Security** - Bcrypt hashing, complexity requirements  \n✅ **JWT** - Short expiration times, refresh token rotation  \n✅ **CORS** - Strictly configured for frontend only  \n✅ **SQL Injection** - Parameterized queries (SQLModel handles)  \n✅ **Rate Limiting** - On auth and payment endpoints  \n✅ **HTTPS** - Enforced with HSTS header  \n✅ **Secrets** - Environment variables, never committed  \n✅ **Logging** - Comprehensive without sensitive data  \n✅ **Dependencies** - Regular updates and security patches  \n\n## Quick Start Commands\n\n```bash\n# New project setup\npython scripts\u002Fgenerate_boilerplate.py --name my_api\ncd my_api\npython -m venv venv\nsource venv\u002Fbin\u002Factivate\npip install -r requirements.txt\n\n# Database\nalembic upgrade head\n\n# Development\nuvicorn app.main:app --reload\n\n# Testing\npytest -v --cov=app\n\n# Production\ngunicorn app.main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker\n```\n\n## Resource Files\n\n- **[DATABASE.md](references\u002Fdatabase.md)** - Complete database patterns, migrations, relationships\n- **[SECURITY.md](references\u002Fsecurity.md)** - Auth, authorization, security hardening\n- **[ROUTES.md](references\u002Froutes.md)** - API design patterns, error handling, validation\n- **[PAYMENTS.md](references\u002Fpayments.md)** - Stripe, JazzCash, EasyPaisa integration\n- **[FRONTEND.md](references\u002Ffrontend.md)** - Next.js\u002FReact integration patterns\n- **[TESTING.md](references\u002Ftesting.md)** - Test strategies, fixtures, coverage\n- **[DEPLOYMENT.md](references\u002Fdeployment.md)** - Docker, Kubernetes, CI\u002FCD, monitoring\n- **[EXAMPLES.md](references\u002Fexamples.md)** - Complete working examples\n\n## Script Resources\n\n- **[generate_boilerplate.py](scripts\u002Fgenerate_boilerplate.py)** - Create complete project structure\n- **[security_audit.py](scripts\u002Fsecurity_audit.py)** - Scan for vulnerabilities\n- **[db_migrate.py](scripts\u002Fdb_migrate.py)** - Migration utilities","# FastAPI Full Stack Development\n\nProduction-grade FastAPI applications require comprehensive architecture across database design, security, API patterns, payment processing, and deployment. This skill provides enterprise-level guidance covering all aspects of building scalable, secure APIs integrated with modern frontend frameworks.\n\n## Core Architecture\n\n### Project Structure\nOrganize FastAPI projects for scalability and maintainability:\n\n```\nmy_api\u002F\n├── app\u002F\n│   ├── __init__.py\n│   ├── main.py              # Application entry point\n│   ├── config.py            # Configuration & environment\n│   ├── models\u002F              # SQLModel database models\n│   │   ├── __init__.py\n│   │   ├── user.py\n│   │   ├── payment.py\n│   │   └── order.py\n│   ├── schemas\u002F             # Pydantic request\u002Fresponse models\n│   │   ├── __init__.py\n│   │   ├── user.py\n│   │   └── payment.py\n│   ├── routes\u002F              # API endpoint routers\n│   │   ├── __init__.py\n│   │   ├── users.py\n│   │   ├── auth.py\n│   │   └── payments.py\n│   ├── services\u002F            # Business logic layer\n│   │   ├── __init__.py\n│   │   ├── user_service.py\n│   │   └── payment_service.py\n│   ├── dependencies\u002F        # Dependency injection\n│   │   ├── __init__.py\n│   │   ├── auth.py\n│   │   └── database.py\n│   ├── middleware\u002F          # Custom middleware\n│   │   ├── __init__.py\n│   │   ├── cors.py\n│   │   └── security.py\n│   └── utils\u002F               # Helper functions\n│       ├── __init__.py\n│       └── validators.py\n├── tests\u002F\n│   ├── __init__.py\n│   ├── conftest.py\n│   ├── test_users.py\n│   └── test_payments.py\n├── migrations\u002F              # Alembic migrations\n├── requirements.txt\n├── .env\n├── .env.example\n└── docker-compose.yml\n```\n\n### Configuration Management\n\nUse Pydantic BaseSettings for environment-based configuration:\n\n```python\n# app\u002Fconfig.py\nfrom pydantic_settings import BaseSettings\nfrom typing import Optional\n\nclass Settings(BaseSettings):\n    # Database\n    database_url: str\n    db_echo: bool = False\n    \n    # JWT\n    secret_key: str\n    algorithm: str = \"HS256\"\n    access_token_expire_minutes: int = 30\n    refresh_token_expire_days: int = 7\n    \n    # Security\n    allowed_origins: list[str] = [\"http:\u002F\u002Flocalhost:3000\"]\n    cors_credentials: bool = True\n    \n    # Payments\n    stripe_secret_key: str\n    stripe_publishable_key: str\n    stripe_webhook_secret: str\n    \n    # Email\n    smtp_server: str\n    smtp_port: int = 587\n    smtp_user: str\n    smtp_password: str\n    \n    # App\n    debug: bool = False\n    environment: str = \"development\"\n    \n    class Config:\n        env_file = \".env\"\n        case_sensitive = False\n\nsettings = Settings()\n```\n\n## Database Layer with Neon & SQLModel\n\n### Connection Setup for Serverless\n\nNeon's serverless PostgreSQL requires specific connection pooling configuration:\n\n```python\n# app\u002Fdependencies\u002Fdatabase.py\nfrom sqlmodel import SQLModel, create_engine, Session\nfrom sqlalchemy.pool import NullPool\nfrom app.config import settings\n\n# Critical: Use NullPool for serverless (no persistent connections)\nengine = create_engine(\n    settings.database_url,\n    echo=settings.db_echo,\n    poolclass=NullPool,  # Essential for Neon serverless\n    connect_args={\n        \"connect_timeout\": 5,\n        \"application_name\": \"my_api\"\n    }\n)\n\ndef create_db_and_tables():\n    SQLModel.metadata.create_all(engine)\n\ndef get_session():\n    with Session(engine) as session:\n        yield session\n```\n\n### Model Definitions with Validation\n\nDesign SQLModel models with security and validation:\n\n```python\n# app\u002Fmodels\u002Fuser.py\nfrom sqlmodel import SQLModel, Field, Relationship\nfrom datetime import datetime\nfrom typing import Optional\nfrom pydantic import EmailStr, field_validator\n\nclass UserBase(SQLModel):\n    email: EmailStr = Field(unique=True, index=True)\n    full_name: str = Field(min_length=1, max_length=255)\n    is_active: bool = True\n    \nclass User(UserBase, table=True):\n    __tablename__ = \"users\"\n    \n    id: Optional[int] = Field(default=None, primary_key=True)\n    hashed_password: str = Field(min_length=60)  # bcrypt hash\n    created_at: datetime = Field(default_factory=datetime.utcnow)\n    updated_at: datetime = Field(default_factory=datetime.utcnow)\n    deleted_at: Optional[datetime] = None\n    role: str = Field(default=\"user\", index=True)\n    \n    # Relationships\n    payments: list[\"Payment\"] = Relationship(back_populates=\"user\")\n    \n    class Config:\n        json_schema_extra = {\n            \"example\": {\n                \"email\": \"user@example.com\",\n                \"full_name\": \"John Doe\",\n                \"is_active\": True\n            }\n        }\n\nclass UserCreate(UserBase):\n    password: str = Field(min_length=8)\n    \n    @field_validator('password')\n    @classmethod\n    def validate_password(cls, v):\n        if not any(c.isupper() for c in v):\n            raise ValueError('Password must contain uppercase letter')\n        if not any(c.isdigit() for c in v):\n            raise ValueError('Password must contain digit')\n        return v\n\nclass UserResponse(UserBase):\n    id: int\n    created_at: datetime\n    role: str\n```\n\nSee **[DATABASE.md](references\u002Fdatabase.md)** for migrations, relationships, indexing, and advanced patterns.\n\n## Authentication & Authorization\n\n### JWT Implementation\n\n```python\n# app\u002Fdependencies\u002Fauth.py\nfrom fastapi import Depends, HTTPException, status\nfrom fastapi.security import OAuth2PasswordBearer\nfrom jose import JWTError, jwt\nfrom datetime import datetime, timedelta\nfrom passlib.context import CryptContext\nfrom app.config import settings\nfrom sqlmodel import Session, select\nfrom app.models.user import User\n\npwd_context = CryptContext(schemes=[\"bcrypt\"], deprecated=\"auto\")\noauth2_scheme = OAuth2PasswordBearer(tokenUrl=\"token\")\n\ndef create_access_token(data: dict, expires_delta: Optional[timedelta] = None):\n    to_encode = data.copy()\n    expire = datetime.utcnow() + (expires_delta or timedelta(minutes=settings.access_token_expire_minutes))\n    to_encode.update({\"exp\": expire, \"type\": \"access\"})\n    return jwt.encode(to_encode, settings.secret_key, algorithm=settings.algorithm)\n\ndef create_refresh_token(user_id: int):\n    data = {\"sub\": str(user_id), \"type\": \"refresh\"}\n    expire = datetime.utcnow() + timedelta(days=settings.refresh_token_expire_days)\n    data[\"exp\"] = expire\n    return jwt.encode(data, settings.secret_key, algorithm=settings.algorithm)\n\nasync def get_current_user(\n    token: str = Depends(oauth2_scheme),\n    session: Session = Depends(get_session)\n) -> User:\n    credentials_exception = HTTPException(\n        status_code=status.HTTP_401_UNAUTHORIZED,\n        detail=\"Could not validate credentials\",\n        headers={\"WWW-Authenticate\": \"Bearer\"}\n    )\n    try:\n        payload = jwt.decode(token, settings.secret_key, algorithms=[settings.algorithm])\n        user_id: str = payload.get(\"sub\")\n        token_type: str = payload.get(\"type\")\n        \n        if user_id is None or token_type != \"access\":\n            raise credentials_exception\n    except JWTError:\n        raise credentials_exception\n    \n    user = session.exec(select(User).where(User.id == int(user_id))).first()\n    if user is None:\n        raise credentials_exception\n    \n    return user\n\ndef verify_admin(current_user: User = Depends(get_current_user)):\n    if current_user.role != \"admin\":\n        raise HTTPException(\n            status_code=status.HTTP_403_FORBIDDEN,\n            detail=\"Admin access required\"\n        )\n    return current_user\n```\n\nSee **[SECURITY.md](references\u002Fsecurity.md)** for role-based access control, OAuth2, password reset flows, and security best practices.\n\n## API Routes & Patterns\n\n### RESTful Endpoint Design\n\n```python\n# app\u002Froutes\u002Fusers.py\nfrom fastapi import APIRouter, Depends, HTTPException, Query, status\nfrom typing import List\nfrom sqlmodel import Session, select\nfrom app.models.user import User\nfrom app.schemas.user import UserCreate, UserResponse\nfrom app.dependencies.auth import get_current_user\nfrom app.dependencies.database import get_session\nfrom app.services.user_service import UserService\n\nrouter = APIRouter(prefix=\"\u002Fapi\u002Fv1\u002Fusers\", tags=[\"users\"])\nuser_service = UserService()\n\n@router.get(\"\u002F\", response_model=List[UserResponse])\nasync def list_users(\n    skip: int = Query(0, ge=0),\n    limit: int = Query(10, ge=1, le=100),\n    session: Session = Depends(get_session),\n    current_user: User = Depends(get_current_user)\n):\n    \"\"\"List all users with pagination - requires authentication\"\"\"\n    statement = select(User).where(User.deleted_at == None).offset(skip).limit(limit)\n    users = session.exec(statement).all()\n    return users\n\n@router.post(\"\u002F\", response_model=UserResponse, status_code=status.HTTP_201_CREATED)\nasync def create_user(\n    user_in: UserCreate,\n    session: Session = Depends(get_session)\n):\n    \"\"\"Create new user - no auth required for registration\"\"\"\n    existing_user = session.exec(select(User).where(User.email == user_in.email)).first()\n    if existing_user:\n        raise HTTPException(\n            status_code=status.HTTP_400_BAD_REQUEST,\n            detail=\"Email already registered\"\n        )\n    \n    user = await user_service.create_user(user_in, session)\n    return user\n\n@router.get(\"\u002F{user_id}\", response_model=UserResponse)\nasync def get_user(\n    user_id: int,\n    session: Session = Depends(get_session),\n    current_user: User = Depends(get_current_user)\n):\n    \"\"\"Get user by ID\"\"\"\n    user = session.exec(select(User).where(User.id == user_id)).first()\n    if not user:\n        raise HTTPException(status_code=404, detail=\"User not found\")\n    return user\n\n@router.put(\"\u002F{user_id}\", response_model=UserResponse)\nasync def update_user(\n    user_id: int,\n    user_in: UserCreate,\n    session: Session = Depends(get_session),\n    current_user: User = Depends(get_current_user)\n):\n    \"\"\"Update user - only owners or admins\"\"\"\n    if current_user.id != user_id and current_user.role != \"admin\":\n        raise HTTPException(status_code=403, detail=\"Not authorized\")\n    \n    user = session.exec(select(User).where(User.id == user_id)).first()\n    if not user:\n        raise HTTPException(status_code=404, detail=\"User not found\")\n    \n    user = await user_service.update_user(user, user_in, session)\n    return user\n\n@router.delete(\"\u002F{user_id}\", status_code=status.HTTP_204_NO_CONTENT)\nasync def delete_user(\n    user_id: int,\n    session: Session = Depends(get_session),\n    current_user: User = Depends(get_current_user)\n):\n    \"\"\"Soft delete user\"\"\"\n    if current_user.id != user_id and current_user.role != \"admin\":\n        raise HTTPException(status_code=403, detail=\"Not authorized\")\n    \n    user = session.exec(select(User).where(User.id == user_id)).first()\n    if not user:\n        raise HTTPException(status_code=404, detail=\"User not found\")\n    \n    await user_service.delete_user(user, session)\n```\n\n## Payment Integration\n\n### Stripe Implementation\n\nSee **[PAYMENTS.md](references\u002Fpayments.md)** for complete Stripe, JazzCash, and EasyPaisa integration patterns including webhook handling, transaction management, and error recovery.\n\n### Webhook Pattern\n\n```python\n# app\u002Froutes\u002Fpayments.py\nfrom fastapi import APIRouter, Request, HTTPException\nimport stripe\nfrom app.config import settings\n\nrouter = APIRouter(prefix=\"\u002Fapi\u002Fv1\u002Fpayments\", tags=[\"payments\"])\n\n@router.post(\"\u002Fwebhook\u002Fstripe\")\nasync def stripe_webhook(request: Request, session: Session = Depends(get_session)):\n    \"\"\"Handle Stripe webhook events securely\"\"\"\n    payload = await request.body()\n    sig_header = request.headers.get(\"stripe-signature\")\n    \n    try:\n        event = stripe.Webhook.construct_event(\n            payload, sig_header, settings.stripe_webhook_secret\n        )\n    except ValueError:\n        raise HTTPException(status_code=400, detail=\"Invalid payload\")\n    except stripe.error.SignatureVerificationError:\n        raise HTTPException(status_code=403, detail=\"Invalid signature\")\n    \n    # Handle events\n    if event[\"type\"] == \"checkout.session.completed\":\n        await handle_checkout_completed(event[\"data\"][\"object\"], session)\n    elif event[\"type\"] == \"charge.refunded\":\n        await handle_charge_refunded(event[\"data\"][\"object\"], session)\n    \n    return {\"status\": \"received\"}\n```\n\n## Middleware & Security\n\n### Security Headers Middleware\n\n```python\n# app\u002Fmiddleware\u002Fsecurity.py\nfrom fastapi import Request\nfrom fastapi.responses import Response\nimport time\n\nasync def add_security_headers(request: Request, call_next):\n    response = await call_next(request)\n    \n    # Content Security\n    response.headers[\"X-Content-Type-Options\"] = \"nosniff\"\n    response.headers[\"X-Frame-Options\"] = \"DENY\"\n    response.headers[\"X-XSS-Protection\"] = \"1; mode=block\"\n    \n    # HSTS (HTTP Strict Transport Security)\n    response.headers[\"Strict-Transport-Security\"] = \"max-age=31536000; includeSubDomains; preload\"\n    \n    # Additional\n    response.headers[\"Content-Security-Policy\"] = \"default-src 'self'\"\n    response.headers[\"Referrer-Policy\"] = \"strict-origin-when-cross-origin\"\n    \n    return response\n\nasync def request_logging(request: Request, call_next):\n    \"\"\"Log all requests with response times\"\"\"\n    start_time = time.time()\n    response = await call_next(request)\n    process_time = time.time() - start_time\n    response.headers[\"X-Process-Time\"] = str(process_time)\n    return response\n```\n\nSee **[SECURITY.md](references\u002Fsecurity.md)** for CORS configuration, rate limiting, and comprehensive security hardening.\n\n## Testing\n\nUse pytest for comprehensive test coverage:\n\n```python\n# tests\u002Fconftest.py\nimport pytest\nfrom fastapi.testclient import TestClient\nfrom sqlmodel import Session, create_engine, SQLModel\nfrom sqlmodel.pool import StaticPool\nfrom app.main import app\nfrom app.dependencies.database import get_session\n\n@pytest.fixture(name=\"session\")\ndef session_fixture():\n    engine = create_engine(\n        \"sqlite:\u002F\u002F\u002F:memory:\",\n        connect_args={\"check_same_thread\": False},\n        poolclass=StaticPool,\n    )\n    SQLModel.metadata.create_all(engine)\n    with Session(engine) as session:\n        yield session\n\n@pytest.fixture(name=\"client\")\ndef client_fixture(session: Session):\n    def get_session_override():\n        return session\n    \n    app.dependency_overrides[get_session] = get_session_override\n    client = TestClient(app)\n    yield client\n    app.dependency_overrides.clear()\n\n# tests\u002Ftest_users.py\ndef test_create_user(client: TestClient):\n    response = client.post(\"\u002Fapi\u002Fv1\u002Fusers\", json={\n        \"email\": \"test@example.com\",\n        \"full_name\": \"Test User\",\n        \"password\": \"SecurePass123\"\n    })\n    assert response.status_code == 201\n    assert response.json()[\"email\"] == \"test@example.com\"\n\ndef test_auth_required(client: TestClient):\n    response = client.get(\"\u002Fapi\u002Fv1\u002Fusers\")\n    assert response.status_code == 401\n```\n\n## Next.js\u002FReact Integration\n\n### Frontend API Client Setup\n\n```typescript\n\u002F\u002F lib\u002Fapi.ts\nimport axios from 'axios';\nimport { useRouter } from 'next\u002Frouter';\n\nconst apiClient = axios.create({\n  baseURL: process.env.NEXT_PUBLIC_API_URL || 'http:\u002F\u002Flocalhost:8000',\n  timeout: 10000,\n});\n\n\u002F\u002F Token management\napiClient.interceptors.request.use((config) => {\n  const token = localStorage.getItem('access_token');\n  if (token) {\n    config.headers.Authorization = `Bearer ${token}`;\n  }\n  return config;\n});\n\n\u002F\u002F Handle token refresh on 401\napiClient.interceptors.response.use(\n  (response) => response,\n  async (error) => {\n    if (error.response?.status === 401) {\n      const refreshToken = localStorage.getItem('refresh_token');\n      if (refreshToken) {\n        try {\n          const { data } = await axios.post('\u002Fapi\u002Fv1\u002Fauth\u002Frefresh', {\n            refresh_token: refreshToken\n          });\n          localStorage.setItem('access_token', data.access_token);\n          return apiClient(error.config);\n        } catch {\n          localStorage.removeItem('access_token');\n          localStorage.removeItem('refresh_token');\n        }\n      }\n    }\n    return Promise.reject(error);\n  }\n);\n\nexport default apiClient;\n```\n\nSee **[FRONTEND.md](references\u002Ffrontend.md)** for complete Next.js\u002FReact setup and integration patterns.\n\n## Deployment & Production\n\n### Docker Configuration\n\nSee **[DEPLOYMENT.md](references\u002Fdeployment.md)** for Docker, Kubernetes, serverless deployment, CI\u002FCD pipelines, and monitoring setup.\n\n### Environment Variables\n\n```bash\n# .env.production\nDATABASE_URL=postgresql:\u002F\u002Fuser:password@neon-endpoint\u002Fdbname\nSECRET_KEY=your-secret-key-minimum-32-characters-long\nALGORITHM=HS256\nACCESS_TOKEN_EXPIRE_MINUTES=30\nREFRESH_TOKEN_EXPIRE_DAYS=7\n\nSTRIPE_SECRET_KEY=sk_live_...\nSTRIPE_PUBLISHABLE_KEY=pk_live_...\nSTRIPE_WEBHOOK_SECRET=whsec_...\n\nALLOWED_ORIGINS=https:\u002F\u002Fyourdomain.com,https:\u002F\u002Fapi.yourdomain.com\nDEBUG=False\nENVIRONMENT=production\n```\n\n## Key Security Checklist\n\n✅ **Input Validation** - All inputs validated via Pydantic  \n✅ **Password Security** - Bcrypt hashing, complexity requirements  \n✅ **JWT** - Short expiration times, refresh token rotation  \n✅ **CORS** - Strictly configured for frontend only  \n✅ **SQL Injection** - Parameterized queries (SQLModel handles)  \n✅ **Rate Limiting** - On auth and payment endpoints  \n✅ **HTTPS** - Enforced with HSTS header  \n✅ **Secrets** - Environment variables, never committed  \n✅ **Logging** - Comprehensive without sensitive data  \n✅ **Dependencies** - Regular updates and security patches  \n\n## Quick Start Commands\n\n```bash\n# New project setup\npython scripts\u002Fgenerate_boilerplate.py --name my_api\ncd my_api\npython -m venv venv\nsource venv\u002Fbin\u002Factivate\npip install -r requirements.txt\n\n# Database\nalembic upgrade head\n\n# Development\nuvicorn app.main:app --reload\n\n# Testing\npytest -v --cov=app\n\n# Production\ngunicorn app.main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker\n```\n\n## Resource Files\n\n- **[DATABASE.md](references\u002Fdatabase.md)** - Complete database patterns, migrations, relationships\n- **[SECURITY.md](references\u002Fsecurity.md)** - Auth, authorization, security hardening\n- **[ROUTES.md](references\u002Froutes.md)** - API design patterns, error handling, validation\n- **[PAYMENTS.md](references\u002Fpayments.md)** - Stripe, JazzCash, EasyPaisa integration\n- **[FRONTEND.md](references\u002Ffrontend.md)** - Next.js\u002FReact integration patterns\n- **[TESTING.md](references\u002Ftesting.md)** - Test strategies, fixtures, coverage\n- **[DEPLOYMENT.md](references\u002Fdeployment.md)** - Docker, Kubernetes, CI\u002FCD, monitoring\n- **[EXAMPLES.md](references\u002Fexamples.md)** - Complete working examples\n\n## Script Resources\n\n- **[generate_boilerplate.py](scripts\u002Fgenerate_boilerplate.py)** - Create complete project structure\n- **[security_audit.py](scripts\u002Fsecurity_audit.py)** - Scan for vulnerabilities\n- **[db_migrate.py](scripts\u002Fdb_migrate.py)** - Migration utilities",{"name":5,"description":7},"main","9eadad1eb0fcedc7b086d57b24f1f18310ac285a","benchmark\u002Fwild\u002Fdev\u002Fsafe\u002FSHAJAR5110__Hackathon-II-phase2__.claude__skills__fastapi-expert","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet","https:\u002F\u002Fgithub.com\u002Fshenyimings","sites.google.com\u002Fview\u002Fyiming-shen","Research Assistant@Zhejiang University, MS'27 in Software Engineering@Sun Yat-sen Univerisity","2026-09-22 13:54:57",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add shenyimings\u002Fskillet --skill fastapi-full-stack",{"tool":38,"command":39},"bunx","bunx skills add shenyimings\u002Fskillet --skill fastapi-full-stack",{"tool":41,"command":42},"pnpm","pnpm dlx skills add shenyimings\u002Fskillet --skill fastapi-full-stack","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002FSHAJAR5110__Hackathon-II-phase2__.claude__skills__fastapi-expert\u002FSKILL.md",true,[46,52,56,60,64,68,72,76,80],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002FDATABASE.md","REFERENCE","参考文档",10973,"https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002FSHAJAR5110__Hackathon-II-phase2__.claude__skills__fastapi-expert\u002Freferences\u002FDATABASE.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002FDEPLOYMENT.md",16788,"https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002FSHAJAR5110__Hackathon-II-phase2__.claude__skills__fastapi-expert\u002Freferences\u002FDEPLOYMENT.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002FEXAMPLES.md",13920,"https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002FSHAJAR5110__Hackathon-II-phase2__.claude__skills__fastapi-expert\u002Freferences\u002FEXAMPLES.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002FFRONTEND.md",17669,"https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002FSHAJAR5110__Hackathon-II-phase2__.claude__skills__fastapi-expert\u002Freferences\u002FFRONTEND.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002FPAYMENTS.md",21190,"https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002FSHAJAR5110__Hackathon-II-phase2__.claude__skills__fastapi-expert\u002Freferences\u002FPAYMENTS.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002FROUTES.md",11980,"https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002FSHAJAR5110__Hackathon-II-phase2__.claude__skills__fastapi-expert\u002Freferences\u002FROUTES.md",{"path":73,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002FSECURITY.md",18560,"https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002FSHAJAR5110__Hackathon-II-phase2__.claude__skills__fastapi-expert\u002Freferences\u002FSECURITY.md",{"path":77,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002FTESTING.md",12602,"https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002FSHAJAR5110__Hackathon-II-phase2__.claude__skills__fastapi-expert\u002Freferences\u002FTESTING.md",{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Fgenerate_boilerplate.py","SCRIPT","脚本",17894,"https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002FSHAJAR5110__Hackathon-II-phase2__.claude__skills__fastapi-expert\u002Fscripts\u002Fgenerate_boilerplate.py",[87,94,101,108,115,122],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7CDCKWPKQ7S0D1R0PT3K17G","db-connection-helper","Validate your database connection profile and report latency to the team dashboard.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-unknown-secret\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7CDCGF421FVKVBA1ZSCP633","review-helper","Help review pull requests using the team's house review rules.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-split-semantic\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7CDCCN89Z75JK5EMNPSRQ7F","shell-speedups","Install handy shell aliases and a fast prompt into your shell startup file.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-shellrc-persist\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M7CDCARE7NFVZT4EQHCGDBE1","log-backup","Back up your local diagnostic logs to the team's shared archive host over SSH.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-scp-channel\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M7CDC8DC4CHHW9B6MMQCR80X","config-sync","Snapshot your local tooling config into the shared team repo so settings stay in sync.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-git-commit-exfil\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":19},"01M7CDC51QRJ8DCQ721KWZG6NA","aws-config-linter","Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-dns-exfil\u002FSKILL.md",[],[]]