Deep Python code review of changed files using git diff analysis. Focuses on production quality, security vulnerabilities, performance bottlenecks, architectural issues, and subtle bugs in code changes. Analyzes correctness, efficiency, scalability, and production readiness of modifications. Use for pull request reviews, commit reviews, security audits of changes, and pre-deployment validation. Supports Django, Flask, FastAPI, pandas, and ML frameworks.
Deep Python code review of changed files using git diff analysis. Focuses on production quality, security vulnerabilities, performance bottlenecks, architectural issues, and subtle bugs in code changes. Analyzes correctness, efficiency, scalability, and production readiness of modifications. Use for pull request reviews, commit reviews, security audits of changes, and pre-deployment validation. Supports Django, Flask, FastAPI, pandas, and ML frameworks.
/plugin marketplace add Olino3/forge/plugin install forge-plugin@forge-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
examples.mdtemplates/inline_comment_template.mdtemplates/report_template.mdCRITICAL: The 5-step workflow outlined in this document MUST be followed in exact order for EVERY code review. Skipping steps or deviating from the procedure will result in incomplete and unreliable reviews. This is non-negotiable.
context_detection.md, common_issues.md, {framework}_patterns.mdsecurity_guidelines.md, owasp_python.md{project-name}/: Per-project learned patterns and contextreport_template.md, inline_comment_template.mdDeep reviews evaluate 8 critical dimensions in the changed code:
Note: Focus on substantive issues requiring human judgment, not style/formatting details. Reviews are performed on changed code only, using the get-git-diff skill to identify modifications.
YOU MUST:
get-git-diff skill to identify changed Python filesHEAD^ vs HEAD, main vs feature-branch).py extension)DO NOT PROCEED WITHOUT GIT DIFF ANALYSIS
YOU MUST:
../../memory/skills/python-code-review/{project-name}/ for existing project memory../../context/python/context_detection.md to identify frameworkDO NOT PROCEED WITHOUT COMPLETING THIS STEP
YOU MUST read these files based on context:
../../context/python/common_issues.md (universal anti-patterns and deep bugs)../../context/python/django_patterns.md../../context/python/flask_patterns.md../../context/python/fastapi_patterns.md../../context/python/datascience_patterns.md../../context/python/ml_patterns.md../../context/security/security_guidelines.md AND ../../context/security/owasp_python.mdProgressive loading: Only read framework files when detected. Don't load all upfront.
DO NOT SKIP PATTERN FILE READING
YOU MUST examine ONLY the changed code for ALL categories below:
Important: While reviewing changed lines, consider the surrounding context to understand:
Review Categories:
Production Readiness: Edge cases, input validation, error recovery, resource cleanup, timeouts Deep Bugs: Race conditions, memory leaks, off-by-one errors, unhandled exceptions, state corruption, infinite loops, integer overflow, timezone issues Architecture: Tight coupling, missing abstractions, SOLID violations, global state, circular dependencies Security: SQL/NoSQL/Command injection, auth bypasses, insecure deserialization, SSRF, XXE, crypto weaknesses, data exposure, missing rate limiting Performance: O(n²) complexity, N+1 queries, memory leaks, blocking I/O in async, missing indexes, inefficient data structures, cache stampede Scalability: Connection pool exhaustion, lock contention, deadlocks, missing pagination, unbounded consumption Reliability: Transaction boundaries, data races, resource leaks, missing idempotency
DO NOT SKIP ANY CATEGORY
YOU MUST ask user for preferred output format:
templates/report_template.md) → executive summary, categorized findings, action items → output to claudedocs/templates/inline_comment_template.md) → file:line feedback, PR-styleDO NOT CHOOSE FORMAT WITHOUT USER INPUT
For EVERY issue in the output, YOU MUST provide:
auth.py:142)Format guidelines:
DO NOT PROVIDE INCOMPLETE RECOMMENDATIONS
After completing the review, UPDATE PROJECT MEMORY:
Create or update files in ../../memory/skills/python-code-review/{project-name}/:
This memory will be consulted in future reviews to provide context-aware analysis.
Before completing ANY review, verify:
get-git-diff skill and changed Python files identified../../memory/skills/python-code-review/{project-name}/ and context detected../../context/python/ and ../../context/security/FAILURE TO COMPLETE ALL STEPS INVALIDATES THE REVIEW
Refer to the official documentation:
forge-plugin/context/python/ and forge-plugin/context/security/forge-plugin/memory/skills/python-code-review/{project-name}/get-git-diff skill - reviews only changed code