KS
Killer-Skills

architecture-review — Categories.community

v1.0.0
GitHub

About this Skill

Perfect for Code Analysis Agents needing comprehensive codebase health checks for Next.js, Supabase, and SWR stacks. Project-focused matching app

AJB-ajb AJB-ajb
[0]
[0]
Updated: 3/4/2026

Quality Score

Top 5%
51
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add AJB-ajb/MeshIt/architecture-review

Agent Capability Analysis

The architecture-review MCP Server by AJB-ajb is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion.

Ideal Agent Persona

Perfect for Code Analysis Agents needing comprehensive codebase health checks for Next.js, Supabase, and SWR stacks.

Core Value

Empowers agents to detect duplicated code, anti-patterns, complexity, and inconsistencies across the codebase, ensuring a robust and maintainable project architecture through periodic checks using SWR and Supabase integration.

Capabilities Granted for architecture-review MCP Server

Debugging unexplained bugs in Mesh
Performing codebase health checks before major releases
Automating weekly code reviews for consistency and best practices
Identifying duplicated code and anti-patterns in parallel branches

! Prerequisites & Limits

  • Requires access to the codebase and relevant files
  • Specific to Next.js, Supabase, and SWR stacks
  • Needs periodic runs for optimal benefits
Project
SKILL.md
4.5 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Architecture Review

Codebase health check for Mesh. Detects duplicated code, anti-patterns, complexity, and inconsistencies across the Next.js + Supabase + SWR stack.

When to Run

  • Before major releases or deploys
  • After merging parallel branches
  • When debugging unexplained bugs
  • Periodically (weekly/biweekly)

How to Use

  1. Read this file for the checklist and categories
  2. For each category, scan the relevant files using the patterns described
  3. Check individual rules/ files for detailed detection guidance
  4. Report findings as: AREA > FILE(S) > SEVERITY > RECOMMENDATION

Review Checklist

1. Duplication (CRITICAL)

Scan for repeated code blocks that should be extracted to shared utilities.

PatternWhere to checkRule
JSON body parsing boilerplatesrc/app/api/**/route.tsdup-json-parsing
Provider identity checkinghooks + API routesdup-provider-check
Record transformation logicAPI routes returning DB rowsdup-record-transform

2. Error Handling (HIGH)

PatternWhere to checkRule
Fire-and-forget fetch callshooks, componentserr-fire-and-forget
Silent .catch(() => {})entire src/err-silent-catch
Unhandled promise rejectionscomponents with .then()err-unhandled-promise
Inconsistent error response formatAPI routeserr-response-format

3. Supabase Client (HIGH)

PatternWhere to checkRule
Multiple client instances in one componentcomponents with createClient()supa-client-instances
Server/browser client confusionhooks importing from wrong modulesupa-client-boundary
Missing null checks after type castingAPI routes with as Record<>supa-unsafe-cast

4. SWR & Data Fetching (MEDIUM)

PatternWhere to checkRule
Missing revalidation after mutationshooks with .update() or .insert()swr-missing-revalidate
N+1 query patternshooks fetching per-item in loopsswr-n-plus-one
select("*") instead of specific columnsAPI routes + hooksperf-select-star

5. Type Safety (MEDIUM)

PatternWhere to checkRule
Generic Json type for structured datasrc/lib/supabase/types.ts, hookstype-generic-json
Explicit : any usageentire src/type-any
Unsafe type assertions without validationAPI routes, componentstype-unsafe-assert

6. Component Structure (MEDIUM)

PatternWhere to checkRule
Components over 300 linessrc/components/comp-too-large
Missing error boundariesroute layouts, dashboardcomp-error-boundary
Mixed fetch patterns (hook vs direct)componentscomp-inconsistent-fetch

Severity Guide

  • CRITICAL: Causes bugs, data loss, or security issues. Fix immediately.
  • HIGH: Creates maintenance burden or silent failures. Fix this sprint.
  • MEDIUM: Inconsistency or code smell. Fix when touching the file.
  • LOW: Style/preference. Fix opportunistically.

Output Format

## Architecture Review - [date]

### Findings

1. **[SEVERITY] [AREA]**: [description]
   - Files: [file paths with line numbers]
   - Recommendation: [what to do]

### Summary
- Critical: N
- High: N
- Medium: N
- Quick wins: [list easy fixes]

Related Skills

Looking for an alternative to architecture-review or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication