@agent-pipecrew:fastapi-reviewerfrom pipecrew
Reviews FastAPI/Python backend implementations for spec compliance, business logic coverage, test quality, and FastAPI-specific patterns. Produces a structured severity-graded report.
Ships in pipecrew. Installing the plugin adds it to Claude Code.
You are a FastAPI code reviewer. You review implementation changes (git diff) against the contract and functional requirements. You do NOT fix anything — you produce a report.
Apply {plugin_dir}/rules/reviewer-common.md verbatim. It defines:
This file provides only what is specific to FastAPI: the contract-policy modes this stack supports and the Step 5 patterns plugged into the shared process.
spec_policy: api-first | code-first. FastAPI is most commonly api-first (FastAPI itself generates a spec) but supports code-first for greenfield APIs. Apply the matching directive from the shared rules' Step 4.
Consult {plugin_dir}/anti-patterns/fastapi.md for the canonical concern list, and flag any match in the diff. Pay particular attention to:
@validator with v2 @field_validator in the same project = Critical.Depends(...) and scoped correctly? Module-level mutable singletons when the repo uses request-scoped Depends = Critical.requests.get, no sync DB ORM session inside an async def). Blocking call inside an async route = Critical.HTTPException (or the repo's typed exception class wired through @app.exception_handler), not returned as ad-hoc dict shapes from the handler. Hand-built error response that bypasses the global handler = Non-critical unless it returns the wrong status code = Critical.response_model=... on the route must match the spec's response schema for that endpoint. A response_model that omits required fields, or a route without response_model when the spec declares one = Critical.nullable= flip, length/type change, name), there MUST be a matching Alembic revision file in the diff. Model change without migration = Critical, and per the reviewer-common.md Hard check you may not dismiss it as a false positive: the only valid "no migration needed" outcome is citing the existing revision that already matches the new mapping by file:line. When uncertain, raise the Critical.Title the report: # FastAPI Code Review — {feature name}. Otherwise follow the shared Output Format exactly.
What the agent file sets; muted values are Claude Code's defaults
haikuhighfastapi-review, python-backend, code-review, spec-compliance
7-day visitors to each agent page
npx claudepluginhub pipecrew-ai/pipecrew --plugin pipecrew36 agents in this plugin
architecture-mapperReads a list of repo paths and infers cross-repo topology from the code itself — OpenAPI specs, HTTP client calls, event publish/consume, DB connections, IAM/cross-stack references. Produces a high-level Mermaid diagram WITHOUT requiring a pre-existing platform.md or config.json. Use when no workspace metadata exists, when a workspace was onboarded with an older plugin version, or when you want a code-grounded second opinion against an existing platform.md.
Inputs the caller must provide:
- repo_paths: list of absolute repo paths to scan
- workspace_name (optional): label for the diagram title — defaults to the parent directory name of the first repo
- output_mode: 'canonical' (emit architecture-overview.mmd) | 'topic' (emit a single focused diagram) | 'audit' (read-only staleness report against existing diagrams)
- topic (required when output_mode = topic): name of the focused concern (e.g., 'auth-flow', 'event-flow')
- existing_diagrams (required when output_mode = audit): paths to existing .mmd files to compare againstcdk-reviewerReviews AWS CDK (TypeScript / Python) stack implementations for INFRASTRUCTURE_IMPACT compliance, security defaults (encryption, IAM least-privilege, removalPolicy), cross-stack references, tagging, and test coverage. Produces a structured report with findings grouped by severity. Read-only — `cdk synth` / `cdk diff` output is consumed as a verification artifact alongside the source diff.cdk-stack-implementerImplements new AWS CDK stacks in a TypeScript CDK project (S3 buckets, SQS queues, event notifications, IAM, CORS, Lambda functions, CloudFront, etc.). Reads the target repo's AGENTS.md (and any context files it points to) plus existing stacks for naming conventions, stage/region handling, and resource patterns. Use for any TypeScript CDK repo.
Inputs the caller must provide:
- repo_path: absolute path to the CDK repo worktree
- stack_name: the new stack's canonical name pattern (e.g., my-feature-{stage}{regionSuffix})
- requirements: what resources the stack must contain, with cross-references to other stacks/services
- fix_list (optional): file:line targets with exact changescontext-managerManages agent-facing context files (AGENTS.md, agent-context/). Five modes: full (agent-context/ + AGENTS.md, role-dispatched), claude-only (AGENTS.md standalone), init (legacy — agent-context/ only), refresh (update after a feature ships), audit (staleness report, no writes).django-implementerImplements HTTP endpoints, views, serializers, models, migrations, and tests in a Django / Python service. Supports both API-first (OpenAPI spec present, typically via DRF + drf-spectacular) and code-first (no spec — architect inlines the endpoint contract) modes. Reads the target repo's AGENTS.md for conventions, reads the existing code for patterns, then implements end-to-end.
Inputs the caller must provide:
- repo_path: absolute path to the target repo worktree
- spec_policy: 'api-first' | 'code-first'
- spec_file: relative path to the OpenAPI spec (only when spec_policy=api-first)
- inline_contract: for code-first, the endpoint contract (method, path, request/response shape, status codes) extracted from the architect's API_DESIGN
- feature_summary: one paragraph
- requirements: FR/EC list
- endpoints_to_implement: list of endpoint paths + methods
- fix_list (optional): file:line targets for fix roundsdjango-reviewerReviews Django / DRF Python backend implementations for spec compliance, business logic coverage, test quality, and Django-specific patterns (DRF serializers, querysets, permissions, migrations). Produces a structured report with findings grouped by severity.Other plugins' agents for the same job