agentleFS
buildpad-aibuildpad-ai/skills/review-code/SKILL.md

review-code

Skill1 starsChanged 4 months agoMITView on GitHub

Perform a comprehensive code review checking for quality, security, performance, accessibility, and DaaS/Buildpad compliance. Generates actionable feedback with severity levels. Use when the user says review-code, review this, check code quality, or wants a PR review.

  • Reads credentials

41 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review-deps, review-security and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • cjohnhansonSkill

    review-deps

    Judge dependencies, advisories, and licences. Use as a required review, or as /review-deps. Not for how a dependency is called: review-code covers that.

    Also in 3 projects that use this

  • PydanticSkill

    review-security

    Security review of the current branch against its merge base — sandbox escapes, memory errors, panics and resource-limit bypasses. Use when reviewing changes for security risk, or before merging anything touching the heap/ module, path_security.rs, the wire protocol or the pool.

    Also in 5 projects that use this

  • dirkkok101Skill

    review-design

    Use before /plan, after /technical-design, when user says "review design", "check the design", or when design quality is uncertain.

    Also in 4 projects that use this

  • JetBrainsSkill

    review-plan

    Manually re-run the autonomous plan review (Phase 2 — consistency + structural). The same review runs automatically as the first phase of /execute-tracks; this command is for re-runs after inline replanning or whenever the plan needs explicit re-validation. TRIGGER when: user asks to re-validate the plan after inline replanning; user requests explicit plan review outside /execute-tracks. SKIP: /execute-tracks already running State 0 in this session (autonomous Phase 2 path will fire) — do not double-run.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    review-pr

    Review a pull request for functional issues, coding guideline adherence, and best practices. Use this when asked to review, inspect, or provide feedback on a pull request (Azure DevOps or GitHub). Proposes comments for user approval before posting.

    Also in 4 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 6 projects that use this

The file

Files
SKILL.md

Review Code

Perform multi-dimensional code review for DaaS platform applications.

Delegate for isolated review. For a thorough pass that doesn't bloat the main conversation, hand the change to the code-reviewer subagent (and security-auditor for auth/CORS/RLS/secret concerns) — see subagent-delegation. Treat findings as advisory and verify fixes on the main thread.

Review Dimensions

1. Correctness & Logic

  • Does it do what it's supposed to?
  • Edge cases handled?
  • Error states covered?
  • TypeScript types correct and strict?

2. Security

  • No secrets in code (check .env.local usage)
  • Auth checks on all API routes
  • Input validation with Zod on all POST/PATCH handlers
  • No direct Supabase calls from client (must use proxy routes)
  • No dangerouslySetInnerHTML without sanitization
  • CSRF protection on mutations

3. DaaS & Buildpad Compliance

  • Buildpad-First Rule: No raw Mantine form/input components when Buildpad provides them
  • Proxy Pattern: All API calls go through /api/* routes, never direct to DaaS backend
  • Auth Proxy: Login/logout via /api/auth/*, never direct supabase.auth.*
  • Backend-First: Business logic uses DaaS extensions/workflows, not Next.js API routes
  • Components imported from @/components/ui/ or @/lib/buildpad/
  • No manually created files in components/ui/ or lib/buildpad/ (CLI only)

4. Performance

  • No unstable useEffect dependencies (new objects every render)
  • API calls not in render loops
  • Large lists virtualized or paginated
  • Images optimized with next/image
  • Server Components used where possible

5. Accessibility

  • Semantic HTML elements
  • ARIA labels on interactive elements
  • Keyboard navigation works
  • Color contrast sufficient
  • Focus management in modals/dialogs

6. Testing

  • Tests exist for the feature
  • Happy path, error cases, and edge cases covered
  • Test file in correct tests/ subdirectory

Output Format

For each finding:

[SEVERITY] Category — Description
File: path/to/file.ts:L42
Fix: Specific recommendation

Severity levels: 🔴 CRITICAL (must fix), 🟡 WARNING (should fix), 🔵 INFO (consider)

References

  • Playwright testing guide

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.