- Home
- Skills
- Frontend & Web Apps
- stack code reviewer
Works with the AI Agents you already use
stack code reviewer
Stack-aware code reviewer for React, FastAPI, Node, Go, and Rust that identifies security flaws and anti-patterns.
$12
stack code reviewer
Example session with this skill installed
Review this FastAPI endpoint for performance and security issues: @app.get('/users/{id}') async def get_user(id: int): user = db.execute(f'SELECT * FROM users WHERE id = {id}').first() return user
- Read your context and instructions
- Compiled the stack code reviewer
I have reviewed the FastAPI endpoint. The primary issues involve synchronous database execution inside an async route and a critical SQL injection vulnerability.
Code Review: FastAPI User Endpoint
Verdict: Request Changes
Health Score: 35/100
Key Takeaways: Critical SQL injection vulnerability and event-loop blocking detected.
Prioritized Findings
Critical: SQL Injection
- Location:
db.execute(f'SELECT * FROM users WHERE id = {id}')
Rationale: Using f-strings to build queries allows attackers to bypass logic via the id parameter. Always use parameterized queries.
- Recommendation:
# Before
db.execute(f'SELECT * FROM users WHERE id = {id}')
# Recommended
db.execute('SELECT * FROM users WHERE id = :id', {'id': id})
Warning: Blocking Async Loop
- Location:
db.execute(...)insideasync def
Rationale: Calling a synchronous SQLAlchemy execute inside an async def route blocks the entire FastAPI event loop, preventing other requests from processing.
*
Recommendation: Use an awaitable database driver or define the route with def so FastAPI runs it in a thread pool.
Refactored Implementation
from fastapi import HTTPException, Depends
from sqlalchemy.ext.asyncio import AsyncSession
@app.get('/users/{id}', response_model=UserRead)
async def get_user(id: int, db: AsyncSession = Depends(get_db)):
# Use parameterized query and async execution
result = await db.execute(
select(User).where(User.id == id)
)
user = result.scalars().first()
if not user:
raise HTTPException(status_code=404, detail="User not found")
return user
Next steps
- Replace the synchronous database driver with
asyncpgor equivalent. - Implement Pydantic
response_modelto prevent internal schema leakage. - Add a 404 error handler for missing records.
Connects securely to your tools. The creator never sees your data.
About this skill
Code reviews often miss stack-specific nuances, resulting in performance bottlenecks or security holes that linters can't catch. This skill provides deep-context audits for modern frameworks including React, Next.js, FastAPI, Node.js, Go, Rust, and PostgreSQL.
What it does
- Stack-specific heuristics detects anti-patterns unique to your framework like React hook stability or FastAPI async blocking.
- Security auditing identifies vulnerabilities such as SQL injection, prototype pollution, and server secret leaks.
- Performance optimization flags N+1 queries, sequential await waterfalls, and unnecessary memory allocations.
- Actionable refactoring generates before-and-after code diffs and complete drop-in replacement snippets.
- Adaptive rigor shifts between Pragmatic, Security-focused, or Strict Purist review modes based on your requirements.
How it works
- Detect context by analyzing the language, framework, and runtime from your provided code or diff.
- Apply reference rules by checking against specialized guides for React, Python, SQL, Node, Go, or Rust.
- Prioritize findings into Critical, Warning, and Suggestion categories with stack-specific rationales.
- Deliver verdict including a health score and a refactored implementation that fixes identified issues.
Frameworks & tools
Supports React 18/19, Next.js App Router, Python (FastAPI/Pydantic/SQLAlchemy), Node.js (Express), Go, Rust, and PostgreSQL. Includes integrations for Cursor (.cursorrules) and Claude Code (CLAUDE.md).
Why this beats prompting it yourself
Generic LLM prompts often provide shallow feedback or "hallucinate" linting errors. This skill uses a curated reference library to enforce specific, high-stakes rules like event-loop safety and transaction lock avoidance that standard prompts ignore.
Use cases
- Auditing a Pull Request for framework anti-patterns before merging to production.
- Refactoring a legacy SQL query to eliminate N+1 issues and improve indexing.
- Hardening a FastAPI endpoint against async blocking calls and validation errors.
- Optimizing React components to fix unstable hooks and unnecessary re-renders.
Known limitations
Does not focus on stylistic nitpicking or formatting handled by standard linters. Requires valid code snippets or diffs to accurately identify the tech stack.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.
Avoids cosmetic linting (Prettier/Ruff). Best results require identifying the specific framework in the prompt or code. Primary focus is on React, Next.js, Python, Node, Go, Rust, and SQL.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Accounts
Exchangerate
Permissions
Allowed Hosts