All skills
simota avatar

/judge

@e307415
by shingo imotasimota/agent-skills85 stars
15

Reviewing code via multi-engine orchestration (Claude + Codex) on three axes — secure, correct, and lean — shipping only findings worth fixing. Use for PR review or pre-commit. Complements Zen.

Use this Skill: https://skilld.dev/gh/simota/agent-skills/judge

This session only. Nothing lands on disk.

referenceframework-reviews.md

≈1.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Framework-Specific Review Guide

Targeted review prompts and common issues per framework.


React Review Focus

codex review --base main "Focus on React patterns: hook dependencies, key props, memo usage, state management, cleanup in useEffect"
Issue Severity What to Look For
Missing useEffect dependency HIGH ESLint exhaustive-deps violations
Missing key prop MEDIUM Lists without unique keys
Unnecessary re-renders MEDIUM Objects/functions in deps without useMemo/useCallback
State update after unmount HIGH Async operations without cleanup
Prop drilling INFO Pass to Zen for refactoring
// BAD: Missing dependency
useEffect(() => {
  fetchUser(userId);  // userId not in deps
}, []);

// GOOD: Complete dependencies
useEffect(() => {
  fetchUser(userId);
}, [userId]);

Next.js Review Focus

codex review --base main "Focus on Next.js: Server/Client boundaries, use client directive, metadata, data fetching patterns, route handlers"
Issue Severity What to Look For
Client hook in Server Component CRITICAL useState/useEffect without 'use client'
Missing 'use client' HIGH Interactive component without directive
Incorrect data fetching MEDIUM fetch in Client Component (should be Server)
Missing error.tsx MEDIUM Route without error boundary
Hardcoded revalidate LOW Magic numbers for cache times
// BAD: Hook in Server Component
// app/page.tsx (Server Component by default)
import { useState } from 'react';
export default function Page() {
  const [count, setCount] = useState(0); // Error: useState in Server Component
}

// GOOD: Properly marked Client Component
'use client';
import { useState } from 'react';
export default function Counter() {
  const [count, setCount] = useState(0);
}

Express/Node.js Review Focus

codex review --base main "Focus on Express: middleware order, error handling, async/await patterns, input validation, response handling"
Issue Severity What to Look For
Missing error middleware HIGH No (err, req, res, next) handler
Async without try/catch HIGH async handler without error handling
Middleware order wrong MEDIUM Auth after route handler
No input validation HIGH req.body used directly
Response after send MEDIUM Code after res.send()
// BAD: Async without error handling
app.get('/users', async (req, res) => {
  const users = await db.getUsers(); // Unhandled rejection
  res.json(users);
});

// GOOD: Proper async error handling
app.get('/users', async (req, res, next) => {
  try {
    const users = await db.getUsers();
    res.json(users);
  } catch (error) {
    next(error);
  }
});

TypeScript Review Focus

codex review --base main "Focus on TypeScript: type safety, any usage, type assertions, null checks, generic constraints"
Issue Severity What to Look For
any type usage MEDIUM Explicit any without justification
Unsafe type assertion HIGH as without runtime check
Missing null check HIGH Non-null assertion ! without guarantee
Implicit any MEDIUM Missing return type on complex functions
Type widening issues LOW Const assertions missing

Python Review Focus

codex review --base main "Focus on Python: type hints, exception handling, resource management, mutable defaults, async patterns"
Issue Severity What to Look For
Mutable default argument HIGH def f(items=[])
Bare except MEDIUM except: without specific type
Missing context manager MEDIUM File/DB open without with
Missing type hints LOW Public API without annotations
Unclosed async resource HIGH aiohttp.ClientSession without async with

Go Review Focus

codex review --base main "Focus on Go: error handling, goroutine leaks, defer patterns, nil checks, context propagation"
Issue Severity What to Look For
Ignored error return HIGH result, _ := fn() on fallible call
Goroutine leak CRITICAL Goroutine without exit path
Missing defer close MEDIUM Resource open without defer .Close()
Nil pointer dereference HIGH No nil check after type assertion
Missing context cancel MEDIUM context.WithCancel without defer cancel()

Source: SKILL.md on GitHub

No alerts13d5 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The 'judge' skill is an advanced code review tool designed to analyze software changes using multiple AI engines including Claude, Codex, and Google Gemini. It features sophisticated workflows for PR reviews, security audits, and performance checks. While it processes external data like code diffs and PR descriptions, it includes a multi-layered verification process to ensure findings are accurate. The skill also includes technical instructions for managing CLI tool requirements, such as handling terminal interactions using Python. All external resources and download instructions point to trusted organizations like Google and Anthropic.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • Runlayer6mo

    1/11 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at e307415. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/judge