[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GXE7V7F30JSJNT1TQAZ7FB":3,"skill-same:01M6GXE7V7F30JSJNT1TQAZ7FB":75},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":58,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M6GXE7V7F30JSJNT1TQAZ7FB","FastAPI Review",null,"Deep review of FastAPI applications — dependency injection, Pydantic validation, async patterns, middleware, security, and OpenAPI contract correctness.","malayvuong\u002Fagent-orchestra","malayvuong","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F13240975?v=4","01M6GXCDVPB2VPZMDZK1KF98M0","Nguyen Minh Vuong","01M6GXCE176VDX3XV4Z4KNR33J",1,"MIT","https:\u002F\u002Fgithub.com\u002Fmalayvuong\u002Fagent-orchestra\u002Fblob\u002Fmain\u002F.agent-orchestra\u002Fskills\u002Ffastapi-review\u002FSKILL.md",[],[19,5,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"fastapi","review","dependency","python","correctness","middleware","contract","logic","dependency injection","deep","async","validation","performance","api","applications","openapi","injection","Pydantic","deep review","2026-11-10 10:12:30",false,"---\nname: FastAPI Review\ndescription: Deep review of FastAPI applications — dependency injection, Pydantic validation, async patterns, middleware, security, and OpenAPI contract correctness.\nversion: 2026.3.1\nlicense: MIT\ntriggers:\n  lenses:\n    - logic\n    - security\n    - performance\n  keywords:\n    - fastapi\n    - pydantic\n    - starlette\n    - uvicorn\n    - python api\n---\n\nWhen reviewing FastAPI code, apply the following framework-specific checks.\n\n## Dependency Injection\n\nVerify `Depends()` is used for shared logic (auth, database sessions, config). Flag endpoint functions that instantiate database connections or HTTP clients directly — these should be injected dependencies for testability and lifecycle management.\n\nCheck that dependencies with cleanup logic use `yield` syntax to ensure teardown runs after the response is sent. Flag dependencies that open resources (DB connections, file handles) without corresponding cleanup.\n\nVerify dependency scoping: request-scoped dependencies should not be cached across requests. Flag `@lru_cache` on dependencies that should be fresh per request (e.g., current user, database session).\n\n## Pydantic Model Validation\n\nVerify all endpoint inputs use Pydantic models or typed parameters — not raw `dict` or `Any`. Flag endpoints that accept `body: dict` instead of a typed model. Check that Pydantic models use `Field()` with appropriate constraints (`min_length`, `max_length`, `ge`, `le`, `regex`) for user-facing inputs.\n\nFlag models that use `model_config = ConfigDict(extra='allow')` on external input models — this permits arbitrary fields and defeats input validation.\n\nCheck that response models are defined with `response_model` parameter or return type annotation. Flag endpoints that return raw dicts or untyped responses — this breaks OpenAPI documentation and client code generation.\n\n## Async vs Sync\n\nVerify `async def` is used for endpoints that perform I\u002FO (database queries, HTTP calls, file reads). Flag `def` endpoints that call `await` — this is a syntax error. Flag `async def` endpoints that call blocking I\u002FO functions (e.g., `open()`, `requests.get()`, `time.sleep()`) without wrapping in `run_in_executor` — this blocks the entire event loop.\n\nCheck that database drivers are async-compatible (e.g., `asyncpg`, `aiosqlite`, `motor`) when used in async endpoints. Flag mixing sync ORMs (SQLAlchemy sync session) with async endpoints without proper thread pool delegation.\n\n## Security\n\nVerify authentication dependencies check tokens on every protected endpoint — not just at the router level where sub-routes might bypass it. Flag endpoints that return user data without filtering sensitive fields (password hashes, internal IDs, tokens).\n\nCheck that CORS middleware is configured with specific allowed origins — not `allow_origins=[\"*\"]` in production. Verify rate limiting is applied to authentication endpoints.\n\nFlag SQL queries built with f-strings or `.format()` — use parameterized queries even with ORMs. Check that file upload endpoints validate file type, size, and content — not just the extension.\n\n## Error Handling\n\nVerify custom exception handlers are registered for expected error types. Flag bare `except Exception` blocks that swallow errors silently. Check that error responses use consistent structure (not sometimes a string, sometimes a dict).\n\nVerify that internal error details (stack traces, database errors, file paths) are not returned to the client in production. Flag `HTTPException(detail=str(e))` where `e` could contain sensitive information.\n\n## Middleware and Lifecycle\n\nCheck startup and shutdown event handlers for proper resource initialization and cleanup. Flag middleware that modifies the request body — this can break request parsing for downstream handlers. Verify logging middleware does not log request\u002Fresponse bodies containing sensitive data (passwords, tokens, PII).\n\n## OpenAPI Contract\n\nVerify endpoint docstrings are present — they become the API documentation. Flag endpoints without `tags` parameter — untagged endpoints clutter the OpenAPI UI. Check that status codes in `responses` parameter match the actual status codes returned by the endpoint logic.\n\nFor each finding, report: the endpoint path, the specific FastAPI pattern violated, and the recommended fix.\n","When reviewing FastAPI code, apply the following framework-specific checks.\n\n## Dependency Injection\n\nVerify `Depends()` is used for shared logic (auth, database sessions, config). Flag endpoint functions that instantiate database connections or HTTP clients directly — these should be injected dependencies for testability and lifecycle management.\n\nCheck that dependencies with cleanup logic use `yield` syntax to ensure teardown runs after the response is sent. Flag dependencies that open resources (DB connections, file handles) without corresponding cleanup.\n\nVerify dependency scoping: request-scoped dependencies should not be cached across requests. Flag `@lru_cache` on dependencies that should be fresh per request (e.g., current user, database session).\n\n## Pydantic Model Validation\n\nVerify all endpoint inputs use Pydantic models or typed parameters — not raw `dict` or `Any`. Flag endpoints that accept `body: dict` instead of a typed model. Check that Pydantic models use `Field()` with appropriate constraints (`min_length`, `max_length`, `ge`, `le`, `regex`) for user-facing inputs.\n\nFlag models that use `model_config = ConfigDict(extra='allow')` on external input models — this permits arbitrary fields and defeats input validation.\n\nCheck that response models are defined with `response_model` parameter or return type annotation. Flag endpoints that return raw dicts or untyped responses — this breaks OpenAPI documentation and client code generation.\n\n## Async vs Sync\n\nVerify `async def` is used for endpoints that perform I\u002FO (database queries, HTTP calls, file reads). Flag `def` endpoints that call `await` — this is a syntax error. Flag `async def` endpoints that call blocking I\u002FO functions (e.g., `open()`, `requests.get()`, `time.sleep()`) without wrapping in `run_in_executor` — this blocks the entire event loop.\n\nCheck that database drivers are async-compatible (e.g., `asyncpg`, `aiosqlite`, `motor`) when used in async endpoints. Flag mixing sync ORMs (SQLAlchemy sync session) with async endpoints without proper thread pool delegation.\n\n## Security\n\nVerify authentication dependencies check tokens on every protected endpoint — not just at the router level where sub-routes might bypass it. Flag endpoints that return user data without filtering sensitive fields (password hashes, internal IDs, tokens).\n\nCheck that CORS middleware is configured with specific allowed origins — not `allow_origins=[\"*\"]` in production. Verify rate limiting is applied to authentication endpoints.\n\nFlag SQL queries built with f-strings or `.format()` — use parameterized queries even with ORMs. Check that file upload endpoints validate file type, size, and content — not just the extension.\n\n## Error Handling\n\nVerify custom exception handlers are registered for expected error types. Flag bare `except Exception` blocks that swallow errors silently. Check that error responses use consistent structure (not sometimes a string, sometimes a dict).\n\nVerify that internal error details (stack traces, database errors, file paths) are not returned to the client in production. Flag `HTTPException(detail=str(e))` where `e` could contain sensitive information.\n\n## Middleware and Lifecycle\n\nCheck startup and shutdown event handlers for proper resource initialization and cleanup. Flag middleware that modifies the request body — this can break request parsing for downstream handlers. Verify logging middleware does not log request\u002Fresponse bodies containing sensitive data (passwords, tokens, PII).\n\n## OpenAPI Contract\n\nVerify endpoint docstrings are present — they become the API documentation. Flag endpoints without `tags` parameter — untagged endpoints clutter the OpenAPI UI. Check that status codes in `responses` parameter match the actual status codes returned by the endpoint logic.\n\nFor each finding, report: the endpoint path, the specific FastAPI pattern violated, and the recommended fix.\n",{"name":5,"license":15,"version":43,"triggers":44,"description":7},"2026.3.1",{"lenses":45,"keywords":47},[26,46,31],"security",[19,48,49,50,51],"pydantic","starlette","uvicorn","python api","main","eac6069a8690d89fd23f08d2d14e4874ed376a77",".agent-orchestra\u002Fskills\u002Ffastapi-review",0,"https:\u002F\u002Fgithub.com\u002Fmalayvuong\u002Fagent-orchestra","https:\u002F\u002Fgithub.com\u002Fmalayvuong","www.malayvuong.com","Just a newbie at everything","2026-10-09 12:52:45",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add malayvuong\u002Fagent-orchestra --skill \"FastAPI Review\"",{"tool":67,"command":68},"bunx","bunx skills add malayvuong\u002Fagent-orchestra --skill \"FastAPI Review\"",{"tool":70,"command":71},"pnpm","pnpm dlx skills add malayvuong\u002Fagent-orchestra --skill \"FastAPI Review\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmalayvuong\u002Fagent-orchestra\u002Fblob\u002Fmain\u002F.agent-orchestra\u002Fskills\u002Ffastapi-review\u002FSKILL.md",true,[],[76,96,116,134,152,167],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":38},"01M6GXHYPRJ43SHFPFJTF87GS8","Vue.js Review","Deep review of Vue.js applications — Composition API patterns, reactivity traps, component design, Pinia state management, and performance pitfalls.","https:\u002F\u002Fgithub.com\u002Fmalayvuong\u002Fagent-orchestra\u002Fblob\u002Fmain\u002F.agent-orchestra\u002Fskills\u002Fvue-review\u002FSKILL.md",[],[20,83,84,85,86,31,87,88,89,37,90,33,32,91,92,93,28,26,94,95],"vue","js","Vue js Review","design","component","state management","state","api patterns","Composition","pinia","management","pitfalls","pinia state",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":38},"01M6GXHSPDDH1PQEN61ENMCEF5","Unity Review","Deep review of Unity C# code — object pooling, Update allocation, physics patterns, UI performance, serialization, and mobile optimization.","https:\u002F\u002Fgithub.com\u002Fmalayvuong\u002Fagent-orchestra\u002Fblob\u002Fmain\u002F.agent-orchestra\u002Fskills\u002Funity-review\u002FSKILL.md",[],[20,103,98,31,104,105,37,106,107,108,109,110,111,28,26,112,113,114,115],"unity","update","code","ui","serialization","Optimization","mobile","patterns","physics","C#","mobile optimization","object","allocation",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":38},"01M6GXHNKTH12CGSRWDGF2H1Q9","TypeScript Review","Deep review of TypeScript code — type safety, generics patterns, strict mode compliance, type narrowing, module boundaries, and common escape hatches.","https:\u002F\u002Fgithub.com\u002Fmalayvuong\u002Fagent-orchestra\u002Fblob\u002Fmain\u002F.agent-orchestra\u002Fskills\u002Ftypescript-review\u002FSKILL.md",[],[20,123,124,105,37,125,126,127,128,110,28,26,129,130,131,132,133],"typescript","typescript review","compliance","Type Safety","Safety","common","module","type","interface","consistency","mode",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":38},"01M6GXHH3DMZD272RVH4800C67","Test Conventions","Testing patterns and conventions for code review. Covers naming, AAA structure, boundary testing, mock vs real dependencies, and coverage expectations.","https:\u002F\u002Fgithub.com\u002Fmalayvuong\u002Fagent-orchestra\u002Fblob\u002Fmain\u002F.agent-orchestra\u002Fskills\u002Ftest-conventions\u002FSKILL.md",[],[141,142,136,143,144,20,105,145,146,147,110,148,149,150,151],"test","conventions","code review","testing","testing patterns","boundary","coverage","dependencies","structure","mock","naming",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":38},"01M6GXHCAQSJDVNVRFFD1HJWTN","Terraform Review","Deep review of Terraform\u002FOpenTofu configuration — state management, module design, security hardening, drift prevention, and production safety patterns.","https:\u002F\u002Fgithub.com\u002Fmalayvuong\u002Fagent-orchestra\u002Fblob\u002Fmain\u002F.agent-orchestra\u002Fskills\u002Fterraform-review\u002FSKILL.md",[],[20,159,154,86,46,88,89,37,160,161,162,163,127,164,93,165,166,28,26,129],"terraform","cloud","aws","hardening","Production","opentofu","iac","drift",{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":38},"01M6GXH83F11CK4BQEAJPN6HDE","Swift Review","Deep review of Swift code — memory management, concurrency patterns, optionals, protocol design, SwiftUI lifecycle, and iOS platform patterns.","https:\u002F\u002Fgithub.com\u002Fmalayvuong\u002Fagent-orchestra\u002Fblob\u002Fmain\u002F.agent-orchestra\u002Fskills\u002Fswift-review\u002FSKILL.md",[],[174,20,169,86,175,31,105,176,37,177,178,179,180,181,93,28,26,182,183,184],"swift","memory","protocol","ios","concurrency","lifecycle","swiftui","uikit","xcode","apple","platform"]